ccxt 4.3.54__py2.py3-none-any.whl → 4.3.55__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 (254) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/abstract/kucoin.py +3 -0
  3. ccxt/abstract/kucoinfutures.py +3 -0
  4. ccxt/ace.py +1 -1
  5. ccxt/alpaca.py +1 -1
  6. ccxt/ascendex.py +6 -4
  7. ccxt/async_support/__init__.py +1 -1
  8. ccxt/async_support/ace.py +1 -1
  9. ccxt/async_support/alpaca.py +1 -1
  10. ccxt/async_support/ascendex.py +6 -4
  11. ccxt/async_support/base/exchange.py +1 -1
  12. ccxt/async_support/bigone.py +1 -1
  13. ccxt/async_support/binance.py +6 -6
  14. ccxt/async_support/bingx.py +3 -3
  15. ccxt/async_support/bit2c.py +1 -1
  16. ccxt/async_support/bitbank.py +1 -1
  17. ccxt/async_support/bitbns.py +1 -1
  18. ccxt/async_support/bitfinex.py +1 -1
  19. ccxt/async_support/bitfinex2.py +1 -1
  20. ccxt/async_support/bitflyer.py +1 -1
  21. ccxt/async_support/bitget.py +2 -2
  22. ccxt/async_support/bithumb.py +1 -1
  23. ccxt/async_support/bitmart.py +3 -3
  24. ccxt/async_support/bitmex.py +1 -1
  25. ccxt/async_support/bitopro.py +1 -1
  26. ccxt/async_support/bitrue.py +1 -1
  27. ccxt/async_support/bitso.py +1 -1
  28. ccxt/async_support/bitstamp.py +1 -1
  29. ccxt/async_support/bitteam.py +1 -1
  30. ccxt/async_support/bitvavo.py +2 -2
  31. ccxt/async_support/bl3p.py +1 -1
  32. ccxt/async_support/blockchaincom.py +28 -28
  33. ccxt/async_support/blofin.py +1 -1
  34. ccxt/async_support/btcalpha.py +4 -11
  35. ccxt/async_support/btcbox.py +1 -1
  36. ccxt/async_support/btcmarkets.py +1 -1
  37. ccxt/async_support/btcturk.py +1 -1
  38. ccxt/async_support/bybit.py +2 -2
  39. ccxt/async_support/cex.py +2 -2
  40. ccxt/async_support/coinbase.py +33 -33
  41. ccxt/async_support/coinbaseexchange.py +1 -1
  42. ccxt/async_support/coinbaseinternational.py +1 -1
  43. ccxt/async_support/coincheck.py +1 -1
  44. ccxt/async_support/coinex.py +2 -2
  45. ccxt/async_support/coinlist.py +2 -2
  46. ccxt/async_support/coinmate.py +1 -1
  47. ccxt/async_support/coinmetro.py +1 -1
  48. ccxt/async_support/coinone.py +1 -1
  49. ccxt/async_support/coinsph.py +1 -1
  50. ccxt/async_support/coinspot.py +1 -1
  51. ccxt/async_support/cryptocom.py +1 -1
  52. ccxt/async_support/currencycom.py +1 -1
  53. ccxt/async_support/delta.py +2 -2
  54. ccxt/async_support/deribit.py +4 -4
  55. ccxt/async_support/digifinex.py +2 -2
  56. ccxt/async_support/exmo.py +2 -2
  57. ccxt/async_support/gate.py +2 -2
  58. ccxt/async_support/gemini.py +1 -1
  59. ccxt/async_support/hitbtc.py +1 -1
  60. ccxt/async_support/hollaex.py +1 -1
  61. ccxt/async_support/htx.py +3 -3
  62. ccxt/async_support/huobijp.py +1 -1
  63. ccxt/async_support/hyperliquid.py +2 -2
  64. ccxt/async_support/idex.py +1 -1
  65. ccxt/async_support/independentreserve.py +1 -1
  66. ccxt/async_support/indodax.py +1 -1
  67. ccxt/async_support/kraken.py +2 -2
  68. ccxt/async_support/kucoin.py +127 -46
  69. ccxt/async_support/kucoinfutures.py +1 -1
  70. ccxt/async_support/kuna.py +1 -1
  71. ccxt/async_support/latoken.py +1 -1
  72. ccxt/async_support/lbank.py +1 -1
  73. ccxt/async_support/luno.py +1 -1
  74. ccxt/async_support/lykke.py +1 -1
  75. ccxt/async_support/mercado.py +1 -1
  76. ccxt/async_support/mexc.py +1 -1
  77. ccxt/async_support/ndax.py +1 -1
  78. ccxt/async_support/novadax.py +1 -1
  79. ccxt/async_support/oceanex.py +1 -1
  80. ccxt/async_support/okcoin.py +1 -1
  81. ccxt/async_support/okx.py +3 -3
  82. ccxt/async_support/onetrading.py +1 -1
  83. ccxt/async_support/oxfun.py +2 -2
  84. ccxt/async_support/p2b.py +1 -1
  85. ccxt/async_support/paymium.py +1 -1
  86. ccxt/async_support/phemex.py +2 -2
  87. ccxt/async_support/poloniex.py +4 -3
  88. ccxt/async_support/poloniexfutures.py +1 -1
  89. ccxt/async_support/probit.py +1 -1
  90. ccxt/async_support/timex.py +1 -1
  91. ccxt/async_support/tokocrypto.py +1 -1
  92. ccxt/async_support/tradeogre.py +1 -1
  93. ccxt/async_support/upbit.py +1 -1
  94. ccxt/async_support/vertex.py +2 -2
  95. ccxt/async_support/wavesexchange.py +1 -1
  96. ccxt/async_support/wazirx.py +1 -1
  97. ccxt/async_support/whitebit.py +2 -2
  98. ccxt/async_support/woo.py +5 -5
  99. ccxt/async_support/woofipro.py +3 -3
  100. ccxt/async_support/yobit.py +1 -1
  101. ccxt/async_support/zaif.py +1 -1
  102. ccxt/async_support/zonda.py +1 -1
  103. ccxt/base/exchange.py +1 -1
  104. ccxt/base/types.py +4 -1
  105. ccxt/bigone.py +1 -1
  106. ccxt/binance.py +6 -6
  107. ccxt/bingx.py +3 -3
  108. ccxt/bit2c.py +1 -1
  109. ccxt/bitbank.py +1 -1
  110. ccxt/bitbns.py +1 -1
  111. ccxt/bitfinex.py +1 -1
  112. ccxt/bitfinex2.py +1 -1
  113. ccxt/bitflyer.py +1 -1
  114. ccxt/bitget.py +2 -2
  115. ccxt/bithumb.py +1 -1
  116. ccxt/bitmart.py +3 -3
  117. ccxt/bitmex.py +1 -1
  118. ccxt/bitopro.py +1 -1
  119. ccxt/bitrue.py +1 -1
  120. ccxt/bitso.py +1 -1
  121. ccxt/bitstamp.py +1 -1
  122. ccxt/bitteam.py +1 -1
  123. ccxt/bitvavo.py +2 -2
  124. ccxt/bl3p.py +1 -1
  125. ccxt/blockchaincom.py +28 -28
  126. ccxt/blofin.py +1 -1
  127. ccxt/btcalpha.py +4 -11
  128. ccxt/btcbox.py +1 -1
  129. ccxt/btcmarkets.py +1 -1
  130. ccxt/btcturk.py +1 -1
  131. ccxt/bybit.py +2 -2
  132. ccxt/cex.py +2 -2
  133. ccxt/coinbase.py +33 -33
  134. ccxt/coinbaseexchange.py +1 -1
  135. ccxt/coinbaseinternational.py +1 -1
  136. ccxt/coincheck.py +1 -1
  137. ccxt/coinex.py +2 -2
  138. ccxt/coinlist.py +2 -2
  139. ccxt/coinmate.py +1 -1
  140. ccxt/coinmetro.py +1 -1
  141. ccxt/coinone.py +1 -1
  142. ccxt/coinsph.py +1 -1
  143. ccxt/coinspot.py +1 -1
  144. ccxt/cryptocom.py +1 -1
  145. ccxt/currencycom.py +1 -1
  146. ccxt/delta.py +2 -2
  147. ccxt/deribit.py +4 -4
  148. ccxt/digifinex.py +2 -2
  149. ccxt/exmo.py +2 -2
  150. ccxt/gate.py +2 -2
  151. ccxt/gemini.py +1 -1
  152. ccxt/hitbtc.py +1 -1
  153. ccxt/hollaex.py +1 -1
  154. ccxt/htx.py +3 -3
  155. ccxt/huobijp.py +1 -1
  156. ccxt/hyperliquid.py +2 -2
  157. ccxt/idex.py +1 -1
  158. ccxt/independentreserve.py +1 -1
  159. ccxt/indodax.py +1 -1
  160. ccxt/kraken.py +2 -2
  161. ccxt/kucoin.py +127 -46
  162. ccxt/kucoinfutures.py +1 -1
  163. ccxt/kuna.py +1 -1
  164. ccxt/latoken.py +1 -1
  165. ccxt/lbank.py +1 -1
  166. ccxt/luno.py +1 -1
  167. ccxt/lykke.py +1 -1
  168. ccxt/mercado.py +1 -1
  169. ccxt/mexc.py +1 -1
  170. ccxt/ndax.py +1 -1
  171. ccxt/novadax.py +1 -1
  172. ccxt/oceanex.py +1 -1
  173. ccxt/okcoin.py +1 -1
  174. ccxt/okx.py +3 -3
  175. ccxt/onetrading.py +1 -1
  176. ccxt/oxfun.py +2 -2
  177. ccxt/p2b.py +1 -1
  178. ccxt/paymium.py +1 -1
  179. ccxt/phemex.py +2 -2
  180. ccxt/poloniex.py +4 -3
  181. ccxt/poloniexfutures.py +1 -1
  182. ccxt/pro/__init__.py +1 -1
  183. ccxt/pro/binance.py +2 -2
  184. ccxt/pro/bitvavo.py +2 -2
  185. ccxt/pro/bybit.py +2 -2
  186. ccxt/pro/cex.py +3 -3
  187. ccxt/pro/coinbase.py +22 -1
  188. ccxt/pro/cryptocom.py +1 -1
  189. ccxt/pro/gate.py +2 -2
  190. ccxt/pro/hitbtc.py +1 -1
  191. ccxt/pro/kraken.py +2 -2
  192. ccxt/pro/kucoin.py +2 -2
  193. ccxt/pro/okx.py +2 -2
  194. ccxt/pro/oxfun.py +2 -2
  195. ccxt/pro/poloniex.py +1 -1
  196. ccxt/pro/vertex.py +1 -1
  197. ccxt/probit.py +1 -1
  198. ccxt/test/{test_async.py → tests_async.py} +27 -280
  199. ccxt/test/tests_helpers.py +284 -0
  200. ccxt/test/tests_init.py +35 -0
  201. ccxt/test/{test_sync.py → tests_sync.py} +27 -282
  202. ccxt/timex.py +1 -1
  203. ccxt/tokocrypto.py +1 -1
  204. ccxt/tradeogre.py +1 -1
  205. ccxt/upbit.py +1 -1
  206. ccxt/vertex.py +2 -2
  207. ccxt/wavesexchange.py +1 -1
  208. ccxt/wazirx.py +1 -1
  209. ccxt/whitebit.py +2 -2
  210. ccxt/woo.py +5 -5
  211. ccxt/woofipro.py +3 -3
  212. ccxt/yobit.py +1 -1
  213. ccxt/zaif.py +1 -1
  214. ccxt/zonda.py +1 -1
  215. {ccxt-4.3.54.dist-info → ccxt-4.3.55.dist-info}/METADATA +5 -5
  216. {ccxt-4.3.54.dist-info → ccxt-4.3.55.dist-info}/RECORD +219 -252
  217. ccxt/test/base/__init__.py +0 -29
  218. ccxt/test/base/test_account.py +0 -26
  219. ccxt/test/base/test_balance.py +0 -56
  220. ccxt/test/base/test_borrow_interest.py +0 -35
  221. ccxt/test/base/test_borrow_rate.py +0 -32
  222. ccxt/test/base/test_calculate_fee.py +0 -51
  223. ccxt/test/base/test_crypto.py +0 -127
  224. ccxt/test/base/test_currency.py +0 -76
  225. ccxt/test/base/test_datetime.py +0 -109
  226. ccxt/test/base/test_decimal_to_precision.py +0 -392
  227. ccxt/test/base/test_deep_extend.py +0 -68
  228. ccxt/test/base/test_deposit_withdrawal.py +0 -50
  229. ccxt/test/base/test_exchange_datetime_functions.py +0 -76
  230. ccxt/test/base/test_funding_rate_history.py +0 -29
  231. ccxt/test/base/test_last_price.py +0 -31
  232. ccxt/test/base/test_ledger_entry.py +0 -45
  233. ccxt/test/base/test_ledger_item.py +0 -48
  234. ccxt/test/base/test_leverage_tier.py +0 -33
  235. ccxt/test/base/test_liquidation.py +0 -50
  236. ccxt/test/base/test_margin_mode.py +0 -24
  237. ccxt/test/base/test_margin_modification.py +0 -35
  238. ccxt/test/base/test_market.py +0 -193
  239. ccxt/test/base/test_number.py +0 -411
  240. ccxt/test/base/test_ohlcv.py +0 -33
  241. ccxt/test/base/test_open_interest.py +0 -32
  242. ccxt/test/base/test_order.py +0 -64
  243. ccxt/test/base/test_order_book.py +0 -69
  244. ccxt/test/base/test_position.py +0 -60
  245. ccxt/test/base/test_shared_methods.py +0 -353
  246. ccxt/test/base/test_status.py +0 -24
  247. ccxt/test/base/test_throttle.py +0 -126
  248. ccxt/test/base/test_ticker.py +0 -92
  249. ccxt/test/base/test_trade.py +0 -47
  250. ccxt/test/base/test_trading_fee.py +0 -26
  251. ccxt/test/base/test_transaction.py +0 -39
  252. {ccxt-4.3.54.dist-info → ccxt-4.3.55.dist-info}/LICENSE.txt +0 -0
  253. {ccxt-4.3.54.dist-info → ccxt-4.3.55.dist-info}/WHEEL +0 -0
  254. {ccxt-4.3.54.dist-info → ccxt-4.3.55.dist-info}/top_level.txt +0 -0
@@ -1221,7 +1221,7 @@ class wavesexchange(Exchange, ImplicitAPI):
1221
1221
  :param str type: 'market' or 'limit'
1222
1222
  :param str side: 'buy' or 'sell'
1223
1223
  :param float amount: how much of currency you want to trade in units of base currency
1224
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1224
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1225
1225
  :param dict [params]: extra parameters specific to the exchange API endpoint
1226
1226
  :param float [params.stopPrice]: The price at which a stop order is triggered at
1227
1227
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -812,7 +812,7 @@ class wazirx(Exchange, ImplicitAPI):
812
812
  :param str type: 'market' or 'limit'
813
813
  :param str side: 'buy' or 'sell'
814
814
  :param float amount: how much of currency you want to trade in units of base currency
815
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
815
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
816
816
  :param dict [params]: extra parameters specific to the exchange API endpoint
817
817
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
818
818
  """
@@ -1200,7 +1200,7 @@ class whitebit(Exchange, ImplicitAPI):
1200
1200
  :param str type: 'market' or 'limit'
1201
1201
  :param str side: 'buy' or 'sell'
1202
1202
  :param float amount: how much of currency you want to trade in units of base currency
1203
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1203
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1204
1204
  :param dict [params]: extra parameters specific to the exchange API endpoint
1205
1205
  :param float [params.cost]: *market orders only* the cost of the order in units of the base currency
1206
1206
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -1281,7 +1281,7 @@ class whitebit(Exchange, ImplicitAPI):
1281
1281
  :param str type: 'market' or 'limit'
1282
1282
  :param str side: 'buy' or 'sell'
1283
1283
  :param float amount: how much of currency you want to trade in units of base currency
1284
- :param float price: the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
1284
+ :param float price: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1285
1285
  :param dict [params]: extra parameters specific to the exchange API endpoint
1286
1286
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
1287
1287
  """
ccxt/async_support/woo.py CHANGED
@@ -902,7 +902,7 @@ class woo(Exchange, ImplicitAPI):
902
902
  :param str type: 'market' or 'limit'
903
903
  :param str side: 'buy' or 'sell'
904
904
  :param float amount: how much of currency you want to trade in units of base currency
905
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
905
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
906
906
  :param dict [params]: extra parameters specific to the exchange API endpoint
907
907
  :param float [params.triggerPrice]: The price a trigger order is triggered at
908
908
  :param dict [params.takeProfit]: *takeProfit object in params* containing the triggerPrice at which the attached take profit order will be triggered(perpetual swap markets only)
@@ -1074,7 +1074,7 @@ class woo(Exchange, ImplicitAPI):
1074
1074
  :param str type: 'market' or 'limit'
1075
1075
  :param str side: 'buy' or 'sell'
1076
1076
  :param float amount: how much of currency you want to trade in units of base currency
1077
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1077
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1078
1078
  :param dict [params]: extra parameters specific to the exchange API endpoint
1079
1079
  :param float [params.triggerPrice]: The price a trigger order is triggered at
1080
1080
  :param float [params.stopLossPrice]: price to trigger stop-loss orders
@@ -1504,8 +1504,8 @@ class woo(Exchange, ImplicitAPI):
1504
1504
  side = self.safe_string_lower(order, 'side')
1505
1505
  filled = self.omit_zero(self.safe_value_2(order, 'executed', 'totalExecutedQuantity'))
1506
1506
  average = self.omit_zero(self.safe_string_2(order, 'average_executed_price', 'averageExecutedPrice'))
1507
- remaining = Precise.string_sub(cost, filled)
1508
- fee = self.safe_value_2(order, 'total_fee', 'totalFee')
1507
+ # remaining = Precise.string_sub(cost, filled)
1508
+ fee = self.safe_number_2(order, 'total_fee', 'totalFee')
1509
1509
  feeCurrency = self.safe_string_2(order, 'fee_asset', 'feeAsset')
1510
1510
  transactions = self.safe_value(order, 'Transactions')
1511
1511
  stopPrice = self.safe_number(order, 'triggerPrice')
@@ -1544,7 +1544,7 @@ class woo(Exchange, ImplicitAPI):
1544
1544
  'average': average,
1545
1545
  'amount': amount,
1546
1546
  'filled': filled,
1547
- 'remaining': remaining, # TO_DO
1547
+ 'remaining': None, # TO_DO
1548
1548
  'cost': cost,
1549
1549
  'trades': transactions,
1550
1550
  'fee': {
@@ -1196,7 +1196,7 @@ class woofipro(Exchange, ImplicitAPI):
1196
1196
  :param str type: 'market' or 'limit'
1197
1197
  :param str side: 'buy' or 'sell'
1198
1198
  :param float amount: how much you want to trade in units of the base currency
1199
- :param float [price]: the price that the order is to be fullfilled, in units of the quote currency, ignored in market orders
1199
+ :param float [price]: the price that the order is to be fulfilled, in units of the quote currency, ignored in market orders
1200
1200
  :param dict [params]: extra parameters specific to the exchange API endpoint
1201
1201
  :returns dict: request to be sent to the exchange
1202
1202
  """
@@ -1283,7 +1283,7 @@ class woofipro(Exchange, ImplicitAPI):
1283
1283
  :param str type: 'market' or 'limit'
1284
1284
  :param str side: 'buy' or 'sell'
1285
1285
  :param float amount: how much of currency you want to trade in units of base currency
1286
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1286
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1287
1287
  :param dict [params]: extra parameters specific to the exchange API endpoint
1288
1288
  :param float [params.triggerPrice]: The price a trigger order is triggered at
1289
1289
  :param dict [params.takeProfit]: *takeProfit object in params* containing the triggerPrice at which the attached take profit order will be triggered(perpetual swap markets only)
@@ -1400,7 +1400,7 @@ class woofipro(Exchange, ImplicitAPI):
1400
1400
  :param str type: 'market' or 'limit'
1401
1401
  :param str side: 'buy' or 'sell'
1402
1402
  :param float amount: how much of currency you want to trade in units of base currency
1403
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1403
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1404
1404
  :param dict [params]: extra parameters specific to the exchange API endpoint
1405
1405
  :param float [params.triggerPrice]: The price a trigger order is triggered at
1406
1406
  :param float [params.stopLossPrice]: price to trigger stop-loss orders
@@ -760,7 +760,7 @@ class yobit(Exchange, ImplicitAPI):
760
760
  :param str type: must be 'limit'
761
761
  :param str side: 'buy' or 'sell'
762
762
  :param float amount: how much of currency you want to trade in units of base currency
763
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
763
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
764
764
  :param dict [params]: extra parameters specific to the exchange API endpoint
765
765
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
766
766
  """
@@ -429,7 +429,7 @@ class zaif(Exchange, ImplicitAPI):
429
429
  :param str type: must be 'limit'
430
430
  :param str side: 'buy' or 'sell'
431
431
  :param float amount: how much of currency you want to trade in units of base currency
432
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
432
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
433
433
  :param dict [params]: extra parameters specific to the exchange API endpoint
434
434
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
435
435
  """
@@ -1323,7 +1323,7 @@ class zonda(Exchange, ImplicitAPI):
1323
1323
  :param str type: 'market' or 'limit'
1324
1324
  :param str side: 'buy' or 'sell'
1325
1325
  :param float amount: how much of currency you want to trade in units of base currency
1326
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1326
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1327
1327
  :param dict [params]: extra parameters specific to the exchange API endpoint
1328
1328
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
1329
1329
  """
ccxt/base/exchange.py CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.3.54'
7
+ __version__ = '4.3.55'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
ccxt/base/types.py CHANGED
@@ -353,6 +353,9 @@ class Option(TypedDict):
353
353
 
354
354
  OptionChain = Dict[str, Option]
355
355
 
356
+ class MarketMarginMode(TypedDict):
357
+ cross: bool
358
+ isolated: bool
356
359
 
357
360
  class MarketInterface(TypedDict):
358
361
  info: Dict[str, Any]
@@ -367,6 +370,7 @@ class MarketInterface(TypedDict):
367
370
  subType: Str
368
371
  spot: bool
369
372
  margin: bool
373
+ marginMode: MarketMarginMode
370
374
  swap: bool
371
375
  future: bool
372
376
  option: bool
@@ -389,7 +393,6 @@ class MarketInterface(TypedDict):
389
393
  limits: Any
390
394
  created: Int
391
395
 
392
-
393
396
  class Limit(TypedDict):
394
397
  min: Num
395
398
  max: Num
ccxt/bigone.py CHANGED
@@ -1397,7 +1397,7 @@ class bigone(Exchange, ImplicitAPI):
1397
1397
  :param str type: 'market' or 'limit'
1398
1398
  :param str side: 'buy' or 'sell'
1399
1399
  :param float amount: how much of currency you want to trade in units of base currency
1400
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1400
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1401
1401
  :param dict [params]: extra parameters specific to the exchange API endpoint
1402
1402
  :param float [params.triggerPrice]: the price at which a trigger order is triggered at
1403
1403
  :param bool [params.postOnly]: if True, the order will only be posted to the order book and not executed immediately
ccxt/binance.py CHANGED
@@ -4574,7 +4574,7 @@ class binance(Exchange, ImplicitAPI):
4574
4574
  :param str type: 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP'
4575
4575
  :param str side: 'buy' or 'sell'
4576
4576
  :param float amount: how much of currency you want to trade in units of base currency
4577
- :param float [price]: the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
4577
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
4578
4578
  :param str [params.marginMode]: 'cross' or 'isolated', for spot margin trading
4579
4579
  :param dict [params]: extra parameters specific to the exchange API endpoint
4580
4580
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -4636,7 +4636,7 @@ class binance(Exchange, ImplicitAPI):
4636
4636
  :param str type: 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP'
4637
4637
  :param str side: 'buy' or 'sell'
4638
4638
  :param float amount: how much of currency you want to trade in units of base currency
4639
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
4639
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
4640
4640
  :param dict params: extra parameters specific to the exchange API endpoint
4641
4641
  :param str [params.marginMode]: 'cross' or 'isolated', for spot margin trading
4642
4642
  :returns dict: request to be sent to the exchange
@@ -4760,7 +4760,7 @@ class binance(Exchange, ImplicitAPI):
4760
4760
  :param str type: 'market' or 'limit'
4761
4761
  :param str side: 'buy' or 'sell'
4762
4762
  :param float amount: how much of currency you want to trade in units of base currency
4763
- :param float [price]: the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
4763
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
4764
4764
  :param dict [params]: extra parameters specific to the exchange API endpoint
4765
4765
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
4766
4766
  """
@@ -4812,7 +4812,7 @@ class binance(Exchange, ImplicitAPI):
4812
4812
  :param str type: 'market' or 'limit'
4813
4813
  :param str side: 'buy' or 'sell'
4814
4814
  :param float amount: how much of currency you want to trade in units of base currency
4815
- :param float [price]: the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
4815
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
4816
4816
  :param dict [params]: extra parameters specific to the exchange API endpoint
4817
4817
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
4818
4818
  """
@@ -5490,7 +5490,7 @@ class binance(Exchange, ImplicitAPI):
5490
5490
  :param str type: 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP'
5491
5491
  :param str side: 'buy' or 'sell'
5492
5492
  :param float amount: how much of you want to trade in units of the base currency
5493
- :param float [price]: the price that the order is to be fullfilled, in units of the quote currency, ignored in market orders
5493
+ :param float [price]: the price that the order is to be fulfilled, in units of the quote currency, ignored in market orders
5494
5494
  :param dict [params]: extra parameters specific to the exchange API endpoint
5495
5495
  :param str [params.reduceOnly]: for swap and future reduceOnly is a string 'true' or 'false' that cant be sent with close position set to True or in hedge mode. For spot margin and option reduceOnly is a boolean.
5496
5496
  :param str [params.marginMode]: 'cross' or 'isolated', for spot margin trading
@@ -5570,7 +5570,7 @@ class binance(Exchange, ImplicitAPI):
5570
5570
  :param str type: 'market' or 'limit'
5571
5571
  :param str side: 'buy' or 'sell'
5572
5572
  :param float amount: how much you want to trade in units of the base currency
5573
- :param float [price]: the price that the order is to be fullfilled, in units of the quote currency, ignored in market orders
5573
+ :param float [price]: the price that the order is to be fulfilled, in units of the quote currency, ignored in market orders
5574
5574
  :param dict [params]: extra parameters specific to the exchange API endpoint
5575
5575
  :returns dict: request to be sent to the exchange
5576
5576
  """
ccxt/bingx.py CHANGED
@@ -1763,7 +1763,7 @@ class bingx(Exchange, ImplicitAPI):
1763
1763
  :param str type: 'market' or 'limit'
1764
1764
  :param str side: 'buy' or 'sell'
1765
1765
  :param float amount: how much you want to trade in units of the base currency
1766
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1766
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1767
1767
  :param dict [params]: extra parameters specific to the exchange API endpoint
1768
1768
  :returns dict: request to be sent to the exchange
1769
1769
  """
@@ -1921,7 +1921,7 @@ class bingx(Exchange, ImplicitAPI):
1921
1921
  :param str type: 'market' or 'limit'
1922
1922
  :param str side: 'buy' or 'sell'
1923
1923
  :param float amount: how much you want to trade in units of the base currency
1924
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1924
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1925
1925
  :param dict [params]: extra parameters specific to the exchange API endpoint
1926
1926
  :param str [params.clientOrderId]: a unique id for the order
1927
1927
  :param bool [params.postOnly]: True to place a post only order
@@ -4097,7 +4097,7 @@ class bingx(Exchange, ImplicitAPI):
4097
4097
  :param str type: 'market' or 'limit'
4098
4098
  :param str side: 'buy' or 'sell'
4099
4099
  :param float amount: how much of the currency you want to trade in units of the base currency
4100
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
4100
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
4101
4101
  :param dict [params]: extra parameters specific to the exchange API endpoint
4102
4102
  :param str [params.stopPrice]: Trigger price used for TAKE_STOP_LIMIT, TAKE_STOP_MARKET, TRIGGER_LIMIT, TRIGGER_MARKET order types.
4103
4103
  :param dict [params.takeProfit]: *takeProfit object in params* containing the triggerPrice at which the attached take profit order will be triggered
ccxt/bit2c.py CHANGED
@@ -414,7 +414,7 @@ class bit2c(Exchange, ImplicitAPI):
414
414
  :param str type: 'market' or 'limit'
415
415
  :param str side: 'buy' or 'sell'
416
416
  :param float amount: how much of currency you want to trade in units of base currency
417
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
417
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
418
418
  :param dict [params]: extra parameters specific to the exchange API endpoint
419
419
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
420
420
  """
ccxt/bitbank.py CHANGED
@@ -635,7 +635,7 @@ class bitbank(Exchange, ImplicitAPI):
635
635
  :param str type: 'market' or 'limit'
636
636
  :param str side: 'buy' or 'sell'
637
637
  :param float amount: how much of currency you want to trade in units of base currency
638
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
638
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
639
639
  :param dict [params]: extra parameters specific to the exchange API endpoint
640
640
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
641
641
  """
ccxt/bitbns.py CHANGED
@@ -573,7 +573,7 @@ class bitbns(Exchange, ImplicitAPI):
573
573
  :param str type: 'market' or 'limit'
574
574
  :param str side: 'buy' or 'sell'
575
575
  :param float amount: how much of currency you want to trade in units of base currency
576
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
576
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
577
577
  :param dict [params]: extra parameters specific to the exchange API endpoint
578
578
  :param float [params.triggerPrice]: the price at which a trigger order is triggered at
579
579
  *
ccxt/bitfinex.py CHANGED
@@ -1049,7 +1049,7 @@ class bitfinex(Exchange, ImplicitAPI):
1049
1049
  :param str type: 'market' or 'limit'
1050
1050
  :param str side: 'buy' or 'sell'
1051
1051
  :param float amount: how much of currency you want to trade in units of base currency
1052
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1052
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1053
1053
  :param dict [params]: extra parameters specific to the exchange API endpoint
1054
1054
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
1055
1055
  """
ccxt/bitfinex2.py CHANGED
@@ -3447,7 +3447,7 @@ class bitfinex2(Exchange, ImplicitAPI):
3447
3447
  :param str type: 'market' or 'limit'
3448
3448
  :param str side: 'buy' or 'sell'
3449
3449
  :param float amount: how much you want to trade in units of the base currency
3450
- :param float [price]: the price that the order is to be fullfilled, in units of the quote currency, ignored in market orders
3450
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
3451
3451
  :param dict [params]: extra parameters specific to the exchange API endpoint
3452
3452
  :param float [params.stopPrice]: the price that triggers a trigger order
3453
3453
  :param boolean [params.postOnly]: set to True if you want to make a post only order
ccxt/bitflyer.py CHANGED
@@ -530,7 +530,7 @@ class bitflyer(Exchange, ImplicitAPI):
530
530
  :param str type: 'market' or 'limit'
531
531
  :param str side: 'buy' or 'sell'
532
532
  :param float amount: how much of currency you want to trade in units of base currency
533
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
533
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
534
534
  :param dict [params]: extra parameters specific to the exchange API endpoint
535
535
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
536
536
  """
ccxt/bitget.py CHANGED
@@ -3958,7 +3958,7 @@ class bitget(Exchange, ImplicitAPI):
3958
3958
  :param str type: 'market' or 'limit'
3959
3959
  :param str side: 'buy' or 'sell'
3960
3960
  :param float amount: how much you want to trade in units of the base currency
3961
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
3961
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
3962
3962
  :param dict [params]: extra parameters specific to the exchange API endpoint
3963
3963
  :param float [params.cost]: *spot only* how much you want to trade in units of the quote currency, for market buy orders only
3964
3964
  :param float [params.triggerPrice]: *swap only* The price at which a trigger order is triggered at
@@ -4314,7 +4314,7 @@ class bitget(Exchange, ImplicitAPI):
4314
4314
  :param str type: 'market' or 'limit'
4315
4315
  :param str side: 'buy' or 'sell'
4316
4316
  :param float amount: how much you want to trade in units of the base currency
4317
- :param float [price]: the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
4317
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
4318
4318
  :param dict [params]: extra parameters specific to the exchange API endpoint
4319
4319
  :param float [params.triggerPrice]: the price that a trigger order is triggered at
4320
4320
  :param float [params.stopLossPrice]: *swap only* The price at which a stop loss order is triggered at
ccxt/bithumb.py CHANGED
@@ -677,7 +677,7 @@ class bithumb(Exchange, ImplicitAPI):
677
677
  :param str type: 'market' or 'limit'
678
678
  :param str side: 'buy' or 'sell'
679
679
  :param float amount: how much of currency you want to trade in units of base currency
680
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
680
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
681
681
  :param dict [params]: extra parameters specific to the exchange API endpoint
682
682
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
683
683
  """
ccxt/bitmart.py CHANGED
@@ -2322,7 +2322,7 @@ class bitmart(Exchange, ImplicitAPI):
2322
2322
  :param str type: 'market', 'limit' or 'trailing' for swap markets only
2323
2323
  :param str side: 'buy' or 'sell'
2324
2324
  :param float amount: how much of currency you want to trade in units of base currency
2325
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2325
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
2326
2326
  :param dict [params]: extra parameters specific to the exchange API endpoint
2327
2327
  :param str [params.marginMode]: 'cross' or 'isolated'
2328
2328
  :param str [params.leverage]: *swap only* leverage level
@@ -2451,7 +2451,7 @@ class bitmart(Exchange, ImplicitAPI):
2451
2451
  :param str type: 'market', 'limit' or 'trailing'
2452
2452
  :param str side: 'buy' or 'sell'
2453
2453
  :param float amount: how much of currency you want to trade in units of base currency
2454
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2454
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
2455
2455
  :param dict [params]: extra parameters specific to the exchange API endpoint
2456
2456
  :param int [params.leverage]: leverage level
2457
2457
  :param boolean [params.reduceOnly]: *swap only* reduce only
@@ -2545,7 +2545,7 @@ class bitmart(Exchange, ImplicitAPI):
2545
2545
  :param str type: 'market' or 'limit'
2546
2546
  :param str side: 'buy' or 'sell'
2547
2547
  :param float amount: how much of currency you want to trade in units of base currency
2548
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2548
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
2549
2549
  :param dict [params]: extra parameters specific to the exchange API endpoint
2550
2550
  :param str [params.marginMode]: 'cross' or 'isolated'
2551
2551
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
ccxt/bitmex.py CHANGED
@@ -1768,7 +1768,7 @@ class bitmex(Exchange, ImplicitAPI):
1768
1768
  :param str type: 'market' or 'limit'
1769
1769
  :param str side: 'buy' or 'sell'
1770
1770
  :param float amount: how much of currency you want to trade in units of base currency
1771
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1771
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1772
1772
  :param dict [params]: extra parameters specific to the exchange API endpoint
1773
1773
  :param dict [params.triggerPrice]: the price at which a trigger order is triggered at
1774
1774
  :param dict [params.triggerDirection]: the direction whenever the trigger happens with relation to price - 'above' or 'below'
ccxt/bitopro.py CHANGED
@@ -964,7 +964,7 @@ class bitopro(Exchange, ImplicitAPI):
964
964
  :param str type: 'market' or 'limit'
965
965
  :param str side: 'buy' or 'sell'
966
966
  :param float amount: how much of currency you want to trade in units of base currency
967
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
967
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
968
968
  :param dict [params]: extra parameters specific to the exchange API endpoint
969
969
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
970
970
  """
ccxt/bitrue.py CHANGED
@@ -1823,7 +1823,7 @@ class bitrue(Exchange, ImplicitAPI):
1823
1823
  :param str type: 'market' or 'limit'
1824
1824
  :param str side: 'buy' or 'sell'
1825
1825
  :param float amount: how much of currency you want to trade in units of base currency
1826
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1826
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1827
1827
  :param dict [params]: extra parameters specific to the exchange API endpoint
1828
1828
  :param float [params.triggerPrice]: *spot only* the price at which a trigger order is triggered at
1829
1829
  :param str [params.clientOrderId]: a unique id for the order, automatically generated if not sent
ccxt/bitso.py CHANGED
@@ -928,7 +928,7 @@ class bitso(Exchange, ImplicitAPI):
928
928
  :param str type: 'market' or 'limit'
929
929
  :param str side: 'buy' or 'sell'
930
930
  :param float amount: how much of currency you want to trade in units of base currency
931
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
931
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
932
932
  :param dict [params]: extra parameters specific to the exchange API endpoint
933
933
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
934
934
  """
ccxt/bitstamp.py CHANGED
@@ -1343,7 +1343,7 @@ class bitstamp(Exchange, ImplicitAPI):
1343
1343
  :param str type: 'market' or 'limit'
1344
1344
  :param str side: 'buy' or 'sell'
1345
1345
  :param float amount: how much of currency you want to trade in units of base currency
1346
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1346
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1347
1347
  :param dict [params]: extra parameters specific to the exchange API endpoint
1348
1348
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
1349
1349
  """
ccxt/bitteam.py CHANGED
@@ -962,7 +962,7 @@ class bitteam(Exchange, ImplicitAPI):
962
962
  :param str type: 'market' or 'limit'
963
963
  :param str side: 'buy' or 'sell'
964
964
  :param float amount: how much of currency you want to trade in units of base currency
965
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
965
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
966
966
  :param dict [params]: extra parameters specific to the bitteam api endpoint
967
967
  :returns dict: an `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
968
968
  """
ccxt/bitvavo.py CHANGED
@@ -1091,7 +1091,7 @@ class bitvavo(Exchange, ImplicitAPI):
1091
1091
  :param str type: 'market' or 'limit'
1092
1092
  :param str side: 'buy' or 'sell'
1093
1093
  :param float amount: how much of currency you want to trade in units of base currency
1094
- :param float price: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1094
+ :param float price: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1095
1095
  :param dict [params]: extra parameters specific to the bitvavo api endpoint
1096
1096
  :param str [params.timeInForce]: "GTC", "IOC", or "PO"
1097
1097
  :param float [params.stopPrice]: The price at which a trigger order is triggered at
@@ -1184,7 +1184,7 @@ class bitvavo(Exchange, ImplicitAPI):
1184
1184
  :param str type: 'market' or 'limit'
1185
1185
  :param str side: 'buy' or 'sell'
1186
1186
  :param float [amount]: how much of currency you want to trade in units of base currency
1187
- :param float [price]: the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
1187
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1188
1188
  :param dict [params]: extra parameters specific to the bitvavo api endpoint
1189
1189
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
1190
1190
  """
ccxt/bl3p.py CHANGED
@@ -375,7 +375,7 @@ class bl3p(Exchange, ImplicitAPI):
375
375
  :param str type: 'market' or 'limit'
376
376
  :param str side: 'buy' or 'sell'
377
377
  :param float amount: how much of currency you want to trade in units of base currency
378
- :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
378
+ :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
379
379
  :param dict [params]: extra parameters specific to the exchange API endpoint
380
380
  *
381
381
  * EXCHANGE SPECIFIC PARAMETERS