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.
Files changed (267) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/ace.py +36 -12
  3. ccxt/alpaca.py +62 -22
  4. ccxt/ascendex.py +65 -30
  5. ccxt/async_support/__init__.py +1 -1
  6. ccxt/async_support/ace.py +36 -12
  7. ccxt/async_support/alpaca.py +62 -22
  8. ccxt/async_support/ascendex.py +65 -30
  9. ccxt/async_support/base/exchange.py +3 -3
  10. ccxt/async_support/bigone.py +71 -27
  11. ccxt/async_support/binance.py +555 -323
  12. ccxt/async_support/bingx.py +208 -108
  13. ccxt/async_support/bit2c.py +34 -12
  14. ccxt/async_support/bitbank.py +42 -14
  15. ccxt/async_support/bitbns.py +17 -9
  16. ccxt/async_support/bitfinex.py +68 -24
  17. ccxt/async_support/bitfinex2.py +116 -44
  18. ccxt/async_support/bitflyer.py +54 -18
  19. ccxt/async_support/bitget.py +277 -145
  20. ccxt/async_support/bithumb.py +39 -14
  21. ccxt/async_support/bitmart.py +145 -79
  22. ccxt/async_support/bitmex.py +90 -30
  23. ccxt/async_support/bitopro.py +66 -22
  24. ccxt/async_support/bitrue.py +109 -57
  25. ccxt/async_support/bitso.py +55 -19
  26. ccxt/async_support/bitstamp.py +84 -36
  27. ccxt/async_support/bitteam.py +51 -17
  28. ccxt/async_support/bitvavo.py +57 -19
  29. ccxt/async_support/bl3p.py +26 -10
  30. ccxt/async_support/blockchaincom.py +63 -21
  31. ccxt/async_support/blofin.py +95 -38
  32. ccxt/async_support/btcalpha.py +48 -16
  33. ccxt/async_support/btcbox.py +27 -9
  34. ccxt/async_support/btcmarkets.py +57 -19
  35. ccxt/async_support/btcturk.py +36 -12
  36. ccxt/async_support/bybit.py +251 -95
  37. ccxt/async_support/cex.py +65 -22
  38. ccxt/async_support/coinbase.py +138 -56
  39. ccxt/async_support/coinbaseexchange.py +76 -28
  40. ccxt/async_support/coinbaseinternational.py +75 -27
  41. ccxt/async_support/coincatch.py +191 -97
  42. ccxt/async_support/coincheck.py +33 -11
  43. ccxt/async_support/coinex.py +212 -101
  44. ccxt/async_support/coinlist.py +87 -30
  45. ccxt/async_support/coinmate.py +55 -24
  46. ccxt/async_support/coinmetro.py +52 -18
  47. ccxt/async_support/coinone.py +27 -10
  48. ccxt/async_support/coinsph.py +73 -27
  49. ccxt/async_support/coinspot.py +25 -9
  50. ccxt/async_support/cryptocom.py +103 -38
  51. ccxt/async_support/currencycom.py +70 -23
  52. ccxt/async_support/delta.py +90 -30
  53. ccxt/async_support/deribit.py +131 -50
  54. ccxt/async_support/digifinex.py +114 -51
  55. ccxt/async_support/exmo.py +104 -45
  56. ccxt/async_support/gate.py +298 -155
  57. ccxt/async_support/gemini.py +57 -20
  58. ccxt/async_support/hashkey.py +151 -66
  59. ccxt/async_support/hitbtc.py +156 -73
  60. ccxt/async_support/hollaex.py +76 -25
  61. ccxt/async_support/htx.py +297 -240
  62. ccxt/async_support/huobijp.py +1 -0
  63. ccxt/async_support/hyperliquid.py +94 -38
  64. ccxt/async_support/idex.py +73 -24
  65. ccxt/async_support/independentreserve.py +12 -5
  66. ccxt/async_support/indodax.py +53 -16
  67. ccxt/async_support/kraken.py +107 -35
  68. ccxt/async_support/krakenfutures.py +88 -34
  69. ccxt/async_support/kucoin.py +211 -109
  70. ccxt/async_support/kucoinfutures.py +119 -42
  71. ccxt/async_support/kuna.py +80 -39
  72. ccxt/async_support/latoken.py +70 -33
  73. ccxt/async_support/lbank.py +89 -38
  74. ccxt/async_support/luno.py +54 -19
  75. ccxt/async_support/lykke.py +54 -19
  76. ccxt/async_support/mercado.py +1 -0
  77. ccxt/async_support/mexc.py +226 -108
  78. ccxt/async_support/ndax.py +58 -19
  79. ccxt/async_support/novadax.py +67 -22
  80. ccxt/async_support/oceanex.py +58 -19
  81. ccxt/async_support/okcoin.py +81 -38
  82. ccxt/async_support/okx.py +270 -109
  83. ccxt/async_support/onetrading.py +3 -1
  84. ccxt/async_support/oxfun.py +95 -36
  85. ccxt/async_support/p2b.py +49 -23
  86. ccxt/async_support/paradex.py +75 -27
  87. ccxt/async_support/paymium.py +31 -11
  88. ccxt/async_support/phemex.py +91 -41
  89. ccxt/async_support/poloniex.py +80 -30
  90. ccxt/async_support/poloniexfutures.py +72 -30
  91. ccxt/async_support/probit.py +64 -22
  92. ccxt/async_support/timex.py +58 -19
  93. ccxt/async_support/tokocrypto.py +63 -22
  94. ccxt/async_support/tradeogre.py +7 -2
  95. ccxt/async_support/upbit.py +72 -25
  96. ccxt/async_support/vertex.py +74 -28
  97. ccxt/async_support/wavesexchange.py +29 -8
  98. ccxt/async_support/wazirx.py +51 -17
  99. ccxt/async_support/whitebit.py +105 -41
  100. ccxt/async_support/woo.py +162 -65
  101. ccxt/async_support/woofipro.py +118 -49
  102. ccxt/async_support/xt.py +150 -73
  103. ccxt/async_support/yobit.py +49 -16
  104. ccxt/async_support/zaif.py +30 -10
  105. ccxt/async_support/zonda.py +46 -16
  106. ccxt/base/exchange.py +34 -34
  107. ccxt/base/types.py +1 -0
  108. ccxt/bigone.py +71 -27
  109. ccxt/binance.py +555 -323
  110. ccxt/bingx.py +208 -108
  111. ccxt/bit2c.py +34 -12
  112. ccxt/bitbank.py +42 -14
  113. ccxt/bitbns.py +17 -9
  114. ccxt/bitfinex.py +68 -24
  115. ccxt/bitfinex2.py +116 -44
  116. ccxt/bitflyer.py +54 -18
  117. ccxt/bitget.py +277 -145
  118. ccxt/bithumb.py +39 -14
  119. ccxt/bitmart.py +145 -79
  120. ccxt/bitmex.py +90 -30
  121. ccxt/bitopro.py +66 -22
  122. ccxt/bitrue.py +109 -57
  123. ccxt/bitso.py +55 -19
  124. ccxt/bitstamp.py +84 -36
  125. ccxt/bitteam.py +51 -17
  126. ccxt/bitvavo.py +57 -19
  127. ccxt/bl3p.py +26 -10
  128. ccxt/blockchaincom.py +63 -21
  129. ccxt/blofin.py +95 -38
  130. ccxt/btcalpha.py +48 -16
  131. ccxt/btcbox.py +27 -9
  132. ccxt/btcmarkets.py +57 -19
  133. ccxt/btcturk.py +36 -12
  134. ccxt/bybit.py +251 -95
  135. ccxt/cex.py +65 -22
  136. ccxt/coinbase.py +138 -56
  137. ccxt/coinbaseexchange.py +76 -28
  138. ccxt/coinbaseinternational.py +75 -27
  139. ccxt/coincatch.py +191 -97
  140. ccxt/coincheck.py +33 -11
  141. ccxt/coinex.py +212 -101
  142. ccxt/coinlist.py +87 -30
  143. ccxt/coinmate.py +55 -24
  144. ccxt/coinmetro.py +52 -18
  145. ccxt/coinone.py +27 -10
  146. ccxt/coinsph.py +73 -27
  147. ccxt/coinspot.py +25 -9
  148. ccxt/cryptocom.py +103 -38
  149. ccxt/currencycom.py +70 -23
  150. ccxt/delta.py +90 -30
  151. ccxt/deribit.py +131 -50
  152. ccxt/digifinex.py +114 -51
  153. ccxt/exmo.py +104 -45
  154. ccxt/gate.py +298 -155
  155. ccxt/gemini.py +57 -20
  156. ccxt/hashkey.py +151 -66
  157. ccxt/hitbtc.py +156 -73
  158. ccxt/hollaex.py +76 -25
  159. ccxt/htx.py +297 -240
  160. ccxt/huobijp.py +1 -0
  161. ccxt/hyperliquid.py +94 -38
  162. ccxt/idex.py +73 -24
  163. ccxt/independentreserve.py +12 -5
  164. ccxt/indodax.py +53 -16
  165. ccxt/kraken.py +107 -35
  166. ccxt/krakenfutures.py +88 -34
  167. ccxt/kucoin.py +211 -109
  168. ccxt/kucoinfutures.py +119 -42
  169. ccxt/kuna.py +80 -39
  170. ccxt/latoken.py +70 -33
  171. ccxt/lbank.py +89 -38
  172. ccxt/luno.py +54 -19
  173. ccxt/lykke.py +54 -19
  174. ccxt/mercado.py +1 -0
  175. ccxt/mexc.py +226 -108
  176. ccxt/ndax.py +58 -19
  177. ccxt/novadax.py +67 -22
  178. ccxt/oceanex.py +58 -19
  179. ccxt/okcoin.py +81 -38
  180. ccxt/okx.py +270 -109
  181. ccxt/onetrading.py +3 -1
  182. ccxt/oxfun.py +95 -36
  183. ccxt/p2b.py +49 -23
  184. ccxt/paradex.py +75 -27
  185. ccxt/paymium.py +31 -11
  186. ccxt/phemex.py +91 -41
  187. ccxt/poloniex.py +80 -30
  188. ccxt/poloniexfutures.py +72 -30
  189. ccxt/pro/__init__.py +1 -1
  190. ccxt/pro/alpaca.py +15 -5
  191. ccxt/pro/ascendex.py +18 -6
  192. ccxt/pro/binance.py +200 -119
  193. ccxt/pro/bingx.py +44 -24
  194. ccxt/pro/bitfinex.py +13 -5
  195. ccxt/pro/bitget.py +75 -36
  196. ccxt/pro/bithumb.py +12 -4
  197. ccxt/pro/bitmart.py +44 -20
  198. ccxt/pro/bitmex.py +42 -14
  199. ccxt/pro/bitopro.py +15 -5
  200. ccxt/pro/bitrue.py +7 -3
  201. ccxt/pro/bitvavo.py +51 -17
  202. ccxt/pro/blockchaincom.py +18 -6
  203. ccxt/pro/blofin.py +36 -12
  204. ccxt/pro/bybit.py +100 -42
  205. ccxt/pro/cex.py +48 -16
  206. ccxt/pro/coinbase.py +32 -12
  207. ccxt/pro/coinbaseexchange.py +1 -1
  208. ccxt/pro/coinbaseinternational.py +34 -14
  209. ccxt/pro/coincatch.py +54 -19
  210. ccxt/pro/coincheck.py +6 -2
  211. ccxt/pro/coinex.py +40 -20
  212. ccxt/pro/coinone.py +9 -3
  213. ccxt/pro/cryptocom.py +70 -26
  214. ccxt/pro/deribit.py +36 -12
  215. ccxt/pro/exmo.py +10 -4
  216. ccxt/pro/gate.py +64 -30
  217. ccxt/pro/gemini.py +21 -7
  218. ccxt/pro/hashkey.py +26 -8
  219. ccxt/pro/hitbtc.py +61 -37
  220. ccxt/pro/hollaex.py +15 -5
  221. ccxt/pro/htx.py +39 -21
  222. ccxt/pro/hyperliquid.py +41 -14
  223. ccxt/pro/kraken.py +49 -17
  224. ccxt/pro/krakenfutures.py +47 -24
  225. ccxt/pro/kucoin.py +60 -31
  226. ccxt/pro/kucoinfutures.py +41 -19
  227. ccxt/pro/lbank.py +27 -9
  228. ccxt/pro/luno.py +3 -1
  229. ccxt/pro/mexc.py +35 -17
  230. ccxt/pro/ndax.py +12 -4
  231. ccxt/pro/okcoin.py +18 -6
  232. ccxt/pro/okx.py +76 -28
  233. ccxt/pro/onetrading.py +21 -7
  234. ccxt/pro/oxfun.py +54 -20
  235. ccxt/pro/p2b.py +23 -11
  236. ccxt/pro/paradex.py +12 -4
  237. ccxt/pro/phemex.py +31 -19
  238. ccxt/pro/poloniex.py +50 -22
  239. ccxt/pro/poloniexfutures.py +17 -7
  240. ccxt/pro/probit.py +18 -6
  241. ccxt/pro/upbit.py +25 -9
  242. ccxt/pro/vertex.py +20 -6
  243. ccxt/pro/wazirx.py +21 -7
  244. ccxt/pro/whitebit.py +25 -9
  245. ccxt/pro/woo.py +32 -12
  246. ccxt/pro/woofipro.py +35 -13
  247. ccxt/pro/xt.py +46 -26
  248. ccxt/probit.py +64 -22
  249. ccxt/timex.py +58 -19
  250. ccxt/tokocrypto.py +63 -22
  251. ccxt/tradeogre.py +7 -2
  252. ccxt/upbit.py +72 -25
  253. ccxt/vertex.py +74 -28
  254. ccxt/wavesexchange.py +29 -8
  255. ccxt/wazirx.py +51 -17
  256. ccxt/whitebit.py +105 -41
  257. ccxt/woo.py +162 -65
  258. ccxt/woofipro.py +118 -49
  259. ccxt/xt.py +150 -73
  260. ccxt/yobit.py +49 -16
  261. ccxt/zaif.py +30 -10
  262. ccxt/zonda.py +46 -16
  263. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
  264. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/RECORD +267 -267
  265. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
  266. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
  267. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/kucoinfutures.py CHANGED
@@ -375,7 +375,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
375
375
  def fetch_status(self, params={}):
376
376
  """
377
377
  the latest known information on the availability of the exchange API
378
- :see: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-service-status
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
  def fetch_markets(self, params={}) -> List[Market]:
403
405
  """
404
406
  retrieves data on all markets for kucoinfutures
405
- :see: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-symbols-list
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
  def fetch_time(self, params={}):
561
565
  """
562
566
  fetches the current integer timestamp in milliseconds from the exchange server
563
- :see: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-server-time
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
  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
- :see: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-klines
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
  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
- :see: https://www.kucoin.com/docs/rest/funding/deposit/get-deposit-address
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
  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
- :see: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-part-order-book-level-2
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
  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
- :see: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-ticker
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
  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
- :see: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-current-mark-price
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
  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
- :see: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-symbols-list
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
  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
- :see: https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-funding-history
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
  def fetch_position(self, symbol: str, params={}):
1065
1085
  """
1066
- :see: https://docs.kucoin.com/futures/#get-position-details
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
  def fetch_positions(self, symbols: Strings = None, params={}):
1126
1148
  """
1127
1149
  fetch all open positions
1128
- :see: https://docs.kucoin.com/futures/#get-position-list
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
  def fetch_positions_history(self, symbols: Strings = None, since: Int = None, limit: Int = None, params={}):
1185
1209
  """
1186
1210
  fetches historical positions
1187
- :see: https://www.kucoin.com/docs/rest/futures-trading/positions/get-positions-history
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
  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
- :see: https://docs.kucoin.com/futures/#place-an-order
1379
- :see: https://www.kucoin.com/docs/rest/futures-trading/orders/place-take-profit-and-stop-loss-order#http-request
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
- * ----------------- Exchange Specific Parameters -----------------
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
  def create_orders(self, orders: List[OrderRequest], params={}):
1431
1461
  """
1432
1462
  create a list of trade orders
1433
- :see: https://www.kucoin.com/docs/rest/futures-trading/orders/place-multiple-orders
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
  def cancel_order(self, id: str, symbol: Str = None, params={}):
1553
1585
  """
1554
1586
  cancels an open order
1555
- :see: https://www.kucoin.com/docs/rest/futures-trading/orders/cancel-futures-order-by-orderid
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
  def cancel_orders(self, ids, symbol: Str = None, params={}):
1590
1624
  """
1591
1625
  cancel multiple orders
1592
- :see: https://www.kucoin.com/docs/rest/futures-trading/orders/batch-cancel-orders
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
  def cancel_all_orders(self, symbol: Str = None, params={}):
1645
1681
  """
1646
1682
  cancel all open orders
1647
- :see: https://www.kucoin.com/docs/rest/futures-trading/orders/cancel-multiple-futures-limit-orders
1648
- :see: https://www.kucoin.com/docs/rest/futures-trading/orders/cancel-multiple-futures-stop-orders
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
  def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
1678
1716
  """
1679
1717
  add margin
1680
- :see: https://www.kucoin.com/docs/rest/futures-trading/positions/add-margin-manually
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
  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
- :see: https://docs.kucoin.com/futures/#get-order-list
1820
- :see: https://docs.kucoin.com/futures/#get-untriggered-stop-order-list
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
  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
- :see: https://docs.kucoin.com/futures/#get-order-list
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
  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
- :see: https://docs.kucoin.com/futures/#get-order-list
1943
- :see: https://docs.kucoin.com/futures/#get-untriggered-stop-order-list
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
  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
- :see: https://docs.kucoin.com/futures/#get-details-of-a-single-order
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
  def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
2162
2211
  """
2163
2212
  fetch the current funding rate
2164
- :see: https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-current-funding-rate
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
  def fetch_funding_interval(self, symbol: str, params={}) -> FundingRate:
2192
2243
  """
2193
2244
  fetch the current funding rate interval
2194
- :see: https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-current-funding-rate
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
  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
- :see: https://www.kucoin.com/docs/rest/funding/funding-overview/get-account-detail-futures
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
  def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
2358
2413
  """
2359
- :see: https://docs.kucoin.com/futures/#get-fills
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
  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
- :see: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-transaction-history
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
  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
- :see: https://www.kucoin.com/docs/rest/futures-trading/risk-limit/get-futures-risk-limit-level
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
- * @ignore
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
  def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
2759
2822
  """
2760
- :see: https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-public-funding-history#request-url
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
  def close_position(self, symbol: str, side: OrderSide = None, params={}) -> Order:
2816
2881
  """
2817
2882
  closes open positions for a market
2818
- :see: https://www.kucoin.com/docs/rest/futures-trading/orders/place-order
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
  def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
2846
2913
  """
2847
2914
  fetch the trading fees for a market
2848
- :see: https://www.kucoin.com/docs/rest/funding/trade-fee/trading-pair-actual-fee-futures
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
  def fetch_margin_mode(self, symbol: str, params={}) -> MarginMode:
2882
2951
  """
2883
2952
  fetches the margin mode of a trading pair
2884
- :see: https://www.kucoin.com/docs/rest/futures-trading/positions/get-margin-mode
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
  def set_margin_mode(self, marginMode: str, symbol: Str = None, params={}):
2917
2988
  """
2918
2989
  set margin mode to 'cross' or 'isolated'
2919
- :see: https://www.kucoin.com/docs/rest/futures-trading/positions/modify-margin-mode
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
  def fetch_leverage(self, symbol: str, params={}) -> Leverage:
2948
3021
  """
2949
3022
  fetch the set leverage for a market
2950
- :see: https://www.kucoin.com/docs/rest/futures-trading/positions/get-cross-margin-leverage
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
  def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
2981
3056
  """
2982
3057
  set the level of leverage for a market
2983
- :see: https://www.kucoin.com/docs/rest/futures-trading/positions/modify-cross-margin-leverage
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