ccxt 4.4.51__py2.py3-none-any.whl → 4.4.53__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 (224) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/abstract/binance.py +0 -1
  3. ccxt/abstract/binancecoinm.py +0 -1
  4. ccxt/abstract/binanceus.py +0 -1
  5. ccxt/abstract/binanceusdm.py +0 -1
  6. ccxt/ace.py +3 -0
  7. ccxt/alpaca.py +5 -0
  8. ccxt/ascendex.py +2 -1
  9. ccxt/async_support/__init__.py +1 -1
  10. ccxt/async_support/ace.py +3 -0
  11. ccxt/async_support/alpaca.py +5 -0
  12. ccxt/async_support/ascendex.py +2 -1
  13. ccxt/async_support/base/exchange.py +20 -3
  14. ccxt/async_support/bigone.py +5 -0
  15. ccxt/async_support/binance.py +55 -69
  16. ccxt/async_support/bingx.py +25 -29
  17. ccxt/async_support/bit2c.py +3 -0
  18. ccxt/async_support/bitbank.py +3 -0
  19. ccxt/async_support/bitbns.py +3 -0
  20. ccxt/async_support/bitfinex.py +6 -1
  21. ccxt/async_support/bitflyer.py +6 -1
  22. ccxt/async_support/bitget.py +8 -4
  23. ccxt/async_support/bithumb.py +3 -1
  24. ccxt/async_support/bitmart.py +22 -12
  25. ccxt/async_support/bitmex.py +99 -93
  26. ccxt/async_support/bitopro.py +7 -2
  27. ccxt/async_support/bitrue.py +4 -0
  28. ccxt/async_support/bitso.py +5 -2
  29. ccxt/async_support/bitstamp.py +3 -0
  30. ccxt/async_support/bitteam.py +5 -0
  31. ccxt/async_support/bitvavo.py +4 -0
  32. ccxt/async_support/blockchaincom.py +4 -0
  33. ccxt/async_support/blofin.py +3 -0
  34. ccxt/async_support/btcalpha.py +5 -0
  35. ccxt/async_support/btcbox.py +3 -2
  36. ccxt/async_support/btcmarkets.py +5 -0
  37. ccxt/async_support/btcturk.py +3 -0
  38. ccxt/async_support/bybit.py +10 -4
  39. ccxt/async_support/cex.py +2 -0
  40. ccxt/async_support/coinbase.py +19 -12
  41. ccxt/async_support/coinbaseexchange.py +5 -0
  42. ccxt/async_support/coinbaseinternational.py +21 -2
  43. ccxt/async_support/coincatch.py +3 -0
  44. ccxt/async_support/coincheck.py +2 -0
  45. ccxt/async_support/coinex.py +5 -1
  46. ccxt/async_support/coinlist.py +5 -0
  47. ccxt/async_support/coinmate.py +4 -0
  48. ccxt/async_support/coinmetro.py +9 -5
  49. ccxt/async_support/coinone.py +3 -0
  50. ccxt/async_support/coinsph.py +4 -0
  51. ccxt/async_support/coinspot.py +1 -0
  52. ccxt/async_support/cryptocom.py +5 -0
  53. ccxt/async_support/currencycom.py +3 -0
  54. ccxt/async_support/defx.py +5 -0
  55. ccxt/async_support/delta.py +4 -1
  56. ccxt/async_support/deribit.py +16 -5
  57. ccxt/async_support/digifinex.py +10 -5
  58. ccxt/async_support/ellipx.py +9 -5
  59. ccxt/async_support/exmo.py +6 -3
  60. ccxt/async_support/gate.py +5 -1
  61. ccxt/async_support/gemini.py +3 -0
  62. ccxt/async_support/hashkey.py +5 -4
  63. ccxt/async_support/hitbtc.py +6 -2
  64. ccxt/async_support/hollaex.py +7 -2
  65. ccxt/async_support/htx.py +8 -1
  66. ccxt/async_support/huobijp.py +5 -0
  67. ccxt/async_support/hyperliquid.py +6 -1
  68. ccxt/async_support/idex.py +5 -1
  69. ccxt/async_support/independentreserve.py +4 -0
  70. ccxt/async_support/indodax.py +3 -0
  71. ccxt/async_support/kraken.py +6 -4
  72. ccxt/async_support/krakenfutures.py +5 -2
  73. ccxt/async_support/kucoin.py +13 -6
  74. ccxt/async_support/kucoinfutures.py +5 -1
  75. ccxt/async_support/kuna.py +3 -0
  76. ccxt/async_support/latoken.py +4 -0
  77. ccxt/async_support/lbank.py +6 -1
  78. ccxt/async_support/luno.py +6 -1
  79. ccxt/async_support/lykke.py +4 -0
  80. ccxt/async_support/mercado.py +4 -0
  81. ccxt/async_support/mexc.py +10 -9
  82. ccxt/async_support/ndax.py +6 -1
  83. ccxt/async_support/novadax.py +5 -0
  84. ccxt/async_support/oceanex.py +6 -2
  85. ccxt/async_support/okcoin.py +4 -0
  86. ccxt/async_support/okx.py +17 -5
  87. ccxt/async_support/onetrading.py +4 -0
  88. ccxt/async_support/oxfun.py +3 -0
  89. ccxt/async_support/p2b.py +3 -0
  90. ccxt/async_support/paradex.py +8 -2
  91. ccxt/async_support/phemex.py +10 -4
  92. ccxt/async_support/poloniex.py +6 -3
  93. ccxt/async_support/poloniexfutures.py +5 -1
  94. ccxt/async_support/probit.py +4 -0
  95. ccxt/async_support/timex.py +4 -0
  96. ccxt/async_support/tokocrypto.py +5 -0
  97. ccxt/async_support/tradeogre.py +2 -0
  98. ccxt/async_support/upbit.py +5 -2
  99. ccxt/async_support/vertex.py +6 -2
  100. ccxt/async_support/wavesexchange.py +20 -3
  101. ccxt/async_support/wazirx.py +2 -0
  102. ccxt/async_support/whitebit.py +5 -4
  103. ccxt/async_support/woo.py +15 -5
  104. ccxt/async_support/woofipro.py +21 -7
  105. ccxt/async_support/xt.py +5 -0
  106. ccxt/async_support/yobit.py +5 -2
  107. ccxt/async_support/zaif.py +2 -0
  108. ccxt/async_support/zonda.py +2 -0
  109. ccxt/base/exchange.py +113 -50
  110. ccxt/base/types.py +1 -1
  111. ccxt/bigone.py +5 -0
  112. ccxt/binance.py +55 -69
  113. ccxt/bingx.py +25 -29
  114. ccxt/bit2c.py +3 -0
  115. ccxt/bitbank.py +3 -0
  116. ccxt/bitbns.py +3 -0
  117. ccxt/bitfinex.py +6 -1
  118. ccxt/bitflyer.py +6 -1
  119. ccxt/bitget.py +8 -4
  120. ccxt/bithumb.py +3 -1
  121. ccxt/bitmart.py +22 -12
  122. ccxt/bitmex.py +99 -93
  123. ccxt/bitopro.py +7 -2
  124. ccxt/bitrue.py +4 -0
  125. ccxt/bitso.py +5 -2
  126. ccxt/bitstamp.py +3 -0
  127. ccxt/bitteam.py +5 -0
  128. ccxt/bitvavo.py +4 -0
  129. ccxt/blockchaincom.py +4 -0
  130. ccxt/blofin.py +3 -0
  131. ccxt/btcalpha.py +5 -0
  132. ccxt/btcbox.py +3 -2
  133. ccxt/btcmarkets.py +5 -0
  134. ccxt/btcturk.py +3 -0
  135. ccxt/bybit.py +10 -4
  136. ccxt/cex.py +2 -0
  137. ccxt/coinbase.py +19 -12
  138. ccxt/coinbaseexchange.py +5 -0
  139. ccxt/coinbaseinternational.py +21 -2
  140. ccxt/coincatch.py +3 -0
  141. ccxt/coincheck.py +2 -0
  142. ccxt/coinex.py +5 -1
  143. ccxt/coinlist.py +5 -0
  144. ccxt/coinmate.py +4 -0
  145. ccxt/coinmetro.py +9 -5
  146. ccxt/coinone.py +3 -0
  147. ccxt/coinsph.py +4 -0
  148. ccxt/coinspot.py +1 -0
  149. ccxt/cryptocom.py +5 -0
  150. ccxt/currencycom.py +3 -0
  151. ccxt/defx.py +5 -0
  152. ccxt/delta.py +4 -1
  153. ccxt/deribit.py +16 -5
  154. ccxt/digifinex.py +10 -5
  155. ccxt/ellipx.py +9 -5
  156. ccxt/exmo.py +6 -3
  157. ccxt/gate.py +5 -1
  158. ccxt/gemini.py +3 -0
  159. ccxt/hashkey.py +5 -4
  160. ccxt/hitbtc.py +6 -2
  161. ccxt/hollaex.py +7 -2
  162. ccxt/htx.py +8 -1
  163. ccxt/huobijp.py +5 -0
  164. ccxt/hyperliquid.py +6 -1
  165. ccxt/idex.py +5 -1
  166. ccxt/independentreserve.py +4 -0
  167. ccxt/indodax.py +3 -0
  168. ccxt/kraken.py +6 -4
  169. ccxt/krakenfutures.py +5 -2
  170. ccxt/kucoin.py +13 -6
  171. ccxt/kucoinfutures.py +5 -1
  172. ccxt/kuna.py +3 -0
  173. ccxt/latoken.py +4 -0
  174. ccxt/lbank.py +6 -1
  175. ccxt/luno.py +6 -1
  176. ccxt/lykke.py +4 -0
  177. ccxt/mercado.py +4 -0
  178. ccxt/mexc.py +10 -9
  179. ccxt/ndax.py +6 -1
  180. ccxt/novadax.py +5 -0
  181. ccxt/oceanex.py +6 -2
  182. ccxt/okcoin.py +4 -0
  183. ccxt/okx.py +17 -5
  184. ccxt/onetrading.py +4 -0
  185. ccxt/oxfun.py +3 -0
  186. ccxt/p2b.py +3 -0
  187. ccxt/paradex.py +8 -2
  188. ccxt/phemex.py +10 -4
  189. ccxt/poloniex.py +6 -3
  190. ccxt/poloniexfutures.py +5 -1
  191. ccxt/pro/__init__.py +1 -1
  192. ccxt/pro/bitcoincom.py +1 -4
  193. ccxt/pro/bitopro.py +1 -1
  194. ccxt/probit.py +4 -0
  195. ccxt/test/tests_async.py +57 -31
  196. ccxt/test/tests_sync.py +57 -31
  197. ccxt/timex.py +4 -0
  198. ccxt/tokocrypto.py +5 -0
  199. ccxt/tradeogre.py +2 -0
  200. ccxt/upbit.py +5 -2
  201. ccxt/vertex.py +6 -2
  202. ccxt/wavesexchange.py +20 -3
  203. ccxt/wazirx.py +2 -0
  204. ccxt/whitebit.py +5 -4
  205. ccxt/woo.py +15 -5
  206. ccxt/woofipro.py +21 -7
  207. ccxt/xt.py +5 -0
  208. ccxt/yobit.py +5 -2
  209. ccxt/zaif.py +2 -0
  210. ccxt/zonda.py +2 -0
  211. {ccxt-4.4.51.dist-info → ccxt-4.4.53.dist-info}/METADATA +225 -140
  212. {ccxt-4.4.51.dist-info → ccxt-4.4.53.dist-info}/RECORD +215 -224
  213. ccxt/static_dependencies/ethereum/abi/py.typed +0 -0
  214. ccxt/static_dependencies/ethereum/account/py.typed +0 -0
  215. ccxt/static_dependencies/ethereum/hexbytes/py.typed +0 -0
  216. ccxt/static_dependencies/ethereum/typing/py.typed +0 -0
  217. ccxt/static_dependencies/ethereum/utils/py.typed +0 -0
  218. ccxt/static_dependencies/lark/py.typed +0 -0
  219. ccxt/static_dependencies/marshmallow/py.typed +0 -0
  220. ccxt/static_dependencies/marshmallow_dataclass/py.typed +0 -0
  221. ccxt/static_dependencies/marshmallow_oneofschema/py.typed +0 -0
  222. {ccxt-4.4.51.dist-info → ccxt-4.4.53.dist-info}/LICENSE.txt +0 -0
  223. {ccxt-4.4.51.dist-info → ccxt-4.4.53.dist-info}/WHEEL +0 -0
  224. {ccxt-4.4.51.dist-info → ccxt-4.4.53.dist-info}/top_level.txt +0 -0
@@ -394,17 +394,20 @@ class hashkey(Exchange, ImplicitAPI):
394
394
  'limit': 1000,
395
395
  'daysBack': 30,
396
396
  'untilDays': 30,
397
+ 'symbolRequired': False,
397
398
  },
398
399
  'fetchOrder': {
399
400
  'marginMode': False,
400
401
  'trigger': False,
401
402
  'trailing': False,
403
+ 'symbolRequired': False,
402
404
  },
403
405
  'fetchOpenOrders': {
404
406
  'marginMode': False,
405
407
  'limit': 1000,
406
408
  'trigger': False,
407
409
  'trailing': False,
410
+ 'symbolRequired': False,
408
411
  },
409
412
  'fetchOrders': None,
410
413
  'fetchClosedOrders': None, # todo
@@ -2396,10 +2399,8 @@ class hashkey(Exchange, ImplicitAPI):
2396
2399
  market = self.market(symbol)
2397
2400
  if not market['spot']:
2398
2401
  raise NotSupported(self.id + ' createMarketBuyOrderWithCost() is supported for spot markets only')
2399
- req = {
2400
- 'cost': cost,
2401
- }
2402
- return await self.create_order(symbol, 'market', 'buy', cost, None, self.extend(req, params))
2402
+ params['cost'] = cost
2403
+ return await self.create_order(symbol, 'market', 'buy', cost, None, params)
2403
2404
 
2404
2405
  async def create_spot_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}) -> Order:
2405
2406
  """
@@ -6,7 +6,7 @@
6
6
  from ccxt.async_support.base.exchange import Exchange
7
7
  from ccxt.abstract.hitbtc import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, Int, Leverage, MarginMode, MarginModes, MarginModification, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TradingFeeInterface, TradingFees, Transaction, TransferEntry
9
+ from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, Int, Leverage, MarginMode, MarginModes, MarginModification, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, OrderBooks, Trade, TradingFeeInterface, TradingFees, Transaction, TransferEntry
10
10
  from typing import List
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import AuthenticationError
@@ -335,12 +335,14 @@ class hitbtc(Exchange, ImplicitAPI):
335
335
  'limit': 1000,
336
336
  'daysBack': 100000,
337
337
  'untilDays': 100000,
338
+ 'symbolRequired': False,
338
339
  'marketType': True,
339
340
  },
340
341
  'fetchOrder': {
341
342
  'marginMode': True,
342
343
  'trigger': False,
343
344
  'trailing': False,
345
+ 'symbolRequired': False,
344
346
  'marketType': True,
345
347
  },
346
348
  'fetchOpenOrders': {
@@ -348,6 +350,7 @@ class hitbtc(Exchange, ImplicitAPI):
348
350
  'limit': 1000,
349
351
  'trigger': False,
350
352
  'trailing': False,
353
+ 'symbolRequired': False,
351
354
  'marketType': True,
352
355
  },
353
356
  'fetchOrders': None,
@@ -359,6 +362,7 @@ class hitbtc(Exchange, ImplicitAPI):
359
362
  'untilDays': 100000, # todo
360
363
  'trigger': False,
361
364
  'trailing': False,
365
+ 'symbolRequired': False,
362
366
  'marketType': True,
363
367
  },
364
368
  'fetchOHLCV': {
@@ -1624,7 +1628,7 @@ class hitbtc(Exchange, ImplicitAPI):
1624
1628
  """
1625
1629
  return await self.fetch_transactions_helper('WITHDRAW', code, since, limit, params)
1626
1630
 
1627
- async def fetch_order_books(self, symbols: Strings = None, limit: Int = None, params={}):
1631
+ async def fetch_order_books(self, symbols: Strings = None, limit: Int = None, params={}) -> OrderBooks:
1628
1632
  """
1629
1633
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data for multiple markets
1630
1634
 
@@ -6,7 +6,7 @@
6
6
  from ccxt.async_support.base.exchange import Exchange
7
7
  from ccxt.abstract.hollaex import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction
9
+ from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, OrderBooks, Trade, TradingFees, Transaction
10
10
  from typing import List
11
11
  from ccxt.base.errors import AuthenticationError
12
12
  from ccxt.base.errors import ArgumentsRequired
@@ -205,17 +205,20 @@ class hollaex(Exchange, ImplicitAPI):
205
205
  'limit': 100,
206
206
  'daysBack': 100000,
207
207
  'untilDays': 100000, # todo implement
208
+ 'symbolRequired': False,
208
209
  },
209
210
  'fetchOrder': {
210
211
  'marginMode': False,
211
212
  'trigger': False,
212
213
  'trailing': False,
214
+ 'symbolRequired': False,
213
215
  },
214
216
  'fetchOpenOrders': {
215
217
  'marginMode': False,
216
218
  'limit': 100,
217
219
  'trigger': False,
218
220
  'trailing': False,
221
+ 'symbolRequired': False,
219
222
  },
220
223
  'fetchOrders': {
221
224
  'marginMode': False,
@@ -224,6 +227,7 @@ class hollaex(Exchange, ImplicitAPI):
224
227
  'untilDays': 100000, # todo
225
228
  'trigger': False,
226
229
  'trailing': False,
230
+ 'symbolRequired': False,
227
231
  },
228
232
  'fetchClosedOrders': {
229
233
  'marginMode': False,
@@ -233,6 +237,7 @@ class hollaex(Exchange, ImplicitAPI):
233
237
  'untilDays': 100000, # todo
234
238
  'trigger': False,
235
239
  'trailing': False,
240
+ 'symbolRequired': False,
236
241
  },
237
242
  'fetchOHLCV': {
238
243
  'limit': 1000, # todo: no limit in request
@@ -491,7 +496,7 @@ class hollaex(Exchange, ImplicitAPI):
491
496
  }
492
497
  return result
493
498
 
494
- async def fetch_order_books(self, symbols: Strings = None, limit: Int = None, params={}):
499
+ async def fetch_order_books(self, symbols: Strings = None, limit: Int = None, params={}) -> OrderBooks:
495
500
  """
496
501
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data for multiple markets
497
502
 
ccxt/async_support/htx.py CHANGED
@@ -1287,17 +1287,20 @@ class htx(Exchange, ImplicitAPI):
1287
1287
  'limit': 500,
1288
1288
  'daysBack': 120,
1289
1289
  'untilDays': 2,
1290
+ 'symbolRequired': False,
1290
1291
  },
1291
1292
  'fetchOrder': {
1292
1293
  'marginMode': False,
1293
1294
  'trigger': False,
1294
1295
  'trailing': False,
1296
+ 'symbolRequired': False,
1295
1297
  },
1296
1298
  'fetchOpenOrders': {
1297
1299
  'marginMode': False,
1298
1300
  'trigger': True,
1299
1301
  'trailing': False,
1300
1302
  'limit': 500,
1303
+ 'symbolRequired': False,
1301
1304
  },
1302
1305
  'fetchOrders': {
1303
1306
  'marginMode': False,
@@ -1306,6 +1309,7 @@ class htx(Exchange, ImplicitAPI):
1306
1309
  'limit': 500,
1307
1310
  'untilDays': 2,
1308
1311
  'daysBack': 180,
1312
+ 'symbolRequired': False,
1309
1313
  },
1310
1314
  'fetchClosedOrders': {
1311
1315
  'marginMode': False,
@@ -1315,6 +1319,7 @@ class htx(Exchange, ImplicitAPI):
1315
1319
  'limit': 500,
1316
1320
  'daysBack': 180,
1317
1321
  'daysBackCanceled': 1 / 12,
1322
+ 'symbolRequired': False,
1318
1323
  },
1319
1324
  'fetchOHLCV': {
1320
1325
  'limit': 1000, # 2000 for non-historical
@@ -3213,7 +3218,9 @@ class htx(Exchange, ImplicitAPI):
3213
3218
  type = 'super-margin'
3214
3219
  elif marginMode == 'isolated':
3215
3220
  type = 'margin'
3216
- marketId = None if (symbol is None) else self.market_id(symbol)
3221
+ marketId = None
3222
+ if symbol is not None:
3223
+ marketId = self.market_id(symbol)
3217
3224
  for i in range(0, len(accounts)):
3218
3225
  account = accounts[i]
3219
3226
  info = self.safe_value(account, 'info')
@@ -296,17 +296,20 @@ class huobijp(Exchange, ImplicitAPI):
296
296
  'limit': 100,
297
297
  'daysBack': 120,
298
298
  'untilDays': 2,
299
+ 'symbolRequired': False,
299
300
  },
300
301
  'fetchOrder': {
301
302
  'marginMode': False,
302
303
  'trigger': False,
303
304
  'trailing': False,
305
+ 'symbolRequired': False,
304
306
  },
305
307
  'fetchOpenOrders': {
306
308
  'marginMode': False,
307
309
  'limit': None, # todo
308
310
  'trigger': False,
309
311
  'trailing': False,
312
+ 'symbolRequired': False,
310
313
  },
311
314
  'fetchOrders': {
312
315
  'marginMode': False,
@@ -315,6 +318,7 @@ class huobijp(Exchange, ImplicitAPI):
315
318
  'untilDays': None, # todo
316
319
  'trigger': False,
317
320
  'trailing': False,
321
+ 'symbolRequired': False,
318
322
  },
319
323
  'fetchClosedOrders': {
320
324
  'marginMode': False,
@@ -324,6 +328,7 @@ class huobijp(Exchange, ImplicitAPI):
324
328
  'untilDays': None, # todo
325
329
  'trigger': False,
326
330
  'trailing': False,
331
+ 'symbolRequired': False,
327
332
  },
328
333
  'fetchOHLCV': {
329
334
  'limit': 2000,
@@ -262,17 +262,20 @@ class hyperliquid(Exchange, ImplicitAPI):
262
262
  'limit': 2000,
263
263
  'daysBack': None,
264
264
  'untilDays': None,
265
+ 'symbolRequired': True,
265
266
  },
266
267
  'fetchOrder': {
267
268
  'marginMode': False,
268
269
  'trigger': False,
269
270
  'trailing': False,
271
+ 'symbolRequired': True,
270
272
  },
271
273
  'fetchOpenOrders': {
272
274
  'marginMode': False,
273
275
  'limit': 2000,
274
276
  'trigger': False,
275
277
  'trailing': False,
278
+ 'symbolRequired': True,
276
279
  },
277
280
  'fetchOrders': {
278
281
  'marginMode': False,
@@ -281,6 +284,7 @@ class hyperliquid(Exchange, ImplicitAPI):
281
284
  'untilDays': None,
282
285
  'trigger': False,
283
286
  'trailing': False,
287
+ 'symbolRequired': True,
284
288
  },
285
289
  'fetchClosedOrders': {
286
290
  'marginMode': False,
@@ -290,6 +294,7 @@ class hyperliquid(Exchange, ImplicitAPI):
290
294
  'untilDays': None,
291
295
  'trigger': False,
292
296
  'trailing': False,
297
+ 'symbolRequired': True,
293
298
  },
294
299
  'fetchOHLCV': {
295
300
  'limit': 5000,
@@ -1133,7 +1138,7 @@ class hyperliquid(Exchange, ImplicitAPI):
1133
1138
  self.safe_number(ohlcv, 'v'),
1134
1139
  ]
1135
1140
 
1136
- async def fetch_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1141
+ async def fetch_trades(self, symbol: Str, since: Int = None, limit: Int = None, params={}):
1137
1142
  """
1138
1143
  get the list of most recent trades for a particular symbol
1139
1144
 
@@ -212,17 +212,20 @@ class idex(Exchange, ImplicitAPI):
212
212
  'limit': 1000,
213
213
  'daysBack': 100000, # todo
214
214
  'untilDays': 100000, # todo
215
+ 'symbolRequired': False,
215
216
  },
216
217
  'fetchOrder': {
217
218
  'marginMode': False,
218
219
  'trigger': False,
219
220
  'trailing': False,
221
+ 'symbolRequired': False,
220
222
  },
221
223
  'fetchOpenOrders': {
222
224
  'marginMode': False,
223
225
  'limit': 1000,
224
226
  'trigger': False,
225
227
  'trailing': False,
228
+ 'symbolRequired': False,
226
229
  },
227
230
  'fetchOrders': None,
228
231
  'fetchClosedOrders': {
@@ -233,6 +236,7 @@ class idex(Exchange, ImplicitAPI):
233
236
  'untilDays': 1000000, # todo
234
237
  'trigger': False,
235
238
  'trailing': False,
239
+ 'symbolRequired': False,
236
240
  },
237
241
  'fetchOHLCV': {
238
242
  'limit': 1000,
@@ -1772,7 +1776,7 @@ class idex(Exchange, ImplicitAPI):
1772
1776
  authenticated = hasApiKey and hasSecret and hasWalletAddress and hasPrivateKey
1773
1777
  return(defaultCost / 2) if authenticated else defaultCost
1774
1778
 
1775
- async def fetch_deposit_address(self, code: Str = None, params={}) -> DepositAddress:
1779
+ async def fetch_deposit_address(self, code: Str, params={}) -> DepositAddress:
1776
1780
  """
1777
1781
  fetch the Polygon address of the wallet
1778
1782
 
@@ -180,17 +180,20 @@ class independentreserve(Exchange, ImplicitAPI):
180
180
  'limit': 100, # todo
181
181
  'daysBack': None,
182
182
  'untilDays': None,
183
+ 'symbolRequired': False,
183
184
  },
184
185
  'fetchOrder': {
185
186
  'marginMode': False,
186
187
  'trigger': False,
187
188
  'trailing': False,
189
+ 'symbolRequired': False,
188
190
  },
189
191
  'fetchOpenOrders': {
190
192
  'marginMode': False,
191
193
  'limit': 100, # todo
192
194
  'trigger': False,
193
195
  'trailing': False,
196
+ 'symbolRequired': False,
194
197
  },
195
198
  'fetchOrders': None,
196
199
  'fetchClosedOrders': {
@@ -201,6 +204,7 @@ class independentreserve(Exchange, ImplicitAPI):
201
204
  'untilDays': None,
202
205
  'trigger': False,
203
206
  'trailing': False,
207
+ 'symbolRequired': False,
204
208
  },
205
209
  'fetchOHLCV': None,
206
210
  },
@@ -235,12 +235,14 @@ class indodax(Exchange, ImplicitAPI):
235
235
  'marginMode': False,
236
236
  'trigger': False,
237
237
  'trailing': False,
238
+ 'symbolRequired': True,
238
239
  },
239
240
  'fetchOpenOrders': {
240
241
  'marginMode': False,
241
242
  'limit': None,
242
243
  'trigger': False,
243
244
  'trailing': False,
245
+ 'symbolRequired': False,
244
246
  },
245
247
  'fetchOrders': None,
246
248
  'fetchClosedOrders': {
@@ -251,6 +253,7 @@ class indodax(Exchange, ImplicitAPI):
251
253
  'untilDays': None,
252
254
  'trigger': False,
253
255
  'trailing': False,
256
+ 'symbolRequired': True,
254
257
  },
255
258
  'fetchOHLCV': {
256
259
  'limit': 2000, # todo: not in request
@@ -476,17 +476,20 @@ class kraken(Exchange, ImplicitAPI):
476
476
  'limit': None,
477
477
  'daysBack': None,
478
478
  'untilDays': None,
479
+ 'symbolRequired': False,
479
480
  },
480
481
  'fetchOrder': {
481
482
  'marginMode': False,
482
483
  'trigger': False,
483
484
  'trailing': False,
485
+ 'symbolRequired': False,
484
486
  },
485
487
  'fetchOpenOrders': {
486
488
  'marginMode': False,
487
489
  'limit': None,
488
490
  'trigger': False,
489
491
  'trailing': False,
492
+ 'symbolRequired': False,
490
493
  },
491
494
  'fetchOrders': None,
492
495
  'fetchClosedOrders': {
@@ -497,6 +500,7 @@ class kraken(Exchange, ImplicitAPI):
497
500
  'untilDays': 100000,
498
501
  'trigger': False,
499
502
  'trailing': False,
503
+ 'symbolRequired': False,
500
504
  },
501
505
  'fetchOHLCV': {
502
506
  'limit': 720,
@@ -1488,10 +1492,8 @@ class kraken(Exchange, ImplicitAPI):
1488
1492
  """
1489
1493
  await self.load_markets()
1490
1494
  # only buy orders are supported by the endpoint
1491
- req = {
1492
- 'cost': cost,
1493
- }
1494
- return await self.create_order(symbol, 'market', side, 1, None, self.extend(req, params))
1495
+ params['cost'] = cost
1496
+ return await self.create_order(symbol, 'market', side, cost, None, params)
1495
1497
 
1496
1498
  async def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
1497
1499
  """
@@ -313,6 +313,7 @@ class krakenfutures(Exchange, ImplicitAPI):
313
313
  'limit': None,
314
314
  'daysBack': None,
315
315
  'untilDays': 100000,
316
+ 'symbolRequired': False,
316
317
  },
317
318
  'fetchOrder': None,
318
319
  'fetchOpenOrders': {
@@ -320,6 +321,7 @@ class krakenfutures(Exchange, ImplicitAPI):
320
321
  'limit': None,
321
322
  'trigger': False,
322
323
  'trailing': False,
324
+ 'symbolRequired': False,
323
325
  },
324
326
  'fetchOrders': None,
325
327
  'fetchClosedOrders': {
@@ -330,6 +332,7 @@ class krakenfutures(Exchange, ImplicitAPI):
330
332
  'untilDays': None,
331
333
  'trigger': False,
332
334
  'trailing': False,
335
+ 'symbolRequired': False,
333
336
  },
334
337
  'fetchOHLCV': {
335
338
  'limit': 5000,
@@ -1488,13 +1491,13 @@ class krakenfutures(Exchange, ImplicitAPI):
1488
1491
  return self.parse_orders(canceledAndRejected, market, since, limit)
1489
1492
 
1490
1493
  def parse_order_type(self, orderType):
1491
- map: dict = {
1494
+ typesMap: dict = {
1492
1495
  'lmt': 'limit',
1493
1496
  'mkt': 'market',
1494
1497
  'post': 'limit',
1495
1498
  'ioc': 'market',
1496
1499
  }
1497
- return self.safe_string(map, orderType, orderType)
1500
+ return self.safe_string(typesMap, orderType, orderType)
1498
1501
 
1499
1502
  def verify_order_action_success(self, status, method, omit=[]):
1500
1503
  errors: dict = {
@@ -1040,17 +1040,20 @@ class kucoin(Exchange, ImplicitAPI):
1040
1040
  'limit': None,
1041
1041
  'daysBack': None,
1042
1042
  'untilDays': 7, # per implementation comments
1043
+ 'symbolRequired': True,
1043
1044
  },
1044
1045
  'fetchOrder': {
1045
1046
  'marginMode': False,
1046
1047
  'trigger': True,
1047
1048
  'trailing': False,
1049
+ 'symbolRequired': True,
1048
1050
  },
1049
1051
  'fetchOpenOrders': {
1050
1052
  'marginMode': True,
1051
1053
  'limit': 500,
1052
1054
  'trigger': True,
1053
1055
  'trailing': False,
1056
+ 'symbolRequired': True,
1054
1057
  },
1055
1058
  'fetchOrders': None,
1056
1059
  'fetchClosedOrders': {
@@ -1061,6 +1064,7 @@ class kucoin(Exchange, ImplicitAPI):
1061
1064
  'untilDays': 7,
1062
1065
  'trigger': True,
1063
1066
  'trailing': False,
1067
+ 'symbolRequired': True,
1064
1068
  },
1065
1069
  'fetchOHLCV': {
1066
1070
  'limit': 1500,
@@ -1326,10 +1330,12 @@ class kucoin(Exchange, ImplicitAPI):
1326
1330
 
1327
1331
  https://www.kucoin.com/docs/rest/spot-trading/spot-hf-trade-pro-account/get-user-type
1328
1332
 
1333
+ :returns any: ignore
1329
1334
  """
1330
1335
  if not ('hf' in self.options) or (self.options['hf'] is None) or force:
1331
1336
  result: dict = await self.privateGetHfAccountsOpened()
1332
1337
  self.options['hf'] = self.safe_bool(result, 'data')
1338
+ return True
1333
1339
 
1334
1340
  def handle_hf_and_params(self, params={}):
1335
1341
  migrated: Bool = self.safe_bool(self.options, 'hf', False)
@@ -2266,10 +2272,8 @@ class kucoin(Exchange, ImplicitAPI):
2266
2272
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
2267
2273
  """
2268
2274
  await self.load_markets()
2269
- req = {
2270
- 'cost': cost,
2271
- }
2272
- return await self.create_order(symbol, 'market', side, 0, None, self.extend(req, params))
2275
+ params['cost'] = cost
2276
+ return await self.create_order(symbol, 'market', side, cost, None, params)
2273
2277
 
2274
2278
  async def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
2275
2279
  """
@@ -3878,7 +3882,9 @@ class kucoin(Exchange, ImplicitAPI):
3878
3882
  account['free'] = self.safe_string(balance, 'available')
3879
3883
  account['used'] = self.safe_string(balance, 'holds')
3880
3884
  result[codeInner2] = account
3881
- returnType = result if isolated else self.safe_balance(result)
3885
+ returnType = result
3886
+ if not isolated:
3887
+ returnType = self.safe_balance(result)
3882
3888
  return returnType
3883
3889
 
3884
3890
  async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
@@ -4591,7 +4597,8 @@ class kucoin(Exchange, ImplicitAPI):
4591
4597
  if not (code in borrowRateHistories):
4592
4598
  borrowRateHistories[code] = []
4593
4599
  borrowRateStructure = self.parse_borrow_rate(item)
4594
- borrowRateHistories[code].append(borrowRateStructure)
4600
+ borrowRateHistoriesCode = borrowRateHistories[code]
4601
+ borrowRateHistoriesCode.append(borrowRateStructure)
4595
4602
  keys = list(borrowRateHistories.keys())
4596
4603
  for i in range(0, len(keys)):
4597
4604
  code = keys[i]
@@ -411,17 +411,20 @@ class kucoinfutures(kucoin, ImplicitAPI):
411
411
  'limit': 1000,
412
412
  'daysBack': None,
413
413
  'untilDays': 7,
414
+ 'symbolRequired': False,
414
415
  },
415
416
  'fetchOrder': {
416
417
  'marginMode': False,
417
418
  'trigger': False,
418
419
  'trailing': False,
420
+ 'symbolRequired': False,
419
421
  },
420
422
  'fetchOpenOrders': {
421
423
  'marginMode': False,
422
424
  'limit': 1000,
423
425
  'trigger': True,
424
426
  'trailing': False,
427
+ 'symbolRequired': False,
425
428
  },
426
429
  'fetchOrders': None,
427
430
  'fetchClosedOrders': {
@@ -432,6 +435,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
432
435
  'untilDays': None,
433
436
  'trigger': True,
434
437
  'trailing': False,
438
+ 'symbolRequired': False,
435
439
  },
436
440
  'fetchOHLCV': {
437
441
  'limit': 500,
@@ -2097,7 +2101,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
2097
2101
  return await self.fetch_paginated_call_dynamic('fetchOpenOrders', symbol, since, limit, params)
2098
2102
  return await self.fetch_orders_by_status('open', symbol, since, limit, params)
2099
2103
 
2100
- async def fetch_order(self, id: Str = None, symbol: Str = None, params={}):
2104
+ async def fetch_order(self, id: Str, symbol: Str = None, params={}):
2101
2105
  """
2102
2106
  fetches information on an order made by the user
2103
2107
 
@@ -394,12 +394,14 @@ class kuna(Exchange, ImplicitAPI):
394
394
  'marginMode': False,
395
395
  'trigger': False,
396
396
  'trailing': False,
397
+ 'symbolRequired': False,
397
398
  },
398
399
  'fetchOpenOrders': {
399
400
  'marginMode': False,
400
401
  'limit': 100,
401
402
  'trigger': False,
402
403
  'trailing': False,
404
+ 'symbolRequired': False,
403
405
  },
404
406
  'fetchOrders': None,
405
407
  'fetchClosedOrders': {
@@ -410,6 +412,7 @@ class kuna(Exchange, ImplicitAPI):
410
412
  'untilDays': 14,
411
413
  'trigger': False,
412
414
  'trailing': False,
415
+ 'symbolRequired': False,
413
416
  },
414
417
  'fetchOHLCV': None,
415
418
  },
@@ -279,17 +279,20 @@ class latoken(Exchange, ImplicitAPI):
279
279
  'limit': 1000,
280
280
  'daysBack': 100000, # todo
281
281
  'untilDays': None,
282
+ 'symbolRequired': False,
282
283
  },
283
284
  'fetchOrder': {
284
285
  'marginMode': False,
285
286
  'trigger': True,
286
287
  'trailing': False,
288
+ 'symbolRequired': False,
287
289
  },
288
290
  'fetchOpenOrders': {
289
291
  'marginMode': False,
290
292
  'limit': None,
291
293
  'trigger': False,
292
294
  'trailing': False,
295
+ 'symbolRequired': True,
293
296
  },
294
297
  'fetchOrders': None,
295
298
  'fetchClosedOrders': {
@@ -300,6 +303,7 @@ class latoken(Exchange, ImplicitAPI):
300
303
  'untilDays': None,
301
304
  'trigger': True,
302
305
  'trailing': False,
306
+ 'symbolRequired': False,
303
307
  },
304
308
  'fetchOHLCV': None,
305
309
  },
@@ -340,17 +340,20 @@ class lbank(Exchange, ImplicitAPI):
340
340
  'limit': 100,
341
341
  'daysBack': 100000, # todo
342
342
  'untilDays': 2,
343
+ 'symbolRequired': True,
343
344
  },
344
345
  'fetchOrder': {
345
346
  'marginMode': False,
346
347
  'trigger': False,
347
348
  'trailing': False,
349
+ 'symbolRequired': True,
348
350
  },
349
351
  'fetchOpenOrders': {
350
352
  'marginMode': False,
351
353
  'limit': 200,
352
354
  'trigger': False,
353
355
  'trailing': False,
356
+ 'symbolRequired': True,
354
357
  },
355
358
  'fetchOrders': {
356
359
  'marginMode': False,
@@ -359,6 +362,7 @@ class lbank(Exchange, ImplicitAPI):
359
362
  'untilDays': None,
360
363
  'trigger': False,
361
364
  'trailing': False,
365
+ 'symbolRequired': True,
362
366
  },
363
367
  'fetchClosedOrders': None, # todo: through fetchOrders "status" -1: Cancelled 0: Unfilled 1: Partially filled 2: Completely filled 3: Partially filled has been cancelled 4: Cancellation is being processed
364
368
  'fetchOHLCV': {
@@ -2670,7 +2674,8 @@ class lbank(Exchange, ImplicitAPI):
2670
2674
  if resultValue is None:
2671
2675
  result[code] = self.deposit_withdraw_fee([fee])
2672
2676
  else:
2673
- result[code]['info'].append(fee)
2677
+ resultCodeInfo = result[code]['info']
2678
+ resultCodeInfo.append(fee)
2674
2679
  chain = self.safe_string(fee, 'chain')
2675
2680
  networkCode = self.safe_string(self.options['inverse-networks'], chain, chain)
2676
2681
  if networkCode is not None: