ccxt 4.4.30__py2.py3-none-any.whl → 4.4.32__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 (268) 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/base/ws/aiohttp_client.py +25 -3
  11. ccxt/async_support/bigone.py +71 -27
  12. ccxt/async_support/binance.py +555 -323
  13. ccxt/async_support/bingx.py +208 -108
  14. ccxt/async_support/bit2c.py +34 -12
  15. ccxt/async_support/bitbank.py +42 -14
  16. ccxt/async_support/bitbns.py +17 -9
  17. ccxt/async_support/bitfinex.py +68 -24
  18. ccxt/async_support/bitfinex2.py +116 -44
  19. ccxt/async_support/bitflyer.py +54 -18
  20. ccxt/async_support/bitget.py +277 -145
  21. ccxt/async_support/bithumb.py +39 -14
  22. ccxt/async_support/bitmart.py +145 -79
  23. ccxt/async_support/bitmex.py +90 -30
  24. ccxt/async_support/bitopro.py +66 -22
  25. ccxt/async_support/bitrue.py +109 -57
  26. ccxt/async_support/bitso.py +55 -19
  27. ccxt/async_support/bitstamp.py +84 -36
  28. ccxt/async_support/bitteam.py +51 -17
  29. ccxt/async_support/bitvavo.py +57 -22
  30. ccxt/async_support/bl3p.py +26 -10
  31. ccxt/async_support/blockchaincom.py +63 -21
  32. ccxt/async_support/blofin.py +95 -38
  33. ccxt/async_support/btcalpha.py +48 -16
  34. ccxt/async_support/btcbox.py +27 -9
  35. ccxt/async_support/btcmarkets.py +57 -19
  36. ccxt/async_support/btcturk.py +36 -12
  37. ccxt/async_support/bybit.py +251 -95
  38. ccxt/async_support/cex.py +65 -22
  39. ccxt/async_support/coinbase.py +138 -56
  40. ccxt/async_support/coinbaseexchange.py +76 -28
  41. ccxt/async_support/coinbaseinternational.py +75 -27
  42. ccxt/async_support/coincatch.py +191 -97
  43. ccxt/async_support/coincheck.py +33 -11
  44. ccxt/async_support/coinex.py +212 -101
  45. ccxt/async_support/coinlist.py +87 -30
  46. ccxt/async_support/coinmate.py +55 -24
  47. ccxt/async_support/coinmetro.py +52 -18
  48. ccxt/async_support/coinone.py +27 -10
  49. ccxt/async_support/coinsph.py +73 -27
  50. ccxt/async_support/coinspot.py +25 -9
  51. ccxt/async_support/cryptocom.py +103 -38
  52. ccxt/async_support/currencycom.py +70 -23
  53. ccxt/async_support/delta.py +90 -30
  54. ccxt/async_support/deribit.py +131 -50
  55. ccxt/async_support/digifinex.py +114 -51
  56. ccxt/async_support/exmo.py +104 -45
  57. ccxt/async_support/gate.py +313 -157
  58. ccxt/async_support/gemini.py +57 -20
  59. ccxt/async_support/hashkey.py +151 -66
  60. ccxt/async_support/hitbtc.py +157 -74
  61. ccxt/async_support/hollaex.py +76 -25
  62. ccxt/async_support/htx.py +297 -240
  63. ccxt/async_support/huobijp.py +1 -0
  64. ccxt/async_support/hyperliquid.py +94 -38
  65. ccxt/async_support/idex.py +73 -24
  66. ccxt/async_support/independentreserve.py +12 -5
  67. ccxt/async_support/indodax.py +54 -17
  68. ccxt/async_support/kraken.py +108 -36
  69. ccxt/async_support/krakenfutures.py +88 -34
  70. ccxt/async_support/kucoin.py +214 -110
  71. ccxt/async_support/kucoinfutures.py +209 -64
  72. ccxt/async_support/kuna.py +80 -39
  73. ccxt/async_support/latoken.py +70 -33
  74. ccxt/async_support/lbank.py +89 -38
  75. ccxt/async_support/luno.py +54 -19
  76. ccxt/async_support/lykke.py +54 -19
  77. ccxt/async_support/mercado.py +1 -0
  78. ccxt/async_support/mexc.py +226 -108
  79. ccxt/async_support/ndax.py +58 -19
  80. ccxt/async_support/novadax.py +67 -22
  81. ccxt/async_support/oceanex.py +58 -19
  82. ccxt/async_support/okcoin.py +81 -38
  83. ccxt/async_support/okx.py +270 -109
  84. ccxt/async_support/onetrading.py +3 -1
  85. ccxt/async_support/oxfun.py +95 -36
  86. ccxt/async_support/p2b.py +49 -23
  87. ccxt/async_support/paradex.py +75 -27
  88. ccxt/async_support/paymium.py +31 -11
  89. ccxt/async_support/phemex.py +108 -56
  90. ccxt/async_support/poloniex.py +80 -30
  91. ccxt/async_support/poloniexfutures.py +72 -30
  92. ccxt/async_support/probit.py +64 -22
  93. ccxt/async_support/timex.py +58 -19
  94. ccxt/async_support/tokocrypto.py +63 -22
  95. ccxt/async_support/tradeogre.py +7 -2
  96. ccxt/async_support/upbit.py +72 -25
  97. ccxt/async_support/vertex.py +74 -28
  98. ccxt/async_support/wavesexchange.py +32 -8
  99. ccxt/async_support/wazirx.py +51 -17
  100. ccxt/async_support/whitebit.py +105 -41
  101. ccxt/async_support/woo.py +162 -65
  102. ccxt/async_support/woofipro.py +119 -50
  103. ccxt/async_support/xt.py +150 -73
  104. ccxt/async_support/yobit.py +49 -16
  105. ccxt/async_support/zaif.py +30 -10
  106. ccxt/async_support/zonda.py +46 -16
  107. ccxt/base/exchange.py +47 -35
  108. ccxt/base/types.py +1 -0
  109. ccxt/bigone.py +71 -27
  110. ccxt/binance.py +555 -323
  111. ccxt/bingx.py +208 -108
  112. ccxt/bit2c.py +34 -12
  113. ccxt/bitbank.py +42 -14
  114. ccxt/bitbns.py +17 -9
  115. ccxt/bitfinex.py +68 -24
  116. ccxt/bitfinex2.py +116 -44
  117. ccxt/bitflyer.py +54 -18
  118. ccxt/bitget.py +277 -145
  119. ccxt/bithumb.py +39 -14
  120. ccxt/bitmart.py +145 -79
  121. ccxt/bitmex.py +90 -30
  122. ccxt/bitopro.py +66 -22
  123. ccxt/bitrue.py +109 -57
  124. ccxt/bitso.py +55 -19
  125. ccxt/bitstamp.py +84 -36
  126. ccxt/bitteam.py +51 -17
  127. ccxt/bitvavo.py +57 -22
  128. ccxt/bl3p.py +26 -10
  129. ccxt/blockchaincom.py +63 -21
  130. ccxt/blofin.py +95 -38
  131. ccxt/btcalpha.py +48 -16
  132. ccxt/btcbox.py +27 -9
  133. ccxt/btcmarkets.py +57 -19
  134. ccxt/btcturk.py +36 -12
  135. ccxt/bybit.py +251 -95
  136. ccxt/cex.py +65 -22
  137. ccxt/coinbase.py +138 -56
  138. ccxt/coinbaseexchange.py +76 -28
  139. ccxt/coinbaseinternational.py +75 -27
  140. ccxt/coincatch.py +191 -97
  141. ccxt/coincheck.py +33 -11
  142. ccxt/coinex.py +212 -101
  143. ccxt/coinlist.py +87 -30
  144. ccxt/coinmate.py +55 -24
  145. ccxt/coinmetro.py +52 -18
  146. ccxt/coinone.py +27 -10
  147. ccxt/coinsph.py +73 -27
  148. ccxt/coinspot.py +25 -9
  149. ccxt/cryptocom.py +103 -38
  150. ccxt/currencycom.py +70 -23
  151. ccxt/delta.py +90 -30
  152. ccxt/deribit.py +131 -50
  153. ccxt/digifinex.py +114 -51
  154. ccxt/exmo.py +104 -45
  155. ccxt/gate.py +313 -157
  156. ccxt/gemini.py +57 -20
  157. ccxt/hashkey.py +151 -66
  158. ccxt/hitbtc.py +157 -74
  159. ccxt/hollaex.py +76 -25
  160. ccxt/htx.py +297 -240
  161. ccxt/huobijp.py +1 -0
  162. ccxt/hyperliquid.py +94 -38
  163. ccxt/idex.py +73 -24
  164. ccxt/independentreserve.py +12 -5
  165. ccxt/indodax.py +54 -17
  166. ccxt/kraken.py +108 -36
  167. ccxt/krakenfutures.py +88 -34
  168. ccxt/kucoin.py +214 -110
  169. ccxt/kucoinfutures.py +209 -64
  170. ccxt/kuna.py +80 -39
  171. ccxt/latoken.py +70 -33
  172. ccxt/lbank.py +89 -38
  173. ccxt/luno.py +54 -19
  174. ccxt/lykke.py +54 -19
  175. ccxt/mercado.py +1 -0
  176. ccxt/mexc.py +226 -108
  177. ccxt/ndax.py +58 -19
  178. ccxt/novadax.py +67 -22
  179. ccxt/oceanex.py +58 -19
  180. ccxt/okcoin.py +81 -38
  181. ccxt/okx.py +270 -109
  182. ccxt/onetrading.py +3 -1
  183. ccxt/oxfun.py +95 -36
  184. ccxt/p2b.py +49 -23
  185. ccxt/paradex.py +75 -27
  186. ccxt/paymium.py +31 -11
  187. ccxt/phemex.py +108 -56
  188. ccxt/poloniex.py +80 -30
  189. ccxt/poloniexfutures.py +72 -30
  190. ccxt/pro/__init__.py +1 -1
  191. ccxt/pro/alpaca.py +15 -5
  192. ccxt/pro/ascendex.py +18 -6
  193. ccxt/pro/binance.py +204 -123
  194. ccxt/pro/bingx.py +44 -24
  195. ccxt/pro/bitfinex.py +13 -5
  196. ccxt/pro/bitget.py +76 -37
  197. ccxt/pro/bithumb.py +12 -4
  198. ccxt/pro/bitmart.py +44 -20
  199. ccxt/pro/bitmex.py +42 -14
  200. ccxt/pro/bitopro.py +15 -5
  201. ccxt/pro/bitrue.py +7 -3
  202. ccxt/pro/bitvavo.py +97 -62
  203. ccxt/pro/blockchaincom.py +18 -6
  204. ccxt/pro/blofin.py +36 -12
  205. ccxt/pro/bybit.py +100 -42
  206. ccxt/pro/cex.py +48 -16
  207. ccxt/pro/coinbase.py +32 -12
  208. ccxt/pro/coinbaseexchange.py +1 -1
  209. ccxt/pro/coinbaseinternational.py +34 -14
  210. ccxt/pro/coincatch.py +54 -19
  211. ccxt/pro/coincheck.py +6 -2
  212. ccxt/pro/coinex.py +40 -20
  213. ccxt/pro/coinone.py +9 -3
  214. ccxt/pro/cryptocom.py +71 -27
  215. ccxt/pro/deribit.py +36 -12
  216. ccxt/pro/exmo.py +10 -4
  217. ccxt/pro/gate.py +65 -31
  218. ccxt/pro/gemini.py +21 -7
  219. ccxt/pro/hashkey.py +27 -9
  220. ccxt/pro/hitbtc.py +61 -37
  221. ccxt/pro/hollaex.py +15 -5
  222. ccxt/pro/htx.py +39 -21
  223. ccxt/pro/hyperliquid.py +41 -14
  224. ccxt/pro/kraken.py +49 -17
  225. ccxt/pro/krakenfutures.py +47 -24
  226. ccxt/pro/kucoin.py +60 -31
  227. ccxt/pro/kucoinfutures.py +41 -19
  228. ccxt/pro/lbank.py +27 -9
  229. ccxt/pro/luno.py +3 -1
  230. ccxt/pro/mexc.py +36 -19
  231. ccxt/pro/ndax.py +12 -4
  232. ccxt/pro/okcoin.py +18 -6
  233. ccxt/pro/okx.py +76 -28
  234. ccxt/pro/onetrading.py +21 -7
  235. ccxt/pro/oxfun.py +54 -20
  236. ccxt/pro/p2b.py +23 -11
  237. ccxt/pro/paradex.py +12 -4
  238. ccxt/pro/phemex.py +31 -19
  239. ccxt/pro/poloniex.py +50 -22
  240. ccxt/pro/poloniexfutures.py +17 -7
  241. ccxt/pro/probit.py +18 -6
  242. ccxt/pro/upbit.py +25 -9
  243. ccxt/pro/vertex.py +20 -6
  244. ccxt/pro/wazirx.py +21 -7
  245. ccxt/pro/whitebit.py +25 -9
  246. ccxt/pro/woo.py +32 -12
  247. ccxt/pro/woofipro.py +35 -13
  248. ccxt/pro/xt.py +46 -26
  249. ccxt/probit.py +64 -22
  250. ccxt/timex.py +58 -19
  251. ccxt/tokocrypto.py +63 -22
  252. ccxt/tradeogre.py +7 -2
  253. ccxt/upbit.py +72 -25
  254. ccxt/vertex.py +74 -28
  255. ccxt/wavesexchange.py +32 -8
  256. ccxt/wazirx.py +51 -17
  257. ccxt/whitebit.py +105 -41
  258. ccxt/woo.py +162 -65
  259. ccxt/woofipro.py +119 -50
  260. ccxt/xt.py +150 -73
  261. ccxt/yobit.py +49 -16
  262. ccxt/zaif.py +30 -10
  263. ccxt/zonda.py +46 -16
  264. {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/METADATA +11 -5
  265. {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/RECORD +268 -268
  266. {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/LICENSE.txt +0 -0
  267. {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/WHEEL +0 -0
  268. {ccxt-4.4.30.dist-info → ccxt-4.4.32.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
- :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
  async 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
  async 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
  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
- :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
  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
- :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
  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
- :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
  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
- :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
  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
- :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
  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
- :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
  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
- :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
  async 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
  async 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
  async 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 int [since]: the earliest time in ms to fetch position history for
1216
+ :param int [limit]: the maximum number of entries to retrieve
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
- :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://www.kucoin.com/docs/rest/futures-trading/orders/place-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,8 @@ 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
+ :param float [params.cost]: the cost of the order in units of USDT
1425
+ ----------------- Exchange Specific Parameters -----------------
1395
1426
  :param float [params.leverage]: Leverage size of the order
1396
1427
  :param str [params.clientOid]: client order id, defaults to uuid if not passed
1397
1428
  :param str [params.remark]: remark for the order, length cannot exceed 100 utf8 characters
@@ -1430,7 +1461,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
1430
1461
  async def create_orders(self, orders: List[OrderRequest], params={}):
1431
1462
  """
1432
1463
  create a list of trade orders
1433
- :see: https://www.kucoin.com/docs/rest/futures-trading/orders/place-multiple-orders
1464
+
1465
+ https://www.kucoin.com/docs/rest/futures-trading/orders/place-multiple-orders
1466
+
1434
1467
  :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
1468
  :param dict [params]: extra parameters specific to the exchange API endpoint
1436
1469
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -1478,17 +1511,21 @@ class kucoinfutures(kucoin, ImplicitAPI):
1478
1511
  # required param, cannot be used twice
1479
1512
  clientOrderId = self.safe_string_2(params, 'clientOid', 'clientOrderId', self.uuid())
1480
1513
  params = self.omit(params, ['clientOid', 'clientOrderId'])
1481
- if amount < 1:
1482
- raise InvalidOrder(self.id + ' createOrder() minimum contract order amount is 1')
1483
- preciseAmount = int(self.amount_to_precision(symbol, amount))
1484
1514
  request: dict = {
1485
1515
  'clientOid': clientOrderId,
1486
1516
  'side': side,
1487
1517
  'symbol': market['id'],
1488
1518
  'type': type, # limit or market
1489
- 'size': preciseAmount,
1490
1519
  'leverage': 1,
1491
1520
  }
1521
+ cost = self.safe_string(params, 'cost')
1522
+ params = self.omit(params, 'cost')
1523
+ if cost is not None:
1524
+ request['valueQty'] = self.cost_to_precision(symbol, cost)
1525
+ else:
1526
+ if amount < 1:
1527
+ raise InvalidOrder(self.id + ' createOrder() minimum contract order amount is 1')
1528
+ request['size'] = int(self.amount_to_precision(symbol, amount))
1492
1529
  triggerPrice, stopLossPrice, takeProfitPrice = self.handle_trigger_prices(params)
1493
1530
  stopLoss = self.safe_dict(params, 'stopLoss')
1494
1531
  takeProfit = self.safe_dict(params, 'takeProfit')
@@ -1552,7 +1589,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
1552
1589
  async def cancel_order(self, id: str, symbol: Str = None, params={}):
1553
1590
  """
1554
1591
  cancels an open order
1555
- :see: https://www.kucoin.com/docs/rest/futures-trading/orders/cancel-futures-order-by-orderid
1592
+
1593
+ https://www.kucoin.com/docs/rest/futures-trading/orders/cancel-futures-order-by-orderid
1594
+
1556
1595
  :param str id: order id
1557
1596
  :param str symbol: unified symbol of the market the order was made in
1558
1597
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1589,7 +1628,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
1589
1628
  async def cancel_orders(self, ids, symbol: Str = None, params={}):
1590
1629
  """
1591
1630
  cancel multiple orders
1592
- :see: https://www.kucoin.com/docs/rest/futures-trading/orders/batch-cancel-orders
1631
+
1632
+ https://www.kucoin.com/docs/rest/futures-trading/orders/batch-cancel-orders
1633
+
1593
1634
  :param str[] ids: order ids
1594
1635
  :param str symbol: unified symbol of the market the order was made in
1595
1636
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1644,8 +1685,10 @@ class kucoinfutures(kucoin, ImplicitAPI):
1644
1685
  async def cancel_all_orders(self, symbol: Str = None, params={}):
1645
1686
  """
1646
1687
  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
1688
+
1689
+ https://www.kucoin.com/docs/rest/futures-trading/orders/cancel-multiple-futures-limit-orders
1690
+ https://www.kucoin.com/docs/rest/futures-trading/orders/cancel-multiple-futures-stop-orders
1691
+
1649
1692
  :param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
1650
1693
  :param dict [params]: extra parameters specific to the exchange API endpoint
1651
1694
  :param dict [params.trigger]: When True, all the trigger orders will be cancelled
@@ -1677,7 +1720,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
1677
1720
  async def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
1678
1721
  """
1679
1722
  add margin
1680
- :see: https://www.kucoin.com/docs/rest/futures-trading/positions/add-margin-manually
1723
+
1724
+ https://www.kucoin.com/docs/rest/futures-trading/positions/add-margin-manually
1725
+
1681
1726
  :param str symbol: unified market symbol
1682
1727
  :param float amount: amount of margin to add
1683
1728
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1816,8 +1861,10 @@ class kucoinfutures(kucoin, ImplicitAPI):
1816
1861
  async def fetch_orders_by_status(self, status, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1817
1862
  """
1818
1863
  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
1864
+
1865
+ https://docs.kucoin.com/futures/#get-order-list
1866
+ https://docs.kucoin.com/futures/#get-untriggered-stop-order-list
1867
+
1821
1868
  :param str status: 'active' or 'closed', only 'active' is valid for stop orders
1822
1869
  :param str symbol: unified symbol for the market to retrieve orders from
1823
1870
  :param int [since]: timestamp in ms of the earliest order to retrieve
@@ -1918,7 +1965,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
1918
1965
  async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1919
1966
  """
1920
1967
  fetches information on multiple closed orders made by the user
1921
- :see: https://docs.kucoin.com/futures/#get-order-list
1968
+
1969
+ https://docs.kucoin.com/futures/#get-order-list
1970
+
1922
1971
  :param str symbol: unified market symbol of the market orders were made in
1923
1972
  :param int [since]: the earliest time in ms to fetch orders for
1924
1973
  :param int [limit]: the maximum number of order structures to retrieve
@@ -1939,8 +1988,10 @@ class kucoinfutures(kucoin, ImplicitAPI):
1939
1988
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1940
1989
  """
1941
1990
  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
1991
+
1992
+ https://docs.kucoin.com/futures/#get-order-list
1993
+ https://docs.kucoin.com/futures/#get-untriggered-stop-order-list
1994
+
1944
1995
  :param str symbol: unified market symbol of the market orders were made in
1945
1996
  :param int [since]: the earliest time in ms to fetch orders for
1946
1997
  :param int [limit]: the maximum number of order structures to retrieve
@@ -1962,7 +2013,10 @@ class kucoinfutures(kucoin, ImplicitAPI):
1962
2013
  async def fetch_order(self, id: Str = None, symbol: Str = None, params={}):
1963
2014
  """
1964
2015
  fetches information on an order made by the user
1965
- :see: https://docs.kucoin.com/futures/#get-details-of-a-single-order
2016
+
2017
+ https://docs.kucoin.com/futures/#get-details-of-a-single-order
2018
+
2019
+ :param str id: order id
1966
2020
  :param str symbol: unified symbol of the market the order was made in
1967
2021
  :param dict [params]: extra parameters specific to the exchange API endpoint
1968
2022
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -2161,7 +2215,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
2161
2215
  async def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
2162
2216
  """
2163
2217
  fetch the current funding rate
2164
- :see: https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-current-funding-rate
2218
+
2219
+ https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-current-funding-rate
2220
+
2165
2221
  :param str symbol: unified market symbol
2166
2222
  :param dict [params]: extra parameters specific to the exchange API endpoint
2167
2223
  :returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -2191,7 +2247,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
2191
2247
  async def fetch_funding_interval(self, symbol: str, params={}) -> FundingRate:
2192
2248
  """
2193
2249
  fetch the current funding rate interval
2194
- :see: https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-current-funding-rate
2250
+
2251
+ https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-current-funding-rate
2252
+
2195
2253
  :param str symbol: unified market symbol
2196
2254
  :param dict [params]: extra parameters specific to the exchange API endpoint
2197
2255
  :returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -2259,7 +2317,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
2259
2317
  async def fetch_balance(self, params={}) -> Balances:
2260
2318
  """
2261
2319
  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
2320
+
2321
+ https://www.kucoin.com/docs/rest/funding/funding-overview/get-account-detail-futures
2322
+
2263
2323
  :param dict [params]: extra parameters specific to the exchange API endpoint
2264
2324
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
2265
2325
  """
@@ -2294,6 +2354,10 @@ class kucoinfutures(kucoin, ImplicitAPI):
2294
2354
  async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
2295
2355
  """
2296
2356
  transfer currency internally between wallets on the same account
2357
+
2358
+ https://www.kucoin.com/docs/rest/funding/transfer/transfer-to-main-or-trade-account
2359
+ https://www.kucoin.com/docs/rest/funding/transfer/transfer-to-futures-account
2360
+
2297
2361
  :param str code: unified currency code
2298
2362
  :param float amount: amount to transfer
2299
2363
  :param str fromAccount: account to transfer from
@@ -2301,47 +2365,99 @@ class kucoinfutures(kucoin, ImplicitAPI):
2301
2365
  :param dict [params]: extra parameters specific to the exchange API endpoint
2302
2366
  :returns dict: a `transfer structure <https://docs.ccxt.com/#/?id=transfer-structure>`
2303
2367
  """
2304
- if (toAccount != 'main' and toAccount != 'funding') or (fromAccount != 'futures' and fromAccount != 'future' and fromAccount != 'contract'):
2305
- raise BadRequest(self.id + ' transfer() only supports transfers from contract(future) account to main(funding) account')
2306
2368
  await self.load_markets()
2307
2369
  currency = self.currency(code)
2308
2370
  amountToPrecision = self.currency_to_precision(code, amount)
2309
2371
  request: dict = {
2310
- 'currency': self.safe_string(currency, 'id'), # Currency,including XBT,USDT
2372
+ 'currency': self.safe_string(currency, 'id'),
2311
2373
  'amount': amountToPrecision,
2312
2374
  }
2313
- # transfer from usdm futures wallet to spot wallet
2314
- response = await self.futuresPrivatePostTransferOut(self.extend(request, params))
2315
- #
2316
- # {
2317
- # "code": "200000",
2318
- # "data": {
2319
- # "applyId": "5bffb63303aa675e8bbe18f9" # Transfer-out request ID
2320
- # }
2321
- # }
2322
- #
2323
- data = self.safe_value(response, 'data')
2375
+ toAccountString = self.parse_transfer_type(toAccount)
2376
+ response = None
2377
+ if toAccountString == 'TRADE' or toAccountString == 'MAIN':
2378
+ request['recAccountType'] = toAccountString
2379
+ response = await self.futuresPrivatePostTransferOut(self.extend(request, params))
2380
+ #
2381
+ # {
2382
+ # "code": "200000",
2383
+ # "data": {
2384
+ # "applyId": "6738754373ceee00011ec3f8",
2385
+ # "bizNo": "6738754373ceee00011ec3f7",
2386
+ # "payAccountType": "CONTRACT",
2387
+ # "payTag": "DEFAULT",
2388
+ # "remark": "",
2389
+ # "recAccountType": "MAIN",
2390
+ # "recTag": "DEFAULT",
2391
+ # "recRemark": "",
2392
+ # "recSystem": "KUCOIN",
2393
+ # "status": "PROCESSING",
2394
+ # "currency": "USDT",
2395
+ # "amount": "5",
2396
+ # "fee": "0",
2397
+ # "sn": 1519769124846692,
2398
+ # "reason": "",
2399
+ # "createdAt": 1731753283000,
2400
+ # "updatedAt": 1731753283000
2401
+ # }
2402
+ # }
2403
+ #
2404
+ elif toAccount == 'future' or toAccount == 'swap' or toAccount == 'contract':
2405
+ request['payAccountType'] = self.parse_transfer_type(fromAccount)
2406
+ response = await self.futuresPrivatePostTransferIn(self.extend(request, params))
2407
+ #
2408
+ # {
2409
+ # "code": "200000",
2410
+ # "data": {
2411
+ # "applyId": "5bffb63303aa675e8bbe18f9" # Transfer-out request ID
2412
+ # }
2413
+ # }
2414
+ #
2415
+ else:
2416
+ raise BadRequest(self.id + ' transfer() only supports transfers between future/swap, spot and funding accounts')
2417
+ data = self.safe_dict(response, 'data', {})
2324
2418
  return self.extend(self.parse_transfer(data, currency), {
2325
2419
  'amount': self.parse_number(amountToPrecision),
2326
- 'fromAccount': 'future',
2327
- 'toAccount': 'spot',
2420
+ 'fromAccount': fromAccount,
2421
+ 'toAccount': toAccount,
2328
2422
  })
2329
2423
 
2330
2424
  def parse_transfer(self, transfer: dict, currency: Currency = None) -> TransferEntry:
2331
2425
  #
2332
- # transfer
2426
+ # transfer to spot or funding account
2333
2427
  #
2334
2428
  # {
2335
2429
  # "applyId": "5bffb63303aa675e8bbe18f9" # Transfer-out request ID
2336
2430
  # }
2337
2431
  #
2432
+ # transfer to future account
2433
+ #
2434
+ # {
2435
+ # "applyId": "6738754373ceee00011ec3f8",
2436
+ # "bizNo": "6738754373ceee00011ec3f7",
2437
+ # "payAccountType": "CONTRACT",
2438
+ # "payTag": "DEFAULT",
2439
+ # "remark": "",
2440
+ # "recAccountType": "MAIN",
2441
+ # "recTag": "DEFAULT",
2442
+ # "recRemark": "",
2443
+ # "recSystem": "KUCOIN",
2444
+ # "status": "PROCESSING",
2445
+ # "currency": "USDT",
2446
+ # "amount": "5",
2447
+ # "fee": "0",
2448
+ # "sn": 1519769124846692,
2449
+ # "reason": "",
2450
+ # "createdAt": 1731753283000,
2451
+ # "updatedAt": 1731753283000
2452
+ # }
2453
+ #
2338
2454
  timestamp = self.safe_integer(transfer, 'updatedAt')
2339
2455
  return {
2340
2456
  'id': self.safe_string(transfer, 'applyId'),
2341
2457
  'timestamp': timestamp,
2342
2458
  'datetime': self.iso8601(timestamp),
2343
2459
  'currency': self.safe_currency_code(None, currency),
2344
- 'amount': None,
2460
+ 'amount': self.safe_number(transfer, 'amount'),
2345
2461
  'fromAccount': None,
2346
2462
  'toAccount': None,
2347
2463
  'status': self.safe_string(transfer, 'status'),
@@ -2354,9 +2470,18 @@ class kucoinfutures(kucoin, ImplicitAPI):
2354
2470
  }
2355
2471
  return self.safe_string(statuses, status, status)
2356
2472
 
2473
+ def parse_transfer_type(self, transferType: Str) -> Str:
2474
+ transferTypes: dict = {
2475
+ 'spot': 'TRADE',
2476
+ 'funding': 'MAIN',
2477
+ }
2478
+ return self.safe_string_upper(transferTypes, transferType, transferType)
2479
+
2357
2480
  async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
2358
2481
  """
2359
- :see: https://docs.kucoin.com/futures/#get-fills
2482
+
2483
+ https://docs.kucoin.com/futures/#get-fills
2484
+
2360
2485
  fetch all trades made by the user
2361
2486
  :param str symbol: unified market symbol
2362
2487
  :param int [since]: the earliest time in ms to fetch trades for
@@ -2427,7 +2552,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
2427
2552
  async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
2428
2553
  """
2429
2554
  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
2555
+
2556
+ https://www.kucoin.com/docs/rest/futures-trading/market-data/get-transaction-history
2557
+
2431
2558
  :param str symbol: unified symbol of the market to fetch trades for
2432
2559
  :param int [since]: timestamp in ms of the earliest trade to fetch
2433
2560
  :param int [limit]: the maximum amount of trades to fetch
@@ -2691,7 +2818,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
2691
2818
  async def fetch_market_leverage_tiers(self, symbol: str, params={}) -> List[LeverageTier]:
2692
2819
  """
2693
2820
  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
2821
+
2822
+ https://www.kucoin.com/docs/rest/futures-trading/risk-limit/get-futures-risk-limit-level
2823
+
2695
2824
  :param str symbol: unified market symbol
2696
2825
  :param dict [params]: extra parameters specific to the exchange API endpoint
2697
2826
  :returns dict: a `leverage tiers structure <https://docs.ccxt.com/#/?id=leverage-tiers-structure>`
@@ -2726,7 +2855,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
2726
2855
 
2727
2856
  def parse_market_leverage_tiers(self, info, market: Market = None) -> List[LeverageTier]:
2728
2857
  """
2729
- * @ignore
2858
+ @ignore
2730
2859
  :param dict info: Exchange market response for 1 market
2731
2860
  :param dict market: CCXT market
2732
2861
  """
@@ -2744,8 +2873,10 @@ class kucoinfutures(kucoin, ImplicitAPI):
2744
2873
  tiers = []
2745
2874
  for i in range(0, len(info)):
2746
2875
  tier = info[i]
2876
+ marketId = self.safe_string(tier, 'symbol')
2747
2877
  tiers.append({
2748
2878
  'tier': self.safe_number(tier, 'level'),
2879
+ 'symbol': self.safe_symbol(marketId, market, None, 'contract'),
2749
2880
  'currency': market['base'],
2750
2881
  'minNotional': self.safe_number(tier, 'minRiskLimit'),
2751
2882
  'maxNotional': self.safe_number(tier, 'maxRiskLimit'),
@@ -2757,7 +2888,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
2757
2888
 
2758
2889
  async def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
2759
2890
  """
2760
- :see: https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-public-funding-history#request-url
2891
+
2892
+ https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-public-funding-history#request-url
2893
+
2761
2894
  fetches historical funding rate prices
2762
2895
  :param str symbol: unified symbol of the market to fetch the funding rate history for
2763
2896
  :param int [since]: not used by kucuoinfutures
@@ -2815,7 +2948,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
2815
2948
  async def close_position(self, symbol: str, side: OrderSide = None, params={}) -> Order:
2816
2949
  """
2817
2950
  closes open positions for a market
2818
- :see: https://www.kucoin.com/docs/rest/futures-trading/orders/place-order
2951
+
2952
+ https://www.kucoin.com/docs/rest/futures-trading/orders/place-order
2953
+
2819
2954
  :param str symbol: Unified CCXT market symbol
2820
2955
  :param str side: not used by kucoinfutures closePositions
2821
2956
  :param dict [params]: extra parameters specific to the okx api endpoint
@@ -2845,7 +2980,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
2845
2980
  async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
2846
2981
  """
2847
2982
  fetch the trading fees for a market
2848
- :see: https://www.kucoin.com/docs/rest/funding/trade-fee/trading-pair-actual-fee-futures
2983
+
2984
+ https://www.kucoin.com/docs/rest/funding/trade-fee/trading-pair-actual-fee-futures
2985
+
2849
2986
  :param str symbol: unified market symbol
2850
2987
  :param dict [params]: extra parameters specific to the exchange API endpoint
2851
2988
  :returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -2881,7 +3018,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
2881
3018
  async def fetch_margin_mode(self, symbol: str, params={}) -> MarginMode:
2882
3019
  """
2883
3020
  fetches the margin mode of a trading pair
2884
- :see: https://www.kucoin.com/docs/rest/futures-trading/positions/get-margin-mode
3021
+
3022
+ https://www.kucoin.com/docs/rest/futures-trading/positions/get-margin-mode
3023
+
2885
3024
  :param str symbol: unified symbol of the market to fetch the margin mode for
2886
3025
  :param dict [params]: extra parameters specific to the exchange API endpoint
2887
3026
  :returns dict: a `margin mode structure <https://docs.ccxt.com/#/?id=margin-mode-structure>`
@@ -2916,7 +3055,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
2916
3055
  async def set_margin_mode(self, marginMode: str, symbol: Str = None, params={}):
2917
3056
  """
2918
3057
  set margin mode to 'cross' or 'isolated'
2919
- :see: https://www.kucoin.com/docs/rest/futures-trading/positions/modify-margin-mode
3058
+
3059
+ https://www.kucoin.com/docs/rest/futures-trading/positions/modify-margin-mode
3060
+
2920
3061
  :param str marginMode: 'cross' or 'isolated'
2921
3062
  :param str symbol: unified market symbol
2922
3063
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2947,7 +3088,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
2947
3088
  async def fetch_leverage(self, symbol: str, params={}) -> Leverage:
2948
3089
  """
2949
3090
  fetch the set leverage for a market
2950
- :see: https://www.kucoin.com/docs/rest/futures-trading/positions/get-cross-margin-leverage
3091
+
3092
+ https://www.kucoin.com/docs/rest/futures-trading/positions/get-cross-margin-leverage
3093
+
2951
3094
  :param str symbol: unified market symbol
2952
3095
  :param dict [params]: extra parameters specific to the exchange API endpoint
2953
3096
  :returns dict: a `leverage structure <https://docs.ccxt.com/#/?id=leverage-structure>`
@@ -2980,7 +3123,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
2980
3123
  async def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
2981
3124
  """
2982
3125
  set the level of leverage for a market
2983
- :see: https://www.kucoin.com/docs/rest/futures-trading/positions/modify-cross-margin-leverage
3126
+
3127
+ https://www.kucoin.com/docs/rest/futures-trading/positions/modify-cross-margin-leverage
3128
+
2984
3129
  :param float leverage: the rate of leverage
2985
3130
  :param str symbol: unified market symbol
2986
3131
  :param dict [params]: extra parameters specific to the exchange API endpoint