ccxt 4.4.30__py2.py3-none-any.whl → 4.4.31__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ccxt/__init__.py +1 -1
- ccxt/ace.py +36 -12
- ccxt/alpaca.py +62 -22
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +62 -22
- ccxt/async_support/ascendex.py +65 -30
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/bigone.py +71 -27
- ccxt/async_support/binance.py +555 -323
- ccxt/async_support/bingx.py +208 -108
- ccxt/async_support/bit2c.py +34 -12
- ccxt/async_support/bitbank.py +42 -14
- ccxt/async_support/bitbns.py +17 -9
- ccxt/async_support/bitfinex.py +68 -24
- ccxt/async_support/bitfinex2.py +116 -44
- ccxt/async_support/bitflyer.py +54 -18
- ccxt/async_support/bitget.py +277 -145
- ccxt/async_support/bithumb.py +39 -14
- ccxt/async_support/bitmart.py +145 -79
- ccxt/async_support/bitmex.py +90 -30
- ccxt/async_support/bitopro.py +66 -22
- ccxt/async_support/bitrue.py +109 -57
- ccxt/async_support/bitso.py +55 -19
- ccxt/async_support/bitstamp.py +84 -36
- ccxt/async_support/bitteam.py +51 -17
- ccxt/async_support/bitvavo.py +57 -19
- ccxt/async_support/bl3p.py +26 -10
- ccxt/async_support/blockchaincom.py +63 -21
- ccxt/async_support/blofin.py +95 -38
- ccxt/async_support/btcalpha.py +48 -16
- ccxt/async_support/btcbox.py +27 -9
- ccxt/async_support/btcmarkets.py +57 -19
- ccxt/async_support/btcturk.py +36 -12
- ccxt/async_support/bybit.py +251 -95
- ccxt/async_support/cex.py +65 -22
- ccxt/async_support/coinbase.py +138 -56
- ccxt/async_support/coinbaseexchange.py +76 -28
- ccxt/async_support/coinbaseinternational.py +75 -27
- ccxt/async_support/coincatch.py +191 -97
- ccxt/async_support/coincheck.py +33 -11
- ccxt/async_support/coinex.py +212 -101
- ccxt/async_support/coinlist.py +87 -30
- ccxt/async_support/coinmate.py +55 -24
- ccxt/async_support/coinmetro.py +52 -18
- ccxt/async_support/coinone.py +27 -10
- ccxt/async_support/coinsph.py +73 -27
- ccxt/async_support/coinspot.py +25 -9
- ccxt/async_support/cryptocom.py +103 -38
- ccxt/async_support/currencycom.py +70 -23
- ccxt/async_support/delta.py +90 -30
- ccxt/async_support/deribit.py +131 -50
- ccxt/async_support/digifinex.py +114 -51
- ccxt/async_support/exmo.py +104 -45
- ccxt/async_support/gate.py +298 -155
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +156 -73
- ccxt/async_support/hollaex.py +76 -25
- ccxt/async_support/htx.py +297 -240
- ccxt/async_support/huobijp.py +1 -0
- ccxt/async_support/hyperliquid.py +94 -38
- ccxt/async_support/idex.py +73 -24
- ccxt/async_support/independentreserve.py +12 -5
- ccxt/async_support/indodax.py +53 -16
- ccxt/async_support/kraken.py +107 -35
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +211 -109
- ccxt/async_support/kucoinfutures.py +119 -42
- ccxt/async_support/kuna.py +80 -39
- ccxt/async_support/latoken.py +70 -33
- ccxt/async_support/lbank.py +89 -38
- ccxt/async_support/luno.py +54 -19
- ccxt/async_support/lykke.py +54 -19
- ccxt/async_support/mercado.py +1 -0
- ccxt/async_support/mexc.py +226 -108
- ccxt/async_support/ndax.py +58 -19
- ccxt/async_support/novadax.py +67 -22
- ccxt/async_support/oceanex.py +58 -19
- ccxt/async_support/okcoin.py +81 -38
- ccxt/async_support/okx.py +270 -109
- ccxt/async_support/onetrading.py +3 -1
- ccxt/async_support/oxfun.py +95 -36
- ccxt/async_support/p2b.py +49 -23
- ccxt/async_support/paradex.py +75 -27
- ccxt/async_support/paymium.py +31 -11
- ccxt/async_support/phemex.py +91 -41
- ccxt/async_support/poloniex.py +80 -30
- ccxt/async_support/poloniexfutures.py +72 -30
- ccxt/async_support/probit.py +64 -22
- ccxt/async_support/timex.py +58 -19
- ccxt/async_support/tokocrypto.py +63 -22
- ccxt/async_support/tradeogre.py +7 -2
- ccxt/async_support/upbit.py +72 -25
- ccxt/async_support/vertex.py +74 -28
- ccxt/async_support/wavesexchange.py +29 -8
- ccxt/async_support/wazirx.py +51 -17
- ccxt/async_support/whitebit.py +105 -41
- ccxt/async_support/woo.py +162 -65
- ccxt/async_support/woofipro.py +118 -49
- ccxt/async_support/xt.py +150 -73
- ccxt/async_support/yobit.py +49 -16
- ccxt/async_support/zaif.py +30 -10
- ccxt/async_support/zonda.py +46 -16
- ccxt/base/exchange.py +34 -34
- ccxt/base/types.py +1 -0
- ccxt/bigone.py +71 -27
- ccxt/binance.py +555 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +17 -9
- ccxt/bitfinex.py +68 -24
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +145 -79
- ccxt/bitmex.py +90 -30
- ccxt/bitopro.py +66 -22
- ccxt/bitrue.py +109 -57
- ccxt/bitso.py +55 -19
- ccxt/bitstamp.py +84 -36
- ccxt/bitteam.py +51 -17
- ccxt/bitvavo.py +57 -19
- ccxt/bl3p.py +26 -10
- ccxt/blockchaincom.py +63 -21
- ccxt/blofin.py +95 -38
- ccxt/btcalpha.py +48 -16
- ccxt/btcbox.py +27 -9
- ccxt/btcmarkets.py +57 -19
- ccxt/btcturk.py +36 -12
- ccxt/bybit.py +251 -95
- ccxt/cex.py +65 -22
- ccxt/coinbase.py +138 -56
- ccxt/coinbaseexchange.py +76 -28
- ccxt/coinbaseinternational.py +75 -27
- ccxt/coincatch.py +191 -97
- ccxt/coincheck.py +33 -11
- ccxt/coinex.py +212 -101
- ccxt/coinlist.py +87 -30
- ccxt/coinmate.py +55 -24
- ccxt/coinmetro.py +52 -18
- ccxt/coinone.py +27 -10
- ccxt/coinsph.py +73 -27
- ccxt/coinspot.py +25 -9
- ccxt/cryptocom.py +103 -38
- ccxt/currencycom.py +70 -23
- ccxt/delta.py +90 -30
- ccxt/deribit.py +131 -50
- ccxt/digifinex.py +114 -51
- ccxt/exmo.py +104 -45
- ccxt/gate.py +298 -155
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +156 -73
- ccxt/hollaex.py +76 -25
- ccxt/htx.py +297 -240
- ccxt/huobijp.py +1 -0
- ccxt/hyperliquid.py +94 -38
- ccxt/idex.py +73 -24
- ccxt/independentreserve.py +12 -5
- ccxt/indodax.py +53 -16
- ccxt/kraken.py +107 -35
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +211 -109
- ccxt/kucoinfutures.py +119 -42
- ccxt/kuna.py +80 -39
- ccxt/latoken.py +70 -33
- ccxt/lbank.py +89 -38
- ccxt/luno.py +54 -19
- ccxt/lykke.py +54 -19
- ccxt/mercado.py +1 -0
- ccxt/mexc.py +226 -108
- ccxt/ndax.py +58 -19
- ccxt/novadax.py +67 -22
- ccxt/oceanex.py +58 -19
- ccxt/okcoin.py +81 -38
- ccxt/okx.py +270 -109
- ccxt/onetrading.py +3 -1
- ccxt/oxfun.py +95 -36
- ccxt/p2b.py +49 -23
- ccxt/paradex.py +75 -27
- ccxt/paymium.py +31 -11
- ccxt/phemex.py +91 -41
- ccxt/poloniex.py +80 -30
- ccxt/poloniexfutures.py +72 -30
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +15 -5
- ccxt/pro/ascendex.py +18 -6
- ccxt/pro/binance.py +200 -119
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +75 -36
- ccxt/pro/bithumb.py +12 -4
- ccxt/pro/bitmart.py +44 -20
- ccxt/pro/bitmex.py +42 -14
- ccxt/pro/bitopro.py +15 -5
- ccxt/pro/bitrue.py +7 -3
- ccxt/pro/bitvavo.py +51 -17
- ccxt/pro/blockchaincom.py +18 -6
- ccxt/pro/blofin.py +36 -12
- ccxt/pro/bybit.py +100 -42
- ccxt/pro/cex.py +48 -16
- ccxt/pro/coinbase.py +32 -12
- ccxt/pro/coinbaseexchange.py +1 -1
- ccxt/pro/coinbaseinternational.py +34 -14
- ccxt/pro/coincatch.py +54 -19
- ccxt/pro/coincheck.py +6 -2
- ccxt/pro/coinex.py +40 -20
- ccxt/pro/coinone.py +9 -3
- ccxt/pro/cryptocom.py +70 -26
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +64 -30
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +26 -8
- ccxt/pro/hitbtc.py +61 -37
- ccxt/pro/hollaex.py +15 -5
- ccxt/pro/htx.py +39 -21
- ccxt/pro/hyperliquid.py +41 -14
- ccxt/pro/kraken.py +49 -17
- ccxt/pro/krakenfutures.py +47 -24
- ccxt/pro/kucoin.py +60 -31
- ccxt/pro/kucoinfutures.py +41 -19
- ccxt/pro/lbank.py +27 -9
- ccxt/pro/luno.py +3 -1
- ccxt/pro/mexc.py +35 -17
- ccxt/pro/ndax.py +12 -4
- ccxt/pro/okcoin.py +18 -6
- ccxt/pro/okx.py +76 -28
- ccxt/pro/onetrading.py +21 -7
- ccxt/pro/oxfun.py +54 -20
- ccxt/pro/p2b.py +23 -11
- ccxt/pro/paradex.py +12 -4
- ccxt/pro/phemex.py +31 -19
- ccxt/pro/poloniex.py +50 -22
- ccxt/pro/poloniexfutures.py +17 -7
- ccxt/pro/probit.py +18 -6
- ccxt/pro/upbit.py +25 -9
- ccxt/pro/vertex.py +20 -6
- ccxt/pro/wazirx.py +21 -7
- ccxt/pro/whitebit.py +25 -9
- ccxt/pro/woo.py +32 -12
- ccxt/pro/woofipro.py +35 -13
- ccxt/pro/xt.py +46 -26
- ccxt/probit.py +64 -22
- ccxt/timex.py +58 -19
- ccxt/tokocrypto.py +63 -22
- ccxt/tradeogre.py +7 -2
- ccxt/upbit.py +72 -25
- ccxt/vertex.py +74 -28
- ccxt/wavesexchange.py +29 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +118 -49
- ccxt/xt.py +150 -73
- ccxt/yobit.py +49 -16
- ccxt/zaif.py +30 -10
- ccxt/zonda.py +46 -16
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/RECORD +267 -267
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
@@ -375,7 +375,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
375
375
|
async def fetch_status(self, params={}):
|
376
376
|
"""
|
377
377
|
the latest known information on the availability of the exchange API
|
378
|
-
|
378
|
+
|
379
|
+
https://www.kucoin.com/docs/rest/futures-trading/market-data/get-service-status
|
380
|
+
|
379
381
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
380
382
|
:returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
|
381
383
|
"""
|
@@ -402,7 +404,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
402
404
|
async def fetch_markets(self, params={}) -> List[Market]:
|
403
405
|
"""
|
404
406
|
retrieves data on all markets for kucoinfutures
|
405
|
-
|
407
|
+
|
408
|
+
https://www.kucoin.com/docs/rest/futures-trading/market-data/get-symbols-list
|
409
|
+
|
406
410
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
407
411
|
:returns dict[]: an array of objects representing market data
|
408
412
|
"""
|
@@ -560,7 +564,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
560
564
|
async def fetch_time(self, params={}):
|
561
565
|
"""
|
562
566
|
fetches the current integer timestamp in milliseconds from the exchange server
|
563
|
-
|
567
|
+
|
568
|
+
https://www.kucoin.com/docs/rest/futures-trading/market-data/get-server-time
|
569
|
+
|
564
570
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
565
571
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
566
572
|
"""
|
@@ -576,7 +582,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
576
582
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
577
583
|
"""
|
578
584
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
579
|
-
|
585
|
+
|
586
|
+
https://www.kucoin.com/docs/rest/futures-trading/market-data/get-klines
|
587
|
+
|
580
588
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
581
589
|
:param str timeframe: the length of time each candle represents
|
582
590
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -649,7 +657,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
649
657
|
async def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
650
658
|
"""
|
651
659
|
fetch the deposit address for a currency associated with self account
|
652
|
-
|
660
|
+
|
661
|
+
https://www.kucoin.com/docs/rest/funding/deposit/get-deposit-address
|
662
|
+
|
653
663
|
:param str code: unified currency code
|
654
664
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
655
665
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -686,7 +696,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
686
696
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
687
697
|
"""
|
688
698
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
689
|
-
|
699
|
+
|
700
|
+
https://www.kucoin.com/docs/rest/futures-trading/market-data/get-part-order-book-level-2
|
701
|
+
|
690
702
|
:param str symbol: unified symbol of the market to fetch the order book for
|
691
703
|
:param int [limit]: the maximum amount of order book entries to return
|
692
704
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -735,7 +747,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
735
747
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
736
748
|
"""
|
737
749
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
738
|
-
|
750
|
+
|
751
|
+
https://www.kucoin.com/docs/rest/futures-trading/market-data/get-ticker
|
752
|
+
|
739
753
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
740
754
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
741
755
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -769,7 +783,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
769
783
|
async def fetch_mark_price(self, symbol: str, params={}) -> Ticker:
|
770
784
|
"""
|
771
785
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
772
|
-
|
786
|
+
|
787
|
+
https://www.kucoin.com/docs/rest/futures-trading/market-data/get-current-mark-price
|
788
|
+
|
773
789
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
774
790
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
775
791
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -786,7 +802,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
786
802
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
787
803
|
"""
|
788
804
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
789
|
-
|
805
|
+
|
806
|
+
https://www.kucoin.com/docs/rest/futures-trading/market-data/get-symbols-list
|
807
|
+
|
790
808
|
:param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
791
809
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
792
810
|
:param str [params.method]: the method to use, futuresPublicGetAllTickers or futuresPublicGetContractsActive
|
@@ -998,7 +1016,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
998
1016
|
async def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
999
1017
|
"""
|
1000
1018
|
fetch the history of funding payments paid and received on self account
|
1001
|
-
|
1019
|
+
|
1020
|
+
https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-funding-history
|
1021
|
+
|
1002
1022
|
:param str symbol: unified market symbol
|
1003
1023
|
:param int [since]: the earliest time in ms to fetch funding history for
|
1004
1024
|
:param int [limit]: the maximum number of funding history structures to retrieve
|
@@ -1063,7 +1083,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1063
1083
|
|
1064
1084
|
async def fetch_position(self, symbol: str, params={}):
|
1065
1085
|
"""
|
1066
|
-
|
1086
|
+
|
1087
|
+
https://docs.kucoin.com/futures/#get-position-details
|
1088
|
+
|
1067
1089
|
fetch data on an open position
|
1068
1090
|
:param str symbol: unified market symbol of the market the position is held in
|
1069
1091
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1125,7 +1147,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1125
1147
|
async def fetch_positions(self, symbols: Strings = None, params={}):
|
1126
1148
|
"""
|
1127
1149
|
fetch all open positions
|
1128
|
-
|
1150
|
+
|
1151
|
+
https://docs.kucoin.com/futures/#get-position-list
|
1152
|
+
|
1129
1153
|
:param str[]|None symbols: list of unified market symbols
|
1130
1154
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1131
1155
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -1184,8 +1208,12 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1184
1208
|
async def fetch_positions_history(self, symbols: Strings = None, since: Int = None, limit: Int = None, params={}):
|
1185
1209
|
"""
|
1186
1210
|
fetches historical positions
|
1187
|
-
|
1211
|
+
|
1212
|
+
https://www.kucoin.com/docs/rest/futures-trading/positions/get-positions-history
|
1213
|
+
|
1188
1214
|
:param str[] [symbols]: list of unified market symbols
|
1215
|
+
@param since
|
1216
|
+
@param limit
|
1189
1217
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1190
1218
|
:param int [params.until]: closing end time
|
1191
1219
|
:param int [params.pageId]: page id
|
@@ -1375,8 +1403,10 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1375
1403
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1376
1404
|
"""
|
1377
1405
|
Create an order on the exchange
|
1378
|
-
|
1379
|
-
|
1406
|
+
|
1407
|
+
https://docs.kucoin.com/futures/#place-an-order
|
1408
|
+
https://www.kucoin.com/docs/rest/futures-trading/orders/place-take-profit-and-stop-loss-order#http-request
|
1409
|
+
|
1380
1410
|
:param str symbol: Unified CCXT market symbol
|
1381
1411
|
:param str type: 'limit' or 'market'
|
1382
1412
|
:param str side: 'buy' or 'sell'
|
@@ -1391,7 +1421,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1391
1421
|
:param bool [params.reduceOnly]: A mark to reduce the position size only. Set to False by default. Need to set the position size when reduceOnly is True.
|
1392
1422
|
:param str [params.timeInForce]: GTC, GTT, IOC, or FOK, default is GTC, limit orders only
|
1393
1423
|
:param str [params.postOnly]: Post only flag, invalid when timeInForce is IOC or FOK
|
1394
|
-
|
1424
|
+
----------------- Exchange Specific Parameters -----------------
|
1395
1425
|
:param float [params.leverage]: Leverage size of the order
|
1396
1426
|
:param str [params.clientOid]: client order id, defaults to uuid if not passed
|
1397
1427
|
:param str [params.remark]: remark for the order, length cannot exceed 100 utf8 characters
|
@@ -1430,7 +1460,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1430
1460
|
async def create_orders(self, orders: List[OrderRequest], params={}):
|
1431
1461
|
"""
|
1432
1462
|
create a list of trade orders
|
1433
|
-
|
1463
|
+
|
1464
|
+
https://www.kucoin.com/docs/rest/futures-trading/orders/place-multiple-orders
|
1465
|
+
|
1434
1466
|
:param Array orders: list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
1435
1467
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1436
1468
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1552,7 +1584,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1552
1584
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1553
1585
|
"""
|
1554
1586
|
cancels an open order
|
1555
|
-
|
1587
|
+
|
1588
|
+
https://www.kucoin.com/docs/rest/futures-trading/orders/cancel-futures-order-by-orderid
|
1589
|
+
|
1556
1590
|
:param str id: order id
|
1557
1591
|
:param str symbol: unified symbol of the market the order was made in
|
1558
1592
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1589,7 +1623,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1589
1623
|
async def cancel_orders(self, ids, symbol: Str = None, params={}):
|
1590
1624
|
"""
|
1591
1625
|
cancel multiple orders
|
1592
|
-
|
1626
|
+
|
1627
|
+
https://www.kucoin.com/docs/rest/futures-trading/orders/batch-cancel-orders
|
1628
|
+
|
1593
1629
|
:param str[] ids: order ids
|
1594
1630
|
:param str symbol: unified symbol of the market the order was made in
|
1595
1631
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1644,8 +1680,10 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1644
1680
|
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
1645
1681
|
"""
|
1646
1682
|
cancel all open orders
|
1647
|
-
|
1648
|
-
|
1683
|
+
|
1684
|
+
https://www.kucoin.com/docs/rest/futures-trading/orders/cancel-multiple-futures-limit-orders
|
1685
|
+
https://www.kucoin.com/docs/rest/futures-trading/orders/cancel-multiple-futures-stop-orders
|
1686
|
+
|
1649
1687
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1650
1688
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1651
1689
|
:param dict [params.trigger]: When True, all the trigger orders will be cancelled
|
@@ -1677,7 +1715,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1677
1715
|
async def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
|
1678
1716
|
"""
|
1679
1717
|
add margin
|
1680
|
-
|
1718
|
+
|
1719
|
+
https://www.kucoin.com/docs/rest/futures-trading/positions/add-margin-manually
|
1720
|
+
|
1681
1721
|
:param str symbol: unified market symbol
|
1682
1722
|
:param float amount: amount of margin to add
|
1683
1723
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1816,8 +1856,10 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1816
1856
|
async def fetch_orders_by_status(self, status, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1817
1857
|
"""
|
1818
1858
|
fetches a list of orders placed on the exchange
|
1819
|
-
|
1820
|
-
|
1859
|
+
|
1860
|
+
https://docs.kucoin.com/futures/#get-order-list
|
1861
|
+
https://docs.kucoin.com/futures/#get-untriggered-stop-order-list
|
1862
|
+
|
1821
1863
|
:param str status: 'active' or 'closed', only 'active' is valid for stop orders
|
1822
1864
|
:param str symbol: unified symbol for the market to retrieve orders from
|
1823
1865
|
:param int [since]: timestamp in ms of the earliest order to retrieve
|
@@ -1918,7 +1960,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1918
1960
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1919
1961
|
"""
|
1920
1962
|
fetches information on multiple closed orders made by the user
|
1921
|
-
|
1963
|
+
|
1964
|
+
https://docs.kucoin.com/futures/#get-order-list
|
1965
|
+
|
1922
1966
|
:param str symbol: unified market symbol of the market orders were made in
|
1923
1967
|
:param int [since]: the earliest time in ms to fetch orders for
|
1924
1968
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1939,8 +1983,10 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1939
1983
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1940
1984
|
"""
|
1941
1985
|
fetches information on multiple open orders made by the user
|
1942
|
-
|
1943
|
-
|
1986
|
+
|
1987
|
+
https://docs.kucoin.com/futures/#get-order-list
|
1988
|
+
https://docs.kucoin.com/futures/#get-untriggered-stop-order-list
|
1989
|
+
|
1944
1990
|
:param str symbol: unified market symbol of the market orders were made in
|
1945
1991
|
:param int [since]: the earliest time in ms to fetch orders for
|
1946
1992
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1962,7 +2008,10 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1962
2008
|
async def fetch_order(self, id: Str = None, symbol: Str = None, params={}):
|
1963
2009
|
"""
|
1964
2010
|
fetches information on an order made by the user
|
1965
|
-
|
2011
|
+
|
2012
|
+
https://docs.kucoin.com/futures/#get-details-of-a-single-order
|
2013
|
+
|
2014
|
+
:param str id: order id
|
1966
2015
|
:param str symbol: unified symbol of the market the order was made in
|
1967
2016
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1968
2017
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -2161,7 +2210,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2161
2210
|
async def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
|
2162
2211
|
"""
|
2163
2212
|
fetch the current funding rate
|
2164
|
-
|
2213
|
+
|
2214
|
+
https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-current-funding-rate
|
2215
|
+
|
2165
2216
|
:param str symbol: unified market symbol
|
2166
2217
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2167
2218
|
:returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -2191,7 +2242,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2191
2242
|
async def fetch_funding_interval(self, symbol: str, params={}) -> FundingRate:
|
2192
2243
|
"""
|
2193
2244
|
fetch the current funding rate interval
|
2194
|
-
|
2245
|
+
|
2246
|
+
https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-current-funding-rate
|
2247
|
+
|
2195
2248
|
:param str symbol: unified market symbol
|
2196
2249
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2197
2250
|
:returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -2259,7 +2312,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2259
2312
|
async def fetch_balance(self, params={}) -> Balances:
|
2260
2313
|
"""
|
2261
2314
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
2262
|
-
|
2315
|
+
|
2316
|
+
https://www.kucoin.com/docs/rest/funding/funding-overview/get-account-detail-futures
|
2317
|
+
|
2263
2318
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2264
2319
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
2265
2320
|
"""
|
@@ -2356,7 +2411,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2356
2411
|
|
2357
2412
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2358
2413
|
"""
|
2359
|
-
|
2414
|
+
|
2415
|
+
https://docs.kucoin.com/futures/#get-fills
|
2416
|
+
|
2360
2417
|
fetch all trades made by the user
|
2361
2418
|
:param str symbol: unified market symbol
|
2362
2419
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -2427,7 +2484,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2427
2484
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
2428
2485
|
"""
|
2429
2486
|
get the list of most recent trades for a particular symbol
|
2430
|
-
|
2487
|
+
|
2488
|
+
https://www.kucoin.com/docs/rest/futures-trading/market-data/get-transaction-history
|
2489
|
+
|
2431
2490
|
:param str symbol: unified symbol of the market to fetch trades for
|
2432
2491
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
2433
2492
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -2691,7 +2750,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2691
2750
|
async def fetch_market_leverage_tiers(self, symbol: str, params={}) -> List[LeverageTier]:
|
2692
2751
|
"""
|
2693
2752
|
retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market
|
2694
|
-
|
2753
|
+
|
2754
|
+
https://www.kucoin.com/docs/rest/futures-trading/risk-limit/get-futures-risk-limit-level
|
2755
|
+
|
2695
2756
|
:param str symbol: unified market symbol
|
2696
2757
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2697
2758
|
:returns dict: a `leverage tiers structure <https://docs.ccxt.com/#/?id=leverage-tiers-structure>`
|
@@ -2726,7 +2787,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2726
2787
|
|
2727
2788
|
def parse_market_leverage_tiers(self, info, market: Market = None) -> List[LeverageTier]:
|
2728
2789
|
"""
|
2729
|
-
|
2790
|
+
@ignore
|
2730
2791
|
:param dict info: Exchange market response for 1 market
|
2731
2792
|
:param dict market: CCXT market
|
2732
2793
|
"""
|
@@ -2744,8 +2805,10 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2744
2805
|
tiers = []
|
2745
2806
|
for i in range(0, len(info)):
|
2746
2807
|
tier = info[i]
|
2808
|
+
marketId = self.safe_string(tier, 'symbol')
|
2747
2809
|
tiers.append({
|
2748
2810
|
'tier': self.safe_number(tier, 'level'),
|
2811
|
+
'symbol': self.safe_symbol(marketId, market, None, 'contract'),
|
2749
2812
|
'currency': market['base'],
|
2750
2813
|
'minNotional': self.safe_number(tier, 'minRiskLimit'),
|
2751
2814
|
'maxNotional': self.safe_number(tier, 'maxRiskLimit'),
|
@@ -2757,7 +2820,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2757
2820
|
|
2758
2821
|
async def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2759
2822
|
"""
|
2760
|
-
|
2823
|
+
|
2824
|
+
https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-public-funding-history#request-url
|
2825
|
+
|
2761
2826
|
fetches historical funding rate prices
|
2762
2827
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
2763
2828
|
:param int [since]: not used by kucuoinfutures
|
@@ -2815,7 +2880,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2815
2880
|
async def close_position(self, symbol: str, side: OrderSide = None, params={}) -> Order:
|
2816
2881
|
"""
|
2817
2882
|
closes open positions for a market
|
2818
|
-
|
2883
|
+
|
2884
|
+
https://www.kucoin.com/docs/rest/futures-trading/orders/place-order
|
2885
|
+
|
2819
2886
|
:param str symbol: Unified CCXT market symbol
|
2820
2887
|
:param str side: not used by kucoinfutures closePositions
|
2821
2888
|
:param dict [params]: extra parameters specific to the okx api endpoint
|
@@ -2845,7 +2912,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2845
2912
|
async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
2846
2913
|
"""
|
2847
2914
|
fetch the trading fees for a market
|
2848
|
-
|
2915
|
+
|
2916
|
+
https://www.kucoin.com/docs/rest/funding/trade-fee/trading-pair-actual-fee-futures
|
2917
|
+
|
2849
2918
|
:param str symbol: unified market symbol
|
2850
2919
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2851
2920
|
:returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -2881,7 +2950,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2881
2950
|
async def fetch_margin_mode(self, symbol: str, params={}) -> MarginMode:
|
2882
2951
|
"""
|
2883
2952
|
fetches the margin mode of a trading pair
|
2884
|
-
|
2953
|
+
|
2954
|
+
https://www.kucoin.com/docs/rest/futures-trading/positions/get-margin-mode
|
2955
|
+
|
2885
2956
|
:param str symbol: unified symbol of the market to fetch the margin mode for
|
2886
2957
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2887
2958
|
:returns dict: a `margin mode structure <https://docs.ccxt.com/#/?id=margin-mode-structure>`
|
@@ -2916,7 +2987,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2916
2987
|
async def set_margin_mode(self, marginMode: str, symbol: Str = None, params={}):
|
2917
2988
|
"""
|
2918
2989
|
set margin mode to 'cross' or 'isolated'
|
2919
|
-
|
2990
|
+
|
2991
|
+
https://www.kucoin.com/docs/rest/futures-trading/positions/modify-margin-mode
|
2992
|
+
|
2920
2993
|
:param str marginMode: 'cross' or 'isolated'
|
2921
2994
|
:param str symbol: unified market symbol
|
2922
2995
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2947,7 +3020,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2947
3020
|
async def fetch_leverage(self, symbol: str, params={}) -> Leverage:
|
2948
3021
|
"""
|
2949
3022
|
fetch the set leverage for a market
|
2950
|
-
|
3023
|
+
|
3024
|
+
https://www.kucoin.com/docs/rest/futures-trading/positions/get-cross-margin-leverage
|
3025
|
+
|
2951
3026
|
:param str symbol: unified market symbol
|
2952
3027
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2953
3028
|
:returns dict: a `leverage structure <https://docs.ccxt.com/#/?id=leverage-structure>`
|
@@ -2980,7 +3055,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2980
3055
|
async def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
|
2981
3056
|
"""
|
2982
3057
|
set the level of leverage for a market
|
2983
|
-
|
3058
|
+
|
3059
|
+
https://www.kucoin.com/docs/rest/futures-trading/positions/modify-cross-margin-leverage
|
3060
|
+
|
2984
3061
|
:param float leverage: the rate of leverage
|
2985
3062
|
:param str symbol: unified market symbol
|
2986
3063
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|