ccxt 4.4.29__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 (273) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/abstract/alpaca.py +1 -0
  3. ccxt/abstract/binance.py +9 -0
  4. ccxt/abstract/binancecoinm.py +9 -0
  5. ccxt/abstract/binanceus.py +9 -0
  6. ccxt/abstract/binanceusdm.py +9 -0
  7. ccxt/ace.py +36 -12
  8. ccxt/alpaca.py +113 -28
  9. ccxt/ascendex.py +65 -30
  10. ccxt/async_support/__init__.py +1 -1
  11. ccxt/async_support/ace.py +36 -12
  12. ccxt/async_support/alpaca.py +113 -28
  13. ccxt/async_support/ascendex.py +65 -30
  14. ccxt/async_support/base/exchange.py +3 -3
  15. ccxt/async_support/bigone.py +71 -27
  16. ccxt/async_support/binance.py +564 -323
  17. ccxt/async_support/bingx.py +208 -108
  18. ccxt/async_support/bit2c.py +34 -12
  19. ccxt/async_support/bitbank.py +42 -14
  20. ccxt/async_support/bitbns.py +29 -21
  21. ccxt/async_support/bitfinex.py +77 -33
  22. ccxt/async_support/bitfinex2.py +116 -44
  23. ccxt/async_support/bitflyer.py +54 -18
  24. ccxt/async_support/bitget.py +277 -145
  25. ccxt/async_support/bithumb.py +39 -14
  26. ccxt/async_support/bitmart.py +198 -132
  27. ccxt/async_support/bitmex.py +90 -30
  28. ccxt/async_support/bitopro.py +66 -22
  29. ccxt/async_support/bitrue.py +109 -57
  30. ccxt/async_support/bitso.py +55 -19
  31. ccxt/async_support/bitstamp.py +84 -36
  32. ccxt/async_support/bitteam.py +51 -17
  33. ccxt/async_support/bitvavo.py +57 -19
  34. ccxt/async_support/bl3p.py +26 -10
  35. ccxt/async_support/blockchaincom.py +63 -21
  36. ccxt/async_support/blofin.py +95 -38
  37. ccxt/async_support/btcalpha.py +48 -16
  38. ccxt/async_support/btcbox.py +27 -9
  39. ccxt/async_support/btcmarkets.py +57 -19
  40. ccxt/async_support/btcturk.py +36 -12
  41. ccxt/async_support/bybit.py +251 -95
  42. ccxt/async_support/cex.py +65 -22
  43. ccxt/async_support/coinbase.py +138 -56
  44. ccxt/async_support/coinbaseexchange.py +76 -28
  45. ccxt/async_support/coinbaseinternational.py +75 -27
  46. ccxt/async_support/coincatch.py +191 -97
  47. ccxt/async_support/coincheck.py +33 -11
  48. ccxt/async_support/coinex.py +212 -101
  49. ccxt/async_support/coinlist.py +87 -30
  50. ccxt/async_support/coinmate.py +55 -24
  51. ccxt/async_support/coinmetro.py +52 -18
  52. ccxt/async_support/coinone.py +27 -10
  53. ccxt/async_support/coinsph.py +73 -27
  54. ccxt/async_support/coinspot.py +25 -9
  55. ccxt/async_support/cryptocom.py +103 -38
  56. ccxt/async_support/currencycom.py +70 -23
  57. ccxt/async_support/delta.py +90 -30
  58. ccxt/async_support/deribit.py +138 -53
  59. ccxt/async_support/digifinex.py +114 -51
  60. ccxt/async_support/exmo.py +104 -45
  61. ccxt/async_support/gate.py +298 -155
  62. ccxt/async_support/gemini.py +57 -20
  63. ccxt/async_support/hashkey.py +151 -66
  64. ccxt/async_support/hitbtc.py +156 -73
  65. ccxt/async_support/hollaex.py +76 -25
  66. ccxt/async_support/htx.py +297 -240
  67. ccxt/async_support/huobijp.py +1 -0
  68. ccxt/async_support/hyperliquid.py +203 -42
  69. ccxt/async_support/idex.py +73 -24
  70. ccxt/async_support/independentreserve.py +12 -5
  71. ccxt/async_support/indodax.py +53 -16
  72. ccxt/async_support/kraken.py +107 -35
  73. ccxt/async_support/krakenfutures.py +88 -34
  74. ccxt/async_support/kucoin.py +211 -109
  75. ccxt/async_support/kucoinfutures.py +119 -42
  76. ccxt/async_support/kuna.py +80 -39
  77. ccxt/async_support/latoken.py +70 -33
  78. ccxt/async_support/lbank.py +90 -39
  79. ccxt/async_support/luno.py +54 -19
  80. ccxt/async_support/lykke.py +54 -19
  81. ccxt/async_support/mercado.py +1 -0
  82. ccxt/async_support/mexc.py +226 -108
  83. ccxt/async_support/ndax.py +58 -19
  84. ccxt/async_support/novadax.py +67 -22
  85. ccxt/async_support/oceanex.py +58 -19
  86. ccxt/async_support/okcoin.py +81 -38
  87. ccxt/async_support/okx.py +270 -109
  88. ccxt/async_support/onetrading.py +3 -1
  89. ccxt/async_support/oxfun.py +95 -36
  90. ccxt/async_support/p2b.py +49 -23
  91. ccxt/async_support/paradex.py +75 -27
  92. ccxt/async_support/paymium.py +31 -11
  93. ccxt/async_support/phemex.py +91 -41
  94. ccxt/async_support/poloniex.py +80 -30
  95. ccxt/async_support/poloniexfutures.py +72 -30
  96. ccxt/async_support/probit.py +64 -22
  97. ccxt/async_support/timex.py +58 -19
  98. ccxt/async_support/tokocrypto.py +63 -22
  99. ccxt/async_support/tradeogre.py +7 -2
  100. ccxt/async_support/upbit.py +72 -25
  101. ccxt/async_support/vertex.py +74 -28
  102. ccxt/async_support/wavesexchange.py +29 -8
  103. ccxt/async_support/wazirx.py +51 -17
  104. ccxt/async_support/whitebit.py +105 -41
  105. ccxt/async_support/woo.py +162 -65
  106. ccxt/async_support/woofipro.py +118 -49
  107. ccxt/async_support/xt.py +150 -73
  108. ccxt/async_support/yobit.py +49 -16
  109. ccxt/async_support/zaif.py +30 -10
  110. ccxt/async_support/zonda.py +46 -16
  111. ccxt/base/exchange.py +34 -34
  112. ccxt/base/types.py +1 -0
  113. ccxt/bigone.py +71 -27
  114. ccxt/binance.py +564 -323
  115. ccxt/bingx.py +208 -108
  116. ccxt/bit2c.py +34 -12
  117. ccxt/bitbank.py +42 -14
  118. ccxt/bitbns.py +29 -21
  119. ccxt/bitfinex.py +77 -33
  120. ccxt/bitfinex2.py +116 -44
  121. ccxt/bitflyer.py +54 -18
  122. ccxt/bitget.py +277 -145
  123. ccxt/bithumb.py +39 -14
  124. ccxt/bitmart.py +198 -132
  125. ccxt/bitmex.py +90 -30
  126. ccxt/bitopro.py +66 -22
  127. ccxt/bitrue.py +109 -57
  128. ccxt/bitso.py +55 -19
  129. ccxt/bitstamp.py +84 -36
  130. ccxt/bitteam.py +51 -17
  131. ccxt/bitvavo.py +57 -19
  132. ccxt/bl3p.py +26 -10
  133. ccxt/blockchaincom.py +63 -21
  134. ccxt/blofin.py +95 -38
  135. ccxt/btcalpha.py +48 -16
  136. ccxt/btcbox.py +27 -9
  137. ccxt/btcmarkets.py +57 -19
  138. ccxt/btcturk.py +36 -12
  139. ccxt/bybit.py +251 -95
  140. ccxt/cex.py +65 -22
  141. ccxt/coinbase.py +138 -56
  142. ccxt/coinbaseexchange.py +76 -28
  143. ccxt/coinbaseinternational.py +75 -27
  144. ccxt/coincatch.py +191 -97
  145. ccxt/coincheck.py +33 -11
  146. ccxt/coinex.py +212 -101
  147. ccxt/coinlist.py +87 -30
  148. ccxt/coinmate.py +55 -24
  149. ccxt/coinmetro.py +52 -18
  150. ccxt/coinone.py +27 -10
  151. ccxt/coinsph.py +73 -27
  152. ccxt/coinspot.py +25 -9
  153. ccxt/cryptocom.py +103 -38
  154. ccxt/currencycom.py +70 -23
  155. ccxt/delta.py +90 -30
  156. ccxt/deribit.py +138 -53
  157. ccxt/digifinex.py +114 -51
  158. ccxt/exmo.py +104 -45
  159. ccxt/gate.py +298 -155
  160. ccxt/gemini.py +57 -20
  161. ccxt/hashkey.py +151 -66
  162. ccxt/hitbtc.py +156 -73
  163. ccxt/hollaex.py +76 -25
  164. ccxt/htx.py +297 -240
  165. ccxt/huobijp.py +1 -0
  166. ccxt/hyperliquid.py +203 -42
  167. ccxt/idex.py +73 -24
  168. ccxt/independentreserve.py +12 -5
  169. ccxt/indodax.py +53 -16
  170. ccxt/kraken.py +107 -35
  171. ccxt/krakenfutures.py +88 -34
  172. ccxt/kucoin.py +211 -109
  173. ccxt/kucoinfutures.py +119 -42
  174. ccxt/kuna.py +80 -39
  175. ccxt/latoken.py +70 -33
  176. ccxt/lbank.py +90 -39
  177. ccxt/luno.py +54 -19
  178. ccxt/lykke.py +54 -19
  179. ccxt/mercado.py +1 -0
  180. ccxt/mexc.py +226 -108
  181. ccxt/ndax.py +58 -19
  182. ccxt/novadax.py +67 -22
  183. ccxt/oceanex.py +58 -19
  184. ccxt/okcoin.py +81 -38
  185. ccxt/okx.py +270 -109
  186. ccxt/onetrading.py +3 -1
  187. ccxt/oxfun.py +95 -36
  188. ccxt/p2b.py +49 -23
  189. ccxt/paradex.py +75 -27
  190. ccxt/paymium.py +31 -11
  191. ccxt/phemex.py +91 -41
  192. ccxt/poloniex.py +80 -30
  193. ccxt/poloniexfutures.py +72 -30
  194. ccxt/pro/__init__.py +1 -1
  195. ccxt/pro/alpaca.py +15 -5
  196. ccxt/pro/ascendex.py +18 -6
  197. ccxt/pro/binance.py +200 -119
  198. ccxt/pro/bingx.py +44 -24
  199. ccxt/pro/bitfinex.py +13 -5
  200. ccxt/pro/bitget.py +75 -36
  201. ccxt/pro/bithumb.py +12 -4
  202. ccxt/pro/bitmart.py +44 -20
  203. ccxt/pro/bitmex.py +42 -14
  204. ccxt/pro/bitopro.py +15 -5
  205. ccxt/pro/bitrue.py +7 -3
  206. ccxt/pro/bitvavo.py +51 -17
  207. ccxt/pro/blockchaincom.py +18 -6
  208. ccxt/pro/blofin.py +38 -13
  209. ccxt/pro/bybit.py +100 -42
  210. ccxt/pro/cex.py +48 -16
  211. ccxt/pro/coinbase.py +32 -12
  212. ccxt/pro/coinbaseexchange.py +1 -1
  213. ccxt/pro/coinbaseinternational.py +34 -14
  214. ccxt/pro/coincatch.py +54 -19
  215. ccxt/pro/coincheck.py +6 -2
  216. ccxt/pro/coinex.py +40 -20
  217. ccxt/pro/coinone.py +9 -3
  218. ccxt/pro/cryptocom.py +70 -26
  219. ccxt/pro/deribit.py +36 -12
  220. ccxt/pro/exmo.py +10 -4
  221. ccxt/pro/gate.py +64 -30
  222. ccxt/pro/gemini.py +21 -7
  223. ccxt/pro/hashkey.py +26 -8
  224. ccxt/pro/hitbtc.py +61 -37
  225. ccxt/pro/hollaex.py +15 -5
  226. ccxt/pro/htx.py +39 -21
  227. ccxt/pro/hyperliquid.py +41 -14
  228. ccxt/pro/kraken.py +49 -17
  229. ccxt/pro/krakenfutures.py +47 -24
  230. ccxt/pro/kucoin.py +60 -31
  231. ccxt/pro/kucoinfutures.py +41 -19
  232. ccxt/pro/lbank.py +27 -9
  233. ccxt/pro/luno.py +3 -1
  234. ccxt/pro/mexc.py +35 -17
  235. ccxt/pro/ndax.py +12 -4
  236. ccxt/pro/okcoin.py +18 -6
  237. ccxt/pro/okx.py +76 -28
  238. ccxt/pro/onetrading.py +21 -7
  239. ccxt/pro/oxfun.py +54 -20
  240. ccxt/pro/p2b.py +23 -11
  241. ccxt/pro/paradex.py +12 -4
  242. ccxt/pro/phemex.py +31 -19
  243. ccxt/pro/poloniex.py +50 -22
  244. ccxt/pro/poloniexfutures.py +17 -7
  245. ccxt/pro/probit.py +18 -6
  246. ccxt/pro/upbit.py +25 -9
  247. ccxt/pro/vertex.py +20 -6
  248. ccxt/pro/wazirx.py +21 -7
  249. ccxt/pro/whitebit.py +25 -9
  250. ccxt/pro/woo.py +32 -12
  251. ccxt/pro/woofipro.py +35 -13
  252. ccxt/pro/xt.py +46 -26
  253. ccxt/probit.py +64 -22
  254. ccxt/test/tests_helpers.py +2 -2
  255. ccxt/timex.py +58 -19
  256. ccxt/tokocrypto.py +63 -22
  257. ccxt/tradeogre.py +7 -2
  258. ccxt/upbit.py +72 -25
  259. ccxt/vertex.py +74 -28
  260. ccxt/wavesexchange.py +29 -8
  261. ccxt/wazirx.py +51 -17
  262. ccxt/whitebit.py +105 -41
  263. ccxt/woo.py +162 -65
  264. ccxt/woofipro.py +118 -49
  265. ccxt/xt.py +150 -73
  266. ccxt/yobit.py +49 -16
  267. ccxt/zaif.py +30 -10
  268. ccxt/zonda.py +46 -16
  269. {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
  270. {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/RECORD +273 -273
  271. {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
  272. {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
  273. {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
@@ -214,7 +214,9 @@ class idex(Exchange, ImplicitAPI):
214
214
  async def fetch_markets(self, params={}) -> List[Market]:
215
215
  """
216
216
  retrieves data on all markets for idex
217
- :see: https://api-docs-v3.idex.io/#get-markets
217
+
218
+ https://api-docs-v3.idex.io/#get-markets
219
+
218
220
  :param dict [params]: extra parameters specific to the exchange API endpoint
219
221
  :returns dict[]: an array of objects representing market data
220
222
  """
@@ -341,7 +343,9 @@ class idex(Exchange, ImplicitAPI):
341
343
  async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
342
344
  """
343
345
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
344
- :see: https://api-docs-v3.idex.io/#get-tickers
346
+
347
+ https://api-docs-v3.idex.io/#get-tickers
348
+
345
349
  :param str symbol: unified symbol of the market to fetch the ticker for
346
350
  :param dict [params]: extra parameters specific to the exchange API endpoint
347
351
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -376,7 +380,9 @@ class idex(Exchange, ImplicitAPI):
376
380
  async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
377
381
  """
378
382
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
379
- :see: https://api-docs-v3.idex.io/#get-tickers
383
+
384
+ https://api-docs-v3.idex.io/#get-tickers
385
+
380
386
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
381
387
  :param dict [params]: extra parameters specific to the exchange API endpoint
382
388
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -451,7 +457,9 @@ class idex(Exchange, ImplicitAPI):
451
457
  async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
452
458
  """
453
459
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
454
- :see: https://api-docs-v3.idex.io/#get-candles
460
+
461
+ https://api-docs-v3.idex.io/#get-candles
462
+
455
463
  :param str symbol: unified symbol of the market to fetch OHLCV data for
456
464
  :param str timeframe: the length of time each candle represents
457
465
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -508,7 +516,9 @@ class idex(Exchange, ImplicitAPI):
508
516
  async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
509
517
  """
510
518
  get the list of most recent trades for a particular symbol
511
- :see: https://api-docs-v3.idex.io/#get-trades
519
+
520
+ https://api-docs-v3.idex.io/#get-trades
521
+
512
522
  :param str symbol: unified symbol of the market to fetch trades for
513
523
  :param int [since]: timestamp in ms of the earliest trade to fetch
514
524
  :param int [limit]: the maximum amount of trades to fetch
@@ -617,7 +627,9 @@ class idex(Exchange, ImplicitAPI):
617
627
  async def fetch_trading_fees(self, params={}) -> TradingFees:
618
628
  """
619
629
  fetch the trading fees for multiple markets
620
- :see: https://api-docs-v3.idex.io/#get-api-account
630
+
631
+ https://api-docs-v3.idex.io/#get-api-account
632
+
621
633
  :param dict [params]: extra parameters specific to the exchange API endpoint
622
634
  :returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
623
635
  """
@@ -660,7 +672,9 @@ class idex(Exchange, ImplicitAPI):
660
672
  async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
661
673
  """
662
674
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
663
- :see: https://api-docs-v3.idex.io/#get-order-books
675
+
676
+ https://api-docs-v3.idex.io/#get-order-books
677
+
664
678
  :param str symbol: unified symbol of the market to fetch the order book for
665
679
  :param int [limit]: the maximum amount of order book entries to return
666
680
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -720,7 +734,9 @@ class idex(Exchange, ImplicitAPI):
720
734
  async def fetch_currencies(self, params={}) -> Currencies:
721
735
  """
722
736
  fetches all available currencies on an exchange
723
- :see: https://api-docs-v3.idex.io/#get-assets
737
+
738
+ https://api-docs-v3.idex.io/#get-assets
739
+
724
740
  :param dict [params]: extra parameters specific to the exchange API endpoint
725
741
  :returns dict: an associative dictionary of currencies
726
742
  """
@@ -782,7 +798,9 @@ class idex(Exchange, ImplicitAPI):
782
798
  async def fetch_balance(self, params={}) -> Balances:
783
799
  """
784
800
  query for balance and get the amount of funds available for trading or funds locked in orders
785
- :see: https://api-docs-v3.idex.io/#get-balances
801
+
802
+ https://api-docs-v3.idex.io/#get-balances
803
+
786
804
  :param dict [params]: extra parameters specific to the exchange API endpoint
787
805
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
788
806
  """
@@ -820,7 +838,9 @@ class idex(Exchange, ImplicitAPI):
820
838
  async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
821
839
  """
822
840
  fetch all trades made by the user
823
- :see: https://api-docs-v3.idex.io/#get-fills
841
+
842
+ https://api-docs-v3.idex.io/#get-fills
843
+
824
844
  :param str symbol: unified market symbol
825
845
  :param int [since]: the earliest time in ms to fetch trades for
826
846
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -879,7 +899,10 @@ class idex(Exchange, ImplicitAPI):
879
899
  async def fetch_order(self, id: str, symbol: Str = None, params={}):
880
900
  """
881
901
  fetches information on an order made by the user
882
- :see: https://api-docs-v3.idex.io/#get-orders
902
+
903
+ https://api-docs-v3.idex.io/#get-orders
904
+
905
+ :param str id: order id
883
906
  :param str symbol: unified symbol of the market the order was made in
884
907
  :param dict [params]: extra parameters specific to the exchange API endpoint
885
908
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -892,7 +915,9 @@ class idex(Exchange, ImplicitAPI):
892
915
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
893
916
  """
894
917
  fetch all unfilled currently open orders
895
- :see: https://api-docs-v3.idex.io/#get-orders
918
+
919
+ https://api-docs-v3.idex.io/#get-orders
920
+
896
921
  :param str symbol: unified market symbol
897
922
  :param int [since]: the earliest time in ms to fetch open orders for
898
923
  :param int [limit]: the maximum number of open orders structures to retrieve
@@ -907,7 +932,9 @@ class idex(Exchange, ImplicitAPI):
907
932
  async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
908
933
  """
909
934
  fetches information on multiple closed orders made by the user
910
- :see: https://api-docs-v3.idex.io/#get-orders
935
+
936
+ https://api-docs-v3.idex.io/#get-orders
937
+
911
938
  :param str symbol: unified market symbol of the market orders were made in
912
939
  :param int [since]: the earliest time in ms to fetch orders for
913
940
  :param int [limit]: the maximum number of order structures to retrieve
@@ -1112,7 +1139,9 @@ class idex(Exchange, ImplicitAPI):
1112
1139
  async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
1113
1140
  """
1114
1141
  create a trade order, https://docs.idex.io/#create-order
1115
- :see: https://api-docs-v3.idex.io/#create-order
1142
+
1143
+ https://api-docs-v3.idex.io/#create-order
1144
+
1116
1145
  :param str symbol: unified symbol of the market to create an order in
1117
1146
  :param str type: 'market' or 'limit'
1118
1147
  :param str side: 'buy' or 'sell'
@@ -1295,7 +1324,9 @@ class idex(Exchange, ImplicitAPI):
1295
1324
  async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1296
1325
  """
1297
1326
  make a withdrawal
1298
- :see: https://api-docs-v3.idex.io/#withdraw-funds
1327
+
1328
+ https://api-docs-v3.idex.io/#withdraw-funds
1329
+
1299
1330
  :param str code: unified currency code
1300
1331
  :param float amount: the amount to withdraw
1301
1332
  :param str address: the address to withdraw to
@@ -1347,7 +1378,9 @@ class idex(Exchange, ImplicitAPI):
1347
1378
  async def cancel_all_orders(self, symbol: Str = None, params={}):
1348
1379
  """
1349
1380
  cancel all open orders
1350
- :see: https://api-docs-v3.idex.io/#cancel-order
1381
+
1382
+ https://api-docs-v3.idex.io/#cancel-order
1383
+
1351
1384
  :param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
1352
1385
  :param dict [params]: extra parameters specific to the exchange API endpoint
1353
1386
  :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
@@ -1383,7 +1416,9 @@ class idex(Exchange, ImplicitAPI):
1383
1416
  async def cancel_order(self, id: str, symbol: Str = None, params={}):
1384
1417
  """
1385
1418
  cancels an open order
1386
- :see: https://api-docs-v3.idex.io/#cancel-order
1419
+
1420
+ https://api-docs-v3.idex.io/#cancel-order
1421
+
1387
1422
  :param str id: order id
1388
1423
  :param str symbol: unified symbol of the market the order was made in
1389
1424
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1428,7 +1463,9 @@ class idex(Exchange, ImplicitAPI):
1428
1463
  async def fetch_deposit(self, id: str, code: Str = None, params={}):
1429
1464
  """
1430
1465
  fetch information on a deposit
1431
- :see: https://api-docs-v3.idex.io/#get-deposits
1466
+
1467
+ https://api-docs-v3.idex.io/#get-deposits
1468
+
1432
1469
  :param str id: deposit id
1433
1470
  :param str code: not used by idex fetchDeposit()
1434
1471
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1447,7 +1484,9 @@ class idex(Exchange, ImplicitAPI):
1447
1484
  async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1448
1485
  """
1449
1486
  fetch all deposits made to an account
1450
- :see: https://api-docs-v3.idex.io/#get-deposits
1487
+
1488
+ https://api-docs-v3.idex.io/#get-deposits
1489
+
1451
1490
  :param str code: unified currency code
1452
1491
  :param int [since]: the earliest time in ms to fetch deposits for
1453
1492
  :param int [limit]: the maximum number of deposits structures to retrieve
@@ -1462,7 +1501,9 @@ class idex(Exchange, ImplicitAPI):
1462
1501
  async def fetch_status(self, params={}):
1463
1502
  """
1464
1503
  the latest known information on the availability of the exchange API
1465
- :see: https://api-docs-v3.idex.io/#get-ping
1504
+
1505
+ https://api-docs-v3.idex.io/#get-ping
1506
+
1466
1507
  :param dict [params]: extra parameters specific to the exchange API endpoint
1467
1508
  :returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
1468
1509
  """
@@ -1478,7 +1519,9 @@ class idex(Exchange, ImplicitAPI):
1478
1519
  async def fetch_time(self, params={}):
1479
1520
  """
1480
1521
  fetches the current integer timestamp in milliseconds from the exchange server
1481
- :see: https://api-docs-v3.idex.io/#get-time
1522
+
1523
+ https://api-docs-v3.idex.io/#get-time
1524
+
1482
1525
  :param dict [params]: extra parameters specific to the exchange API endpoint
1483
1526
  :returns int: the current integer timestamp in milliseconds from the exchange server
1484
1527
  """
@@ -1491,7 +1534,9 @@ class idex(Exchange, ImplicitAPI):
1491
1534
  async def fetch_withdrawal(self, id: str, code: Str = None, params={}):
1492
1535
  """
1493
1536
  fetch data on a currency withdrawal via the withdrawal id
1494
- :see: https://api-docs-v3.idex.io/#get-withdrawals
1537
+
1538
+ https://api-docs-v3.idex.io/#get-withdrawals
1539
+
1495
1540
  :param str id: withdrawal id
1496
1541
  :param str code: not used by idex.fetchWithdrawal
1497
1542
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1510,7 +1555,9 @@ class idex(Exchange, ImplicitAPI):
1510
1555
  async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1511
1556
  """
1512
1557
  fetch all withdrawals made from an account
1513
- :see: https://api-docs-v3.idex.io/#get-withdrawals
1558
+
1559
+ https://api-docs-v3.idex.io/#get-withdrawals
1560
+
1514
1561
  :param str code: unified currency code
1515
1562
  :param int [since]: the earliest time in ms to fetch withdrawals for
1516
1563
  :param int [limit]: the maximum number of withdrawals structures to retrieve
@@ -1658,7 +1705,9 @@ class idex(Exchange, ImplicitAPI):
1658
1705
  async def fetch_deposit_address(self, code: Str = None, params={}) -> DepositAddress:
1659
1706
  """
1660
1707
  fetch the Polygon address of the wallet
1661
- :see: https://api-docs-v3.idex.io/#get-wallets
1708
+
1709
+ https://api-docs-v3.idex.io/#get-wallets
1710
+
1662
1711
  :param str code: not used by idex
1663
1712
  :param dict [params]: extra parameters specific to the exchange API endpoint
1664
1713
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
@@ -468,6 +468,7 @@ class independentreserve(Exchange, ImplicitAPI):
468
468
  async def fetch_order(self, id: str, symbol: Str = None, params={}):
469
469
  """
470
470
  fetches information on an order made by the user
471
+ :param str id: order id
471
472
  :param str symbol: unified symbol of the market the order was made in
472
473
  :param dict [params]: extra parameters specific to the exchange API endpoint
473
474
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -685,7 +686,9 @@ class independentreserve(Exchange, ImplicitAPI):
685
686
  async def cancel_order(self, id: str, symbol: Str = None, params={}):
686
687
  """
687
688
  cancels an open order
688
- :see: https://www.independentreserve.com/features/api#CancelOrder
689
+
690
+ https://www.independentreserve.com/features/api#CancelOrder
691
+
689
692
  :param str id: order id
690
693
  :param str symbol: unified symbol of the market the order was made in
691
694
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -716,7 +719,9 @@ class independentreserve(Exchange, ImplicitAPI):
716
719
  async def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
717
720
  """
718
721
  fetch the deposit address for a currency associated with self account
719
- :see: https://www.independentreserve.com/features/api#GetDigitalCurrencyDepositAddress
722
+
723
+ https://www.independentreserve.com/features/api#GetDigitalCurrencyDepositAddress
724
+
720
725
  :param str code: unified currency code
721
726
  :param dict [params]: extra parameters specific to the exchange API endpoint
722
727
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
@@ -759,14 +764,16 @@ class independentreserve(Exchange, ImplicitAPI):
759
764
  async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
760
765
  """
761
766
  make a withdrawal
762
- :see: https://www.independentreserve.com/features/api#WithdrawDigitalCurrency
767
+
768
+ https://www.independentreserve.com/features/api#WithdrawDigitalCurrency
769
+
763
770
  :param str code: unified currency code
764
771
  :param float amount: the amount to withdraw
765
772
  :param str address: the address to withdraw to
766
773
  :param str tag:
767
774
  :param dict [params]: extra parameters specific to the exchange API endpoint
768
- *
769
- * EXCHANGE SPECIFIC PARAMETERS
775
+
776
+ EXCHANGE SPECIFIC PARAMETERS
770
777
  :param dict [params.comment]: withdrawal comment, should not exceed 500 characters
771
778
  :returns dict: a `transaction structure <https://docs.ccxt.com/#/?id=transaction-structure>`
772
779
  """
@@ -220,7 +220,9 @@ class indodax(Exchange, ImplicitAPI):
220
220
  async def fetch_time(self, params={}):
221
221
  """
222
222
  fetches the current integer timestamp in milliseconds from the exchange server
223
- :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#server-time
223
+
224
+ https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#server-time
225
+
224
226
  :param dict [params]: extra parameters specific to the exchange API endpoint
225
227
  :returns int: the current integer timestamp in milliseconds from the exchange server
226
228
  """
@@ -236,7 +238,9 @@ class indodax(Exchange, ImplicitAPI):
236
238
  async def fetch_markets(self, params={}) -> List[Market]:
237
239
  """
238
240
  retrieves data on all markets for indodax
239
- :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#pairs
241
+
242
+ https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#pairs
243
+
240
244
  :param dict [params]: extra parameters specific to the exchange API endpoint
241
245
  :returns dict[]: an array of objects representing market data
242
246
  """
@@ -353,7 +357,9 @@ class indodax(Exchange, ImplicitAPI):
353
357
  async def fetch_balance(self, params={}) -> Balances:
354
358
  """
355
359
  query for balance and get the amount of funds available for trading or funds locked in orders
356
- :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#get-info-endpoint
360
+
361
+ https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#get-info-endpoint
362
+
357
363
  :param dict [params]: extra parameters specific to the exchange API endpoint
358
364
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
359
365
  """
@@ -394,7 +400,9 @@ class indodax(Exchange, ImplicitAPI):
394
400
  async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
395
401
  """
396
402
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
397
- :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#depth
403
+
404
+ https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#depth
405
+
398
406
  :param str symbol: unified symbol of the market to fetch the order book for
399
407
  :param int [limit]: the maximum amount of order book entries to return
400
408
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -452,7 +460,9 @@ class indodax(Exchange, ImplicitAPI):
452
460
  async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
453
461
  """
454
462
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
455
- :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker
463
+
464
+ https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker
465
+
456
466
  :param str symbol: unified symbol of the market to fetch the ticker for
457
467
  :param dict [params]: extra parameters specific to the exchange API endpoint
458
468
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -483,7 +493,9 @@ class indodax(Exchange, ImplicitAPI):
483
493
  async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
484
494
  """
485
495
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
486
- :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker-all
496
+
497
+ https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker-all
498
+
487
499
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
488
500
  :param dict [params]: extra parameters specific to the exchange API endpoint
489
501
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -530,7 +542,9 @@ class indodax(Exchange, ImplicitAPI):
530
542
  async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
531
543
  """
532
544
  get the list of most recent trades for a particular symbol
533
- :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#trades
545
+
546
+ https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#trades
547
+
534
548
  :param str symbol: unified symbol of the market to fetch trades for
535
549
  :param int [since]: timestamp in ms of the earliest trade to fetch
536
550
  :param int [limit]: the maximum amount of trades to fetch
@@ -714,7 +728,10 @@ class indodax(Exchange, ImplicitAPI):
714
728
  async def fetch_order(self, id: str, symbol: Str = None, params={}):
715
729
  """
716
730
  fetches information on an order made by the user
717
- :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#get-order-endpoints
731
+
732
+ https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#get-order-endpoints
733
+
734
+ :param str id: order id
718
735
  :param str symbol: unified symbol of the market the order was made in
719
736
  :param dict [params]: extra parameters specific to the exchange API endpoint
720
737
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -736,7 +753,9 @@ class indodax(Exchange, ImplicitAPI):
736
753
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
737
754
  """
738
755
  fetch all unfilled currently open orders
739
- :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#open-orders-endpoints
756
+
757
+ https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#open-orders-endpoints
758
+
740
759
  :param str symbol: unified market symbol
741
760
  :param int [since]: the earliest time in ms to fetch open orders for
742
761
  :param int [limit]: the maximum number of open orders structures to retrieve
@@ -771,7 +790,9 @@ class indodax(Exchange, ImplicitAPI):
771
790
  async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
772
791
  """
773
792
  fetches information on multiple closed orders made by the user
774
- :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#order-history
793
+
794
+ https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#order-history
795
+
775
796
  :param str symbol: unified market symbol of the market orders were made in
776
797
  :param int [since]: the earliest time in ms to fetch orders for
777
798
  :param int [limit]: the maximum number of order structures to retrieve
@@ -793,7 +814,9 @@ class indodax(Exchange, ImplicitAPI):
793
814
  async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
794
815
  """
795
816
  create a trade order
796
- :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#trade-endpoints
817
+
818
+ https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#trade-endpoints
819
+
797
820
  :param str symbol: unified symbol of the market to create an order in
798
821
  :param str type: 'market' or 'limit'
799
822
  :param str side: 'buy' or 'sell'
@@ -850,7 +873,9 @@ class indodax(Exchange, ImplicitAPI):
850
873
  async def cancel_order(self, id: str, symbol: Str = None, params={}):
851
874
  """
852
875
  cancels an open order
853
- :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#cancel-order-endpoints
876
+
877
+ https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#cancel-order-endpoints
878
+
854
879
  :param str id: order id
855
880
  :param str symbol: unified symbol of the market the order was made in
856
881
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -894,7 +919,9 @@ class indodax(Exchange, ImplicitAPI):
894
919
  async def fetch_transaction_fee(self, code: str, params={}):
895
920
  """
896
921
  fetch the fee for a transaction
897
- :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#withdraw-fee-endpoints
922
+
923
+ https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#withdraw-fee-endpoints
924
+
898
925
  :param str code: unified currency code
899
926
  :param dict [params]: extra parameters specific to the exchange API endpoint
900
927
  :returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -926,7 +953,9 @@ class indodax(Exchange, ImplicitAPI):
926
953
  async def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
927
954
  """
928
955
  fetch history of deposits and withdrawals
929
- :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#transaction-history-endpoints
956
+
957
+ https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#transaction-history-endpoints
958
+
930
959
  :param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
931
960
  :param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
932
961
  :param int [limit]: max number of deposit/withdrawals to return, default is None
@@ -1021,7 +1050,9 @@ class indodax(Exchange, ImplicitAPI):
1021
1050
  async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1022
1051
  """
1023
1052
  make a withdrawal
1024
- :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#withdraw-coin-endpoints
1053
+
1054
+ https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#withdraw-coin-endpoints
1055
+
1025
1056
  :param str code: unified currency code
1026
1057
  :param float amount: the amount to withdraw
1027
1058
  :param str address: the address to withdraw to
@@ -1151,7 +1182,9 @@ class indodax(Exchange, ImplicitAPI):
1151
1182
  async def fetch_deposit_addresses(self, codes: Strings = None, params={}) -> List[DepositAddress]:
1152
1183
  """
1153
1184
  fetch deposit addresses for multiple currencies and chain types
1154
- :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#general-information-on-endpoints
1185
+
1186
+ https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#general-information-on-endpoints
1187
+
1155
1188
  :param str[] [codes]: list of unified currency codes, default is None
1156
1189
  :param dict [params]: extra parameters specific to the exchange API endpoint
1157
1190
  :returns dict: a list of `address structures <https://docs.ccxt.com/#/?id=address-structure>`
@@ -1253,11 +1286,15 @@ class indodax(Exchange, ImplicitAPI):
1253
1286
  # {success: 0, error: "invalid order."}
1254
1287
  # or
1255
1288
  # [{data, ...}, {...}, ...]
1289
+ # {"success":"1","status":"approved","withdraw_currency":"strm","withdraw_address":"0x2b9A8cd5535D99b419aEfFBF1ae8D90a7eBdb24E","withdraw_amount":"2165.05767839","fee":"21.11000000","amount_after_fee":"2143.94767839","submit_time":"1730759489","withdraw_id":"strm-3423","txid":""}
1256
1290
  if isinstance(response, list):
1257
1291
  return None # public endpoints may return []-arrays
1258
1292
  error = self.safe_value(response, 'error', '')
1259
1293
  if not ('success' in response) and error == '':
1260
1294
  return None # no 'success' property on public responses
1295
+ status = self.safe_string(response, 'success')
1296
+ if status == 'approved':
1297
+ return None
1261
1298
  if self.safe_integer(response, 'success', 0) == 1:
1262
1299
  # {success: 1, return: {orders: []}}
1263
1300
  if not ('return' in response):