ccxt 4.1.19__py2.py3-none-any.whl → 4.1.22__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 (179) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/abstract/okcoin.py +70 -206
  3. ccxt/ace.py +12 -12
  4. ccxt/ascendex.py +5 -5
  5. ccxt/async_support/__init__.py +1 -1
  6. ccxt/async_support/ace.py +12 -12
  7. ccxt/async_support/ascendex.py +5 -5
  8. ccxt/async_support/base/exchange.py +1 -1
  9. ccxt/async_support/bigone.py +2 -2
  10. ccxt/async_support/binance.py +184 -184
  11. ccxt/async_support/bingx.py +48 -48
  12. ccxt/async_support/bitbank.py +14 -14
  13. ccxt/async_support/bitbns.py +7 -7
  14. ccxt/async_support/bitfinex.py +2 -2
  15. ccxt/async_support/bitfinex2.py +35 -35
  16. ccxt/async_support/bitflyer.py +17 -17
  17. ccxt/async_support/bitforex.py +9 -9
  18. ccxt/async_support/bitget.py +433 -215
  19. ccxt/async_support/bitmart.py +39 -39
  20. ccxt/async_support/bitmex.py +7 -7
  21. ccxt/async_support/bitopro.py +1 -1
  22. ccxt/async_support/bitpanda.py +1 -1
  23. ccxt/async_support/bitrue.py +2 -2
  24. ccxt/async_support/bitso.py +2 -2
  25. ccxt/async_support/bitstamp.py +3 -3
  26. ccxt/async_support/bitvavo.py +2 -2
  27. ccxt/async_support/bl3p.py +1 -1
  28. ccxt/async_support/btcalpha.py +7 -7
  29. ccxt/async_support/btcturk.py +1 -1
  30. ccxt/async_support/bybit.py +58 -58
  31. ccxt/async_support/cex.py +1 -1
  32. ccxt/async_support/coinbase.py +13 -13
  33. ccxt/async_support/coinbasepro.py +15 -15
  34. ccxt/async_support/coinex.py +19 -19
  35. ccxt/async_support/coinone.py +2 -2
  36. ccxt/async_support/coinsph.py +4 -4
  37. ccxt/async_support/coinspot.py +2 -2
  38. ccxt/async_support/cryptocom.py +28 -28
  39. ccxt/async_support/currencycom.py +1 -1
  40. ccxt/async_support/delta.py +26 -26
  41. ccxt/async_support/deribit.py +9 -9
  42. ccxt/async_support/digifinex.py +38 -38
  43. ccxt/async_support/exmo.py +18 -18
  44. ccxt/async_support/gate.py +59 -59
  45. ccxt/async_support/gemini.py +4 -4
  46. ccxt/async_support/hitbtc.py +6 -6
  47. ccxt/async_support/hollaex.py +2 -2
  48. ccxt/async_support/huobi.py +70 -70
  49. ccxt/async_support/indodax.py +1 -1
  50. ccxt/async_support/kraken.py +33 -33
  51. ccxt/async_support/krakenfutures.py +6 -5
  52. ccxt/async_support/kucoin.py +74 -74
  53. ccxt/async_support/kucoinfutures.py +8 -8
  54. ccxt/async_support/latoken.py +14 -14
  55. ccxt/async_support/lbank2.py +33 -33
  56. ccxt/async_support/mexc.py +22 -22
  57. ccxt/async_support/ndax.py +1 -1
  58. ccxt/async_support/novadax.py +22 -22
  59. ccxt/async_support/oceanex.py +18 -18
  60. ccxt/async_support/okcoin.py +1950 -2758
  61. ccxt/async_support/okx.py +73 -73
  62. ccxt/async_support/paymium.py +11 -11
  63. ccxt/async_support/phemex.py +26 -26
  64. ccxt/async_support/poloniex.py +30 -30
  65. ccxt/async_support/poloniexfutures.py +25 -25
  66. ccxt/async_support/probit.py +21 -21
  67. ccxt/async_support/tokocrypto.py +22 -22
  68. ccxt/async_support/upbit.py +21 -21
  69. ccxt/async_support/wavesexchange.py +2 -2
  70. ccxt/async_support/wazirx.py +14 -14
  71. ccxt/async_support/whitebit.py +6 -6
  72. ccxt/async_support/woo.py +21 -21
  73. ccxt/async_support/yobit.py +16 -16
  74. ccxt/async_support/zaif.py +10 -10
  75. ccxt/async_support/zonda.py +15 -15
  76. ccxt/base/exchange.py +2 -1
  77. ccxt/bigone.py +2 -2
  78. ccxt/binance.py +184 -184
  79. ccxt/bingx.py +48 -48
  80. ccxt/bitbank.py +14 -14
  81. ccxt/bitbns.py +7 -7
  82. ccxt/bitfinex.py +2 -2
  83. ccxt/bitfinex2.py +35 -35
  84. ccxt/bitflyer.py +17 -17
  85. ccxt/bitforex.py +9 -9
  86. ccxt/bitget.py +433 -215
  87. ccxt/bitmart.py +39 -39
  88. ccxt/bitmex.py +7 -7
  89. ccxt/bitopro.py +1 -1
  90. ccxt/bitpanda.py +1 -1
  91. ccxt/bitrue.py +2 -2
  92. ccxt/bitso.py +2 -2
  93. ccxt/bitstamp.py +3 -3
  94. ccxt/bitvavo.py +2 -2
  95. ccxt/bl3p.py +1 -1
  96. ccxt/btcalpha.py +7 -7
  97. ccxt/btcturk.py +1 -1
  98. ccxt/bybit.py +58 -58
  99. ccxt/cex.py +1 -1
  100. ccxt/coinbase.py +13 -13
  101. ccxt/coinbasepro.py +15 -15
  102. ccxt/coinex.py +19 -19
  103. ccxt/coinone.py +2 -2
  104. ccxt/coinsph.py +4 -4
  105. ccxt/coinspot.py +2 -2
  106. ccxt/cryptocom.py +28 -28
  107. ccxt/currencycom.py +1 -1
  108. ccxt/delta.py +26 -26
  109. ccxt/deribit.py +9 -9
  110. ccxt/digifinex.py +38 -38
  111. ccxt/exmo.py +18 -18
  112. ccxt/gate.py +59 -59
  113. ccxt/gemini.py +4 -4
  114. ccxt/hitbtc.py +6 -6
  115. ccxt/hollaex.py +2 -2
  116. ccxt/huobi.py +70 -70
  117. ccxt/indodax.py +1 -1
  118. ccxt/kraken.py +33 -33
  119. ccxt/krakenfutures.py +6 -5
  120. ccxt/kucoin.py +74 -74
  121. ccxt/kucoinfutures.py +8 -8
  122. ccxt/latoken.py +14 -14
  123. ccxt/lbank2.py +33 -33
  124. ccxt/mexc.py +22 -22
  125. ccxt/ndax.py +1 -1
  126. ccxt/novadax.py +22 -22
  127. ccxt/oceanex.py +18 -18
  128. ccxt/okcoin.py +1950 -2758
  129. ccxt/okx.py +73 -73
  130. ccxt/paymium.py +11 -11
  131. ccxt/phemex.py +26 -26
  132. ccxt/poloniex.py +30 -30
  133. ccxt/poloniexfutures.py +25 -25
  134. ccxt/pro/__init__.py +1 -1
  135. ccxt/pro/ascendex.py +1 -1
  136. ccxt/pro/binance.py +9 -9
  137. ccxt/pro/bingx.py +12 -12
  138. ccxt/pro/bitget.py +2 -2
  139. ccxt/pro/bitpanda.py +7 -7
  140. ccxt/pro/bitrue.py +2 -2
  141. ccxt/pro/blockchaincom.py +6 -6
  142. ccxt/pro/bybit.py +15 -15
  143. ccxt/pro/cex.py +8 -8
  144. ccxt/pro/coinbase.py +6 -6
  145. ccxt/pro/coinbasepro.py +1 -1
  146. ccxt/pro/coinex.py +8 -8
  147. ccxt/pro/cryptocom.py +12 -12
  148. ccxt/pro/deribit.py +7 -7
  149. ccxt/pro/gemini.py +4 -4
  150. ccxt/pro/hitbtc.py +17 -17
  151. ccxt/pro/huobi.py +3 -3
  152. ccxt/pro/kraken.py +6 -6
  153. ccxt/pro/krakenfutures.py +10 -10
  154. ccxt/pro/kucoin.py +85 -42
  155. ccxt/pro/kucoinfutures.py +5 -5
  156. ccxt/pro/luno.py +1 -1
  157. ccxt/pro/mexc.py +7 -7
  158. ccxt/pro/okx.py +16 -15
  159. ccxt/pro/phemex.py +15 -15
  160. ccxt/pro/poloniex.py +9 -9
  161. ccxt/pro/poloniexfutures.py +5 -5
  162. ccxt/pro/probit.py +5 -5
  163. ccxt/pro/wazirx.py +5 -5
  164. ccxt/pro/woo.py +1 -1
  165. ccxt/probit.py +21 -21
  166. ccxt/test/base/test_shared_methods.py +1 -1
  167. ccxt/tokocrypto.py +22 -22
  168. ccxt/upbit.py +21 -21
  169. ccxt/wavesexchange.py +2 -2
  170. ccxt/wazirx.py +14 -14
  171. ccxt/whitebit.py +6 -6
  172. ccxt/woo.py +21 -21
  173. ccxt/yobit.py +16 -16
  174. ccxt/zaif.py +10 -10
  175. ccxt/zonda.py +15 -15
  176. {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/METADATA +5 -9
  177. {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/RECORD +179 -179
  178. {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/WHEEL +0 -0
  179. {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/top_level.txt +0 -0
ccxt/async_support/ace.py CHANGED
@@ -174,7 +174,7 @@ class ace(Exchange, ImplicitAPI):
174
174
  async def fetch_markets(self, params={}):
175
175
  """
176
176
  retrieves data on all markets for ace
177
- see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---market-pair
177
+ :see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---market-pair
178
178
  :param dict [params]: extra parameters specific to the exchange api endpoint
179
179
  :returns dict[]: an array of objects representing market data
180
180
  """
@@ -290,7 +290,7 @@ class ace(Exchange, ImplicitAPI):
290
290
  async def fetch_ticker(self, symbol: str, params={}):
291
291
  """
292
292
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
293
- see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---trade-data
293
+ :see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---trade-data
294
294
  :param str symbol: unified symbol of the market to fetch the ticker for
295
295
  :param dict [params]: extra parameters specific to the ace api endpoint
296
296
  :returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
@@ -314,7 +314,7 @@ class ace(Exchange, ImplicitAPI):
314
314
  async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
315
315
  """
316
316
  fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
317
- see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---trade-data
317
+ :see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---trade-data
318
318
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
319
319
  :param dict [params]: extra parameters specific to the ace api endpoint
320
320
  :returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
@@ -343,7 +343,7 @@ class ace(Exchange, ImplicitAPI):
343
343
  async def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
344
344
  """
345
345
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
346
- see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-books
346
+ :see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-books
347
347
  :param str symbol: unified symbol of the market to fetch the order book for
348
348
  :param int [limit]: the maximum amount of order book entries to return
349
349
  :param dict [params]: extra parameters specific to the ace api endpoint
@@ -429,7 +429,7 @@ class ace(Exchange, ImplicitAPI):
429
429
  async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
430
430
  """
431
431
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
432
- see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---klinecandlestick-data
432
+ :see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---klinecandlestick-data
433
433
  :param str symbol: unified symbol of the market to fetch OHLCV data for
434
434
  :param str timeframe: the length of time each candle represents
435
435
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -571,7 +571,7 @@ class ace(Exchange, ImplicitAPI):
571
571
  async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
572
572
  """
573
573
  create a trade order
574
- see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---new-order
574
+ :see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---new-order
575
575
  :param str symbol: unified symbol of the market to create an order in
576
576
  :param str type: 'market' or 'limit'
577
577
  :param str side: 'buy' or 'sell'
@@ -608,7 +608,7 @@ class ace(Exchange, ImplicitAPI):
608
608
  async def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
609
609
  """
610
610
  cancels an open order
611
- see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---cancel-order
611
+ :see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---cancel-order
612
612
  :param str id: order id
613
613
  :param str symbol: unified symbol of the market the order was made in
614
614
  :param dict [params]: extra parameters specific to the ace api endpoint
@@ -632,7 +632,7 @@ class ace(Exchange, ImplicitAPI):
632
632
  async def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
633
633
  """
634
634
  fetches information on an order made by the user
635
- see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-status
635
+ :see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-status
636
636
  :param str symbol: unified symbol of the market the order was made in
637
637
  :param dict [params]: extra parameters specific to the ace api endpoint
638
638
  :returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
@@ -670,7 +670,7 @@ class ace(Exchange, ImplicitAPI):
670
670
  async def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
671
671
  """
672
672
  fetch all unfilled currently open orders
673
- see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-list
673
+ :see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-list
674
674
  :param str symbol: unified market symbol of the market orders were made in
675
675
  :param int [since]: the earliest time in ms to fetch orders for
676
676
  :param int [limit]: the maximum number of orde structures to retrieve
@@ -799,7 +799,7 @@ class ace(Exchange, ImplicitAPI):
799
799
  async def fetch_order_trades(self, id: str, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
800
800
  """
801
801
  fetch all the trades made from a single order
802
- see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-history
802
+ :see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-history
803
803
  :param str id: order id
804
804
  :param str symbol: unified market symbol
805
805
  :param int [since]: the earliest time in ms to fetch trades for
@@ -853,7 +853,7 @@ class ace(Exchange, ImplicitAPI):
853
853
  async def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
854
854
  """
855
855
  fetch all trades made by the user
856
- see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---trade-list
856
+ :see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---trade-list
857
857
  :param str symbol: unified symbol of the market to fetch trades for
858
858
  :param int [since]: timestamp in ms of the earliest trade to fetch
859
859
  :param int [limit]: the maximum amount of trades to fetch
@@ -936,7 +936,7 @@ class ace(Exchange, ImplicitAPI):
936
936
  async def fetch_balance(self, params={}):
937
937
  """
938
938
  query for balance and get the amount of funds available for trading or funds locked in orders
939
- see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---account-balance
939
+ :see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---account-balance
940
940
  :param dict [params]: extra parameters specific to the ace api endpoint
941
941
  :returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
942
942
  """
@@ -995,8 +995,8 @@ class ascendex(Exchange, ImplicitAPI):
995
995
  async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
996
996
  """
997
997
  fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
998
- see https://ascendex.github.io/ascendex-pro-api/#ticker
999
- see https://ascendex.github.io/ascendex-futures-pro-api-v2/#ticker
998
+ :see: https://ascendex.github.io/ascendex-pro-api/#ticker
999
+ :see: https://ascendex.github.io/ascendex-futures-pro-api-v2/#ticker
1000
1000
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1001
1001
  :param dict [params]: extra parameters specific to the ascendex api endpoint
1002
1002
  :returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
@@ -1156,7 +1156,7 @@ class ascendex(Exchange, ImplicitAPI):
1156
1156
  async def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
1157
1157
  """
1158
1158
  get the list of most recent trades for a particular symbol
1159
- see https://ascendex.github.io/ascendex-pro-api/#market-trades
1159
+ :see: https://ascendex.github.io/ascendex-pro-api/#market-trades
1160
1160
  :param str symbol: unified symbol of the market to fetch trades for
1161
1161
  :param int [since]: timestamp in ms of the earliest trade to fetch
1162
1162
  :param int [limit]: the maximum amount of trades to fetch
@@ -1783,7 +1783,7 @@ class ascendex(Exchange, ImplicitAPI):
1783
1783
  async def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
1784
1784
  """
1785
1785
  fetches information on multiple closed orders made by the user
1786
- see https://ascendex.github.io/ascendex-pro-api/#list-history-orders-v2
1786
+ :see: https://ascendex.github.io/ascendex-pro-api/#list-history-orders-v2
1787
1787
  :param str symbol: unified market symbol of the market orders were made in
1788
1788
  :param int [since]: the earliest time in ms to fetch orders for
1789
1789
  :param int [limit]: the maximum number of orde structures to retrieve
@@ -2826,7 +2826,7 @@ class ascendex(Exchange, ImplicitAPI):
2826
2826
  async def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
2827
2827
  """
2828
2828
  fetch deposit and withdraw fees
2829
- see https://ascendex.github.io/ascendex-pro-api/#list-all-assets
2829
+ :see: https://ascendex.github.io/ascendex-pro-api/#list-all-assets
2830
2830
  :param str[]|None codes: list of unified currency codes
2831
2831
  :param dict [params]: extra parameters specific to the ascendex api endpoint
2832
2832
  :returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
@@ -2,7 +2,7 @@
2
2
 
3
3
  # -----------------------------------------------------------------------------
4
4
 
5
- __version__ = '4.1.19'
5
+ __version__ = '4.1.22'
6
6
 
7
7
  # -----------------------------------------------------------------------------
8
8
 
@@ -1129,7 +1129,7 @@ class bigone(Exchange, ImplicitAPI):
1129
1129
  async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
1130
1130
  """
1131
1131
  create a trade order
1132
- see https://open.big.one/docs/spot_orders.html#create-order
1132
+ :see: https://open.big.one/docs/spot_orders.html#create-order
1133
1133
  :param str symbol: unified symbol of the market to create an order in
1134
1134
  :param str type: 'market' or 'limit'
1135
1135
  :param str side: 'buy' or 'sell'
@@ -1687,7 +1687,7 @@ class bigone(Exchange, ImplicitAPI):
1687
1687
  async def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
1688
1688
  """
1689
1689
  transfer currency internally between wallets on the same account
1690
- see https://open.big.one/docs/spot_transfer.html#transfer-of-user
1690
+ :see: https://open.big.one/docs/spot_transfer.html#transfer-of-user
1691
1691
  :param str code: unified currency code
1692
1692
  :param float amount: amount to transfer
1693
1693
  :param str fromAccount: 'SPOT', 'FUND', or 'CONTRACT'