ccxt 4.4.30__py2.py3-none-any.whl → 4.4.31__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/ace.py +36 -12
  3. ccxt/alpaca.py +62 -22
  4. ccxt/ascendex.py +65 -30
  5. ccxt/async_support/__init__.py +1 -1
  6. ccxt/async_support/ace.py +36 -12
  7. ccxt/async_support/alpaca.py +62 -22
  8. ccxt/async_support/ascendex.py +65 -30
  9. ccxt/async_support/base/exchange.py +3 -3
  10. ccxt/async_support/bigone.py +71 -27
  11. ccxt/async_support/binance.py +555 -323
  12. ccxt/async_support/bingx.py +208 -108
  13. ccxt/async_support/bit2c.py +34 -12
  14. ccxt/async_support/bitbank.py +42 -14
  15. ccxt/async_support/bitbns.py +17 -9
  16. ccxt/async_support/bitfinex.py +68 -24
  17. ccxt/async_support/bitfinex2.py +116 -44
  18. ccxt/async_support/bitflyer.py +54 -18
  19. ccxt/async_support/bitget.py +277 -145
  20. ccxt/async_support/bithumb.py +39 -14
  21. ccxt/async_support/bitmart.py +145 -79
  22. ccxt/async_support/bitmex.py +90 -30
  23. ccxt/async_support/bitopro.py +66 -22
  24. ccxt/async_support/bitrue.py +109 -57
  25. ccxt/async_support/bitso.py +55 -19
  26. ccxt/async_support/bitstamp.py +84 -36
  27. ccxt/async_support/bitteam.py +51 -17
  28. ccxt/async_support/bitvavo.py +57 -19
  29. ccxt/async_support/bl3p.py +26 -10
  30. ccxt/async_support/blockchaincom.py +63 -21
  31. ccxt/async_support/blofin.py +95 -38
  32. ccxt/async_support/btcalpha.py +48 -16
  33. ccxt/async_support/btcbox.py +27 -9
  34. ccxt/async_support/btcmarkets.py +57 -19
  35. ccxt/async_support/btcturk.py +36 -12
  36. ccxt/async_support/bybit.py +251 -95
  37. ccxt/async_support/cex.py +65 -22
  38. ccxt/async_support/coinbase.py +138 -56
  39. ccxt/async_support/coinbaseexchange.py +76 -28
  40. ccxt/async_support/coinbaseinternational.py +75 -27
  41. ccxt/async_support/coincatch.py +191 -97
  42. ccxt/async_support/coincheck.py +33 -11
  43. ccxt/async_support/coinex.py +212 -101
  44. ccxt/async_support/coinlist.py +87 -30
  45. ccxt/async_support/coinmate.py +55 -24
  46. ccxt/async_support/coinmetro.py +52 -18
  47. ccxt/async_support/coinone.py +27 -10
  48. ccxt/async_support/coinsph.py +73 -27
  49. ccxt/async_support/coinspot.py +25 -9
  50. ccxt/async_support/cryptocom.py +103 -38
  51. ccxt/async_support/currencycom.py +70 -23
  52. ccxt/async_support/delta.py +90 -30
  53. ccxt/async_support/deribit.py +131 -50
  54. ccxt/async_support/digifinex.py +114 -51
  55. ccxt/async_support/exmo.py +104 -45
  56. ccxt/async_support/gate.py +298 -155
  57. ccxt/async_support/gemini.py +57 -20
  58. ccxt/async_support/hashkey.py +151 -66
  59. ccxt/async_support/hitbtc.py +156 -73
  60. ccxt/async_support/hollaex.py +76 -25
  61. ccxt/async_support/htx.py +297 -240
  62. ccxt/async_support/huobijp.py +1 -0
  63. ccxt/async_support/hyperliquid.py +94 -38
  64. ccxt/async_support/idex.py +73 -24
  65. ccxt/async_support/independentreserve.py +12 -5
  66. ccxt/async_support/indodax.py +53 -16
  67. ccxt/async_support/kraken.py +107 -35
  68. ccxt/async_support/krakenfutures.py +88 -34
  69. ccxt/async_support/kucoin.py +211 -109
  70. ccxt/async_support/kucoinfutures.py +119 -42
  71. ccxt/async_support/kuna.py +80 -39
  72. ccxt/async_support/latoken.py +70 -33
  73. ccxt/async_support/lbank.py +89 -38
  74. ccxt/async_support/luno.py +54 -19
  75. ccxt/async_support/lykke.py +54 -19
  76. ccxt/async_support/mercado.py +1 -0
  77. ccxt/async_support/mexc.py +226 -108
  78. ccxt/async_support/ndax.py +58 -19
  79. ccxt/async_support/novadax.py +67 -22
  80. ccxt/async_support/oceanex.py +58 -19
  81. ccxt/async_support/okcoin.py +81 -38
  82. ccxt/async_support/okx.py +270 -109
  83. ccxt/async_support/onetrading.py +3 -1
  84. ccxt/async_support/oxfun.py +95 -36
  85. ccxt/async_support/p2b.py +49 -23
  86. ccxt/async_support/paradex.py +75 -27
  87. ccxt/async_support/paymium.py +31 -11
  88. ccxt/async_support/phemex.py +91 -41
  89. ccxt/async_support/poloniex.py +80 -30
  90. ccxt/async_support/poloniexfutures.py +72 -30
  91. ccxt/async_support/probit.py +64 -22
  92. ccxt/async_support/timex.py +58 -19
  93. ccxt/async_support/tokocrypto.py +63 -22
  94. ccxt/async_support/tradeogre.py +7 -2
  95. ccxt/async_support/upbit.py +72 -25
  96. ccxt/async_support/vertex.py +74 -28
  97. ccxt/async_support/wavesexchange.py +29 -8
  98. ccxt/async_support/wazirx.py +51 -17
  99. ccxt/async_support/whitebit.py +105 -41
  100. ccxt/async_support/woo.py +162 -65
  101. ccxt/async_support/woofipro.py +118 -49
  102. ccxt/async_support/xt.py +150 -73
  103. ccxt/async_support/yobit.py +49 -16
  104. ccxt/async_support/zaif.py +30 -10
  105. ccxt/async_support/zonda.py +46 -16
  106. ccxt/base/exchange.py +34 -34
  107. ccxt/base/types.py +1 -0
  108. ccxt/bigone.py +71 -27
  109. ccxt/binance.py +555 -323
  110. ccxt/bingx.py +208 -108
  111. ccxt/bit2c.py +34 -12
  112. ccxt/bitbank.py +42 -14
  113. ccxt/bitbns.py +17 -9
  114. ccxt/bitfinex.py +68 -24
  115. ccxt/bitfinex2.py +116 -44
  116. ccxt/bitflyer.py +54 -18
  117. ccxt/bitget.py +277 -145
  118. ccxt/bithumb.py +39 -14
  119. ccxt/bitmart.py +145 -79
  120. ccxt/bitmex.py +90 -30
  121. ccxt/bitopro.py +66 -22
  122. ccxt/bitrue.py +109 -57
  123. ccxt/bitso.py +55 -19
  124. ccxt/bitstamp.py +84 -36
  125. ccxt/bitteam.py +51 -17
  126. ccxt/bitvavo.py +57 -19
  127. ccxt/bl3p.py +26 -10
  128. ccxt/blockchaincom.py +63 -21
  129. ccxt/blofin.py +95 -38
  130. ccxt/btcalpha.py +48 -16
  131. ccxt/btcbox.py +27 -9
  132. ccxt/btcmarkets.py +57 -19
  133. ccxt/btcturk.py +36 -12
  134. ccxt/bybit.py +251 -95
  135. ccxt/cex.py +65 -22
  136. ccxt/coinbase.py +138 -56
  137. ccxt/coinbaseexchange.py +76 -28
  138. ccxt/coinbaseinternational.py +75 -27
  139. ccxt/coincatch.py +191 -97
  140. ccxt/coincheck.py +33 -11
  141. ccxt/coinex.py +212 -101
  142. ccxt/coinlist.py +87 -30
  143. ccxt/coinmate.py +55 -24
  144. ccxt/coinmetro.py +52 -18
  145. ccxt/coinone.py +27 -10
  146. ccxt/coinsph.py +73 -27
  147. ccxt/coinspot.py +25 -9
  148. ccxt/cryptocom.py +103 -38
  149. ccxt/currencycom.py +70 -23
  150. ccxt/delta.py +90 -30
  151. ccxt/deribit.py +131 -50
  152. ccxt/digifinex.py +114 -51
  153. ccxt/exmo.py +104 -45
  154. ccxt/gate.py +298 -155
  155. ccxt/gemini.py +57 -20
  156. ccxt/hashkey.py +151 -66
  157. ccxt/hitbtc.py +156 -73
  158. ccxt/hollaex.py +76 -25
  159. ccxt/htx.py +297 -240
  160. ccxt/huobijp.py +1 -0
  161. ccxt/hyperliquid.py +94 -38
  162. ccxt/idex.py +73 -24
  163. ccxt/independentreserve.py +12 -5
  164. ccxt/indodax.py +53 -16
  165. ccxt/kraken.py +107 -35
  166. ccxt/krakenfutures.py +88 -34
  167. ccxt/kucoin.py +211 -109
  168. ccxt/kucoinfutures.py +119 -42
  169. ccxt/kuna.py +80 -39
  170. ccxt/latoken.py +70 -33
  171. ccxt/lbank.py +89 -38
  172. ccxt/luno.py +54 -19
  173. ccxt/lykke.py +54 -19
  174. ccxt/mercado.py +1 -0
  175. ccxt/mexc.py +226 -108
  176. ccxt/ndax.py +58 -19
  177. ccxt/novadax.py +67 -22
  178. ccxt/oceanex.py +58 -19
  179. ccxt/okcoin.py +81 -38
  180. ccxt/okx.py +270 -109
  181. ccxt/onetrading.py +3 -1
  182. ccxt/oxfun.py +95 -36
  183. ccxt/p2b.py +49 -23
  184. ccxt/paradex.py +75 -27
  185. ccxt/paymium.py +31 -11
  186. ccxt/phemex.py +91 -41
  187. ccxt/poloniex.py +80 -30
  188. ccxt/poloniexfutures.py +72 -30
  189. ccxt/pro/__init__.py +1 -1
  190. ccxt/pro/alpaca.py +15 -5
  191. ccxt/pro/ascendex.py +18 -6
  192. ccxt/pro/binance.py +200 -119
  193. ccxt/pro/bingx.py +44 -24
  194. ccxt/pro/bitfinex.py +13 -5
  195. ccxt/pro/bitget.py +75 -36
  196. ccxt/pro/bithumb.py +12 -4
  197. ccxt/pro/bitmart.py +44 -20
  198. ccxt/pro/bitmex.py +42 -14
  199. ccxt/pro/bitopro.py +15 -5
  200. ccxt/pro/bitrue.py +7 -3
  201. ccxt/pro/bitvavo.py +51 -17
  202. ccxt/pro/blockchaincom.py +18 -6
  203. ccxt/pro/blofin.py +36 -12
  204. ccxt/pro/bybit.py +100 -42
  205. ccxt/pro/cex.py +48 -16
  206. ccxt/pro/coinbase.py +32 -12
  207. ccxt/pro/coinbaseexchange.py +1 -1
  208. ccxt/pro/coinbaseinternational.py +34 -14
  209. ccxt/pro/coincatch.py +54 -19
  210. ccxt/pro/coincheck.py +6 -2
  211. ccxt/pro/coinex.py +40 -20
  212. ccxt/pro/coinone.py +9 -3
  213. ccxt/pro/cryptocom.py +70 -26
  214. ccxt/pro/deribit.py +36 -12
  215. ccxt/pro/exmo.py +10 -4
  216. ccxt/pro/gate.py +64 -30
  217. ccxt/pro/gemini.py +21 -7
  218. ccxt/pro/hashkey.py +26 -8
  219. ccxt/pro/hitbtc.py +61 -37
  220. ccxt/pro/hollaex.py +15 -5
  221. ccxt/pro/htx.py +39 -21
  222. ccxt/pro/hyperliquid.py +41 -14
  223. ccxt/pro/kraken.py +49 -17
  224. ccxt/pro/krakenfutures.py +47 -24
  225. ccxt/pro/kucoin.py +60 -31
  226. ccxt/pro/kucoinfutures.py +41 -19
  227. ccxt/pro/lbank.py +27 -9
  228. ccxt/pro/luno.py +3 -1
  229. ccxt/pro/mexc.py +35 -17
  230. ccxt/pro/ndax.py +12 -4
  231. ccxt/pro/okcoin.py +18 -6
  232. ccxt/pro/okx.py +76 -28
  233. ccxt/pro/onetrading.py +21 -7
  234. ccxt/pro/oxfun.py +54 -20
  235. ccxt/pro/p2b.py +23 -11
  236. ccxt/pro/paradex.py +12 -4
  237. ccxt/pro/phemex.py +31 -19
  238. ccxt/pro/poloniex.py +50 -22
  239. ccxt/pro/poloniexfutures.py +17 -7
  240. ccxt/pro/probit.py +18 -6
  241. ccxt/pro/upbit.py +25 -9
  242. ccxt/pro/vertex.py +20 -6
  243. ccxt/pro/wazirx.py +21 -7
  244. ccxt/pro/whitebit.py +25 -9
  245. ccxt/pro/woo.py +32 -12
  246. ccxt/pro/woofipro.py +35 -13
  247. ccxt/pro/xt.py +46 -26
  248. ccxt/probit.py +64 -22
  249. ccxt/timex.py +58 -19
  250. ccxt/tokocrypto.py +63 -22
  251. ccxt/tradeogre.py +7 -2
  252. ccxt/upbit.py +72 -25
  253. ccxt/vertex.py +74 -28
  254. ccxt/wavesexchange.py +29 -8
  255. ccxt/wazirx.py +51 -17
  256. ccxt/whitebit.py +105 -41
  257. ccxt/woo.py +162 -65
  258. ccxt/woofipro.py +118 -49
  259. ccxt/xt.py +150 -73
  260. ccxt/yobit.py +49 -16
  261. ccxt/zaif.py +30 -10
  262. ccxt/zonda.py +46 -16
  263. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
  264. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/RECORD +267 -267
  265. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
  266. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
  267. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/wazirx.py CHANGED
@@ -221,7 +221,9 @@ class wazirx(Exchange, ImplicitAPI):
221
221
 
222
222
  def fetch_markets(self, params={}) -> List[Market]:
223
223
  """
224
- :see: https://docs.wazirx.com/#exchange-info
224
+
225
+ https://docs.wazirx.com/#exchange-info
226
+
225
227
  retrieves data on all markets for wazirx
226
228
  :param dict [params]: extra parameters specific to the exchange API endpoint
227
229
  :returns dict[]: an array of objects representing market data
@@ -330,7 +332,9 @@ class wazirx(Exchange, ImplicitAPI):
330
332
 
331
333
  def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
332
334
  """
333
- :see: https://docs.wazirx.com/#kline-candlestick-data
335
+
336
+ https://docs.wazirx.com/#kline-candlestick-data
337
+
334
338
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
335
339
  :param str symbol: unified symbol of the market to fetch OHLCV data for
336
340
  :param str timeframe: the length of time each candle represents. Available values [1m,5m,15m,30m,1h,2h,4h,6h,12h,1d,1w]
@@ -378,7 +382,9 @@ class wazirx(Exchange, ImplicitAPI):
378
382
 
379
383
  def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
380
384
  """
381
- :see: https://docs.wazirx.com/#order-book
385
+
386
+ https://docs.wazirx.com/#order-book
387
+
382
388
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
383
389
  :param str symbol: unified symbol of the market to fetch the order book for
384
390
  :param int [limit]: the maximum amount of order book entries to return
@@ -411,7 +417,9 @@ class wazirx(Exchange, ImplicitAPI):
411
417
 
412
418
  def fetch_ticker(self, symbol: str, params={}) -> Ticker:
413
419
  """
414
- :see: https://docs.wazirx.com/#24hr-ticker-price-change-statistics
420
+
421
+ https://docs.wazirx.com/#24hr-ticker-price-change-statistics
422
+
415
423
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
416
424
  :param str symbol: unified symbol of the market to fetch the ticker for
417
425
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -442,7 +450,9 @@ class wazirx(Exchange, ImplicitAPI):
442
450
 
443
451
  def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
444
452
  """
445
- :see: https://docs.wazirx.com/#24hr-tickers-price-change-statistics
453
+
454
+ https://docs.wazirx.com/#24hr-tickers-price-change-statistics
455
+
446
456
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
447
457
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
448
458
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -477,7 +487,9 @@ class wazirx(Exchange, ImplicitAPI):
477
487
 
478
488
  def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
479
489
  """
480
- :see: https://docs.wazirx.com/#recent-trades-list
490
+
491
+ https://docs.wazirx.com/#recent-trades-list
492
+
481
493
  get the list of most recent trades for a particular symbol
482
494
  :param str symbol: unified symbol of the market to fetch trades for
483
495
  :param int [since]: timestamp in ms of the earliest trade to fetch
@@ -548,7 +560,9 @@ class wazirx(Exchange, ImplicitAPI):
548
560
 
549
561
  def fetch_status(self, params={}):
550
562
  """
551
- :see: https://docs.wazirx.com/#system-status
563
+
564
+ https://docs.wazirx.com/#system-status
565
+
552
566
  the latest known information on the availability of the exchange API
553
567
  :param dict [params]: extra parameters specific to the exchange API endpoint
554
568
  :returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
@@ -571,7 +585,9 @@ class wazirx(Exchange, ImplicitAPI):
571
585
 
572
586
  def fetch_time(self, params={}):
573
587
  """
574
- :see: https://docs.wazirx.com/#check-server-time
588
+
589
+ https://docs.wazirx.com/#check-server-time
590
+
575
591
  fetches the current integer timestamp in milliseconds from the exchange server
576
592
  :param dict [params]: extra parameters specific to the exchange API endpoint
577
593
  :returns int: the current integer timestamp in milliseconds from the exchange server
@@ -648,7 +664,9 @@ class wazirx(Exchange, ImplicitAPI):
648
664
 
649
665
  def fetch_balance(self, params={}) -> Balances:
650
666
  """
651
- :see: https://docs.wazirx.com/#fund-details-user_data
667
+
668
+ https://docs.wazirx.com/#fund-details-user_data
669
+
652
670
  query for balance and get the amount of funds available for trading or funds locked in orders
653
671
  :param dict [params]: extra parameters specific to the exchange API endpoint
654
672
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
@@ -668,7 +686,9 @@ class wazirx(Exchange, ImplicitAPI):
668
686
 
669
687
  def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
670
688
  """
671
- :see: https://docs.wazirx.com/#all-orders-user_data
689
+
690
+ https://docs.wazirx.com/#all-orders-user_data
691
+
672
692
  fetches information on multiple orders made by the user
673
693
  :param str symbol: unified market symbol of the market orders were made in
674
694
  :param int [since]: the earliest time in ms to fetch orders for
@@ -723,7 +743,9 @@ class wazirx(Exchange, ImplicitAPI):
723
743
 
724
744
  def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
725
745
  """
726
- :see: https://docs.wazirx.com/#current-open-orders-user_data
746
+
747
+ https://docs.wazirx.com/#current-open-orders-user_data
748
+
727
749
  fetch all unfilled currently open orders
728
750
  :param str symbol: unified market symbol
729
751
  :param int [since]: the earliest time in ms to fetch open orders for
@@ -770,7 +792,9 @@ class wazirx(Exchange, ImplicitAPI):
770
792
 
771
793
  def cancel_all_orders(self, symbol: Str = None, params={}):
772
794
  """
773
- :see: https://docs.wazirx.com/#cancel-all-open-orders-on-a-symbol-trade
795
+
796
+ https://docs.wazirx.com/#cancel-all-open-orders-on-a-symbol-trade
797
+
774
798
  cancel all open orders in a market
775
799
  :param str symbol: unified market symbol of the market to cancel orders in
776
800
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -806,7 +830,9 @@ class wazirx(Exchange, ImplicitAPI):
806
830
 
807
831
  def cancel_order(self, id: str, symbol: Str = None, params={}):
808
832
  """
809
- :see: https://docs.wazirx.com/#cancel-order-trade
833
+
834
+ https://docs.wazirx.com/#cancel-order-trade
835
+
810
836
  cancels an open order
811
837
  :param str id: order id
812
838
  :param str symbol: unified symbol of the market the order was made in
@@ -826,7 +852,9 @@ class wazirx(Exchange, ImplicitAPI):
826
852
 
827
853
  def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
828
854
  """
829
- :see: https://docs.wazirx.com/#new-order-trade
855
+
856
+ https://docs.wazirx.com/#new-order-trade
857
+
830
858
  create a trade order
831
859
  :param str symbol: unified symbol of the market to create an order in
832
860
  :param str type: 'market' or 'limit'
@@ -931,7 +959,9 @@ class wazirx(Exchange, ImplicitAPI):
931
959
  def fetch_currencies(self, params={}) -> Currencies:
932
960
  """
933
961
  fetches all available currencies on an exchange
934
- :see: https://docs.wazirx.com/#all-coins-39-information-user_data
962
+
963
+ https://docs.wazirx.com/#all-coins-39-information-user_data
964
+
935
965
  :param dict [params]: extra parameters specific to the exchange API endpoint
936
966
  :returns dict: an associative dictionary of currencies
937
967
  """
@@ -1072,7 +1102,9 @@ class wazirx(Exchange, ImplicitAPI):
1072
1102
  def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
1073
1103
  """
1074
1104
  fetch the deposit address for a currency associated with self account
1075
- :see: https://docs.wazirx.com/#deposit-address-supporting-network-user_data
1105
+
1106
+ https://docs.wazirx.com/#deposit-address-supporting-network-user_data
1107
+
1076
1108
  :param str code: unified currency code of the currency for the deposit address
1077
1109
  :param dict [params]: extra parameters specific to the exchange API endpoint
1078
1110
  :param str [params.network]: unified network code, you can get network from fetchCurrencies
@@ -1107,7 +1139,9 @@ class wazirx(Exchange, ImplicitAPI):
1107
1139
  def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1108
1140
  """
1109
1141
  fetch all withdrawals made from an account
1110
- :see: https://docs.wazirx.com/#withdraw-history-supporting-network-user_data
1142
+
1143
+ https://docs.wazirx.com/#withdraw-history-supporting-network-user_data
1144
+
1111
1145
  :param str code: unified currency code
1112
1146
  :param int [since]: the earliest time in ms to fetch withdrawals for
1113
1147
  :param int [limit]: the maximum number of withdrawals structures to retrieve
ccxt/whitebit.py CHANGED
@@ -321,7 +321,9 @@ class whitebit(Exchange, ImplicitAPI):
321
321
  def fetch_markets(self, params={}) -> List[Market]:
322
322
  """
323
323
  retrieves data on all markets for whitebit
324
- :see: https://docs.whitebit.com/public/http-v4/#market-info
324
+
325
+ https://docs.whitebit.com/public/http-v4/#market-info
326
+
325
327
  :param dict [params]: extra parameters specific to the exchange API endpoint
326
328
  :returns dict[]: an array of objects representing market data
327
329
  """
@@ -441,7 +443,9 @@ class whitebit(Exchange, ImplicitAPI):
441
443
  def fetch_currencies(self, params={}) -> Currencies:
442
444
  """
443
445
  fetches all available currencies on an exchange
444
- :see: https://docs.whitebit.com/public/http-v4/#asset-status-list
446
+
447
+ https://docs.whitebit.com/public/http-v4/#asset-status-list
448
+
445
449
  :param dict [params]: extra parameters specific to the exchange API endpoint
446
450
  :returns dict: an associative dictionary of currencies
447
451
  """
@@ -496,9 +500,11 @@ class whitebit(Exchange, ImplicitAPI):
496
500
 
497
501
  def fetch_transaction_fees(self, codes: Strings = None, params={}):
498
502
  """
499
- * @deprecated
503
+ @deprecated
500
504
  please use fetchDepositWithdrawFees instead
501
- :see: https://docs.whitebit.com/public/http-v4/#fee
505
+
506
+ https://docs.whitebit.com/public/http-v4/#fee
507
+
502
508
  :param str[]|None codes: not used by fetchTransactionFees()
503
509
  :param dict [params]: extra parameters specific to the exchange API endpoint
504
510
  :returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -550,7 +556,9 @@ class whitebit(Exchange, ImplicitAPI):
550
556
  def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
551
557
  """
552
558
  fetch deposit and withdraw fees
553
- :see: https://docs.whitebit.com/public/http-v4/#fee
559
+
560
+ https://docs.whitebit.com/public/http-v4/#fee
561
+
554
562
  :param str[]|None codes: not used by fetchDepositWithdrawFees()
555
563
  :param dict [params]: extra parameters specific to the exchange API endpoint
556
564
  :returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -692,7 +700,9 @@ class whitebit(Exchange, ImplicitAPI):
692
700
  def fetch_trading_fees(self, params={}) -> TradingFees:
693
701
  """
694
702
  fetch the trading fees for multiple markets
695
- :see: https://docs.whitebit.com/public/http-v4/#asset-status-list
703
+
704
+ https://docs.whitebit.com/public/http-v4/#asset-status-list
705
+
696
706
  :param dict [params]: extra parameters specific to the exchange API endpoint
697
707
  :returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
698
708
  """
@@ -737,7 +747,9 @@ class whitebit(Exchange, ImplicitAPI):
737
747
  def fetch_ticker(self, symbol: str, params={}) -> Ticker:
738
748
  """
739
749
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
740
- :see: https://docs.whitebit.com/public/http-v4/#market-activity
750
+
751
+ https://docs.whitebit.com/public/http-v4/#market-activity
752
+
741
753
  :param str symbol: unified symbol of the market to fetch the ticker for
742
754
  :param dict [params]: extra parameters specific to the exchange API endpoint
743
755
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -839,7 +851,9 @@ class whitebit(Exchange, ImplicitAPI):
839
851
  def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
840
852
  """
841
853
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
842
- :see: https://docs.whitebit.com/public/http-v4/#market-activity
854
+
855
+ https://docs.whitebit.com/public/http-v4/#market-activity
856
+
843
857
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
844
858
  :param dict [params]: extra parameters specific to the exchange API endpoint
845
859
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -871,7 +885,9 @@ class whitebit(Exchange, ImplicitAPI):
871
885
  def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
872
886
  """
873
887
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
874
- :see: https://docs.whitebit.com/public/http-v4/#orderbook
888
+
889
+ https://docs.whitebit.com/public/http-v4/#orderbook
890
+
875
891
  :param str symbol: unified symbol of the market to fetch the order book for
876
892
  :param int [limit]: the maximum amount of order book entries to return
877
893
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -910,7 +926,9 @@ class whitebit(Exchange, ImplicitAPI):
910
926
  def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
911
927
  """
912
928
  get the list of most recent trades for a particular symbol
913
- :see: https://docs.whitebit.com/public/http-v4/#recent-trades
929
+
930
+ https://docs.whitebit.com/public/http-v4/#recent-trades
931
+
914
932
  :param str symbol: unified symbol of the market to fetch trades for
915
933
  :param int [since]: timestamp in ms of the earliest trade to fetch
916
934
  :param int [limit]: the maximum amount of trades to fetch
@@ -940,7 +958,9 @@ class whitebit(Exchange, ImplicitAPI):
940
958
  def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
941
959
  """
942
960
  fetch all trades made by the user
943
- :see: https://docs.whitebit.com/private/http-trade-v4/#query-executed-order-history
961
+
962
+ https://docs.whitebit.com/private/http-trade-v4/#query-executed-order-history
963
+
944
964
  :param str symbol: unified symbol of the market to fetch trades for
945
965
  :param int [since]: timestamp in ms of the earliest trade to fetch
946
966
  :param int [limit]: the maximum amount of trades to fetch
@@ -1086,7 +1106,9 @@ class whitebit(Exchange, ImplicitAPI):
1086
1106
  def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
1087
1107
  """
1088
1108
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1089
- :see: https://docs.whitebit.com/public/http-v1/#kline
1109
+
1110
+ https://docs.whitebit.com/public/http-v1/#kline
1111
+
1090
1112
  :param str symbol: unified symbol of the market to fetch OHLCV data for
1091
1113
  :param str timeframe: the length of time each candle represents
1092
1114
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -1148,7 +1170,9 @@ class whitebit(Exchange, ImplicitAPI):
1148
1170
  def fetch_status(self, params={}):
1149
1171
  """
1150
1172
  the latest known information on the availability of the exchange API
1151
- :see: https://docs.whitebit.com/public/http-v4/#server-status
1173
+
1174
+ https://docs.whitebit.com/public/http-v4/#server-status
1175
+
1152
1176
  :param dict [params]: extra parameters specific to the exchange API endpoint
1153
1177
  :returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
1154
1178
  """
@@ -1170,7 +1194,9 @@ class whitebit(Exchange, ImplicitAPI):
1170
1194
  def fetch_time(self, params={}):
1171
1195
  """
1172
1196
  fetches the current integer timestamp in milliseconds from the exchange server
1173
- :see: https://docs.whitebit.com/public/http-v4/#server-time
1197
+
1198
+ https://docs.whitebit.com/public/http-v4/#server-time
1199
+
1174
1200
  :param dict [params]: extra parameters specific to the exchange API endpoint
1175
1201
  :returns int: the current integer timestamp in milliseconds from the exchange server
1176
1202
  """
@@ -1208,11 +1234,13 @@ class whitebit(Exchange, ImplicitAPI):
1208
1234
  def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
1209
1235
  """
1210
1236
  create a trade order
1211
- :see: https://docs.whitebit.com/private/http-trade-v4/#create-limit-order
1212
- :see: https://docs.whitebit.com/private/http-trade-v4/#create-market-order
1213
- :see: https://docs.whitebit.com/private/http-trade-v4/#create-buy-stock-market-order
1214
- :see: https://docs.whitebit.com/private/http-trade-v4/#create-stop-limit-order
1215
- :see: https://docs.whitebit.com/private/http-trade-v4/#create-stop-market-order
1237
+
1238
+ https://docs.whitebit.com/private/http-trade-v4/#create-limit-order
1239
+ https://docs.whitebit.com/private/http-trade-v4/#create-market-order
1240
+ https://docs.whitebit.com/private/http-trade-v4/#create-buy-stock-market-order
1241
+ https://docs.whitebit.com/private/http-trade-v4/#create-stop-limit-order
1242
+ https://docs.whitebit.com/private/http-trade-v4/#create-stop-market-order
1243
+
1216
1244
  :param str symbol: unified symbol of the market to create an order in
1217
1245
  :param str type: 'market' or 'limit'
1218
1246
  :param str side: 'buy' or 'sell'
@@ -1292,7 +1320,9 @@ class whitebit(Exchange, ImplicitAPI):
1292
1320
  def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
1293
1321
  """
1294
1322
  edit a trade order
1295
- :see: https://docs.whitebit.com/private/http-trade-v4/#modify-order
1323
+
1324
+ https://docs.whitebit.com/private/http-trade-v4/#modify-order
1325
+
1296
1326
  :param str id: cancel order id
1297
1327
  :param str symbol: unified symbol of the market to create an order in
1298
1328
  :param str type: 'market' or 'limit'
@@ -1344,7 +1374,9 @@ class whitebit(Exchange, ImplicitAPI):
1344
1374
  def cancel_order(self, id: str, symbol: Str = None, params={}):
1345
1375
  """
1346
1376
  cancels an open order
1347
- :see: https://docs.whitebit.com/private/http-trade-v4/#cancel-order
1377
+
1378
+ https://docs.whitebit.com/private/http-trade-v4/#cancel-order
1379
+
1348
1380
  :param str id: order id
1349
1381
  :param str symbol: unified symbol of the market the order was made in
1350
1382
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1383,7 +1415,9 @@ class whitebit(Exchange, ImplicitAPI):
1383
1415
  def cancel_all_orders(self, symbol: Str = None, params={}):
1384
1416
  """
1385
1417
  cancel all open orders
1386
- :see: https://docs.whitebit.com/private/http-trade-v4/#cancel-all-orders
1418
+
1419
+ https://docs.whitebit.com/private/http-trade-v4/#cancel-all-orders
1420
+
1387
1421
  :param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
1388
1422
  :param dict [params]: extra parameters specific to the exchange API endpoint
1389
1423
  :param str [params.type]: market type, ['swap', 'spot']
@@ -1420,7 +1454,9 @@ class whitebit(Exchange, ImplicitAPI):
1420
1454
  def cancel_all_orders_after(self, timeout: Int, params={}):
1421
1455
  """
1422
1456
  dead man's switch, cancel all orders after the given timeout
1423
- :see: https://docs.whitebit.com/private/http-trade-v4/#sync-kill-switch-timer
1457
+
1458
+ https://docs.whitebit.com/private/http-trade-v4/#sync-kill-switch-timer
1459
+
1424
1460
  :param number timeout: time in milliseconds, 0 represents cancel the timer
1425
1461
  :param dict [params]: extra parameters specific to the exchange API endpoint
1426
1462
  :param str [params.types]: Order types value. Example: "spot", "margin", "futures" or None
@@ -1475,8 +1511,10 @@ class whitebit(Exchange, ImplicitAPI):
1475
1511
  def fetch_balance(self, params={}) -> Balances:
1476
1512
  """
1477
1513
  query for balance and get the amount of funds available for trading or funds locked in orders
1478
- :see: https://docs.whitebit.com/private/http-main-v4/#main-balance
1479
- :see: https://docs.whitebit.com/private/http-trade-v4/#trading-balance
1514
+
1515
+ https://docs.whitebit.com/private/http-main-v4/#main-balance
1516
+ https://docs.whitebit.com/private/http-trade-v4/#trading-balance
1517
+
1480
1518
  :param dict [params]: extra parameters specific to the exchange API endpoint
1481
1519
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
1482
1520
  """
@@ -1522,7 +1560,9 @@ class whitebit(Exchange, ImplicitAPI):
1522
1560
  def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1523
1561
  """
1524
1562
  fetch all unfilled currently open orders
1525
- :see: https://docs.whitebit.com/private/http-trade-v4/#query-unexecutedactive-orders
1563
+
1564
+ https://docs.whitebit.com/private/http-trade-v4/#query-unexecutedactive-orders
1565
+
1526
1566
  :param str [symbol]: unified market symbol
1527
1567
  :param int [since]: the earliest time in ms to fetch open orders for
1528
1568
  :param int [limit]: the maximum number of open order structures to retrieve
@@ -1563,7 +1603,9 @@ class whitebit(Exchange, ImplicitAPI):
1563
1603
  def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1564
1604
  """
1565
1605
  fetches information on multiple closed orders made by the user
1566
- :see: https://docs.whitebit.com/private/http-trade-v4/#query-executed-orders
1606
+
1607
+ https://docs.whitebit.com/private/http-trade-v4/#query-executed-orders
1608
+
1567
1609
  :param str symbol: unified market symbol of the market orders were made in
1568
1610
  :param int [since]: the earliest time in ms to fetch orders for
1569
1611
  :param int [limit]: the maximum number of order structures to retrieve
@@ -1719,7 +1761,9 @@ class whitebit(Exchange, ImplicitAPI):
1719
1761
  def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1720
1762
  """
1721
1763
  fetch all the trades made from a single order
1722
- :see: https://docs.whitebit.com/private/http-trade-v4/#query-executed-order-deals
1764
+
1765
+ https://docs.whitebit.com/private/http-trade-v4/#query-executed-order-deals
1766
+
1723
1767
  :param str id: order id
1724
1768
  :param str symbol: unified market symbol
1725
1769
  :param int [since]: the earliest time in ms to fetch trades for
@@ -1763,8 +1807,10 @@ class whitebit(Exchange, ImplicitAPI):
1763
1807
  def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
1764
1808
  """
1765
1809
  fetch the deposit address for a currency associated with self account
1766
- :see: https://docs.whitebit.com/private/http-main-v4/#get-fiat-deposit-address
1767
- :see: https://docs.whitebit.com/private/http-main-v4/#get-cryptocurrency-deposit-address
1810
+
1811
+ https://docs.whitebit.com/private/http-main-v4/#get-fiat-deposit-address
1812
+ https://docs.whitebit.com/private/http-main-v4/#get-cryptocurrency-deposit-address
1813
+
1768
1814
  :param str code: unified currency code
1769
1815
  :param dict [params]: extra parameters specific to the exchange API endpoint
1770
1816
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
@@ -1832,7 +1878,9 @@ class whitebit(Exchange, ImplicitAPI):
1832
1878
  def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
1833
1879
  """
1834
1880
  set the level of leverage for a market
1835
- :see: https://docs.whitebit.com/private/http-trade-v4/#change-collateral-account-leverage
1881
+
1882
+ https://docs.whitebit.com/private/http-trade-v4/#change-collateral-account-leverage
1883
+
1836
1884
  :param float leverage: the rate of leverage
1837
1885
  :param str symbol: unified market symbol
1838
1886
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1854,7 +1902,9 @@ class whitebit(Exchange, ImplicitAPI):
1854
1902
  def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
1855
1903
  """
1856
1904
  transfer currency internally between wallets on the same account
1857
- :see: https://docs.whitebit.com/private/http-main-v4/#transfer-between-main-and-trade-balances
1905
+
1906
+ https://docs.whitebit.com/private/http-main-v4/#transfer-between-main-and-trade-balances
1907
+
1858
1908
  :param str code: unified currency code
1859
1909
  :param float amount: amount to transfer
1860
1910
  :param str fromAccount: account to transfer from - main, spot, collateral
@@ -1899,7 +1949,9 @@ class whitebit(Exchange, ImplicitAPI):
1899
1949
  def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1900
1950
  """
1901
1951
  make a withdrawal
1902
- :see: https://docs.whitebit.com/private/http-main-v4/#create-withdraw-request
1952
+
1953
+ https://docs.whitebit.com/private/http-main-v4/#create-withdraw-request
1954
+
1903
1955
  :param str code: unified currency code
1904
1956
  :param float amount: the amount to withdraw
1905
1957
  :param str address: the address to withdraw to
@@ -2022,7 +2074,9 @@ class whitebit(Exchange, ImplicitAPI):
2022
2074
  def fetch_deposit(self, id: str, code: Str = None, params={}):
2023
2075
  """
2024
2076
  fetch information on a deposit
2025
- :see: https://docs.whitebit.com/private/http-main-v4/#get-depositwithdraw-history
2077
+
2078
+ https://docs.whitebit.com/private/http-main-v4/#get-depositwithdraw-history
2079
+
2026
2080
  :param str id: deposit id
2027
2081
  :param str code: not used by whitebit fetchDeposit()
2028
2082
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2084,7 +2138,9 @@ class whitebit(Exchange, ImplicitAPI):
2084
2138
  def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
2085
2139
  """
2086
2140
  fetch all deposits made to an account
2087
- :see: https://docs.whitebit.com/private/http-main-v4/#get-depositwithdraw-history
2141
+
2142
+ https://docs.whitebit.com/private/http-main-v4/#get-depositwithdraw-history
2143
+
2088
2144
  :param str code: unified currency code
2089
2145
  :param int [since]: the earliest time in ms to fetch deposits for
2090
2146
  :param int [limit]: the maximum number of deposits structures to retrieve
@@ -2147,7 +2203,9 @@ class whitebit(Exchange, ImplicitAPI):
2147
2203
  def fetch_borrow_interest(self, code: Str = None, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[BorrowInterest]:
2148
2204
  """
2149
2205
  fetch the interest owed by the user for borrowing currency for margin trading
2150
- :see: https://docs.whitebit.com/private/http-trade-v4/#open-positions
2206
+
2207
+ https://docs.whitebit.com/private/http-trade-v4/#open-positions
2208
+
2151
2209
  :param str code: unified currency code
2152
2210
  :param str symbol: unified market symbol
2153
2211
  :param int [since]: the earliest time in ms to fetch borrrow interest for
@@ -2224,7 +2282,9 @@ class whitebit(Exchange, ImplicitAPI):
2224
2282
  def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
2225
2283
  """
2226
2284
  fetch the current funding rate
2227
- :see: https://docs.whitebit.com/public/http-v4/#available-futures-markets-list
2285
+
2286
+ https://docs.whitebit.com/public/http-v4/#available-futures-markets-list
2287
+
2228
2288
  :param str symbol: unified market symbol
2229
2289
  :param dict [params]: extra parameters specific to the exchange API endpoint
2230
2290
  :returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -2237,7 +2297,9 @@ class whitebit(Exchange, ImplicitAPI):
2237
2297
  def fetch_funding_rates(self, symbols: Strings = None, params={}) -> FundingRates:
2238
2298
  """
2239
2299
  fetch the funding rate for multiple markets
2240
- :see: https://docs.whitebit.com/public/http-v4/#available-futures-markets-list
2300
+
2301
+ https://docs.whitebit.com/public/http-v4/#available-futures-markets-list
2302
+
2241
2303
  :param str[]|None symbols: list of unified market symbols
2242
2304
  :param dict [params]: extra parameters specific to the exchange API endpoint
2243
2305
  :returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rates-structure>`, indexed by market symbols
@@ -2356,13 +2418,15 @@ class whitebit(Exchange, ImplicitAPI):
2356
2418
  def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
2357
2419
  """
2358
2420
  fetch history of deposits and withdrawals
2359
- :see: https://github.com/whitebit-exchange/api-docs/blob/main/pages/private/http-main-v4.md#get-depositwithdraw-history
2421
+
2422
+ https://github.com/whitebit-exchange/api-docs/blob/main/pages/private/http-main-v4.md#get-depositwithdraw-history
2423
+
2360
2424
  :param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
2361
2425
  :param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
2362
2426
  :param int [limit]: max number of deposit/withdrawals to return, default = 50, Min: 1, Max: 100
2363
2427
  :param dict [params]: extra parameters specific to the exchange API endpoint
2364
- *
2365
- * EXCHANGE SPECIFIC PARAMETERS
2428
+
2429
+ EXCHANGE SPECIFIC PARAMETERS
2366
2430
  :param number [params.transactionMethod]: Method. Example: 1 to display deposits / 2 to display withdraws. Do not send self parameter in order to receive both deposits and withdraws.
2367
2431
  :param str [params.address]: Can be used for filtering transactions by specific address or memo.
2368
2432
  :param str[] [params.addresses]: Can be used for filtering transactions by specific addresses or memos(max: 20).