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
@@ -536,6 +536,7 @@ class coinex(Exchange, ImplicitAPI):
536
536
  '3008': RequestTimeout, # Service busy, please try again later.
537
537
  '3109': InsufficientFunds, # {"code":3109,"data":{},"message":"balance not enough"}
538
538
  '3127': InvalidOrder, # The order quantity is below the minimum requirement. Please adjust the order quantity.
539
+ '3600': OrderNotFound, # {"code":3600,"data":{},"message":"Order not found"}
539
540
  '3606': InvalidOrder, # The price difference between the order price and the latest price is too large. Please adjust the order amount accordingly.
540
541
  '3610': ExchangeError, # Order cancellation prohibited during the Call Auction period.
541
542
  '3612': InvalidOrder, # The est. ask price is lower than the current bottom ask price. Please reduce the amount.
@@ -586,7 +587,9 @@ class coinex(Exchange, ImplicitAPI):
586
587
  async def fetch_currencies(self, params={}) -> Currencies:
587
588
  """
588
589
  fetches all available currencies on an exchange
589
- :see: https://docs.coinex.com/api/v2/assets/deposit-withdrawal/http/list-all-deposit-withdrawal-config
590
+
591
+ https://docs.coinex.com/api/v2/assets/deposit-withdrawal/http/list-all-deposit-withdrawal-config
592
+
590
593
  :param dict [params]: extra parameters specific to the exchange API endpoint
591
594
  :returns dict: an associative dictionary of currencies
592
595
  """
@@ -708,8 +711,10 @@ class coinex(Exchange, ImplicitAPI):
708
711
  async def fetch_markets(self, params={}) -> List[Market]:
709
712
  """
710
713
  retrieves data on all markets for coinex
711
- :see: https://docs.coinex.com/api/v2/spot/market/http/list-market
712
- :see: https://docs.coinex.com/api/v2/futures/market/http/list-market
714
+
715
+ https://docs.coinex.com/api/v2/spot/market/http/list-market
716
+ https://docs.coinex.com/api/v2/futures/market/http/list-market
717
+
713
718
  :param dict [params]: extra parameters specific to the exchange API endpoint
714
719
  :returns dict[]: an array of objects representing market data
715
720
  """
@@ -968,8 +973,10 @@ class coinex(Exchange, ImplicitAPI):
968
973
  async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
969
974
  """
970
975
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
971
- :see: https://docs.coinex.com/api/v2/spot/market/http/list-market-ticker
972
- :see: https://docs.coinex.com/api/v2/futures/market/http/list-market-ticker
976
+
977
+ https://docs.coinex.com/api/v2/spot/market/http/list-market-ticker
978
+ https://docs.coinex.com/api/v2/futures/market/http/list-market-ticker
979
+
973
980
  :param str symbol: unified symbol of the market to fetch the ticker for
974
981
  :param dict [params]: extra parameters specific to the exchange API endpoint
975
982
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -1038,8 +1045,10 @@ class coinex(Exchange, ImplicitAPI):
1038
1045
  async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
1039
1046
  """
1040
1047
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
1041
- :see: https://docs.coinex.com/api/v2/spot/market/http/list-market-ticker
1042
- :see: https://docs.coinex.com/api/v2/futures/market/http/list-market-ticker
1048
+
1049
+ https://docs.coinex.com/api/v2/spot/market/http/list-market-ticker
1050
+ https://docs.coinex.com/api/v2/futures/market/http/list-market-ticker
1051
+
1043
1052
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1044
1053
  :param dict [params]: extra parameters specific to the exchange API endpoint
1045
1054
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -1109,7 +1118,9 @@ class coinex(Exchange, ImplicitAPI):
1109
1118
  async def fetch_time(self, params={}):
1110
1119
  """
1111
1120
  fetches the current integer timestamp in milliseconds from the exchange server
1112
- :see: https://docs.coinex.com/api/v2/common/http/time
1121
+
1122
+ https://docs.coinex.com/api/v2/common/http/time
1123
+
1113
1124
  :param dict [params]: extra parameters specific to the exchange API endpoint
1114
1125
  :returns int: the current integer timestamp in milliseconds from the exchange server
1115
1126
  """
@@ -1129,8 +1140,10 @@ class coinex(Exchange, ImplicitAPI):
1129
1140
  async def fetch_order_book(self, symbol: str, limit: Int = 20, params={}):
1130
1141
  """
1131
1142
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
1132
- :see: https://docs.coinex.com/api/v2/spot/market/http/list-market-depth
1133
- :see: https://docs.coinex.com/api/v2/futures/market/http/list-market-depth
1143
+
1144
+ https://docs.coinex.com/api/v2/spot/market/http/list-market-depth
1145
+ https://docs.coinex.com/api/v2/futures/market/http/list-market-depth
1146
+
1134
1147
  :param str symbol: unified symbol of the market to fetch the order book for
1135
1148
  :param int [limit]: the maximum amount of order book entries to return
1136
1149
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1279,8 +1292,10 @@ class coinex(Exchange, ImplicitAPI):
1279
1292
  async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
1280
1293
  """
1281
1294
  get the list of the most recent trades for a particular symbol
1282
- :see: https://docs.coinex.com/api/v2/spot/market/http/list-market-deals
1283
- :see: https://docs.coinex.com/api/v2/futures/market/http/list-market-deals
1295
+
1296
+ https://docs.coinex.com/api/v2/spot/market/http/list-market-deals
1297
+ https://docs.coinex.com/api/v2/futures/market/http/list-market-deals
1298
+
1284
1299
  :param str symbol: unified symbol of the market to fetch trades for
1285
1300
  :param int [since]: timestamp in ms of the earliest trade to fetch
1286
1301
  :param int [limit]: the maximum amount of trades to fetch
@@ -1322,8 +1337,10 @@ class coinex(Exchange, ImplicitAPI):
1322
1337
  async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
1323
1338
  """
1324
1339
  fetch the trading fees for a market
1325
- :see: https://docs.coinex.com/api/v2/spot/market/http/list-market
1326
- :see: https://docs.coinex.com/api/v2/futures/market/http/list-market
1340
+
1341
+ https://docs.coinex.com/api/v2/spot/market/http/list-market
1342
+ https://docs.coinex.com/api/v2/futures/market/http/list-market
1343
+
1327
1344
  :param str symbol: unified market symbol
1328
1345
  :param dict [params]: extra parameters specific to the exchange API endpoint
1329
1346
  :returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -1386,8 +1403,10 @@ class coinex(Exchange, ImplicitAPI):
1386
1403
  async def fetch_trading_fees(self, params={}) -> TradingFees:
1387
1404
  """
1388
1405
  fetch the trading fees for multiple markets
1389
- :see: https://docs.coinex.com/api/v2/spot/market/http/list-market
1390
- :see: https://docs.coinex.com/api/v2/futures/market/http/list-market
1406
+
1407
+ https://docs.coinex.com/api/v2/spot/market/http/list-market
1408
+ https://docs.coinex.com/api/v2/futures/market/http/list-market
1409
+
1391
1410
  :param dict [params]: extra parameters specific to the exchange API endpoint
1392
1411
  :returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
1393
1412
  """
@@ -1487,8 +1506,10 @@ class coinex(Exchange, ImplicitAPI):
1487
1506
  async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
1488
1507
  """
1489
1508
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1490
- :see: https://docs.coinex.com/api/v2/spot/market/http/list-market-kline
1491
- :see: https://docs.coinex.com/api/v2/futures/market/http/list-market-kline
1509
+
1510
+ https://docs.coinex.com/api/v2/spot/market/http/list-market-kline
1511
+ https://docs.coinex.com/api/v2/futures/market/http/list-market-kline
1512
+
1492
1513
  :param str symbol: unified symbol of the market to fetch OHLCV data for
1493
1514
  :param str timeframe: the length of time each candle represents
1494
1515
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -1675,10 +1696,12 @@ class coinex(Exchange, ImplicitAPI):
1675
1696
  async def fetch_balance(self, params={}) -> Balances:
1676
1697
  """
1677
1698
  query for balance and get the amount of funds available for trading or funds locked in orders
1678
- :see: https://docs.coinex.com/api/v2/assets/balance/http/get-spot-balance # spot
1679
- :see: https://docs.coinex.com/api/v2/assets/balance/http/get-futures-balance # swap
1680
- :see: https://docs.coinex.com/api/v2/assets/balance/http/get-marigin-balance # margin
1681
- :see: https://docs.coinex.com/api/v2/assets/balance/http/get-financial-balance # financial
1699
+
1700
+ https://docs.coinex.com/api/v2/assets/balance/http/get-spot-balance # spot
1701
+ https://docs.coinex.com/api/v2/assets/balance/http/get-futures-balance # swap
1702
+ https://docs.coinex.com/api/v2/assets/balance/http/get-marigin-balance # margin
1703
+ https://docs.coinex.com/api/v2/assets/balance/http/get-financial-balance # financial
1704
+
1682
1705
  :param dict [params]: extra parameters specific to the exchange API endpoint
1683
1706
  :param str [params.type]: 'margin', 'swap', 'financial', or 'spot'
1684
1707
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
@@ -1974,8 +1997,10 @@ class coinex(Exchange, ImplicitAPI):
1974
1997
  async def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
1975
1998
  """
1976
1999
  create a market buy order by providing the symbol and cost
1977
- :see: https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot003_trade003_market_order
1978
- :see: https://docs.coinex.com/api/v2/spot/order/http/put-order
2000
+
2001
+ https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot003_trade003_market_order
2002
+ https://docs.coinex.com/api/v2/spot/order/http/put-order
2003
+
1979
2004
  :param str symbol: unified symbol of the market to create an order in
1980
2005
  :param float cost: how much you want to trade in units of the quote currency
1981
2006
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2073,13 +2098,15 @@ class coinex(Exchange, ImplicitAPI):
2073
2098
  async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
2074
2099
  """
2075
2100
  create a trade order
2076
- :see: https://docs.coinex.com/api/v2/spot/order/http/put-order
2077
- :see: https://docs.coinex.com/api/v2/spot/order/http/put-stop-order
2078
- :see: https://docs.coinex.com/api/v2/futures/order/http/put-order
2079
- :see: https://docs.coinex.com/api/v2/futures/order/http/put-stop-order
2080
- :see: https://docs.coinex.com/api/v2/futures/position/http/close-position
2081
- :see: https://docs.coinex.com/api/v2/futures/position/http/set-position-stop-loss
2082
- :see: https://docs.coinex.com/api/v2/futures/position/http/set-position-take-profit
2101
+
2102
+ https://docs.coinex.com/api/v2/spot/order/http/put-order
2103
+ https://docs.coinex.com/api/v2/spot/order/http/put-stop-order
2104
+ https://docs.coinex.com/api/v2/futures/order/http/put-order
2105
+ https://docs.coinex.com/api/v2/futures/order/http/put-stop-order
2106
+ https://docs.coinex.com/api/v2/futures/position/http/close-position
2107
+ https://docs.coinex.com/api/v2/futures/position/http/set-position-stop-loss
2108
+ https://docs.coinex.com/api/v2/futures/position/http/set-position-take-profit
2109
+
2083
2110
  :param str symbol: unified symbol of the market to create an order in
2084
2111
  :param str type: 'market' or 'limit'
2085
2112
  :param str side: 'buy' or 'sell'
@@ -2309,10 +2336,12 @@ class coinex(Exchange, ImplicitAPI):
2309
2336
  async def create_orders(self, orders: List[OrderRequest], params={}) -> List[Order]:
2310
2337
  """
2311
2338
  create a list of trade orders(all orders should be of the same symbol)
2312
- :see: https://docs.coinex.com/api/v2/spot/order/http/put-multi-order
2313
- :see: https://docs.coinex.com/api/v2/spot/order/http/put-multi-stop-order
2314
- :see: https://docs.coinex.com/api/v2/futures/order/http/put-multi-order
2315
- :see: https://docs.coinex.com/api/v2/futures/order/http/put-multi-stop-order
2339
+
2340
+ https://docs.coinex.com/api/v2/spot/order/http/put-multi-order
2341
+ https://docs.coinex.com/api/v2/spot/order/http/put-multi-stop-order
2342
+ https://docs.coinex.com/api/v2/futures/order/http/put-multi-order
2343
+ https://docs.coinex.com/api/v2/futures/order/http/put-multi-stop-order
2344
+
2316
2345
  :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
2317
2346
  :param dict [params]: extra parameters specific to the api endpoint
2318
2347
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -2494,10 +2523,12 @@ class coinex(Exchange, ImplicitAPI):
2494
2523
  async def cancel_orders(self, ids, symbol: Str = None, params={}):
2495
2524
  """
2496
2525
  cancel multiple orders
2497
- :see: https://docs.coinex.com/api/v2/spot/order/http/cancel-batch-order
2498
- :see: https://docs.coinex.com/api/v2/spot/order/http/cancel-batch-stop-order
2499
- :see: https://docs.coinex.com/api/v2/futures/order/http/cancel-batch-order
2500
- :see: https://docs.coinex.com/api/v2/futures/order/http/cancel-batch-stop-order
2526
+
2527
+ https://docs.coinex.com/api/v2/spot/order/http/cancel-batch-order
2528
+ https://docs.coinex.com/api/v2/spot/order/http/cancel-batch-stop-order
2529
+ https://docs.coinex.com/api/v2/futures/order/http/cancel-batch-order
2530
+ https://docs.coinex.com/api/v2/futures/order/http/cancel-batch-stop-order
2531
+
2501
2532
  :param str[] ids: order ids
2502
2533
  :param str symbol: unified market symbol
2503
2534
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2514,10 +2545,13 @@ class coinex(Exchange, ImplicitAPI):
2514
2545
  stop = self.safe_bool_2(params, 'stop', 'trigger')
2515
2546
  params = self.omit(params, ['stop', 'trigger'])
2516
2547
  response = None
2548
+ requestIds = []
2549
+ for i in range(0, len(ids)):
2550
+ requestIds.append(int(ids[i]))
2517
2551
  if stop:
2518
- request['stop_ids'] = ids
2552
+ request['stop_ids'] = requestIds
2519
2553
  else:
2520
- request['order_ids'] = ids
2554
+ request['order_ids'] = requestIds
2521
2555
  if market['spot']:
2522
2556
  if stop:
2523
2557
  response = await self.v2PrivatePostSpotCancelBatchStopOrder(self.extend(request, params))
@@ -2665,10 +2699,12 @@ class coinex(Exchange, ImplicitAPI):
2665
2699
  async def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
2666
2700
  """
2667
2701
  edit a trade order
2668
- :see: https://docs.coinex.com/api/v2/spot/order/http/edit-order
2669
- :see: https://docs.coinex.com/api/v2/spot/order/http/edit-stop-order
2670
- :see: https://docs.coinex.com/api/v2/futures/order/http/edit-order
2671
- :see: https://docs.coinex.com/api/v2/futures/order/http/edit-stop-order
2702
+
2703
+ https://docs.coinex.com/api/v2/spot/order/http/edit-order
2704
+ https://docs.coinex.com/api/v2/spot/order/http/edit-stop-order
2705
+ https://docs.coinex.com/api/v2/futures/order/http/edit-order
2706
+ https://docs.coinex.com/api/v2/futures/order/http/edit-stop-order
2707
+
2672
2708
  :param str id: order id
2673
2709
  :param str symbol: unified symbol of the market to create an order in
2674
2710
  :param str type: 'market' or 'limit'
@@ -2798,14 +2834,16 @@ class coinex(Exchange, ImplicitAPI):
2798
2834
  async def cancel_order(self, id: str, symbol: Str = None, params={}):
2799
2835
  """
2800
2836
  cancels an open order
2801
- :see: https://docs.coinex.com/api/v2/spot/order/http/cancel-order
2802
- :see: https://docs.coinex.com/api/v2/spot/order/http/cancel-stop-order
2803
- :see: https://docs.coinex.com/api/v2/spot/order/http/cancel-order-by-client-id
2804
- :see: https://docs.coinex.com/api/v2/spot/order/http/cancel-stop-order-by-client-id
2805
- :see: https://docs.coinex.com/api/v2/futures/order/http/cancel-order
2806
- :see: https://docs.coinex.com/api/v2/futures/order/http/cancel-stop-order
2807
- :see: https://docs.coinex.com/api/v2/futures/order/http/cancel-order-by-client-id
2808
- :see: https://docs.coinex.com/api/v2/futures/order/http/cancel-stop-order-by-client-id
2837
+
2838
+ https://docs.coinex.com/api/v2/spot/order/http/cancel-order
2839
+ https://docs.coinex.com/api/v2/spot/order/http/cancel-stop-order
2840
+ https://docs.coinex.com/api/v2/spot/order/http/cancel-order-by-client-id
2841
+ https://docs.coinex.com/api/v2/spot/order/http/cancel-stop-order-by-client-id
2842
+ https://docs.coinex.com/api/v2/futures/order/http/cancel-order
2843
+ https://docs.coinex.com/api/v2/futures/order/http/cancel-stop-order
2844
+ https://docs.coinex.com/api/v2/futures/order/http/cancel-order-by-client-id
2845
+ https://docs.coinex.com/api/v2/futures/order/http/cancel-stop-order-by-client-id
2846
+
2809
2847
  :param str id: order id
2810
2848
  :param str symbol: unified symbol of the market the order was made in
2811
2849
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3079,8 +3117,10 @@ class coinex(Exchange, ImplicitAPI):
3079
3117
  async def cancel_all_orders(self, symbol: Str = None, params={}):
3080
3118
  """
3081
3119
  cancel all open orders in a market
3082
- :see: https://docs.coinex.com/api/v2/spot/order/http/cancel-all-order
3083
- :see: https://docs.coinex.com/api/v2/futures/order/http/cancel-all-order
3120
+
3121
+ https://docs.coinex.com/api/v2/spot/order/http/cancel-all-order
3122
+ https://docs.coinex.com/api/v2/futures/order/http/cancel-all-order
3123
+
3084
3124
  :param str symbol: unified market symbol of the market to cancel orders in
3085
3125
  :param dict [params]: extra parameters specific to the exchange API endpoint
3086
3126
  :param str [params.marginMode]: 'cross' or 'isolated' for canceling spot margin orders
@@ -3120,8 +3160,11 @@ class coinex(Exchange, ImplicitAPI):
3120
3160
  async def fetch_order(self, id: str, symbol: Str = None, params={}):
3121
3161
  """
3122
3162
  fetches information on an order made by the user
3123
- :see: https://docs.coinex.com/api/v2/spot/order/http/get-order-status
3124
- :see: https://docs.coinex.com/api/v2/futures/order/http/get-order-status
3163
+
3164
+ https://docs.coinex.com/api/v2/spot/order/http/get-order-status
3165
+ https://docs.coinex.com/api/v2/futures/order/http/get-order-status
3166
+
3167
+ :param str id: order id
3125
3168
  :param str symbol: unified symbol of the market the order was made in
3126
3169
  :param dict [params]: extra parameters specific to the exchange API endpoint
3127
3170
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -3204,13 +3247,17 @@ class coinex(Exchange, ImplicitAPI):
3204
3247
  async def fetch_orders_by_status(self, status, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
3205
3248
  """
3206
3249
  fetch a list of orders
3207
- :see: https://docs.coinex.com/api/v2/spot/order/http/list-finished-order
3208
- :see: https://docs.coinex.com/api/v2/spot/order/http/list-finished-stop-order
3209
- :see: https://docs.coinex.com/api/v2/futures/order/http/list-finished-order
3210
- :see: https://docs.coinex.com/api/v2/futures/order/http/list-finished-stop-order
3250
+
3251
+ https://docs.coinex.com/api/v2/spot/order/http/list-finished-order
3252
+ https://docs.coinex.com/api/v2/spot/order/http/list-finished-stop-order
3253
+ https://docs.coinex.com/api/v2/futures/order/http/list-finished-order
3254
+ https://docs.coinex.com/api/v2/futures/order/http/list-finished-stop-order
3255
+
3256
+ @param status
3211
3257
  :param str symbol: unified market symbol of the market orders were made in
3212
3258
  :param int [since]: the earliest time in ms to fetch orders for
3213
3259
  :param int [limit]: the maximum number of order structures to retrieve
3260
+ :param dict [params]: extra parameters specific to the exchange API endpoint
3214
3261
  :param boolean [params.trigger]: set to True for fetching trigger orders
3215
3262
  :param str [params.marginMode]: 'cross' or 'isolated' for fetching spot margin orders
3216
3263
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
@@ -3504,10 +3551,12 @@ class coinex(Exchange, ImplicitAPI):
3504
3551
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
3505
3552
  """
3506
3553
  fetch all unfilled currently open orders
3507
- :see: https://docs.coinex.com/api/v2/spot/order/http/list-pending-order
3508
- :see: https://docs.coinex.com/api/v2/spot/order/http/list-pending-stop-order
3509
- :see: https://docs.coinex.com/api/v2/futures/order/http/list-pending-order
3510
- :see: https://docs.coinex.com/api/v2/futures/order/http/list-pending-stop-order
3554
+
3555
+ https://docs.coinex.com/api/v2/spot/order/http/list-pending-order
3556
+ https://docs.coinex.com/api/v2/spot/order/http/list-pending-stop-order
3557
+ https://docs.coinex.com/api/v2/futures/order/http/list-pending-order
3558
+ https://docs.coinex.com/api/v2/futures/order/http/list-pending-stop-order
3559
+
3511
3560
  :param str symbol: unified market symbol
3512
3561
  :param int [since]: the earliest time in ms to fetch open orders for
3513
3562
  :param int [limit]: the maximum number of open order structures to retrieve
@@ -3524,13 +3573,16 @@ class coinex(Exchange, ImplicitAPI):
3524
3573
  async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
3525
3574
  """
3526
3575
  fetches information on multiple closed orders made by the user
3527
- :see: https://docs.coinex.com/api/v2/spot/order/http/list-finished-order
3528
- :see: https://docs.coinex.com/api/v2/spot/order/http/list-finished-stop-order
3529
- :see: https://docs.coinex.com/api/v2/futures/order/http/list-finished-order
3530
- :see: https://docs.coinex.com/api/v2/futures/order/http/list-finished-stop-order
3576
+
3577
+ https://docs.coinex.com/api/v2/spot/order/http/list-finished-order
3578
+ https://docs.coinex.com/api/v2/spot/order/http/list-finished-stop-order
3579
+ https://docs.coinex.com/api/v2/futures/order/http/list-finished-order
3580
+ https://docs.coinex.com/api/v2/futures/order/http/list-finished-stop-order
3581
+
3531
3582
  :param str symbol: unified market symbol of the market orders were made in
3532
3583
  :param int [since]: the earliest time in ms to fetch orders for
3533
3584
  :param int [limit]: the maximum number of order structures to retrieve
3585
+ :param dict [params]: extra parameters specific to the exchange API endpoint
3534
3586
  :param boolean [params.trigger]: set to True for fetching trigger orders
3535
3587
  :param str [params.marginMode]: 'cross' or 'isolated' for fetching spot margin orders
3536
3588
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
@@ -3540,7 +3592,9 @@ class coinex(Exchange, ImplicitAPI):
3540
3592
  async def create_deposit_address(self, code: str, params={}):
3541
3593
  """
3542
3594
  create a currency deposit address
3543
- :see: https://docs.coinex.com/api/v2/assets/deposit-withdrawal/http/update-deposit-address
3595
+
3596
+ https://docs.coinex.com/api/v2/assets/deposit-withdrawal/http/update-deposit-address
3597
+
3544
3598
  :param str code: unified currency code of the currency for the deposit address
3545
3599
  :param dict [params]: extra parameters specific to the exchange API endpoint
3546
3600
  :param str [params.network]: the blockchain network to create a deposit address on
@@ -3573,7 +3627,9 @@ class coinex(Exchange, ImplicitAPI):
3573
3627
  async def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
3574
3628
  """
3575
3629
  fetch the deposit address for a currency associated with self account
3576
- :see: https://docs.coinex.com/api/v2/assets/deposit-withdrawal/http/get-deposit-address
3630
+
3631
+ https://docs.coinex.com/api/v2/assets/deposit-withdrawal/http/get-deposit-address
3632
+
3577
3633
  :param str code: unified currency code
3578
3634
  :param dict [params]: extra parameters specific to the exchange API endpoint
3579
3635
  :param str [params.network]: the blockchain network to create a deposit address on
@@ -3631,8 +3687,10 @@ class coinex(Exchange, ImplicitAPI):
3631
3687
  async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
3632
3688
  """
3633
3689
  fetch all trades made by the user
3634
- :see: https://docs.coinex.com/api/v2/spot/deal/http/list-user-deals
3635
- :see: https://docs.coinex.com/api/v2/futures/deal/http/list-user-deals
3690
+
3691
+ https://docs.coinex.com/api/v2/spot/deal/http/list-user-deals
3692
+ https://docs.coinex.com/api/v2/futures/deal/http/list-user-deals
3693
+
3636
3694
  :param str symbol: unified market symbol
3637
3695
  :param int [since]: the earliest time in ms to fetch trades for
3638
3696
  :param int [limit]: the maximum number of trade structures to retrieve
@@ -3712,8 +3770,10 @@ class coinex(Exchange, ImplicitAPI):
3712
3770
  async def fetch_positions(self, symbols: Strings = None, params={}):
3713
3771
  """
3714
3772
  fetch all open positions
3715
- :see: https://docs.coinex.com/api/v2/futures/position/http/list-pending-position
3716
- :see: https://docs.coinex.com/api/v2/futures/position/http/list-finished-position
3773
+
3774
+ https://docs.coinex.com/api/v2/futures/position/http/list-pending-position
3775
+ https://docs.coinex.com/api/v2/futures/position/http/list-finished-position
3776
+
3717
3777
  :param str[] [symbols]: list of unified market symbols
3718
3778
  :param dict [params]: extra parameters specific to the exchange API endpoint
3719
3779
  :param str [params.method]: the method to use 'v2PrivateGetFuturesPendingPosition' or 'v2PrivateGetFuturesFinishedPosition' default is 'v2PrivateGetFuturesPendingPosition'
@@ -3795,7 +3855,9 @@ class coinex(Exchange, ImplicitAPI):
3795
3855
  async def fetch_position(self, symbol: str, params={}):
3796
3856
  """
3797
3857
  fetch data on a single open contract trade position
3798
- :see: https://docs.coinex.com/api/v2/futures/position/http/list-pending-position
3858
+
3859
+ https://docs.coinex.com/api/v2/futures/position/http/list-pending-position
3860
+
3799
3861
  :param str symbol: unified market symbol of the market the position is held in
3800
3862
  :param dict [params]: extra parameters specific to the exchange API endpoint
3801
3863
  :returns dict: a `position structure <https://docs.ccxt.com/#/?id=position-structure>`
@@ -3925,7 +3987,9 @@ class coinex(Exchange, ImplicitAPI):
3925
3987
  async def set_margin_mode(self, marginMode: str, symbol: Str = None, params={}):
3926
3988
  """
3927
3989
  set margin mode to 'cross' or 'isolated'
3928
- :see: https://docs.coinex.com/api/v2/futures/position/http/adjust-position-leverage
3990
+
3991
+ https://docs.coinex.com/api/v2/futures/position/http/adjust-position-leverage
3992
+
3929
3993
  :param str marginMode: 'cross' or 'isolated'
3930
3994
  :param str symbol: unified market symbol
3931
3995
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3967,7 +4031,9 @@ class coinex(Exchange, ImplicitAPI):
3967
4031
 
3968
4032
  async def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
3969
4033
  """
3970
- :see: https://docs.coinex.com/api/v2/futures/position/http/adjust-position-leverage
4034
+
4035
+ https://docs.coinex.com/api/v2/futures/position/http/adjust-position-leverage
4036
+
3971
4037
  set the level of leverage for a market
3972
4038
  :param float leverage: the rate of leverage
3973
4039
  :param str symbol: unified market symbol
@@ -4008,7 +4074,9 @@ class coinex(Exchange, ImplicitAPI):
4008
4074
  async def fetch_leverage_tiers(self, symbols: Strings = None, params={}) -> LeverageTiers:
4009
4075
  """
4010
4076
  retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
4011
- :see: https://docs.coinex.com/api/v2/futures/market/http/list-market-position-level
4077
+
4078
+ https://docs.coinex.com/api/v2/futures/market/http/list-market-position-level
4079
+
4012
4080
  :param str[]|None symbols: list of unified market symbols
4013
4081
  :param dict [params]: extra parameters specific to the exchange API endpoint
4014
4082
  :returns dict: a dictionary of `leverage tiers structures <https://docs.ccxt.com/#/?id=leverage-tiers-structure>`, indexed by market symbols
@@ -4058,6 +4126,7 @@ class coinex(Exchange, ImplicitAPI):
4058
4126
  maxNotional = self.safe_number(tier, 'amount')
4059
4127
  tiers.append({
4060
4128
  'tier': self.sum(i, 1),
4129
+ 'symbol': self.safe_symbol(marketId, market, None, 'swap'),
4061
4130
  'currency': market['base'] if market['linear'] else market['quote'],
4062
4131
  'minNotional': minNotional,
4063
4132
  'maxNotional': maxNotional,
@@ -4201,7 +4270,9 @@ class coinex(Exchange, ImplicitAPI):
4201
4270
  async def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
4202
4271
  """
4203
4272
  add margin
4204
- :see: https://docs.coinex.com/api/v2/futures/position/http/adjust-position-margin
4273
+
4274
+ https://docs.coinex.com/api/v2/futures/position/http/adjust-position-margin
4275
+
4205
4276
  :param str symbol: unified market symbol
4206
4277
  :param float amount: amount of margin to add
4207
4278
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -4212,7 +4283,9 @@ class coinex(Exchange, ImplicitAPI):
4212
4283
  async def reduce_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
4213
4284
  """
4214
4285
  remove margin from a position
4215
- :see: https://docs.coinex.com/api/v2/futures/position/http/adjust-position-margin
4286
+
4287
+ https://docs.coinex.com/api/v2/futures/position/http/adjust-position-margin
4288
+
4216
4289
  :param str symbol: unified market symbol
4217
4290
  :param float amount: the amount of margin to remove
4218
4291
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -4223,7 +4296,9 @@ class coinex(Exchange, ImplicitAPI):
4223
4296
  async def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
4224
4297
  """
4225
4298
  fetch the history of funding fee payments paid and received on self account
4226
- :see: https://docs.coinex.com/api/v2/futures/position/http/list-position-funding-history
4299
+
4300
+ https://docs.coinex.com/api/v2/futures/position/http/list-position-funding-history
4301
+
4227
4302
  :param str symbol: unified market symbol
4228
4303
  :param int [since]: the earliest time in ms to fetch funding history for
4229
4304
  :param int [limit]: the maximum number of funding history structures to retrieve
@@ -4286,7 +4361,9 @@ class coinex(Exchange, ImplicitAPI):
4286
4361
  async def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
4287
4362
  """
4288
4363
  fetch the current funding rate
4289
- :see: https://docs.coinex.com/api/v2/futures/market/http/list-market-funding-rate
4364
+
4365
+ https://docs.coinex.com/api/v2/futures/market/http/list-market-funding-rate
4366
+
4290
4367
  :param str symbol: unified market symbol
4291
4368
  :param dict [params]: extra parameters specific to the exchange API endpoint
4292
4369
  :returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -4324,7 +4401,9 @@ class coinex(Exchange, ImplicitAPI):
4324
4401
  async def fetch_funding_interval(self, symbol: str, params={}) -> FundingRate:
4325
4402
  """
4326
4403
  fetch the current funding rate interval
4327
- :see: https://docs.coinex.com/api/v2/futures/market/http/list-market-funding-rate
4404
+
4405
+ https://docs.coinex.com/api/v2/futures/market/http/list-market-funding-rate
4406
+
4328
4407
  :param str symbol: unified market symbol
4329
4408
  :param dict [params]: extra parameters specific to the exchange API endpoint
4330
4409
  :returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -4386,7 +4465,9 @@ class coinex(Exchange, ImplicitAPI):
4386
4465
  async def fetch_funding_rates(self, symbols: Strings = None, params={}) -> FundingRates:
4387
4466
  """
4388
4467
  fetch the current funding rates for multiple markets
4389
- :see: https://docs.coinex.com/api/v2/futures/market/http/list-market-funding-rate
4468
+
4469
+ https://docs.coinex.com/api/v2/futures/market/http/list-market-funding-rate
4470
+
4390
4471
  :param str[] symbols: unified market symbols
4391
4472
  :param dict [params]: extra parameters specific to the exchange API endpoint
4392
4473
  :returns dict[]: an array of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -4428,7 +4509,9 @@ class coinex(Exchange, ImplicitAPI):
4428
4509
  async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
4429
4510
  """
4430
4511
  make a withdrawal
4431
- :see: https://docs.coinex.com/api/v2/assets/deposit-withdrawal/http/withdrawal
4512
+
4513
+ https://docs.coinex.com/api/v2/assets/deposit-withdrawal/http/withdrawal
4514
+
4432
4515
  :param str code: unified currency code
4433
4516
  :param float amount: the amount to withdraw
4434
4517
  :param str address: the address to withdraw to
@@ -4499,7 +4582,9 @@ class coinex(Exchange, ImplicitAPI):
4499
4582
  async def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
4500
4583
  """
4501
4584
  fetches historical funding rate prices
4502
- :see: https://docs.coinex.com/api/v2/futures/market/http/list-market-funding-rate-history
4585
+
4586
+ https://docs.coinex.com/api/v2/futures/market/http/list-market-funding-rate-history
4587
+
4503
4588
  :param str symbol: unified symbol of the market to fetch the funding rate history for
4504
4589
  :param int [since]: timestamp in ms of the earliest funding rate to fetch
4505
4590
  :param int [limit]: the maximum amount of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-history-structure>` to fetch
@@ -4661,7 +4746,9 @@ class coinex(Exchange, ImplicitAPI):
4661
4746
  async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
4662
4747
  """
4663
4748
  transfer currency internally between wallets on the same account
4664
- :see: https://docs.coinex.com/api/v2/assets/transfer/http/transfer
4749
+
4750
+ https://docs.coinex.com/api/v2/assets/transfer/http/transfer
4751
+
4665
4752
  :param str code: unified currency code
4666
4753
  :param float amount: amount to transfer
4667
4754
  :param str fromAccount: account to transfer from
@@ -4734,7 +4821,9 @@ class coinex(Exchange, ImplicitAPI):
4734
4821
  async def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[TransferEntry]:
4735
4822
  """
4736
4823
  fetch a history of internal transfers made on an account
4737
- :see: https://docs.coinex.com/api/v2/assets/transfer/http/list-transfer-history
4824
+
4825
+ https://docs.coinex.com/api/v2/assets/transfer/http/list-transfer-history
4826
+
4738
4827
  :param str code: unified currency code of the currency transferred
4739
4828
  :param int [since]: the earliest time in ms to fetch transfers for
4740
4829
  :param int [limit]: the maximum number of transfer structures to retrieve
@@ -4787,7 +4876,9 @@ class coinex(Exchange, ImplicitAPI):
4787
4876
  async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
4788
4877
  """
4789
4878
  fetch all withdrawals made from an account
4790
- :see: https://docs.coinex.com/api/v2/assets/deposit-withdrawal/http/list-withdrawal-history
4879
+
4880
+ https://docs.coinex.com/api/v2/assets/deposit-withdrawal/http/list-withdrawal-history
4881
+
4791
4882
  :param str [code]: unified currency code
4792
4883
  :param int [since]: the earliest time in ms to fetch withdrawals for
4793
4884
  :param int [limit]: the maximum number of withdrawal structures to retrieve
@@ -4841,7 +4932,9 @@ class coinex(Exchange, ImplicitAPI):
4841
4932
  async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
4842
4933
  """
4843
4934
  fetch all deposits made to an account
4844
- :see: https://docs.coinex.com/api/v2/assets/deposit-withdrawal/http/list-deposit-history
4935
+
4936
+ https://docs.coinex.com/api/v2/assets/deposit-withdrawal/http/list-deposit-history
4937
+
4845
4938
  :param str [code]: unified currency code
4846
4939
  :param int [since]: the earliest time in ms to fetch deposits for
4847
4940
  :param int [limit]: the maximum number of deposit structures to retrieve
@@ -4925,7 +5018,9 @@ class coinex(Exchange, ImplicitAPI):
4925
5018
  async def fetch_isolated_borrow_rate(self, symbol: str, params={}) -> IsolatedBorrowRate:
4926
5019
  """
4927
5020
  fetch the rate of interest to borrow a currency for margin trading
4928
- :see: https://docs.coinex.com/api/v2/assets/loan-flat/http/list-margin-interest-limit
5021
+
5022
+ https://docs.coinex.com/api/v2/assets/loan-flat/http/list-margin-interest-limit
5023
+
4929
5024
  :param str symbol: unified symbol of the market to fetch the borrow rate for
4930
5025
  :param dict [params]: extra parameters specific to the exchange API endpoint
4931
5026
  :param str params['code']: unified currency code
@@ -4963,7 +5058,9 @@ class coinex(Exchange, ImplicitAPI):
4963
5058
  async def fetch_borrow_interest(self, code: Str = None, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[BorrowInterest]:
4964
5059
  """
4965
5060
  fetch the interest owed by the user for borrowing currency for margin trading
4966
- :see: https://docs.coinex.com/api/v2/assets/loan-flat/http/list-margin-borrow-history
5061
+
5062
+ https://docs.coinex.com/api/v2/assets/loan-flat/http/list-margin-borrow-history
5063
+
4967
5064
  :param str [code]: unified currency code
4968
5065
  :param str [symbol]: unified market symbol when fetch interest in isolated markets
4969
5066
  :param int [since]: the earliest time in ms to fetch borrrow interest for
@@ -5041,7 +5138,9 @@ class coinex(Exchange, ImplicitAPI):
5041
5138
  async def borrow_isolated_margin(self, symbol: str, code: str, amount: float, params={}):
5042
5139
  """
5043
5140
  create a loan to borrow margin
5044
- :see: https://docs.coinex.com/api/v2/assets/loan-flat/http/margin-borrow
5141
+
5142
+ https://docs.coinex.com/api/v2/assets/loan-flat/http/margin-borrow
5143
+
5045
5144
  :param str symbol: unified market symbol, required for coinex
5046
5145
  :param str code: unified currency code of the currency to borrow
5047
5146
  :param float amount: the amount to borrow
@@ -5087,7 +5186,9 @@ class coinex(Exchange, ImplicitAPI):
5087
5186
  async def repay_isolated_margin(self, symbol: str, code: str, amount, params={}):
5088
5187
  """
5089
5188
  repay borrowed margin and interest
5090
- :see: https://docs.coinex.com/api/v2/assets/loan-flat/http/margin-repay
5189
+
5190
+ https://docs.coinex.com/api/v2/assets/loan-flat/http/margin-repay
5191
+
5091
5192
  :param str symbol: unified market symbol, required for coinex
5092
5193
  :param str code: unified currency code of the currency to repay
5093
5194
  :param float amount: the amount to repay
@@ -5147,7 +5248,9 @@ class coinex(Exchange, ImplicitAPI):
5147
5248
  async def fetch_deposit_withdraw_fee(self, code: str, params={}):
5148
5249
  """
5149
5250
  fetch the fee for deposits and withdrawals
5150
- :see: https://docs.coinex.com/api/v2/assets/deposit-withdrawal/http/get-deposit-withdrawal-config
5251
+
5252
+ https://docs.coinex.com/api/v2/assets/deposit-withdrawal/http/get-deposit-withdrawal-config
5253
+
5151
5254
  :param str code: unified currency code
5152
5255
  :param dict [params]: extra parameters specific to the exchange API endpoint
5153
5256
  :returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -5262,7 +5365,9 @@ class coinex(Exchange, ImplicitAPI):
5262
5365
  async def fetch_leverage(self, symbol: str, params={}) -> Leverage:
5263
5366
  """
5264
5367
  fetch the set leverage for a market
5265
- :see: https://docs.coinex.com/api/v2/assets/loan-flat/http/list-margin-interest-limit
5368
+
5369
+ https://docs.coinex.com/api/v2/assets/loan-flat/http/list-margin-interest-limit
5370
+
5266
5371
  :param str symbol: unified market symbol
5267
5372
  :param dict [params]: extra parameters specific to the exchange API endpoint
5268
5373
  :param str params['code']: unified currency code
@@ -5321,7 +5426,9 @@ class coinex(Exchange, ImplicitAPI):
5321
5426
  async def fetch_position_history(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Position]:
5322
5427
  """
5323
5428
  fetches historical positions
5324
- :see: https://docs.coinex.com/api/v2/futures/position/http/list-finished-position
5429
+
5430
+ https://docs.coinex.com/api/v2/futures/position/http/list-finished-position
5431
+
5325
5432
  :param str symbol: unified contract symbol
5326
5433
  :param int [since]: the earliest time in ms to fetch positions for
5327
5434
  :param int [limit]: the maximum amount of records to fetch, default is 10
@@ -5391,7 +5498,9 @@ class coinex(Exchange, ImplicitAPI):
5391
5498
  async def close_position(self, symbol: str, side: OrderSide = None, params={}) -> Order:
5392
5499
  """
5393
5500
  closes an open position for a market
5394
- :see: https://docs.coinex.com/api/v2/futures/position/http/close-position
5501
+
5502
+ https://docs.coinex.com/api/v2/futures/position/http/close-position
5503
+
5395
5504
  :param str symbol: unified CCXT market symbol
5396
5505
  :param str [side]: buy or sell, not used by coinex
5397
5506
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -5447,7 +5556,7 @@ class coinex(Exchange, ImplicitAPI):
5447
5556
 
5448
5557
  def handle_margin_mode_and_params(self, methodName, params={}, defaultValue=None):
5449
5558
  """
5450
- * @ignore
5559
+ @ignore
5451
5560
  marginMode specified by params["marginMode"], self.options["marginMode"], self.options["defaultMarginMode"], params["margin"] = True or self.options["defaultType"] = 'margin'
5452
5561
  :param dict params: extra parameters specific to the exchange api endpoint
5453
5562
  :returns Array: the marginMode in lowercase
@@ -5573,7 +5682,9 @@ class coinex(Exchange, ImplicitAPI):
5573
5682
  async def fetch_margin_adjustment_history(self, symbol: Str = None, type: Str = None, since: Num = None, limit: Num = None, params={}) -> List[MarginModification]:
5574
5683
  """
5575
5684
  fetches the history of margin added or reduced from contract isolated positions
5576
- :see: https://docs.coinex.com/api/v2/futures/position/http/list-position-margin-history
5685
+
5686
+ https://docs.coinex.com/api/v2/futures/position/http/list-position-margin-history
5687
+
5577
5688
  :param str symbol: unified market symbol
5578
5689
  :param str [type]: not used by coinex fetchMarginAdjustmentHistory
5579
5690
  :param int [since]: timestamp in ms of the earliest change to fetch