ccxt 4.3.30__py2.py3-none-any.whl → 4.3.31__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/abstract/binance.py +2 -0
  3. ccxt/abstract/binancecoinm.py +2 -0
  4. ccxt/abstract/binanceus.py +2 -0
  5. ccxt/abstract/binanceusdm.py +2 -0
  6. ccxt/ace.py +14 -14
  7. ccxt/alpaca.py +16 -16
  8. ccxt/ascendex.py +46 -46
  9. ccxt/async_support/__init__.py +1 -1
  10. ccxt/async_support/ace.py +14 -14
  11. ccxt/async_support/alpaca.py +16 -16
  12. ccxt/async_support/ascendex.py +46 -46
  13. ccxt/async_support/base/exchange.py +23 -23
  14. ccxt/async_support/bigone.py +32 -32
  15. ccxt/async_support/binance.py +105 -96
  16. ccxt/async_support/bingx.py +21 -21
  17. ccxt/async_support/bit2c.py +13 -13
  18. ccxt/async_support/bitbank.py +19 -19
  19. ccxt/async_support/bitbns.py +17 -17
  20. ccxt/async_support/bitfinex.py +24 -24
  21. ccxt/async_support/bitfinex2.py +142 -109
  22. ccxt/async_support/bitflyer.py +23 -23
  23. ccxt/async_support/bitget.py +76 -76
  24. ccxt/async_support/bithumb.py +20 -20
  25. ccxt/async_support/bitmart.py +55 -55
  26. ccxt/async_support/bitmex.py +41 -41
  27. ccxt/async_support/bitopro.py +30 -30
  28. ccxt/async_support/bitrue.py +37 -37
  29. ccxt/async_support/bitso.py +30 -30
  30. ccxt/async_support/bitstamp.py +31 -31
  31. ccxt/async_support/bitteam.py +26 -26
  32. ccxt/async_support/bitvavo.py +27 -27
  33. ccxt/async_support/bl3p.py +8 -8
  34. ccxt/async_support/blockchaincom.py +24 -24
  35. ccxt/async_support/blofin.py +37 -37
  36. ccxt/async_support/btcalpha.py +19 -19
  37. ccxt/async_support/btcbox.py +11 -11
  38. ccxt/async_support/btcmarkets.py +22 -22
  39. ccxt/async_support/btcturk.py +13 -13
  40. ccxt/async_support/bybit.py +96 -96
  41. ccxt/async_support/cex.py +21 -21
  42. ccxt/async_support/coinbase.py +53 -53
  43. ccxt/async_support/coinbaseexchange.py +29 -29
  44. ccxt/async_support/coinbaseinternational.py +32 -32
  45. ccxt/async_support/coincheck.py +14 -14
  46. ccxt/async_support/coinex.py +168 -139
  47. ccxt/async_support/coinlist.py +35 -35
  48. ccxt/async_support/coinmate.py +22 -22
  49. ccxt/async_support/coinmetro.py +22 -22
  50. ccxt/async_support/coinone.py +18 -18
  51. ccxt/async_support/coinsph.py +32 -32
  52. ccxt/async_support/coinspot.py +8 -8
  53. ccxt/async_support/cryptocom.py +43 -43
  54. ccxt/async_support/currencycom.py +33 -33
  55. ccxt/async_support/delta.py +35 -35
  56. ccxt/async_support/deribit.py +54 -54
  57. ccxt/async_support/digifinex.py +56 -56
  58. ccxt/async_support/exmo.py +34 -34
  59. ccxt/async_support/gate.py +60 -60
  60. ccxt/async_support/gemini.py +24 -24
  61. ccxt/async_support/hitbtc.py +51 -51
  62. ccxt/async_support/hollaex.py +29 -29
  63. ccxt/async_support/htx.py +73 -73
  64. ccxt/async_support/huobijp.py +30 -30
  65. ccxt/async_support/hyperliquid.py +58 -58
  66. ccxt/async_support/idex.py +33 -33
  67. ccxt/async_support/independentreserve.py +12 -12
  68. ccxt/async_support/indodax.py +21 -21
  69. ccxt/async_support/kraken.py +46 -51
  70. ccxt/async_support/krakenfutures.py +29 -29
  71. ccxt/async_support/kucoin.py +51 -51
  72. ccxt/async_support/kucoinfutures.py +33 -33
  73. ccxt/async_support/kuna.py +27 -27
  74. ccxt/async_support/latoken.py +27 -27
  75. ccxt/async_support/lbank.py +35 -35
  76. ccxt/async_support/luno.py +19 -19
  77. ccxt/async_support/lykke.py +20 -20
  78. ccxt/async_support/mercado.py +17 -17
  79. ccxt/async_support/mexc.py +64 -64
  80. ccxt/async_support/ndax.py +38 -38
  81. ccxt/async_support/novadax.py +26 -26
  82. ccxt/async_support/oceanex.py +21 -21
  83. ccxt/async_support/okcoin.py +35 -35
  84. ccxt/async_support/okx.py +85 -85
  85. ccxt/async_support/onetrading.py +32 -32
  86. ccxt/async_support/p2b.py +14 -14
  87. ccxt/async_support/paymium.py +12 -12
  88. ccxt/async_support/phemex.py +50 -50
  89. ccxt/async_support/poloniex.py +35 -35
  90. ccxt/async_support/poloniexfutures.py +25 -21
  91. ccxt/async_support/probit.py +30 -30
  92. ccxt/async_support/timex.py +22 -22
  93. ccxt/async_support/tokocrypto.py +26 -26
  94. ccxt/async_support/tradeogre.py +12 -12
  95. ccxt/async_support/upbit.py +28 -28
  96. ccxt/async_support/wavesexchange.py +33 -33
  97. ccxt/async_support/wazirx.py +21 -21
  98. ccxt/async_support/whitebit.py +37 -37
  99. ccxt/async_support/woo.py +51 -51
  100. ccxt/async_support/woofipro.py +46 -46
  101. ccxt/async_support/yobit.py +20 -20
  102. ccxt/async_support/zaif.py +12 -12
  103. ccxt/async_support/zonda.py +22 -22
  104. ccxt/base/exchange.py +35 -35
  105. ccxt/base/types.py +13 -0
  106. ccxt/bigone.py +32 -32
  107. ccxt/binance.py +105 -96
  108. ccxt/bingx.py +21 -21
  109. ccxt/bit2c.py +13 -13
  110. ccxt/bitbank.py +19 -19
  111. ccxt/bitbns.py +17 -17
  112. ccxt/bitfinex.py +24 -24
  113. ccxt/bitfinex2.py +142 -109
  114. ccxt/bitflyer.py +23 -23
  115. ccxt/bitget.py +76 -76
  116. ccxt/bithumb.py +20 -20
  117. ccxt/bitmart.py +55 -55
  118. ccxt/bitmex.py +41 -41
  119. ccxt/bitopro.py +30 -30
  120. ccxt/bitrue.py +37 -37
  121. ccxt/bitso.py +30 -30
  122. ccxt/bitstamp.py +31 -31
  123. ccxt/bitteam.py +26 -26
  124. ccxt/bitvavo.py +27 -27
  125. ccxt/bl3p.py +8 -8
  126. ccxt/blockchaincom.py +24 -24
  127. ccxt/blofin.py +37 -37
  128. ccxt/btcalpha.py +19 -19
  129. ccxt/btcbox.py +11 -11
  130. ccxt/btcmarkets.py +22 -22
  131. ccxt/btcturk.py +13 -13
  132. ccxt/bybit.py +96 -96
  133. ccxt/cex.py +21 -21
  134. ccxt/coinbase.py +53 -53
  135. ccxt/coinbaseexchange.py +29 -29
  136. ccxt/coinbaseinternational.py +32 -32
  137. ccxt/coincheck.py +14 -14
  138. ccxt/coinex.py +168 -139
  139. ccxt/coinlist.py +35 -35
  140. ccxt/coinmate.py +22 -22
  141. ccxt/coinmetro.py +22 -22
  142. ccxt/coinone.py +18 -18
  143. ccxt/coinsph.py +32 -32
  144. ccxt/coinspot.py +8 -8
  145. ccxt/cryptocom.py +43 -43
  146. ccxt/currencycom.py +33 -33
  147. ccxt/delta.py +35 -35
  148. ccxt/deribit.py +54 -54
  149. ccxt/digifinex.py +56 -56
  150. ccxt/exmo.py +34 -34
  151. ccxt/gate.py +60 -60
  152. ccxt/gemini.py +24 -24
  153. ccxt/hitbtc.py +51 -51
  154. ccxt/hollaex.py +29 -29
  155. ccxt/htx.py +73 -73
  156. ccxt/huobijp.py +30 -30
  157. ccxt/hyperliquid.py +58 -58
  158. ccxt/idex.py +33 -33
  159. ccxt/independentreserve.py +12 -12
  160. ccxt/indodax.py +21 -21
  161. ccxt/kraken.py +46 -51
  162. ccxt/krakenfutures.py +29 -29
  163. ccxt/kucoin.py +51 -51
  164. ccxt/kucoinfutures.py +33 -33
  165. ccxt/kuna.py +27 -27
  166. ccxt/latoken.py +27 -27
  167. ccxt/lbank.py +35 -35
  168. ccxt/luno.py +19 -19
  169. ccxt/lykke.py +20 -20
  170. ccxt/mercado.py +17 -17
  171. ccxt/mexc.py +64 -64
  172. ccxt/ndax.py +38 -38
  173. ccxt/novadax.py +26 -26
  174. ccxt/oceanex.py +21 -21
  175. ccxt/okcoin.py +35 -35
  176. ccxt/okx.py +85 -85
  177. ccxt/onetrading.py +32 -32
  178. ccxt/p2b.py +14 -14
  179. ccxt/paymium.py +12 -12
  180. ccxt/phemex.py +50 -50
  181. ccxt/poloniex.py +35 -35
  182. ccxt/poloniexfutures.py +25 -21
  183. ccxt/pro/__init__.py +1 -1
  184. ccxt/pro/alpaca.py +8 -8
  185. ccxt/pro/ascendex.py +4 -4
  186. ccxt/pro/binance.py +56 -56
  187. ccxt/pro/bingx.py +5 -5
  188. ccxt/pro/bitfinex.py +6 -6
  189. ccxt/pro/bitfinex2.py +10 -10
  190. ccxt/pro/bitget.py +17 -17
  191. ccxt/pro/bithumb.py +6 -6
  192. ccxt/pro/bitmart.py +8 -8
  193. ccxt/pro/bitmex.py +16 -16
  194. ccxt/pro/bitopro.py +4 -4
  195. ccxt/pro/bitrue.py +8 -8
  196. ccxt/pro/bitstamp.py +5 -5
  197. ccxt/pro/bitvavo.py +14 -14
  198. ccxt/pro/blockchaincom.py +7 -7
  199. ccxt/pro/bybit.py +12 -12
  200. ccxt/pro/cex.py +19 -19
  201. ccxt/pro/coinbase.py +2 -2
  202. ccxt/pro/coinbaseexchange.py +10 -10
  203. ccxt/pro/coinbaseinternational.py +4 -4
  204. ccxt/pro/coincheck.py +2 -2
  205. ccxt/pro/coinex.py +15 -15
  206. ccxt/pro/coinone.py +4 -4
  207. ccxt/pro/cryptocom.py +11 -11
  208. ccxt/pro/currencycom.py +4 -4
  209. ccxt/pro/deribit.py +9 -9
  210. ccxt/pro/exmo.py +9 -9
  211. ccxt/pro/gate.py +12 -12
  212. ccxt/pro/gemini.py +11 -11
  213. ccxt/pro/hitbtc.py +13 -13
  214. ccxt/pro/hollaex.py +6 -6
  215. ccxt/pro/htx.py +15 -15
  216. ccxt/pro/huobijp.py +16 -16
  217. ccxt/pro/hyperliquid.py +9 -9
  218. ccxt/pro/idex.py +12 -12
  219. ccxt/pro/independentreserve.py +2 -2
  220. ccxt/pro/kraken.py +14 -14
  221. ccxt/pro/krakenfutures.py +12 -12
  222. ccxt/pro/kucoin.py +12 -12
  223. ccxt/pro/kucoinfutures.py +16 -16
  224. ccxt/pro/lbank.py +12 -12
  225. ccxt/pro/luno.py +4 -4
  226. ccxt/pro/mexc.py +14 -14
  227. ccxt/pro/ndax.py +12 -12
  228. ccxt/pro/okcoin.py +6 -6
  229. ccxt/pro/okx.py +30 -30
  230. ccxt/pro/onetrading.py +13 -13
  231. ccxt/pro/p2b.py +2 -2
  232. ccxt/pro/phemex.py +9 -9
  233. ccxt/pro/poloniex.py +9 -9
  234. ccxt/pro/poloniexfutures.py +10 -10
  235. ccxt/pro/probit.py +8 -8
  236. ccxt/pro/upbit.py +1 -1
  237. ccxt/pro/wazirx.py +10 -10
  238. ccxt/pro/whitebit.py +8 -8
  239. ccxt/pro/woo.py +14 -14
  240. ccxt/pro/woofipro.py +14 -14
  241. ccxt/probit.py +30 -30
  242. ccxt/test/base/test_shared_methods.py +1 -0
  243. ccxt/timex.py +22 -22
  244. ccxt/tokocrypto.py +26 -26
  245. ccxt/tradeogre.py +12 -12
  246. ccxt/upbit.py +28 -28
  247. ccxt/wavesexchange.py +33 -33
  248. ccxt/wazirx.py +21 -21
  249. ccxt/whitebit.py +37 -37
  250. ccxt/woo.py +51 -51
  251. ccxt/woofipro.py +46 -46
  252. ccxt/yobit.py +20 -20
  253. ccxt/zaif.py +12 -12
  254. ccxt/zonda.py +22 -22
  255. {ccxt-4.3.30.dist-info → ccxt-4.3.31.dist-info}/METADATA +4 -4
  256. {ccxt-4.3.30.dist-info → ccxt-4.3.31.dist-info}/RECORD +258 -258
  257. {ccxt-4.3.30.dist-info → ccxt-4.3.31.dist-info}/WHEEL +0 -0
  258. {ccxt-4.3.30.dist-info → ccxt-4.3.31.dist-info}/top_level.txt +0 -0
@@ -231,7 +231,7 @@ class lykke(Exchange, ImplicitAPI):
231
231
  # "error":null
232
232
  # }
233
233
  #
234
- result = {}
234
+ result: dict = {}
235
235
  for i in range(0, len(currencies)):
236
236
  currency = currencies[i]
237
237
  id = self.safe_string(currency, 'assetId')
@@ -436,7 +436,7 @@ class lykke(Exchange, ImplicitAPI):
436
436
  """
437
437
  await self.load_markets()
438
438
  market = self.market(symbol)
439
- request = {
439
+ request: dict = {
440
440
  'assetPairIds': market['id'],
441
441
  }
442
442
  # publicGetTickers or publicGetPrices
@@ -523,7 +523,7 @@ class lykke(Exchange, ImplicitAPI):
523
523
  """
524
524
  await self.load_markets()
525
525
  market = self.market(symbol)
526
- request = {
526
+ request: dict = {
527
527
  'assetPairId': market['id'],
528
528
  }
529
529
  if limit is not None:
@@ -557,7 +557,7 @@ class lykke(Exchange, ImplicitAPI):
557
557
  timestamp = self.safe_integer(orderbook, 'timestamp')
558
558
  return self.parse_order_book(orderbook, market['symbol'], timestamp, 'bids', 'asks', 'p', 'v')
559
559
 
560
- def parse_trade(self, trade, market: Market = None) -> Trade:
560
+ def parse_trade(self, trade: dict, market: Market = None) -> Trade:
561
561
  #
562
562
  # public fetchTrades
563
563
  #
@@ -625,7 +625,7 @@ class lykke(Exchange, ImplicitAPI):
625
625
  """
626
626
  await self.load_markets()
627
627
  market = self.market(symbol)
628
- request = {
628
+ request: dict = {
629
629
  'assetPairId': market['id'],
630
630
  # 'offset': 0,
631
631
  }
@@ -661,7 +661,7 @@ class lykke(Exchange, ImplicitAPI):
661
661
  # }
662
662
  # ]
663
663
  #
664
- result = {'info': response}
664
+ result: dict = {'info': response}
665
665
  for i in range(0, len(response)):
666
666
  balance = response[i]
667
667
  currencyId = self.safe_string(balance, 'assetId')
@@ -699,8 +699,8 @@ class lykke(Exchange, ImplicitAPI):
699
699
  #
700
700
  return self.parse_balance(payload)
701
701
 
702
- def parse_order_status(self, status):
703
- statuses = {
702
+ def parse_order_status(self, status: Str):
703
+ statuses: dict = {
704
704
  'Open': 'open',
705
705
  'Pending': 'open',
706
706
  'InOrderBook': 'open',
@@ -713,7 +713,7 @@ class lykke(Exchange, ImplicitAPI):
713
713
  }
714
714
  return self.safe_string(statuses, status, status)
715
715
 
716
- def parse_order(self, order, market: Market = None) -> Order:
716
+ def parse_order(self, order: dict, market: Market = None) -> Order:
717
717
  #
718
718
  # {
719
719
  # "id":"1b367978-7e4f-454b-b870-64040d484443",
@@ -783,7 +783,7 @@ class lykke(Exchange, ImplicitAPI):
783
783
  """
784
784
  await self.load_markets()
785
785
  market = self.market(symbol)
786
- query = {
786
+ query: dict = {
787
787
  'assetPairId': market['id'],
788
788
  'side': self.capitalize(side),
789
789
  'volume': float(self.amount_to_precision(market['symbol'], amount)),
@@ -849,7 +849,7 @@ class lykke(Exchange, ImplicitAPI):
849
849
  :param dict [params]: extra parameters specific to the exchange API endpoint
850
850
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
851
851
  """
852
- request = {
852
+ request: dict = {
853
853
  'orderId': id,
854
854
  }
855
855
  #
@@ -869,7 +869,7 @@ class lykke(Exchange, ImplicitAPI):
869
869
  :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
870
870
  """
871
871
  await self.load_markets()
872
- request = {
872
+ request: dict = {
873
873
  # 'side': 'Buy',
874
874
  }
875
875
  market = None
@@ -893,7 +893,7 @@ class lykke(Exchange, ImplicitAPI):
893
893
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
894
894
  """
895
895
  await self.load_markets()
896
- request = {
896
+ request: dict = {
897
897
  'orderId': id,
898
898
  }
899
899
  response = await self.privateGetOrdersOrderId(self.extend(request, params))
@@ -933,7 +933,7 @@ class lykke(Exchange, ImplicitAPI):
933
933
  market = None
934
934
  if symbol is not None:
935
935
  market = self.market(symbol)
936
- request = {
936
+ request: dict = {
937
937
  # 'offset': 0,
938
938
  # 'take': 1,
939
939
  }
@@ -978,7 +978,7 @@ class lykke(Exchange, ImplicitAPI):
978
978
  market = None
979
979
  if symbol is not None:
980
980
  market = self.market(symbol)
981
- request = {
981
+ request: dict = {
982
982
  # 'offset': 0,
983
983
  # 'take': 1,
984
984
  }
@@ -1020,7 +1020,7 @@ class lykke(Exchange, ImplicitAPI):
1020
1020
  :returns Trade[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
1021
1021
  """
1022
1022
  await self.load_markets()
1023
- request = {
1023
+ request: dict = {
1024
1024
  # 'side': 'buy',
1025
1025
  # 'offset': 0,
1026
1026
  # 'take': 1,
@@ -1074,7 +1074,7 @@ class lykke(Exchange, ImplicitAPI):
1074
1074
  """
1075
1075
  await self.load_markets()
1076
1076
  currency = self.currency(code)
1077
- request = {
1077
+ request: dict = {
1078
1078
  'assetId': self.safe_string(currency, 'id'),
1079
1079
  }
1080
1080
  response = await self.privateGetOperationsDepositsAddressesAssetId(self.extend(request, params))
@@ -1099,7 +1099,7 @@ class lykke(Exchange, ImplicitAPI):
1099
1099
  'info': response,
1100
1100
  }
1101
1101
 
1102
- def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
1102
+ def parse_transaction(self, transaction: dict, currency: Currency = None) -> Transaction:
1103
1103
  #
1104
1104
  # withdraw
1105
1105
  # "3035b1ad-2005-4587-a986-1f7966be78e0"
@@ -1169,7 +1169,7 @@ class lykke(Exchange, ImplicitAPI):
1169
1169
  :returns dict: a list of `transaction structure <https://docs.ccxt.com/#/?id=transaction-structure>`
1170
1170
  """
1171
1171
  await self.load_markets()
1172
- request = {
1172
+ request: dict = {
1173
1173
  # 'offset': 0,
1174
1174
  # 'take': 1,
1175
1175
  }
@@ -1211,7 +1211,7 @@ class lykke(Exchange, ImplicitAPI):
1211
1211
  await self.load_markets()
1212
1212
  self.check_address(address)
1213
1213
  currency = self.currency(code)
1214
- request = {
1214
+ request: dict = {
1215
1215
  'assetId': currency['id'],
1216
1216
  'volume': float(self.currency_to_precision(code, amount)),
1217
1217
  'destinationAddress': address,
@@ -262,7 +262,7 @@ class mercado(Exchange, ImplicitAPI):
262
262
  """
263
263
  await self.load_markets()
264
264
  market = self.market(symbol)
265
- request = {
265
+ request: dict = {
266
266
  'coin': market['base'],
267
267
  }
268
268
  response = await self.publicGetCoinOrderbook(self.extend(request, params))
@@ -316,7 +316,7 @@ class mercado(Exchange, ImplicitAPI):
316
316
  """
317
317
  await self.load_markets()
318
318
  market = self.market(symbol)
319
- request = {
319
+ request: dict = {
320
320
  'coin': market['base'],
321
321
  }
322
322
  response = await self.publicGetCoinTicker(self.extend(request, params))
@@ -337,7 +337,7 @@ class mercado(Exchange, ImplicitAPI):
337
337
  #
338
338
  return self.parse_ticker(ticker, market)
339
339
 
340
- def parse_trade(self, trade, market: Market = None) -> Trade:
340
+ def parse_trade(self, trade: dict, market: Market = None) -> Trade:
341
341
  timestamp = self.safe_timestamp_2(trade, 'date', 'executed_timestamp')
342
342
  market = self.safe_market(None, market)
343
343
  id = self.safe_string_2(trade, 'tid', 'operation_id')
@@ -380,7 +380,7 @@ class mercado(Exchange, ImplicitAPI):
380
380
  await self.load_markets()
381
381
  market = self.market(symbol)
382
382
  method = 'publicGetCoinTrades'
383
- request = {
383
+ request: dict = {
384
384
  'coin': market['base'],
385
385
  }
386
386
  if since is not None:
@@ -395,7 +395,7 @@ class mercado(Exchange, ImplicitAPI):
395
395
  def parse_balance(self, response) -> Balances:
396
396
  data = self.safe_value(response, 'response_data', {})
397
397
  balances = self.safe_value(data, 'balance', {})
398
- result = {'info': response}
398
+ result: dict = {'info': response}
399
399
  currencyIds = list(balances.keys())
400
400
  for i in range(0, len(currencyIds)):
401
401
  currencyId = currencyIds[i]
@@ -431,7 +431,7 @@ class mercado(Exchange, ImplicitAPI):
431
431
  """
432
432
  await self.load_markets()
433
433
  market = self.market(symbol)
434
- request = {
434
+ request: dict = {
435
435
  'coin_pair': market['id'],
436
436
  }
437
437
  method = self.capitalize(side) + 'Order'
@@ -466,7 +466,7 @@ class mercado(Exchange, ImplicitAPI):
466
466
  raise ArgumentsRequired(self.id + ' cancelOrder() requires a symbol argument')
467
467
  await self.load_markets()
468
468
  market = self.market(symbol)
469
- request = {
469
+ request: dict = {
470
470
  'coin_pair': market['id'],
471
471
  'order_id': id,
472
472
  }
@@ -498,15 +498,15 @@ class mercado(Exchange, ImplicitAPI):
498
498
  order = self.safe_dict(responseData, 'order', {})
499
499
  return self.parse_order(order, market)
500
500
 
501
- def parse_order_status(self, status):
502
- statuses = {
501
+ def parse_order_status(self, status: Str):
502
+ statuses: dict = {
503
503
  '2': 'open',
504
504
  '3': 'canceled',
505
505
  '4': 'closed',
506
506
  }
507
507
  return self.safe_string(statuses, status, status)
508
508
 
509
- def parse_order(self, order, market: Market = None) -> Order:
509
+ def parse_order(self, order: dict, market: Market = None) -> Order:
510
510
  #
511
511
  # {
512
512
  # "order_id": 4,
@@ -588,7 +588,7 @@ class mercado(Exchange, ImplicitAPI):
588
588
  raise ArgumentsRequired(self.id + ' fetchOrder() requires a symbol argument')
589
589
  await self.load_markets()
590
590
  market = self.market(symbol)
591
- request = {
591
+ request: dict = {
592
592
  'coin_pair': market['id'],
593
593
  'order_id': int(id),
594
594
  }
@@ -611,7 +611,7 @@ class mercado(Exchange, ImplicitAPI):
611
611
  self.check_address(address)
612
612
  await self.load_markets()
613
613
  currency = self.currency(code)
614
- request = {
614
+ request: dict = {
615
615
  'coin': currency['id'],
616
616
  'quantity': format(amount, '.10f'),
617
617
  'address': address,
@@ -654,7 +654,7 @@ class mercado(Exchange, ImplicitAPI):
654
654
  withdrawal = self.safe_dict(responseData, 'withdrawal')
655
655
  return self.parse_transaction(withdrawal, currency)
656
656
 
657
- def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
657
+ def parse_transaction(self, transaction: dict, currency: Currency = None) -> Transaction:
658
658
  #
659
659
  # {
660
660
  # "id": 1,
@@ -714,7 +714,7 @@ class mercado(Exchange, ImplicitAPI):
714
714
  """
715
715
  await self.load_markets()
716
716
  market = self.market(symbol)
717
- request = {
717
+ request: dict = {
718
718
  'resolution': self.safe_string(self.timeframes, timeframe, timeframe),
719
719
  'symbol': market['base'] + '-' + market['quote'], # exceptional endpoint, that needs custom symbol syntax
720
720
  }
@@ -743,7 +743,7 @@ class mercado(Exchange, ImplicitAPI):
743
743
  raise ArgumentsRequired(self.id + ' fetchOrders() requires a symbol argument')
744
744
  await self.load_markets()
745
745
  market = self.market(symbol)
746
- request = {
746
+ request: dict = {
747
747
  'coin_pair': market['id'],
748
748
  }
749
749
  response = await self.privatePostListOrders(self.extend(request, params))
@@ -764,7 +764,7 @@ class mercado(Exchange, ImplicitAPI):
764
764
  raise ArgumentsRequired(self.id + ' fetchOpenOrders() requires a symbol argument')
765
765
  await self.load_markets()
766
766
  market = self.market(symbol)
767
- request = {
767
+ request: dict = {
768
768
  'coin_pair': market['id'],
769
769
  'status_list': '[2]', # open only
770
770
  }
@@ -786,7 +786,7 @@ class mercado(Exchange, ImplicitAPI):
786
786
  raise ArgumentsRequired(self.id + ' fetchMyTrades() requires a symbol argument')
787
787
  await self.load_markets()
788
788
  market = self.market(symbol)
789
- request = {
789
+ request: dict = {
790
790
  'coin_pair': market['id'],
791
791
  'has_fills': True,
792
792
  }