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
@@ -662,7 +662,7 @@ class bitstamp(Exchange, ImplicitAPI):
662
662
  # },
663
663
  # ]
664
664
  #
665
- result = {}
665
+ result: dict = {}
666
666
  for i in range(0, len(response)):
667
667
  market = response[i]
668
668
  name = self.safe_string(market, 'name')
@@ -695,7 +695,7 @@ class bitstamp(Exchange, ImplicitAPI):
695
695
  """
696
696
  await self.load_markets()
697
697
  market = self.market(symbol)
698
- request = {
698
+ request: dict = {
699
699
  'pair': market['id'],
700
700
  }
701
701
  response = await self.publicGetOrderBookPair(self.extend(request, params))
@@ -778,7 +778,7 @@ class bitstamp(Exchange, ImplicitAPI):
778
778
  """
779
779
  await self.load_markets()
780
780
  market = self.market(symbol)
781
- request = {
781
+ request: dict = {
782
782
  'pair': market['id'],
783
783
  }
784
784
  ticker = await self.publicGetTickerPair(self.extend(request, params))
@@ -884,7 +884,7 @@ class bitstamp(Exchange, ImplicitAPI):
884
884
  return self.safe_market(marketId)
885
885
  return None
886
886
 
887
- def parse_trade(self, trade, market: Market = None) -> Trade:
887
+ def parse_trade(self, trade: dict, market: Market = None) -> Trade:
888
888
  #
889
889
  # fetchTrades(public)
890
890
  #
@@ -1014,7 +1014,7 @@ class bitstamp(Exchange, ImplicitAPI):
1014
1014
  """
1015
1015
  await self.load_markets()
1016
1016
  market = self.market(symbol)
1017
- request = {
1017
+ request: dict = {
1018
1018
  'pair': market['id'],
1019
1019
  'time': 'hour',
1020
1020
  }
@@ -1072,7 +1072,7 @@ class bitstamp(Exchange, ImplicitAPI):
1072
1072
  """
1073
1073
  await self.load_markets()
1074
1074
  market = self.market(symbol)
1075
- request = {
1075
+ request: dict = {
1076
1076
  'pair': market['id'],
1077
1077
  'step': self.safe_string(self.timeframes, timeframe, timeframe),
1078
1078
  }
@@ -1110,7 +1110,7 @@ class bitstamp(Exchange, ImplicitAPI):
1110
1110
  return self.parse_ohlcvs(ohlc, market, timeframe, since, limit)
1111
1111
 
1112
1112
  def parse_balance(self, response) -> Balances:
1113
- result = {
1113
+ result: dict = {
1114
1114
  'info': response,
1115
1115
  'timestamp': None,
1116
1116
  'datetime': None,
@@ -1160,7 +1160,7 @@ class bitstamp(Exchange, ImplicitAPI):
1160
1160
  """
1161
1161
  await self.load_markets()
1162
1162
  market = self.market(symbol)
1163
- request = {
1163
+ request: dict = {
1164
1164
  'market_symbol': market['id'],
1165
1165
  }
1166
1166
  response = await self.privatePostFeesTrading(self.extend(request, params))
@@ -1182,7 +1182,7 @@ class bitstamp(Exchange, ImplicitAPI):
1182
1182
  tradingFee = self.safe_dict(tradingFeesByMarketId, market['id'])
1183
1183
  return self.parse_trading_fee(tradingFee, market)
1184
1184
 
1185
- def parse_trading_fee(self, fee, market: Market = None) -> TradingFeeInterface:
1185
+ def parse_trading_fee(self, fee: dict, market: Market = None) -> TradingFeeInterface:
1186
1186
  marketId = self.safe_string(fee, 'market')
1187
1187
  fees = self.safe_dict(fee, 'fees', {})
1188
1188
  return {
@@ -1195,7 +1195,7 @@ class bitstamp(Exchange, ImplicitAPI):
1195
1195
  }
1196
1196
 
1197
1197
  def parse_trading_fees(self, fees):
1198
- result = {'info': fees}
1198
+ result: dict = {'info': fees}
1199
1199
  symbols = self.symbols
1200
1200
  for i in range(0, len(symbols)):
1201
1201
  symbol = symbols[i]
@@ -1228,7 +1228,7 @@ class bitstamp(Exchange, ImplicitAPI):
1228
1228
  #
1229
1229
  return self.parse_trading_fees(response)
1230
1230
 
1231
- async def fetch_transaction_fees(self, codes: List[str] = None, params={}):
1231
+ async def fetch_transaction_fees(self, codes: Strings = None, params={}):
1232
1232
  """
1233
1233
  * @deprecated
1234
1234
  please use fetchDepositWithdrawFees instead
@@ -1252,7 +1252,7 @@ class bitstamp(Exchange, ImplicitAPI):
1252
1252
  return self.parse_transaction_fees(response)
1253
1253
 
1254
1254
  def parse_transaction_fees(self, response, codes=None):
1255
- result = {}
1255
+ result: dict = {}
1256
1256
  currencies = self.index_by(response, 'currency')
1257
1257
  ids = list(currencies.keys())
1258
1258
  for i in range(0, len(ids)):
@@ -1333,7 +1333,7 @@ class bitstamp(Exchange, ImplicitAPI):
1333
1333
  """
1334
1334
  await self.load_markets()
1335
1335
  market = self.market(symbol)
1336
- request = {
1336
+ request: dict = {
1337
1337
  'pair': market['id'],
1338
1338
  'amount': self.amount_to_precision(symbol, amount),
1339
1339
  }
@@ -1373,7 +1373,7 @@ class bitstamp(Exchange, ImplicitAPI):
1373
1373
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
1374
1374
  """
1375
1375
  await self.load_markets()
1376
- request = {
1376
+ request: dict = {
1377
1377
  'id': id,
1378
1378
  }
1379
1379
  return await self.privatePostCancelOrder(self.extend(request, params))
@@ -1389,7 +1389,7 @@ class bitstamp(Exchange, ImplicitAPI):
1389
1389
  """
1390
1390
  await self.load_markets()
1391
1391
  market = None
1392
- request = {}
1392
+ request: dict = {}
1393
1393
  response = None
1394
1394
  if symbol is not None:
1395
1395
  market = self.market(symbol)
@@ -1399,8 +1399,8 @@ class bitstamp(Exchange, ImplicitAPI):
1399
1399
  response = await self.privatePostCancelAllOrders(self.extend(request, params))
1400
1400
  return response
1401
1401
 
1402
- def parse_order_status(self, status):
1403
- statuses = {
1402
+ def parse_order_status(self, status: Str):
1403
+ statuses: dict = {
1404
1404
  'In Queue': 'open',
1405
1405
  'Open': 'open',
1406
1406
  'Finished': 'closed',
@@ -1411,7 +1411,7 @@ class bitstamp(Exchange, ImplicitAPI):
1411
1411
  async def fetch_order_status(self, id: str, symbol: Str = None, params={}):
1412
1412
  await self.load_markets()
1413
1413
  clientOrderId = self.safe_value_2(params, 'client_order_id', 'clientOrderId')
1414
- request = {}
1414
+ request: dict = {}
1415
1415
  if clientOrderId is not None:
1416
1416
  request['client_order_id'] = clientOrderId
1417
1417
  params = self.omit(params, ['client_order_id', 'clientOrderId'])
@@ -1433,7 +1433,7 @@ class bitstamp(Exchange, ImplicitAPI):
1433
1433
  if symbol is not None:
1434
1434
  market = self.market(symbol)
1435
1435
  clientOrderId = self.safe_value_2(params, 'client_order_id', 'clientOrderId')
1436
- request = {}
1436
+ request: dict = {}
1437
1437
  if clientOrderId is not None:
1438
1438
  request['client_order_id'] = clientOrderId
1439
1439
  params = self.omit(params, ['client_order_id', 'clientOrderId'])
@@ -1472,7 +1472,7 @@ class bitstamp(Exchange, ImplicitAPI):
1472
1472
  :returns Trade[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
1473
1473
  """
1474
1474
  await self.load_markets()
1475
- request = {}
1475
+ request: dict = {}
1476
1476
  method = 'privatePostUserTransactions'
1477
1477
  market = None
1478
1478
  if symbol is not None:
@@ -1496,7 +1496,7 @@ class bitstamp(Exchange, ImplicitAPI):
1496
1496
  :returns dict: a list of `transaction structure <https://docs.ccxt.com/#/?id=transaction-structure>`
1497
1497
  """
1498
1498
  await self.load_markets()
1499
- request = {}
1499
+ request: dict = {}
1500
1500
  if limit is not None:
1501
1501
  request['limit'] = limit
1502
1502
  response = await self.privatePostUserTransactions(self.extend(request, params))
@@ -1543,7 +1543,7 @@ class bitstamp(Exchange, ImplicitAPI):
1543
1543
  :returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
1544
1544
  """
1545
1545
  await self.load_markets()
1546
- request = {}
1546
+ request: dict = {}
1547
1547
  if since is not None:
1548
1548
  request['timedelta'] = self.milliseconds() - since
1549
1549
  else:
@@ -1575,7 +1575,7 @@ class bitstamp(Exchange, ImplicitAPI):
1575
1575
  #
1576
1576
  return self.parse_transactions(response, None, since, limit)
1577
1577
 
1578
- def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
1578
+ def parse_transaction(self, transaction: dict, currency: Currency = None) -> Transaction:
1579
1579
  #
1580
1580
  # fetchDepositsWithdrawals
1581
1581
  #
@@ -1694,7 +1694,7 @@ class bitstamp(Exchange, ImplicitAPI):
1694
1694
  # withdrawals:
1695
1695
  # 0(open), 1(in process), 2(finished), 3(canceled) or 4(failed).
1696
1696
  #
1697
- statuses = {
1697
+ statuses: dict = {
1698
1698
  '0': 'pending', # Open
1699
1699
  '1': 'pending', # In process
1700
1700
  '2': 'ok', # Finished
@@ -1703,7 +1703,7 @@ class bitstamp(Exchange, ImplicitAPI):
1703
1703
  }
1704
1704
  return self.safe_string(statuses, status, status)
1705
1705
 
1706
- def parse_order(self, order, market: Market = None) -> Order:
1706
+ def parse_order(self, order: dict, market: Market = None) -> Order:
1707
1707
  #
1708
1708
  # from fetch order:
1709
1709
  # {status: "Finished",
@@ -1782,7 +1782,7 @@ class bitstamp(Exchange, ImplicitAPI):
1782
1782
  }, market)
1783
1783
 
1784
1784
  def parse_ledger_entry_type(self, type):
1785
- types = {
1785
+ types: dict = {
1786
1786
  '0': 'transaction',
1787
1787
  '1': 'transaction',
1788
1788
  '2': 'trade',
@@ -1790,7 +1790,7 @@ class bitstamp(Exchange, ImplicitAPI):
1790
1790
  }
1791
1791
  return self.safe_string(types, type, type)
1792
1792
 
1793
- def parse_ledger_entry(self, item, currency: Currency = None):
1793
+ def parse_ledger_entry(self, item: dict, currency: Currency = None):
1794
1794
  #
1795
1795
  # [
1796
1796
  # {
@@ -1888,7 +1888,7 @@ class bitstamp(Exchange, ImplicitAPI):
1888
1888
  :returns dict: a `ledger structure <https://docs.ccxt.com/#/?id=ledger-structure>`
1889
1889
  """
1890
1890
  await self.load_markets()
1891
- request = {}
1891
+ request: dict = {}
1892
1892
  if limit is not None:
1893
1893
  request['limit'] = limit
1894
1894
  response = await self.privatePostUserTransactions(self.extend(request, params))
@@ -1983,7 +1983,7 @@ class bitstamp(Exchange, ImplicitAPI):
1983
1983
  tag, params = self.handle_withdraw_tag_and_params(tag, params)
1984
1984
  await self.load_markets()
1985
1985
  self.check_address(address)
1986
- request = {
1986
+ request: dict = {
1987
1987
  'amount': amount,
1988
1988
  }
1989
1989
  currency = None
@@ -2020,7 +2020,7 @@ class bitstamp(Exchange, ImplicitAPI):
2020
2020
  """
2021
2021
  await self.load_markets()
2022
2022
  currency = self.currency(code)
2023
- request = {
2023
+ request: dict = {
2024
2024
  'amount': self.parse_to_numeric(self.currency_to_precision(code, amount)),
2025
2025
  'currency': currency['id'].upper(),
2026
2026
  }
@@ -2060,7 +2060,7 @@ class bitstamp(Exchange, ImplicitAPI):
2060
2060
  }
2061
2061
 
2062
2062
  def parse_transfer_status(self, status: Str) -> Str:
2063
- statuses = {
2063
+ statuses: dict = {
2064
2064
  'ok': 'ok',
2065
2065
  'error': 'failed',
2066
2066
  }
@@ -542,7 +542,7 @@ class bitteam(Exchange, ImplicitAPI):
542
542
  # }
543
543
  #
544
544
  statusesResponse = self.index_by(statusesResponse, 'unified_cryptoasset_id')
545
- result = {}
545
+ result: dict = {}
546
546
  for i in range(0, len(currencies)):
547
547
  currency = currencies[i]
548
548
  id = self.safe_string(currency, 'symbol')
@@ -556,7 +556,7 @@ class bitteam(Exchange, ImplicitAPI):
556
556
  minDeposit = self.safe_string(txLimits, 'minDeposit')
557
557
  fee = None
558
558
  withdrawCommissionFixed = self.safe_value(txLimits, 'withdrawCommissionFixed', {})
559
- feesByNetworkId = {}
559
+ feesByNetworkId: dict = {}
560
560
  blockChain = self.safe_string(currency, 'blockChain')
561
561
  # if only one blockChain
562
562
  if (blockChain is not None) and (blockChain != ''):
@@ -568,7 +568,7 @@ class bitteam(Exchange, ImplicitAPI):
568
568
  deposit = self.safe_value(statuses, 'depositStatus')
569
569
  withdraw = self.safe_value(statuses, 'withdrawStatus')
570
570
  networkIds = list(feesByNetworkId.keys())
571
- networks = {}
571
+ networks: dict = {}
572
572
  networkPrecision = self.safe_integer(currency, 'decimals')
573
573
  for j in range(0, len(networkIds)):
574
574
  networkId = networkIds[j]
@@ -640,7 +640,7 @@ class bitteam(Exchange, ImplicitAPI):
640
640
  await self.load_markets()
641
641
  market = self.market(symbol)
642
642
  resolution = self.safe_string(self.timeframes, timeframe, timeframe)
643
- request = {
643
+ request: dict = {
644
644
  'pairName': market['id'],
645
645
  'resolution': resolution,
646
646
  }
@@ -707,7 +707,7 @@ class bitteam(Exchange, ImplicitAPI):
707
707
  """
708
708
  await self.load_markets()
709
709
  market = self.market(symbol)
710
- request = {
710
+ request: dict = {
711
711
  'pair': market['id'],
712
712
  }
713
713
  response = await self.publicGetTradeApiCmcOrderbookPair(self.extend(request, params))
@@ -755,7 +755,7 @@ class bitteam(Exchange, ImplicitAPI):
755
755
  """
756
756
  await self.load_markets()
757
757
  type = self.safe_string(params, 'type', 'all')
758
- request = {
758
+ request: dict = {
759
759
  'type': type,
760
760
  }
761
761
  market = None
@@ -861,7 +861,7 @@ class bitteam(Exchange, ImplicitAPI):
861
861
  :returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
862
862
  """
863
863
  await self.load_markets()
864
- request = {
864
+ request: dict = {
865
865
  'id': id,
866
866
  }
867
867
  market = None
@@ -919,7 +919,7 @@ class bitteam(Exchange, ImplicitAPI):
919
919
  :returns Order[]: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
920
920
  """
921
921
  await self.load_markets()
922
- request = {
922
+ request: dict = {
923
923
  'type': 'active',
924
924
  }
925
925
  return await self.fetch_orders(symbol, since, limit, self.extend(request, params))
@@ -935,7 +935,7 @@ class bitteam(Exchange, ImplicitAPI):
935
935
  :returns Order[]: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
936
936
  """
937
937
  await self.load_markets()
938
- request = {
938
+ request: dict = {
939
939
  'type': 'closed',
940
940
  }
941
941
  return await self.fetch_orders(symbol, since, limit, self.extend(request, params))
@@ -951,7 +951,7 @@ class bitteam(Exchange, ImplicitAPI):
951
951
  :returns dict: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
952
952
  """
953
953
  await self.load_markets()
954
- request = {
954
+ request: dict = {
955
955
  'type': 'cancelled',
956
956
  }
957
957
  return await self.fetch_orders(symbol, since, limit, self.extend(request, params))
@@ -970,7 +970,7 @@ class bitteam(Exchange, ImplicitAPI):
970
970
  """
971
971
  await self.load_markets()
972
972
  market = self.market(symbol)
973
- request = {
973
+ request: dict = {
974
974
  'pairId': str(market['numericId']),
975
975
  'type': type,
976
976
  'side': side,
@@ -1018,7 +1018,7 @@ class bitteam(Exchange, ImplicitAPI):
1018
1018
  :returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
1019
1019
  """
1020
1020
  await self.load_markets()
1021
- request = {
1021
+ request: dict = {
1022
1022
  'id': id,
1023
1023
  }
1024
1024
  response = await self.privatePostTradeApiCcxtCancelorder(self.extend(request, params))
@@ -1043,7 +1043,7 @@ class bitteam(Exchange, ImplicitAPI):
1043
1043
  """
1044
1044
  await self.load_markets()
1045
1045
  market = None
1046
- request = {}
1046
+ request: dict = {}
1047
1047
  if symbol is not None:
1048
1048
  market = self.market(symbol)
1049
1049
  request['pairId'] = str(market['numericId'])
@@ -1062,7 +1062,7 @@ class bitteam(Exchange, ImplicitAPI):
1062
1062
  orders = [result]
1063
1063
  return self.parse_orders(orders, market)
1064
1064
 
1065
- def parse_order(self, order, market: Market = None) -> Order:
1065
+ def parse_order(self, order: dict, market: Market = None) -> Order:
1066
1066
  #
1067
1067
  # fetchOrders
1068
1068
  # {
@@ -1203,8 +1203,8 @@ class bitteam(Exchange, ImplicitAPI):
1203
1203
  'postOnly': False,
1204
1204
  }, market)
1205
1205
 
1206
- def parse_order_status(self, status):
1207
- statuses = {
1206
+ def parse_order_status(self, status: Str):
1207
+ statuses: dict = {
1208
1208
  'accepted': 'open',
1209
1209
  'executed': 'closed',
1210
1210
  'cancelled': 'canceled',
@@ -1217,7 +1217,7 @@ class bitteam(Exchange, ImplicitAPI):
1217
1217
  return self.safe_string(statuses, status, status)
1218
1218
 
1219
1219
  def parse_order_type(self, status):
1220
- statuses = {
1220
+ statuses: dict = {
1221
1221
  'market': 'market',
1222
1222
  'limit': 'limit',
1223
1223
  }
@@ -1291,7 +1291,7 @@ class bitteam(Exchange, ImplicitAPI):
1291
1291
  """
1292
1292
  await self.load_markets()
1293
1293
  market = self.market(symbol)
1294
- request = {
1294
+ request: dict = {
1295
1295
  'name': market['id'],
1296
1296
  }
1297
1297
  response = await self.publicGetTradeApiPairName(self.extend(request, params))
@@ -1620,7 +1620,7 @@ class bitteam(Exchange, ImplicitAPI):
1620
1620
  """
1621
1621
  await self.load_markets()
1622
1622
  market = self.market(symbol)
1623
- request = {
1623
+ request: dict = {
1624
1624
  'pair': market['id'],
1625
1625
  }
1626
1626
  response = await self.publicGetTradeApiCmcTradesPair(self.extend(request, params))
@@ -1658,7 +1658,7 @@ class bitteam(Exchange, ImplicitAPI):
1658
1658
  :returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#trade-structure>`
1659
1659
  """
1660
1660
  await self.load_markets()
1661
- request = {}
1661
+ request: dict = {}
1662
1662
  market = None
1663
1663
  if symbol is not None:
1664
1664
  market = self.market(symbol)
@@ -1803,7 +1803,7 @@ class bitteam(Exchange, ImplicitAPI):
1803
1803
  trades = self.safe_list(result, 'trades', [])
1804
1804
  return self.parse_trades(trades, market, since, limit)
1805
1805
 
1806
- def parse_trade(self, trade, market: Market = None) -> Trade:
1806
+ def parse_trade(self, trade: dict, market: Market = None) -> Trade:
1807
1807
  #
1808
1808
  # fetchTrades
1809
1809
  # {
@@ -1961,7 +1961,7 @@ class bitteam(Exchange, ImplicitAPI):
1961
1961
  # }
1962
1962
  #
1963
1963
  timestamp = self.milliseconds()
1964
- balance = {
1964
+ balance: dict = {
1965
1965
  'info': response,
1966
1966
  'timestamp': timestamp,
1967
1967
  'datetime': self.iso8601(timestamp),
@@ -1995,7 +1995,7 @@ class bitteam(Exchange, ImplicitAPI):
1995
1995
  """
1996
1996
  await self.load_markets()
1997
1997
  currency = None
1998
- request = {}
1998
+ request: dict = {}
1999
1999
  if code is not None:
2000
2000
  currency = self.currency(code)
2001
2001
  request['currency'] = currency['numericId']
@@ -2094,7 +2094,7 @@ class bitteam(Exchange, ImplicitAPI):
2094
2094
  transactions = self.safe_list(result, 'transactions', [])
2095
2095
  return self.parse_transactions(transactions, currency, since, limit)
2096
2096
 
2097
- def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
2097
+ def parse_transaction(self, transaction: dict, currency: Currency = None) -> Transaction:
2098
2098
  #
2099
2099
  # {
2100
2100
  # "id": 1329229,
@@ -2184,14 +2184,14 @@ class bitteam(Exchange, ImplicitAPI):
2184
2184
  }
2185
2185
 
2186
2186
  def parse_transaction_type(self, type):
2187
- types = {
2187
+ types: dict = {
2188
2188
  'deposit': 'deposit',
2189
2189
  'withdraw': 'withdrawal',
2190
2190
  }
2191
2191
  return self.safe_string(types, type, type)
2192
2192
 
2193
2193
  def parse_transaction_status(self, status):
2194
- statuses = {
2194
+ statuses: dict = {
2195
2195
  'approving': 'pending',
2196
2196
  'success': 'ok',
2197
2197
  }