ccxt 4.1.54__py2.py3-none-any.whl → 4.1.56__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.

Potentially problematic release.


This version of ccxt might be problematic. Click here for more details.

Files changed (251) hide show
  1. ccxt/__init__.py +2 -2
  2. ccxt/abstract/binance.py +1 -0
  3. ccxt/abstract/binancecoinm.py +1 -0
  4. ccxt/abstract/binanceus.py +1 -0
  5. ccxt/abstract/binanceusdm.py +1 -0
  6. ccxt/abstract/bitbank.py +1 -0
  7. ccxt/abstract/coinbase.py +2 -0
  8. ccxt/abstract/htx.py +3 -0
  9. ccxt/abstract/huobi.py +3 -0
  10. ccxt/abstract/huobipro.py +3 -0
  11. ccxt/abstract/okex.py +3 -1
  12. ccxt/abstract/okex5.py +3 -1
  13. ccxt/abstract/okx.py +3 -1
  14. ccxt/ace.py +23 -23
  15. ccxt/alpaca.py +8 -8
  16. ccxt/ascendex.py +26 -26
  17. ccxt/async_support/__init__.py +2 -2
  18. ccxt/async_support/ace.py +23 -23
  19. ccxt/async_support/alpaca.py +8 -8
  20. ccxt/async_support/ascendex.py +26 -26
  21. ccxt/async_support/base/exchange.py +4 -2216
  22. ccxt/async_support/bigone.py +21 -24
  23. ccxt/async_support/binance.py +61 -54
  24. ccxt/async_support/bingx.py +28 -28
  25. ccxt/async_support/bit2c.py +9 -9
  26. ccxt/async_support/bitbank.py +11 -10
  27. ccxt/async_support/bitbns.py +11 -11
  28. ccxt/async_support/bitfinex.py +15 -15
  29. ccxt/async_support/bitfinex2.py +22 -22
  30. ccxt/async_support/bitflyer.py +13 -13
  31. ccxt/async_support/bitforex.py +10 -10
  32. ccxt/async_support/bitget.py +44 -44
  33. ccxt/async_support/bithumb.py +9 -9
  34. ccxt/async_support/bitmart.py +85 -104
  35. ccxt/async_support/bitmex.py +27 -27
  36. ccxt/async_support/bitopro.py +18 -18
  37. ccxt/async_support/bitpanda.py +18 -18
  38. ccxt/async_support/bitrue.py +14 -14
  39. ccxt/async_support/bitso.py +17 -17
  40. ccxt/async_support/bitstamp.py +17 -17
  41. ccxt/async_support/bittrex.py +22 -24
  42. ccxt/async_support/bitvavo.py +15 -15
  43. ccxt/async_support/bl3p.py +4 -4
  44. ccxt/async_support/blockchaincom.py +17 -17
  45. ccxt/async_support/btcalpha.py +14 -14
  46. ccxt/async_support/btcbox.py +9 -9
  47. ccxt/async_support/btcmarkets.py +17 -17
  48. ccxt/async_support/btcturk.py +9 -9
  49. ccxt/async_support/bybit.py +46 -46
  50. ccxt/async_support/cex.py +10 -10
  51. ccxt/async_support/coinbase.py +69 -25
  52. ccxt/async_support/coinbasepro.py +19 -19
  53. ccxt/async_support/coincheck.py +10 -10
  54. ccxt/async_support/coinex.py +57 -66
  55. ccxt/async_support/coinlist.py +22 -22
  56. ccxt/async_support/coinmate.py +10 -10
  57. ccxt/async_support/coinone.py +10 -10
  58. ccxt/async_support/coinsph.py +17 -17
  59. ccxt/async_support/coinspot.py +5 -5
  60. ccxt/async_support/cryptocom.py +27 -27
  61. ccxt/async_support/currencycom.py +18 -18
  62. ccxt/async_support/delta.py +21 -21
  63. ccxt/async_support/deribit.py +24 -24
  64. ccxt/async_support/digifinex.py +35 -35
  65. ccxt/async_support/exmo.py +19 -19
  66. ccxt/async_support/gate.py +38 -38
  67. ccxt/async_support/gemini.py +11 -11
  68. ccxt/async_support/hitbtc.py +27 -27
  69. ccxt/async_support/hollaex.py +19 -19
  70. ccxt/async_support/htx.py +47 -44
  71. ccxt/async_support/huobijp.py +22 -22
  72. ccxt/async_support/idex.py +20 -20
  73. ccxt/async_support/independentreserve.py +9 -9
  74. ccxt/async_support/indodax.py +10 -10
  75. ccxt/async_support/kraken.py +25 -25
  76. ccxt/async_support/krakenfutures.py +17 -17
  77. ccxt/async_support/kucoin.py +27 -27
  78. ccxt/async_support/kucoinfutures.py +20 -20
  79. ccxt/async_support/kuna.py +19 -19
  80. ccxt/async_support/latoken.py +14 -14
  81. ccxt/async_support/lbank.py +18 -18
  82. ccxt/async_support/luno.py +14 -14
  83. ccxt/async_support/lykke.py +12 -12
  84. ccxt/async_support/mercado.py +11 -11
  85. ccxt/async_support/mexc.py +36 -36
  86. ccxt/async_support/ndax.py +18 -18
  87. ccxt/async_support/novadax.py +17 -17
  88. ccxt/async_support/oceanex.py +12 -12
  89. ccxt/async_support/okcoin.py +19 -19
  90. ccxt/async_support/okx.py +48 -45
  91. ccxt/async_support/p2b.py +6 -6
  92. ccxt/async_support/paymium.py +6 -6
  93. ccxt/async_support/phemex.py +57 -57
  94. ccxt/async_support/poloniex.py +31 -30
  95. ccxt/async_support/poloniexfutures.py +16 -16
  96. ccxt/async_support/probit.py +22 -22
  97. ccxt/async_support/tidex.py +15 -15
  98. ccxt/async_support/timex.py +20 -20
  99. ccxt/async_support/tokocrypto.py +16 -16
  100. ccxt/async_support/upbit.py +15 -15
  101. ccxt/async_support/wavesexchange.py +12 -12
  102. ccxt/async_support/wazirx.py +13 -13
  103. ccxt/async_support/whitebit.py +26 -26
  104. ccxt/async_support/woo.py +47 -47
  105. ccxt/async_support/yobit.py +8 -8
  106. ccxt/async_support/zaif.py +10 -10
  107. ccxt/async_support/zonda.py +16 -16
  108. ccxt/base/errors.py +17 -16
  109. ccxt/base/exchange.py +57 -97
  110. ccxt/base/types.py +138 -139
  111. ccxt/bigone.py +21 -24
  112. ccxt/binance.py +61 -54
  113. ccxt/bingx.py +28 -28
  114. ccxt/bit2c.py +9 -9
  115. ccxt/bitbank.py +11 -10
  116. ccxt/bitbns.py +11 -11
  117. ccxt/bitfinex.py +15 -15
  118. ccxt/bitfinex2.py +22 -22
  119. ccxt/bitflyer.py +13 -13
  120. ccxt/bitforex.py +10 -10
  121. ccxt/bitget.py +44 -44
  122. ccxt/bithumb.py +9 -9
  123. ccxt/bitmart.py +85 -104
  124. ccxt/bitmex.py +27 -27
  125. ccxt/bitopro.py +18 -18
  126. ccxt/bitpanda.py +18 -18
  127. ccxt/bitrue.py +14 -14
  128. ccxt/bitso.py +17 -17
  129. ccxt/bitstamp.py +17 -17
  130. ccxt/bittrex.py +22 -24
  131. ccxt/bitvavo.py +15 -15
  132. ccxt/bl3p.py +4 -4
  133. ccxt/blockchaincom.py +17 -17
  134. ccxt/btcalpha.py +14 -14
  135. ccxt/btcbox.py +9 -9
  136. ccxt/btcmarkets.py +17 -17
  137. ccxt/btcturk.py +9 -9
  138. ccxt/bybit.py +46 -46
  139. ccxt/cex.py +10 -10
  140. ccxt/coinbase.py +69 -25
  141. ccxt/coinbasepro.py +19 -19
  142. ccxt/coincheck.py +10 -10
  143. ccxt/coinex.py +57 -66
  144. ccxt/coinlist.py +22 -22
  145. ccxt/coinmate.py +10 -10
  146. ccxt/coinone.py +10 -10
  147. ccxt/coinsph.py +17 -17
  148. ccxt/coinspot.py +5 -5
  149. ccxt/cryptocom.py +27 -27
  150. ccxt/currencycom.py +18 -18
  151. ccxt/delta.py +21 -21
  152. ccxt/deribit.py +24 -24
  153. ccxt/digifinex.py +35 -35
  154. ccxt/exmo.py +19 -19
  155. ccxt/gate.py +38 -38
  156. ccxt/gemini.py +11 -11
  157. ccxt/hitbtc.py +27 -27
  158. ccxt/hollaex.py +19 -19
  159. ccxt/htx.py +47 -44
  160. ccxt/huobijp.py +22 -22
  161. ccxt/idex.py +20 -20
  162. ccxt/independentreserve.py +9 -9
  163. ccxt/indodax.py +10 -10
  164. ccxt/kraken.py +25 -25
  165. ccxt/krakenfutures.py +17 -17
  166. ccxt/kucoin.py +27 -27
  167. ccxt/kucoinfutures.py +20 -20
  168. ccxt/kuna.py +19 -19
  169. ccxt/latoken.py +14 -14
  170. ccxt/lbank.py +18 -18
  171. ccxt/luno.py +14 -14
  172. ccxt/lykke.py +12 -12
  173. ccxt/mercado.py +11 -11
  174. ccxt/mexc.py +36 -36
  175. ccxt/ndax.py +18 -18
  176. ccxt/novadax.py +17 -17
  177. ccxt/oceanex.py +12 -12
  178. ccxt/okcoin.py +19 -19
  179. ccxt/okx.py +48 -45
  180. ccxt/p2b.py +6 -6
  181. ccxt/paymium.py +6 -6
  182. ccxt/phemex.py +57 -57
  183. ccxt/poloniex.py +31 -30
  184. ccxt/poloniexfutures.py +16 -16
  185. ccxt/pro/__init__.py +1 -1
  186. ccxt/pro/alpaca.py +3 -3
  187. ccxt/pro/ascendex.py +2 -2
  188. ccxt/pro/binance.py +9 -9
  189. ccxt/pro/bingx.py +3 -3
  190. ccxt/pro/bitfinex.py +3 -3
  191. ccxt/pro/bitfinex2.py +3 -3
  192. ccxt/pro/bitget.py +3 -3
  193. ccxt/pro/bitmart.py +2 -2
  194. ccxt/pro/bitmex.py +3 -3
  195. ccxt/pro/bitpanda.py +3 -3
  196. ccxt/pro/bitrue.py +2 -2
  197. ccxt/pro/bitstamp.py +2 -2
  198. ccxt/pro/bittrex.py +3 -3
  199. ccxt/pro/bitvavo.py +3 -3
  200. ccxt/pro/blockchaincom.py +2 -2
  201. ccxt/pro/bybit.py +4 -4
  202. ccxt/pro/cex.py +3 -3
  203. ccxt/pro/coinbasepro.py +3 -3
  204. ccxt/pro/coinex.py +2 -2
  205. ccxt/pro/cryptocom.py +5 -5
  206. ccxt/pro/deribit.py +3 -3
  207. ccxt/pro/exmo.py +2 -2
  208. ccxt/pro/gate.py +3 -3
  209. ccxt/pro/gemini.py +2 -2
  210. ccxt/pro/hitbtc.py +4 -4
  211. ccxt/pro/hollaex.py +3 -3
  212. ccxt/pro/htx.py +3 -3
  213. ccxt/pro/idex.py +3 -3
  214. ccxt/pro/kraken.py +7 -7
  215. ccxt/pro/krakenfutures.py +4 -4
  216. ccxt/pro/kucoin.py +3 -3
  217. ccxt/pro/kucoinfutures.py +3 -3
  218. ccxt/pro/mexc.py +3 -3
  219. ccxt/pro/okcoin.py +2 -2
  220. ccxt/pro/okx.py +6 -6
  221. ccxt/pro/phemex.py +3 -3
  222. ccxt/pro/poloniex.py +3 -3
  223. ccxt/pro/poloniexfutures.py +3 -3
  224. ccxt/pro/probit.py +3 -3
  225. ccxt/pro/wazirx.py +3 -3
  226. ccxt/pro/whitebit.py +3 -3
  227. ccxt/pro/woo.py +2 -2
  228. ccxt/probit.py +22 -22
  229. ccxt/test/base/test_shared_methods.py +3 -3
  230. ccxt/test/test_async.py +543 -535
  231. ccxt/test/test_sync.py +542 -534
  232. ccxt/tidex.py +15 -15
  233. ccxt/timex.py +20 -20
  234. ccxt/tokocrypto.py +16 -16
  235. ccxt/upbit.py +15 -15
  236. ccxt/wavesexchange.py +12 -12
  237. ccxt/wazirx.py +13 -13
  238. ccxt/whitebit.py +26 -26
  239. ccxt/woo.py +47 -47
  240. ccxt/yobit.py +8 -8
  241. ccxt/zaif.py +10 -10
  242. ccxt/zonda.py +16 -16
  243. {ccxt-4.1.54.dist-info → ccxt-4.1.56.dist-info}/METADATA +10 -8
  244. ccxt-4.1.56.dist-info/RECORD +449 -0
  245. ccxt/async_support/bitstamp1.py +0 -402
  246. ccxt/async_support/lbank2.py +0 -2620
  247. ccxt/bitstamp1.py +0 -402
  248. ccxt/lbank2.py +0 -2619
  249. ccxt-4.1.54.dist-info/RECORD +0 -453
  250. {ccxt-4.1.54.dist-info → ccxt-4.1.56.dist-info}/WHEEL +0 -0
  251. {ccxt-4.1.54.dist-info → ccxt-4.1.56.dist-info}/top_level.txt +0 -0
ccxt/bitso.py CHANGED
@@ -6,7 +6,7 @@
6
6
  from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.bitso import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Balances, Int, Order, OrderBook, OrderSide, OrderType, String, Strings, Ticker, Trade, Transaction
9
+ from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Trade, Transaction
10
10
  from typing import List
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import ArgumentsRequired
@@ -186,7 +186,7 @@ class bitso(Exchange, ImplicitAPI):
186
186
  },
187
187
  })
188
188
 
189
- def fetch_ledger(self, code: String = None, since: Int = None, limit: Int = None, params={}):
189
+ def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
190
190
  """
191
191
  fetch the history of changes, actions done by the user or operations that altered balance of the user
192
192
  :param str code: unified currency code, default is None
@@ -235,7 +235,7 @@ class bitso(Exchange, ImplicitAPI):
235
235
  }
236
236
  return self.safe_string(types, type, type)
237
237
 
238
- def parse_ledger_entry(self, item, currency=None):
238
+ def parse_ledger_entry(self, item, currency: Currency = None):
239
239
  #
240
240
  # {
241
241
  # "eid": "2510b3e2bc1c87f584500a18084f35ed",
@@ -541,7 +541,7 @@ class bitso(Exchange, ImplicitAPI):
541
541
  timestamp = self.parse8601(self.safe_string(orderbook, 'updated_at'))
542
542
  return self.parse_order_book(orderbook, market['symbol'], timestamp, 'bids', 'asks', 'price', 'amount')
543
543
 
544
- def parse_ticker(self, ticker, market=None) -> Ticker:
544
+ def parse_ticker(self, ticker, market: Market = None) -> Ticker:
545
545
  #
546
546
  # {
547
547
  # "high":"37446.85",
@@ -666,7 +666,7 @@ class bitso(Exchange, ImplicitAPI):
666
666
  payload = self.safe_value(response, 'payload', [])
667
667
  return self.parse_ohlcvs(payload, market, timeframe, since, limit)
668
668
 
669
- def parse_ohlcv(self, ohlcv, market=None) -> list:
669
+ def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
670
670
  #
671
671
  # {
672
672
  # "bucket_start_time":1648219140000,
@@ -690,7 +690,7 @@ class bitso(Exchange, ImplicitAPI):
690
690
  self.safe_number(ohlcv, 'volume'),
691
691
  ]
692
692
 
693
- def parse_trade(self, trade, market=None) -> Trade:
693
+ def parse_trade(self, trade, market: Market = None) -> Trade:
694
694
  #
695
695
  # fetchTrades(public)
696
696
  #
@@ -874,7 +874,7 @@ class bitso(Exchange, ImplicitAPI):
874
874
  }
875
875
  return result
876
876
 
877
- def fetch_my_trades(self, symbol: String = None, since: Int = None, limit=25, params={}):
877
+ def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit=25, params={}):
878
878
  """
879
879
  fetch all trades made by the user
880
880
  :param str symbol: unified market symbol
@@ -935,7 +935,7 @@ class bitso(Exchange, ImplicitAPI):
935
935
  'id': id,
936
936
  }, market)
937
937
 
938
- def cancel_order(self, id: str, symbol: String = None, params={}):
938
+ def cancel_order(self, id: str, symbol: Str = None, params={}):
939
939
  """
940
940
  cancels an open order
941
941
  :param str id: order id
@@ -949,7 +949,7 @@ class bitso(Exchange, ImplicitAPI):
949
949
  }
950
950
  return self.privateDeleteOrdersOid(self.extend(request, params))
951
951
 
952
- def cancel_orders(self, ids, symbol: String = None, params={}):
952
+ def cancel_orders(self, ids, symbol: Str = None, params={}):
953
953
  """
954
954
  cancel multiple orders
955
955
  :param str[] ids: order ids
@@ -980,7 +980,7 @@ class bitso(Exchange, ImplicitAPI):
980
980
  orders.append(self.parse_order(id, market))
981
981
  return orders
982
982
 
983
- def cancel_all_orders(self, symbol: String = None, params={}):
983
+ def cancel_all_orders(self, symbol: Str = None, params={}):
984
984
  """
985
985
  cancel all open orders
986
986
  :param None symbol: bitso does not support canceling orders for only a specific market
@@ -1012,7 +1012,7 @@ class bitso(Exchange, ImplicitAPI):
1012
1012
  }
1013
1013
  return self.safe_string(statuses, status, status)
1014
1014
 
1015
- def parse_order(self, order, market=None) -> Order:
1015
+ def parse_order(self, order, market: Market = None) -> Order:
1016
1016
  #
1017
1017
  #
1018
1018
  # canceledOrder
@@ -1058,7 +1058,7 @@ class bitso(Exchange, ImplicitAPI):
1058
1058
  'trades': None,
1059
1059
  }, market)
1060
1060
 
1061
- def fetch_open_orders(self, symbol: String = None, since: Int = None, limit=25, params={}) -> List[Order]:
1061
+ def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit=25, params={}) -> List[Order]:
1062
1062
  """
1063
1063
  fetch all unfilled currently open orders
1064
1064
  :param str symbol: unified market symbol
@@ -1092,7 +1092,7 @@ class bitso(Exchange, ImplicitAPI):
1092
1092
  orders = self.parse_orders(response['payload'], market, since, limit)
1093
1093
  return orders
1094
1094
 
1095
- def fetch_order(self, id: str, symbol: String = None, params={}):
1095
+ def fetch_order(self, id: str, symbol: Str = None, params={}):
1096
1096
  """
1097
1097
  fetches information on an order made by the user
1098
1098
  :param str symbol: not used by bitso fetchOrder
@@ -1110,7 +1110,7 @@ class bitso(Exchange, ImplicitAPI):
1110
1110
  return self.parse_order(payload[0])
1111
1111
  raise OrderNotFound(self.id + ': The order ' + id + ' not found.')
1112
1112
 
1113
- def fetch_order_trades(self, id: str, symbol: String = None, since: Int = None, limit: Int = None, params={}):
1113
+ def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1114
1114
  """
1115
1115
  fetch all the trades made from a single order
1116
1116
  :param str id: order id
@@ -1128,7 +1128,7 @@ class bitso(Exchange, ImplicitAPI):
1128
1128
  response = self.privateGetOrderTradesOid(self.extend(request, params))
1129
1129
  return self.parse_trades(response['payload'], market)
1130
1130
 
1131
- def fetch_deposit(self, id: str, code: String = None, params={}):
1131
+ def fetch_deposit(self, id: str, code: Str = None, params={}):
1132
1132
  """
1133
1133
  fetch information on a deposit
1134
1134
  :param str id: deposit id
@@ -1168,7 +1168,7 @@ class bitso(Exchange, ImplicitAPI):
1168
1168
  first = self.safe_value(transactions, 0, {})
1169
1169
  return self.parse_transaction(first)
1170
1170
 
1171
- def fetch_deposits(self, code: String = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1171
+ def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1172
1172
  """
1173
1173
  fetch all deposits made to an account
1174
1174
  :param str code: unified currency code
@@ -1520,7 +1520,7 @@ class bitso(Exchange, ImplicitAPI):
1520
1520
  }
1521
1521
  return self.safe_string(networksById, networkId, networkId)
1522
1522
 
1523
- def parse_transaction(self, transaction, currency=None) -> Transaction:
1523
+ def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
1524
1524
  #
1525
1525
  # deposit
1526
1526
  # {
ccxt/bitstamp.py CHANGED
@@ -6,7 +6,7 @@
6
6
  from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.bitstamp import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Balances, Int, Order, OrderBook, OrderSide, OrderType, String, Strings, Ticker, Tickers, Trade, Transaction
9
+ from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
10
10
  from typing import List
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import PermissionDenied
@@ -665,7 +665,7 @@ class bitstamp(Exchange, ImplicitAPI):
665
665
  orderbook['nonce'] = microtimestamp
666
666
  return orderbook
667
667
 
668
- def parse_ticker(self, ticker, market=None) -> Ticker:
668
+ def parse_ticker(self, ticker, market: Market = None) -> Ticker:
669
669
  #
670
670
  # {
671
671
  # "timestamp": "1686068944",
@@ -827,7 +827,7 @@ class bitstamp(Exchange, ImplicitAPI):
827
827
  return self.safe_market(marketId)
828
828
  return None
829
829
 
830
- def parse_trade(self, trade, market=None) -> Trade:
830
+ def parse_trade(self, trade, market: Market = None) -> Trade:
831
831
  #
832
832
  # fetchTrades(public)
833
833
  #
@@ -981,7 +981,7 @@ class bitstamp(Exchange, ImplicitAPI):
981
981
  #
982
982
  return self.parse_trades(response, market, since, limit)
983
983
 
984
- def parse_ohlcv(self, ohlcv, market=None) -> list:
984
+ def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
985
985
  #
986
986
  # {
987
987
  # "high": "9064.77",
@@ -1111,7 +1111,7 @@ class bitstamp(Exchange, ImplicitAPI):
1111
1111
  response = self.privatePostBalancePair(self.extend(request, params))
1112
1112
  return self.parse_trading_fee(response, market)
1113
1113
 
1114
- def parse_trading_fee(self, fee, market=None):
1114
+ def parse_trading_fee(self, fee, market: Market = None):
1115
1115
  market = self.safe_market(None, market)
1116
1116
  feeString = self.safe_string(fee, market['id'] + '_fee')
1117
1117
  dividedFeeString = Precise.string_div(feeString, '100')
@@ -1297,7 +1297,7 @@ class bitstamp(Exchange, ImplicitAPI):
1297
1297
  order['type'] = type
1298
1298
  return order
1299
1299
 
1300
- def cancel_order(self, id: str, symbol: String = None, params={}):
1300
+ def cancel_order(self, id: str, symbol: Str = None, params={}):
1301
1301
  """
1302
1302
  cancels an open order
1303
1303
  :param str id: order id
@@ -1311,7 +1311,7 @@ class bitstamp(Exchange, ImplicitAPI):
1311
1311
  }
1312
1312
  return self.privatePostCancelOrder(self.extend(request, params))
1313
1313
 
1314
- def cancel_all_orders(self, symbol: String = None, params={}):
1314
+ def cancel_all_orders(self, symbol: Str = None, params={}):
1315
1315
  """
1316
1316
  cancel all open orders
1317
1317
  :param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
@@ -1337,7 +1337,7 @@ class bitstamp(Exchange, ImplicitAPI):
1337
1337
  }
1338
1338
  return self.safe_string(statuses, status, status)
1339
1339
 
1340
- def fetch_order_status(self, id: str, symbol: String = None, params={}):
1340
+ def fetch_order_status(self, id: str, symbol: Str = None, params={}):
1341
1341
  self.load_markets()
1342
1342
  clientOrderId = self.safe_value_2(params, 'client_order_id', 'clientOrderId')
1343
1343
  request = {}
@@ -1349,7 +1349,7 @@ class bitstamp(Exchange, ImplicitAPI):
1349
1349
  response = self.privatePostOrderStatus(self.extend(request, params))
1350
1350
  return self.parse_order_status(self.safe_string(response, 'status'))
1351
1351
 
1352
- def fetch_order(self, id: str, symbol: String = None, params={}):
1352
+ def fetch_order(self, id: str, symbol: Str = None, params={}):
1353
1353
  """
1354
1354
  fetches information on an order made by the user
1355
1355
  :param str symbol: unified symbol of the market the order was made in
@@ -1388,7 +1388,7 @@ class bitstamp(Exchange, ImplicitAPI):
1388
1388
  #
1389
1389
  return self.parse_order(response, market)
1390
1390
 
1391
- def fetch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
1391
+ def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1392
1392
  """
1393
1393
  fetch all trades made by the user
1394
1394
  :param str symbol: unified market symbol
@@ -1411,7 +1411,7 @@ class bitstamp(Exchange, ImplicitAPI):
1411
1411
  result = self.filter_by(response, 'type', '2')
1412
1412
  return self.parse_trades(result, market, since, limit)
1413
1413
 
1414
- def fetch_deposits_withdrawals(self, code: String = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1414
+ def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1415
1415
  """
1416
1416
  fetch history of deposits and withdrawals
1417
1417
  :param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
@@ -1457,7 +1457,7 @@ class bitstamp(Exchange, ImplicitAPI):
1457
1457
  transactions = self.filter_by_array(response, 'type', ['0', '1'], False)
1458
1458
  return self.parse_transactions(transactions, currency, since, limit)
1459
1459
 
1460
- def fetch_withdrawals(self, code: String = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1460
+ def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1461
1461
  """
1462
1462
  fetch all withdrawals made from an account
1463
1463
  :param str code: unified currency code
@@ -1499,7 +1499,7 @@ class bitstamp(Exchange, ImplicitAPI):
1499
1499
  #
1500
1500
  return self.parse_transactions(response, None, since, limit)
1501
1501
 
1502
- def parse_transaction(self, transaction, currency=None) -> Transaction:
1502
+ def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
1503
1503
  #
1504
1504
  # fetchDepositsWithdrawals
1505
1505
  #
@@ -1627,7 +1627,7 @@ class bitstamp(Exchange, ImplicitAPI):
1627
1627
  }
1628
1628
  return self.safe_string(statuses, status, status)
1629
1629
 
1630
- def parse_order(self, order, market=None) -> Order:
1630
+ def parse_order(self, order, market: Market = None) -> Order:
1631
1631
  #
1632
1632
  # from fetch order:
1633
1633
  # {status: "Finished",
@@ -1714,7 +1714,7 @@ class bitstamp(Exchange, ImplicitAPI):
1714
1714
  }
1715
1715
  return self.safe_string(types, type, type)
1716
1716
 
1717
- def parse_ledger_entry(self, item, currency=None):
1717
+ def parse_ledger_entry(self, item, currency: Currency = None):
1718
1718
  #
1719
1719
  # [
1720
1720
  # {
@@ -1801,7 +1801,7 @@ class bitstamp(Exchange, ImplicitAPI):
1801
1801
  'fee': parsedTransaction['fee'],
1802
1802
  }
1803
1803
 
1804
- def fetch_ledger(self, code: String = None, since: Int = None, limit: Int = None, params={}):
1804
+ def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
1805
1805
  """
1806
1806
  fetch the history of changes, actions done by the user or operations that altered balance of the user
1807
1807
  :param str code: unified currency code, default is None
@@ -1820,7 +1820,7 @@ class bitstamp(Exchange, ImplicitAPI):
1820
1820
  currency = self.currency(code)
1821
1821
  return self.parse_ledger(response, currency, since, limit)
1822
1822
 
1823
- def fetch_open_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1823
+ def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1824
1824
  """
1825
1825
  fetch all unfilled currently open orders
1826
1826
  :param str symbol: unified market symbol
ccxt/bittrex.py CHANGED
@@ -6,7 +6,7 @@
6
6
  from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.bittrex import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Balances, Int, Market, Order, OrderBook, OrderSide, OrderType, String, Strings, Ticker, Tickers, Trade, Transaction
9
+ from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
10
10
  from typing import List
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import PermissionDenied
@@ -512,7 +512,7 @@ class bittrex(Exchange, ImplicitAPI):
512
512
  }
513
513
  return result
514
514
 
515
- def parse_ticker(self, ticker, market=None) -> Ticker:
515
+ def parse_ticker(self, ticker, market: Market = None) -> Ticker:
516
516
  #
517
517
  # ticker
518
518
  #
@@ -673,7 +673,7 @@ class bittrex(Exchange, ImplicitAPI):
673
673
  #
674
674
  return self.parse_tickers(response, symbols)
675
675
 
676
- def parse_trade(self, trade, market=None) -> Trade:
676
+ def parse_trade(self, trade, market: Market = None) -> Trade:
677
677
  #
678
678
  # public fetchTrades
679
679
  #
@@ -833,7 +833,7 @@ class bittrex(Exchange, ImplicitAPI):
833
833
  #
834
834
  return self.parse_trading_fees(response)
835
835
 
836
- def parse_trading_fee(self, fee, market=None):
836
+ def parse_trading_fee(self, fee, market: Market = None):
837
837
  marketId = self.safe_string(fee, 'marketSymbol')
838
838
  maker = self.safe_number(fee, 'makerRate')
839
839
  taker = self.safe_number(fee, 'takerRate')
@@ -854,7 +854,7 @@ class bittrex(Exchange, ImplicitAPI):
854
854
  result[symbol] = fee
855
855
  return result
856
856
 
857
- def parse_ohlcv(self, ohlcv, market=None) -> list:
857
+ def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
858
858
  #
859
859
  # {
860
860
  # "startsAt":"2020-06-12T02:35:00Z",
@@ -935,7 +935,7 @@ class bittrex(Exchange, ImplicitAPI):
935
935
  #
936
936
  return self.parse_ohlcvs(response, market, timeframe, since, limit)
937
937
 
938
- def fetch_open_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
938
+ def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
939
939
  """
940
940
  fetch all unfilled currently open orders
941
941
  :param str symbol: unified market symbol
@@ -1001,7 +1001,7 @@ class bittrex(Exchange, ImplicitAPI):
1001
1001
  #
1002
1002
  return self.parse_orders(response, market, since, limit)
1003
1003
 
1004
- def fetch_order_trades(self, id: str, symbol: String = None, since: Int = None, limit: Int = None, params={}):
1004
+ def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1005
1005
  """
1006
1006
  fetch all the trades made from a single order
1007
1007
  :param str id: order id
@@ -1186,7 +1186,7 @@ class bittrex(Exchange, ImplicitAPI):
1186
1186
  #
1187
1187
  return self.parse_order(response, market)
1188
1188
 
1189
- def cancel_order(self, id: str, symbol: String = None, params={}):
1189
+ def cancel_order(self, id: str, symbol: Str = None, params={}):
1190
1190
  """
1191
1191
  cancels an open order
1192
1192
  :param str id: order id
@@ -1263,7 +1263,7 @@ class bittrex(Exchange, ImplicitAPI):
1263
1263
  'status': 'canceled',
1264
1264
  })
1265
1265
 
1266
- def cancel_all_orders(self, symbol: String = None, params={}):
1266
+ def cancel_all_orders(self, symbol: Str = None, params={}):
1267
1267
  """
1268
1268
  cancel all open orders
1269
1269
  :param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
@@ -1307,7 +1307,7 @@ class bittrex(Exchange, ImplicitAPI):
1307
1307
  orders.append(result)
1308
1308
  return self.parse_orders(orders, market)
1309
1309
 
1310
- def fetch_deposit(self, id: str, code: String = None, params={}):
1310
+ def fetch_deposit(self, id: str, code: Str = None, params={}):
1311
1311
  """
1312
1312
  fetch data on a currency deposit via the deposit id
1313
1313
  :param str id: deposit id
@@ -1326,7 +1326,7 @@ class bittrex(Exchange, ImplicitAPI):
1326
1326
  transactions = self.parse_transactions(response, currency, None, None)
1327
1327
  return self.safe_value(transactions, 0)
1328
1328
 
1329
- def fetch_deposits(self, code: String = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1329
+ def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1330
1330
  """
1331
1331
  fetch all deposits made to an account
1332
1332
  :param str code: unified currency code
@@ -1365,7 +1365,7 @@ class bittrex(Exchange, ImplicitAPI):
1365
1365
  # return self.parse_transactions(response, currency, since, limit)
1366
1366
  return self.parse_transactions(response, currency, None, limit)
1367
1367
 
1368
- def fetch_pending_deposits(self, code: String = None, since: Int = None, limit: Int = None, params={}):
1368
+ def fetch_pending_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
1369
1369
  """
1370
1370
  fetch all pending deposits made from an account
1371
1371
  :param str code: unified currency code
@@ -1380,7 +1380,7 @@ class bittrex(Exchange, ImplicitAPI):
1380
1380
  self.load_markets()
1381
1381
  return self.fetch_deposits(code, since, limit, self.extend(params, {'status': 'pending'}))
1382
1382
 
1383
- def fetch_withdrawal(self, id: str, code: String = None, params={}):
1383
+ def fetch_withdrawal(self, id: str, code: Str = None, params={}):
1384
1384
  """
1385
1385
  fetch data on a currency withdrawal via the withdrawal id
1386
1386
  :param str id: withdrawal id
@@ -1399,7 +1399,7 @@ class bittrex(Exchange, ImplicitAPI):
1399
1399
  transactions = self.parse_transactions(response, currency, None, None)
1400
1400
  return self.safe_value(transactions, 0)
1401
1401
 
1402
- def fetch_withdrawals(self, code: String = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1402
+ def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1403
1403
  """
1404
1404
  fetch all withdrawals made from an account
1405
1405
  :param str code: unified currency code
@@ -1435,7 +1435,7 @@ class bittrex(Exchange, ImplicitAPI):
1435
1435
  response = getattr(self, method)(self.extend(request, params))
1436
1436
  return self.parse_transactions(response, currency, since, limit)
1437
1437
 
1438
- def fetch_pending_withdrawals(self, code: String = None, since: Int = None, limit: Int = None, params={}):
1438
+ def fetch_pending_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
1439
1439
  """
1440
1440
  fetch all pending withdrawals made from an account
1441
1441
  :param str code: unified currency code
@@ -1450,7 +1450,7 @@ class bittrex(Exchange, ImplicitAPI):
1450
1450
  self.load_markets()
1451
1451
  return self.fetch_withdrawals(code, since, limit, self.extend(params, {'status': 'pending'}))
1452
1452
 
1453
- def parse_transaction(self, transaction, currency=None) -> Transaction:
1453
+ def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
1454
1454
  #
1455
1455
  # fetchDeposits
1456
1456
  #
@@ -1576,7 +1576,7 @@ class bittrex(Exchange, ImplicitAPI):
1576
1576
  }
1577
1577
  return self.safe_string(timeInForces, timeInForce, timeInForce)
1578
1578
 
1579
- def parse_order(self, order, market=None) -> Order:
1579
+ def parse_order(self, order, market: Market = None) -> Order:
1580
1580
  #
1581
1581
  # Spot createOrder, fetchOpenOrders, fetchClosedOrders, fetchOrder, cancelOrder
1582
1582
  #
@@ -1711,7 +1711,7 @@ class bittrex(Exchange, ImplicitAPI):
1711
1711
  }
1712
1712
  return self.safe_string(statuses, status, status)
1713
1713
 
1714
- def fetch_order(self, id: str, symbol: String = None, params={}):
1714
+ def fetch_order(self, id: str, symbol: Str = None, params={}):
1715
1715
  """
1716
1716
  fetches information on an order made by the user
1717
1717
  :param str symbol: unified symbol of the market the order was made in
@@ -1743,7 +1743,7 @@ class bittrex(Exchange, ImplicitAPI):
1743
1743
  raise e
1744
1744
  return self.parse_order(response, market)
1745
1745
 
1746
- def fetch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
1746
+ def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1747
1747
  """
1748
1748
  fetch all trades made by the user
1749
1749
  :param str symbol: unified market symbol
@@ -1761,13 +1761,11 @@ class bittrex(Exchange, ImplicitAPI):
1761
1761
  market = None
1762
1762
  if symbol is not None:
1763
1763
  market = self.market(symbol)
1764
- symbol = market['symbol']
1765
1764
  request['marketSymbol'] = market['id']
1766
1765
  response = self.privateGetExecutions(self.extend(request, params))
1767
- trades = self.parse_trades(response, market, since, limit)
1768
- return trades
1766
+ return self.parse_trades(response, market, since, limit)
1769
1767
 
1770
- def fetch_closed_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1768
+ def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1771
1769
  """
1772
1770
  fetches information on multiple closed orders made by the user
1773
1771
  :param str symbol: unified market symbol of the market orders were made in
@@ -1912,7 +1910,7 @@ class bittrex(Exchange, ImplicitAPI):
1912
1910
  'info': response,
1913
1911
  }
1914
1912
 
1915
- def parse_deposit_withdraw_fee(self, fee, currency=None):
1913
+ def parse_deposit_withdraw_fee(self, fee, currency: Currency = None):
1916
1914
  #
1917
1915
  # {
1918
1916
  # "symbol": "APXP",
ccxt/bitvavo.py CHANGED
@@ -6,7 +6,7 @@
6
6
  from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.bitvavo import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Balances, Int, Order, OrderBook, OrderSide, OrderType, String, Strings, Ticker, Tickers, Trade, Transaction
9
+ from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
10
10
  from typing import List
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import PermissionDenied
@@ -544,7 +544,7 @@ class bitvavo(Exchange, ImplicitAPI):
544
544
  #
545
545
  return self.parse_ticker(response, market)
546
546
 
547
- def parse_ticker(self, ticker, market=None) -> Ticker:
547
+ def parse_ticker(self, ticker, market: Market = None) -> Ticker:
548
548
  #
549
549
  # fetchTicker
550
550
  #
@@ -667,7 +667,7 @@ class bitvavo(Exchange, ImplicitAPI):
667
667
  #
668
668
  return self.parse_trades(response, market, since, limit)
669
669
 
670
- def parse_trade(self, trade, market=None) -> Trade:
670
+ def parse_trade(self, trade, market: Market = None) -> Trade:
671
671
  #
672
672
  # fetchTrades(public)
673
673
  #
@@ -831,7 +831,7 @@ class bitvavo(Exchange, ImplicitAPI):
831
831
  orderbook['nonce'] = self.safe_integer(response, 'nonce')
832
832
  return orderbook
833
833
 
834
- def parse_ohlcv(self, ohlcv, market=None) -> list:
834
+ def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
835
835
  #
836
836
  # [
837
837
  # 1590383700000,
@@ -1100,7 +1100,7 @@ class bitvavo(Exchange, ImplicitAPI):
1100
1100
  else:
1101
1101
  raise ArgumentsRequired(self.id + ' editOrder() requires an amount argument, or a price argument, or non-empty params')
1102
1102
 
1103
- def cancel_order(self, id: str, symbol: String = None, params={}):
1103
+ def cancel_order(self, id: str, symbol: Str = None, params={}):
1104
1104
  """
1105
1105
  cancels an open order
1106
1106
  :param str id: order id
@@ -1123,7 +1123,7 @@ class bitvavo(Exchange, ImplicitAPI):
1123
1123
  #
1124
1124
  return self.parse_order(response, market)
1125
1125
 
1126
- def cancel_all_orders(self, symbol: String = None, params={}):
1126
+ def cancel_all_orders(self, symbol: Str = None, params={}):
1127
1127
  """
1128
1128
  cancel all open orders
1129
1129
  :param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
@@ -1146,7 +1146,7 @@ class bitvavo(Exchange, ImplicitAPI):
1146
1146
  #
1147
1147
  return self.parse_orders(response, market)
1148
1148
 
1149
- def fetch_order(self, id: str, symbol: String = None, params={}):
1149
+ def fetch_order(self, id: str, symbol: Str = None, params={}):
1150
1150
  """
1151
1151
  fetches information on an order made by the user
1152
1152
  :param str symbol: unified symbol of the market the order was made in
@@ -1197,7 +1197,7 @@ class bitvavo(Exchange, ImplicitAPI):
1197
1197
  #
1198
1198
  return self.parse_order(response, market)
1199
1199
 
1200
- def fetch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1200
+ def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1201
1201
  """
1202
1202
  :see: https://docs.bitvavo.com/#tag/Orders/paths/~1orders/get
1203
1203
  fetches information on multiple orders made by the user
@@ -1268,7 +1268,7 @@ class bitvavo(Exchange, ImplicitAPI):
1268
1268
  #
1269
1269
  return self.parse_orders(response, market, since, limit)
1270
1270
 
1271
- def fetch_open_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1271
+ def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1272
1272
  """
1273
1273
  fetch all unfilled currently open orders
1274
1274
  :param str symbol: unified market symbol
@@ -1342,7 +1342,7 @@ class bitvavo(Exchange, ImplicitAPI):
1342
1342
  }
1343
1343
  return self.safe_string(statuses, status, status)
1344
1344
 
1345
- def parse_order(self, order, market=None) -> Order:
1345
+ def parse_order(self, order, market: Market = None) -> Order:
1346
1346
  #
1347
1347
  # cancelOrder, cancelAllOrders
1348
1348
  #
@@ -1444,7 +1444,7 @@ class bitvavo(Exchange, ImplicitAPI):
1444
1444
  'trades': rawTrades,
1445
1445
  }, market)
1446
1446
 
1447
- def fetch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
1447
+ def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1448
1448
  """
1449
1449
  :see: https://docs.bitvavo.com/#tag/Trades/paths/~1trades/get
1450
1450
  fetch all trades made by the user
@@ -1529,7 +1529,7 @@ class bitvavo(Exchange, ImplicitAPI):
1529
1529
  #
1530
1530
  return self.parse_transaction(response, currency)
1531
1531
 
1532
- def fetch_withdrawals(self, code: String = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1532
+ def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1533
1533
  """
1534
1534
  fetch all withdrawals made from an account
1535
1535
  :param str code: unified currency code
@@ -1570,7 +1570,7 @@ class bitvavo(Exchange, ImplicitAPI):
1570
1570
  #
1571
1571
  return self.parse_transactions(response, currency, since, limit, {'type': 'withdrawal'})
1572
1572
 
1573
- def fetch_deposits(self, code: String = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1573
+ def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1574
1574
  """
1575
1575
  fetch all deposits made to an account
1576
1576
  :param str code: unified currency code
@@ -1623,7 +1623,7 @@ class bitvavo(Exchange, ImplicitAPI):
1623
1623
  }
1624
1624
  return self.safe_string(statuses, status, status)
1625
1625
 
1626
- def parse_transaction(self, transaction, currency=None) -> Transaction:
1626
+ def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
1627
1627
  #
1628
1628
  # withdraw
1629
1629
  #
@@ -1701,7 +1701,7 @@ class bitvavo(Exchange, ImplicitAPI):
1701
1701
  'internal': None,
1702
1702
  }
1703
1703
 
1704
- def parse_deposit_withdraw_fee(self, fee, currency=None):
1704
+ def parse_deposit_withdraw_fee(self, fee, currency: Currency = None):
1705
1705
  #
1706
1706
  # {
1707
1707
  # "symbol": "1INCH",
ccxt/bl3p.py CHANGED
@@ -6,7 +6,7 @@
6
6
  from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.bl3p import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Balances, Int, OrderBook, OrderSide, OrderType, String, Ticker, Trade
9
+ from ccxt.base.types import Balances, Int, Market, OrderBook, OrderSide, OrderType, Str, Ticker, Trade
10
10
  from typing import List
11
11
  from ccxt.base.decimal_to_precision import TICK_SIZE
12
12
  from ccxt.base.precise import Precise
@@ -166,7 +166,7 @@ class bl3p(Exchange, ImplicitAPI):
166
166
  orderbook = self.safe_value(response, 'data')
167
167
  return self.parse_order_book(orderbook, market['symbol'], None, 'bids', 'asks', 'price_int', 'amount_int')
168
168
 
169
- def parse_ticker(self, ticker, market=None) -> Ticker:
169
+ def parse_ticker(self, ticker, market: Market = None) -> Ticker:
170
170
  #
171
171
  # {
172
172
  # "currency":"BTC",
@@ -238,7 +238,7 @@ class bl3p(Exchange, ImplicitAPI):
238
238
  #
239
239
  return self.parse_ticker(ticker, market)
240
240
 
241
- def parse_trade(self, trade, market=None) -> Trade:
241
+ def parse_trade(self, trade, market: Market = None) -> Trade:
242
242
  #
243
243
  # fetchTrades
244
244
  #
@@ -386,7 +386,7 @@ class bl3p(Exchange, ImplicitAPI):
386
386
  'id': orderId,
387
387
  }, market)
388
388
 
389
- def cancel_order(self, id: str, symbol: String = None, params={}):
389
+ def cancel_order(self, id: str, symbol: Str = None, params={}):
390
390
  """
391
391
  cancels an open order
392
392
  :param str id: order id