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/ndax.py CHANGED
@@ -7,7 +7,7 @@ from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.ndax import ImplicitAPI
8
8
  import hashlib
9
9
  import json
10
- from ccxt.base.types import Balances, Int, Market, Order, OrderBook, OrderSide, OrderType, String, Ticker, Trade, Transaction
10
+ from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, Transaction
11
11
  from typing import List
12
12
  from ccxt.base.errors import ExchangeError
13
13
  from ccxt.base.errors import BadSymbol
@@ -584,7 +584,7 @@ class ndax(Exchange, ImplicitAPI):
584
584
  #
585
585
  return self.parse_order_book(response, symbol)
586
586
 
587
- def parse_ticker(self, ticker, market=None) -> Ticker:
587
+ def parse_ticker(self, ticker, market: Market = None) -> Ticker:
588
588
  #
589
589
  # fetchTicker
590
590
  #
@@ -697,7 +697,7 @@ class ndax(Exchange, ImplicitAPI):
697
697
  #
698
698
  return self.parse_ticker(response, market)
699
699
 
700
- def parse_ohlcv(self, ohlcv, market=None) -> list:
700
+ def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
701
701
  #
702
702
  # [
703
703
  # 1501603632000, # 0 DateTime
@@ -760,7 +760,7 @@ class ndax(Exchange, ImplicitAPI):
760
760
  #
761
761
  return self.parse_ohlcvs(response, market, timeframe, since, limit)
762
762
 
763
- def parse_trade(self, trade, market=None) -> Trade:
763
+ def parse_trade(self, trade, market: Market = None) -> Trade:
764
764
  #
765
765
  # fetchTrades(public)
766
766
  #
@@ -1068,7 +1068,7 @@ class ndax(Exchange, ImplicitAPI):
1068
1068
  }
1069
1069
  return self.safe_string(types, type, type)
1070
1070
 
1071
- def parse_ledger_entry(self, item, currency=None):
1071
+ def parse_ledger_entry(self, item, currency: Currency = None):
1072
1072
  #
1073
1073
  # {
1074
1074
  # "TransactionId": 2663709493,
@@ -1121,7 +1121,7 @@ class ndax(Exchange, ImplicitAPI):
1121
1121
  'fee': None,
1122
1122
  }
1123
1123
 
1124
- def fetch_ledger(self, code: String = None, since: Int = None, limit: Int = None, params={}):
1124
+ def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
1125
1125
  """
1126
1126
  fetch the history of changes, actions done by the user or operations that altered balance of the user
1127
1127
  :param str code: unified currency code, default is None
@@ -1177,7 +1177,7 @@ class ndax(Exchange, ImplicitAPI):
1177
1177
  }
1178
1178
  return self.safe_string(statuses, status, status)
1179
1179
 
1180
- def parse_order(self, order, market=None) -> Order:
1180
+ def parse_order(self, order, market: Market = None) -> Order:
1181
1181
  #
1182
1182
  # createOrder
1183
1183
  #
@@ -1379,7 +1379,7 @@ class ndax(Exchange, ImplicitAPI):
1379
1379
  #
1380
1380
  return self.parse_order(response, market)
1381
1381
 
1382
- def fetch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
1382
+ def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1383
1383
  """
1384
1384
  fetch all trades made by the user
1385
1385
  :param str symbol: unified market symbol
@@ -1461,7 +1461,7 @@ class ndax(Exchange, ImplicitAPI):
1461
1461
  #
1462
1462
  return self.parse_trades(response, market, since, limit)
1463
1463
 
1464
- def cancel_all_orders(self, symbol: String = None, params={}):
1464
+ def cancel_all_orders(self, symbol: Str = None, params={}):
1465
1465
  """
1466
1466
  cancel all open orders
1467
1467
  :param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
@@ -1492,7 +1492,7 @@ class ndax(Exchange, ImplicitAPI):
1492
1492
  #
1493
1493
  return response
1494
1494
 
1495
- def cancel_order(self, id: str, symbol: String = None, params={}):
1495
+ def cancel_order(self, id: str, symbol: Str = None, params={}):
1496
1496
  """
1497
1497
  cancels an open order
1498
1498
  :param str id: order id
@@ -1526,7 +1526,7 @@ class ndax(Exchange, ImplicitAPI):
1526
1526
  'clientOrderId': clientOrderId,
1527
1527
  })
1528
1528
 
1529
- def fetch_open_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1529
+ def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1530
1530
  """
1531
1531
  fetch all unfilled currently open orders
1532
1532
  :param str symbol: unified market symbol
@@ -1601,7 +1601,7 @@ class ndax(Exchange, ImplicitAPI):
1601
1601
  #
1602
1602
  return self.parse_orders(response, market, since, limit)
1603
1603
 
1604
- def fetch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1604
+ def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1605
1605
  """
1606
1606
  fetches information on multiple orders made by the user
1607
1607
  :param str symbol: unified market symbol of the market orders were made in
@@ -1690,7 +1690,7 @@ class ndax(Exchange, ImplicitAPI):
1690
1690
  #
1691
1691
  return self.parse_orders(response, market, since, limit)
1692
1692
 
1693
- def fetch_order(self, id: str, symbol: String = None, params={}):
1693
+ def fetch_order(self, id: str, symbol: Str = None, params={}):
1694
1694
  """
1695
1695
  fetches information on an order made by the user
1696
1696
  :param str symbol: unified symbol of the market the order was made in
@@ -1762,7 +1762,7 @@ class ndax(Exchange, ImplicitAPI):
1762
1762
  #
1763
1763
  return self.parse_order(response, market)
1764
1764
 
1765
- def fetch_order_trades(self, id: str, symbol: String = None, since: Int = None, limit: Int = None, params={}):
1765
+ def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1766
1766
  """
1767
1767
  fetch all the trades made from a single order
1768
1768
  :param str id: order id
@@ -1876,7 +1876,7 @@ class ndax(Exchange, ImplicitAPI):
1876
1876
  #
1877
1877
  return self.parse_deposit_address(response, currency)
1878
1878
 
1879
- def parse_deposit_address(self, depositAddress, currency=None):
1879
+ def parse_deposit_address(self, depositAddress, currency: Currency = None):
1880
1880
  #
1881
1881
  # fetchDepositAddress, createDepositAddress
1882
1882
  #
@@ -1922,7 +1922,7 @@ class ndax(Exchange, ImplicitAPI):
1922
1922
  }
1923
1923
  return self.fetch_deposit_address(code, self.extend(request, params))
1924
1924
 
1925
- def fetch_deposits(self, code: String = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1925
+ def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1926
1926
  """
1927
1927
  fetch all deposits made to an account
1928
1928
  :see: https://apidoc.ndax.io/#getdeposits
@@ -1978,7 +1978,7 @@ class ndax(Exchange, ImplicitAPI):
1978
1978
  return self.parse_transactions(json.loads(response), currency, since, limit)
1979
1979
  return self.parse_transactions(response, currency, since, limit)
1980
1980
 
1981
- def fetch_withdrawals(self, code: String = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1981
+ def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1982
1982
  """
1983
1983
  fetch all withdrawals made from an account
1984
1984
  :param str code: unified currency code
@@ -2075,7 +2075,7 @@ class ndax(Exchange, ImplicitAPI):
2075
2075
  statuses = self.safe_value(statusesByType, type, {})
2076
2076
  return self.safe_string(statuses, status, status)
2077
2077
 
2078
- def parse_transaction(self, transaction, currency=None) -> Transaction:
2078
+ def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
2079
2079
  #
2080
2080
  # fetchDeposits
2081
2081
  #
ccxt/novadax.py CHANGED
@@ -6,7 +6,7 @@
6
6
  from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.novadax 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
@@ -315,7 +315,7 @@ class novadax(Exchange, ImplicitAPI):
315
315
  'info': market,
316
316
  }
317
317
 
318
- def parse_ticker(self, ticker, market=None) -> Ticker:
318
+ def parse_ticker(self, ticker, market: Market = None) -> Ticker:
319
319
  #
320
320
  # fetchTicker, fetchTickers
321
321
  #
@@ -476,7 +476,7 @@ class novadax(Exchange, ImplicitAPI):
476
476
  timestamp = self.safe_integer(data, 'timestamp')
477
477
  return self.parse_order_book(data, market['symbol'], timestamp, 'bids', 'asks')
478
478
 
479
- def parse_trade(self, trade, market=None) -> Trade:
479
+ def parse_trade(self, trade, market: Market = None) -> Trade:
480
480
  #
481
481
  # public fetchTrades
482
482
  #
@@ -636,7 +636,7 @@ class novadax(Exchange, ImplicitAPI):
636
636
  data = self.safe_value(response, 'data', [])
637
637
  return self.parse_ohlcvs(data, market, timeframe, since, limit)
638
638
 
639
- def parse_ohlcv(self, ohlcv, market=None) -> list:
639
+ def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
640
640
  #
641
641
  # {
642
642
  # "amount": 8.25709100,
@@ -788,7 +788,7 @@ class novadax(Exchange, ImplicitAPI):
788
788
  data = self.safe_value(response, 'data', {})
789
789
  return self.parse_order(data, market)
790
790
 
791
- def cancel_order(self, id: str, symbol: String = None, params={}):
791
+ def cancel_order(self, id: str, symbol: Str = None, params={}):
792
792
  """
793
793
  cancels an open order
794
794
  :see: https://doc.novadax.com/en-US/#cancel-an-order
@@ -814,7 +814,7 @@ class novadax(Exchange, ImplicitAPI):
814
814
  data = self.safe_value(response, 'data', {})
815
815
  return self.parse_order(data)
816
816
 
817
- def fetch_order(self, id: str, symbol: String = None, params={}):
817
+ def fetch_order(self, id: str, symbol: Str = None, params={}):
818
818
  """
819
819
  fetches information on an order made by the user
820
820
  :see: https://doc.novadax.com/en-US/#get-order-details
@@ -851,7 +851,7 @@ class novadax(Exchange, ImplicitAPI):
851
851
  data = self.safe_value(response, 'data', {})
852
852
  return self.parse_order(data)
853
853
 
854
- def fetch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
854
+ def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
855
855
  """
856
856
  fetches information on multiple orders made by the user
857
857
  :see: https://doc.novadax.com/en-US/#get-order-history
@@ -906,7 +906,7 @@ class novadax(Exchange, ImplicitAPI):
906
906
  data = self.safe_value(response, 'data', [])
907
907
  return self.parse_orders(data, market, since, limit)
908
908
 
909
- def fetch_open_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
909
+ def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
910
910
  """
911
911
  fetch all unfilled currently open orders
912
912
  :see: https://doc.novadax.com/en-US/#get-order-history
@@ -921,7 +921,7 @@ class novadax(Exchange, ImplicitAPI):
921
921
  }
922
922
  return self.fetch_orders(symbol, since, limit, self.extend(request, params))
923
923
 
924
- def fetch_closed_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
924
+ def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
925
925
  """
926
926
  fetches information on multiple closed orders made by the user
927
927
  :see: https://doc.novadax.com/en-US/#get-order-history
@@ -936,7 +936,7 @@ class novadax(Exchange, ImplicitAPI):
936
936
  }
937
937
  return self.fetch_orders(symbol, since, limit, self.extend(request, params))
938
938
 
939
- def fetch_order_trades(self, id: str, symbol: String = None, since: Int = None, limit: Int = None, params={}):
939
+ def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
940
940
  """
941
941
  fetch all the trades made from a single order
942
942
  :see: https://doc.novadax.com/en-US/#get-order-match-details
@@ -991,7 +991,7 @@ class novadax(Exchange, ImplicitAPI):
991
991
  }
992
992
  return self.safe_string(statuses, status, status)
993
993
 
994
- def parse_order(self, order, market=None) -> Order:
994
+ def parse_order(self, order, market: Market = None) -> Order:
995
995
  #
996
996
  # createOrder, fetchOrders, fetchOrder
997
997
  #
@@ -1105,7 +1105,7 @@ class novadax(Exchange, ImplicitAPI):
1105
1105
  transfer['amount'] = amount
1106
1106
  return transfer
1107
1107
 
1108
- def parse_transfer(self, transfer, currency=None):
1108
+ def parse_transfer(self, transfer, currency: Currency = None):
1109
1109
  #
1110
1110
  # {
1111
1111
  # "code":"A10000",
@@ -1202,7 +1202,7 @@ class novadax(Exchange, ImplicitAPI):
1202
1202
  })
1203
1203
  return result
1204
1204
 
1205
- def fetch_deposits(self, code: String = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1205
+ def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1206
1206
  """
1207
1207
  fetch all deposits made to an account
1208
1208
  :see: https://doc.novadax.com/en-US/#wallet-records-of-deposits-and-withdraws
@@ -1217,7 +1217,7 @@ class novadax(Exchange, ImplicitAPI):
1217
1217
  }
1218
1218
  return self.fetch_deposits_withdrawals(code, since, limit, self.extend(request, params))
1219
1219
 
1220
- def fetch_withdrawals(self, code: String = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1220
+ def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1221
1221
  """
1222
1222
  fetch all withdrawals made from an account
1223
1223
  :see: https://doc.novadax.com/en-US/#wallet-records-of-deposits-and-withdraws
@@ -1232,7 +1232,7 @@ class novadax(Exchange, ImplicitAPI):
1232
1232
  }
1233
1233
  return self.fetch_deposits_withdrawals(code, since, limit, self.extend(request, params))
1234
1234
 
1235
- def fetch_deposits_withdrawals(self, code: String = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1235
+ def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1236
1236
  """
1237
1237
  fetch history of deposits and withdrawals
1238
1238
  :see: https://doc.novadax.com/en-US/#wallet-records-of-deposits-and-withdraws
@@ -1296,7 +1296,7 @@ class novadax(Exchange, ImplicitAPI):
1296
1296
  }
1297
1297
  return self.safe_string(statuses, status, status)
1298
1298
 
1299
- def parse_transaction(self, transaction, currency=None) -> Transaction:
1299
+ def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
1300
1300
  #
1301
1301
  # withdraw
1302
1302
  #
@@ -1365,7 +1365,7 @@ class novadax(Exchange, ImplicitAPI):
1365
1365
  },
1366
1366
  }
1367
1367
 
1368
- def fetch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
1368
+ def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1369
1369
  """
1370
1370
  fetch all trades made by the user
1371
1371
  :see: https://doc.novadax.com/en-US/#get-order-history
ccxt/oceanex.py CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.oceanex import ImplicitAPI
8
- from ccxt.base.types import Balances, Int, Market, Order, OrderBook, OrderSide, OrderType, String, Strings, Ticker, Tickers, Trade
8
+ from ccxt.base.types import Balances, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade
9
9
  from typing import List
10
10
  from ccxt.base.errors import ExchangeError
11
11
  from ccxt.base.errors import PermissionDenied
@@ -312,7 +312,7 @@ class oceanex(Exchange, ImplicitAPI):
312
312
  result[symbol] = self.parse_ticker(ticker, market)
313
313
  return self.filter_by_array_tickers(result, 'symbol', symbols)
314
314
 
315
- def parse_ticker(self, data, market=None):
315
+ def parse_ticker(self, data, market: Market = None):
316
316
  #
317
317
  # {
318
318
  # "at":1559431729,
@@ -483,7 +483,7 @@ class oceanex(Exchange, ImplicitAPI):
483
483
  data = self.safe_value(response, 'data')
484
484
  return self.parse_trades(data, market, since, limit)
485
485
 
486
- def parse_trade(self, trade, market=None) -> Trade:
486
+ def parse_trade(self, trade, market: Market = None) -> Trade:
487
487
  #
488
488
  # fetchTrades(public)
489
489
  #
@@ -619,7 +619,7 @@ class oceanex(Exchange, ImplicitAPI):
619
619
  data = self.safe_value(response, 'data')
620
620
  return self.parse_order(data, market)
621
621
 
622
- def fetch_order(self, id: str, symbol: String = None, params={}):
622
+ def fetch_order(self, id: str, symbol: Str = None, params={}):
623
623
  """
624
624
  fetches information on an order made by the user
625
625
  :see: https://api.oceanex.pro/doc/v1/#order-status-get
@@ -645,7 +645,7 @@ class oceanex(Exchange, ImplicitAPI):
645
645
  raise OrderNotFound(self.id + ' could not found matching order')
646
646
  return self.parse_order(data[0], market)
647
647
 
648
- def fetch_open_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
648
+ def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
649
649
  """
650
650
  fetch all unfilled currently open orders
651
651
  :see: https://api.oceanex.pro/doc/v1/#order-status-get
@@ -660,7 +660,7 @@ class oceanex(Exchange, ImplicitAPI):
660
660
  }
661
661
  return self.fetch_orders(symbol, since, limit, self.extend(request, params))
662
662
 
663
- def fetch_closed_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
663
+ def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
664
664
  """
665
665
  fetches information on multiple closed orders made by the user
666
666
  :see: https://api.oceanex.pro/doc/v1/#order-status-get
@@ -675,7 +675,7 @@ class oceanex(Exchange, ImplicitAPI):
675
675
  }
676
676
  return self.fetch_orders(symbol, since, limit, self.extend(request, params))
677
677
 
678
- def fetch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
678
+ def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
679
679
  """
680
680
  fetches information on multiple orders made by the user
681
681
  :see: https://api.oceanex.pro/doc/v1/#order-status-with-filters-post
@@ -707,7 +707,7 @@ class oceanex(Exchange, ImplicitAPI):
707
707
  result = self.array_concat(result, parsedOrders)
708
708
  return result
709
709
 
710
- def parse_ohlcv(self, ohlcv, market=None) -> list:
710
+ def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
711
711
  # [
712
712
  # 1559232000,
713
713
  # 8889.22,
@@ -750,7 +750,7 @@ class oceanex(Exchange, ImplicitAPI):
750
750
  ohlcvs = self.safe_value(response, 'data', [])
751
751
  return self.parse_ohlcvs(ohlcvs, market, timeframe, since, limit)
752
752
 
753
- def parse_order(self, order, market=None) -> Order:
753
+ def parse_order(self, order, market: Market = None) -> Order:
754
754
  #
755
755
  # {
756
756
  # "created_at": "2019-01-18T00:38:18Z",
@@ -812,7 +812,7 @@ class oceanex(Exchange, ImplicitAPI):
812
812
  }
813
813
  return self.safe_string(statuses, status, status)
814
814
 
815
- def cancel_order(self, id: str, symbol: String = None, params={}):
815
+ def cancel_order(self, id: str, symbol: Str = None, params={}):
816
816
  """
817
817
  cancels an open order
818
818
  :see: https://api.oceanex.pro/doc/v1/#cancel-order-post
@@ -826,7 +826,7 @@ class oceanex(Exchange, ImplicitAPI):
826
826
  data = self.safe_value(response, 'data')
827
827
  return self.parse_order(data)
828
828
 
829
- def cancel_orders(self, ids, symbol: String = None, params={}):
829
+ def cancel_orders(self, ids, symbol: Str = None, params={}):
830
830
  """
831
831
  cancel multiple orders
832
832
  :see: https://api.oceanex.pro/doc/v1/#cancel-multiple-orders-post
@@ -840,7 +840,7 @@ class oceanex(Exchange, ImplicitAPI):
840
840
  data = self.safe_value(response, 'data')
841
841
  return self.parse_orders(data)
842
842
 
843
- def cancel_all_orders(self, symbol: String = None, params={}):
843
+ def cancel_all_orders(self, symbol: Str = None, params={}):
844
844
  """
845
845
  cancel all open orders
846
846
  :see: https://api.oceanex.pro/doc/v1/#cancel-all-orders-post
ccxt/okcoin.py CHANGED
@@ -6,7 +6,7 @@
6
6
  from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.okcoin 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
@@ -816,7 +816,7 @@ class okcoin(Exchange, ImplicitAPI):
816
816
  timestamp = self.safe_integer(first, 'ts')
817
817
  return self.parse_order_book(first, symbol, timestamp)
818
818
 
819
- def parse_ticker(self, ticker, market=None) -> Ticker:
819
+ def parse_ticker(self, ticker, market: Market = None) -> Ticker:
820
820
  #
821
821
  # {
822
822
  # "instType": "SPOT",
@@ -931,7 +931,7 @@ class okcoin(Exchange, ImplicitAPI):
931
931
  data = self.safe_value(response, 'data', [])
932
932
  return self.parse_tickers(data, symbols, params)
933
933
 
934
- def parse_trade(self, trade, market=None) -> Trade:
934
+ def parse_trade(self, trade, market: Market = None) -> Trade:
935
935
  #
936
936
  # public fetchTrades
937
937
  #
@@ -1032,7 +1032,7 @@ class okcoin(Exchange, ImplicitAPI):
1032
1032
  data = self.safe_value(response, 'data', [])
1033
1033
  return self.parse_trades(data, market, since, limit)
1034
1034
 
1035
- def parse_ohlcv(self, ohlcv, market=None) -> list:
1035
+ def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
1036
1036
  #
1037
1037
  # [
1038
1038
  # "1678928760000", # timestamp
@@ -1460,7 +1460,7 @@ class okcoin(Exchange, ImplicitAPI):
1460
1460
  params = self.omit(params, ['clOrdId', 'clientOrderId'])
1461
1461
  return self.extend(request, params)
1462
1462
 
1463
- def cancel_order(self, id: str, symbol: String = None, params={}):
1463
+ def cancel_order(self, id: str, symbol: Str = None, params={}):
1464
1464
  """
1465
1465
  :see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-cancel-order
1466
1466
  :see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-cancel-algo-order
@@ -1509,7 +1509,7 @@ class okcoin(Exchange, ImplicitAPI):
1509
1509
  else:
1510
1510
  return ids
1511
1511
 
1512
- def cancel_orders(self, ids, symbol: String = None, params={}):
1512
+ def cancel_orders(self, ids, symbol: Str = None, params={}):
1513
1513
  """
1514
1514
  cancel multiple orders
1515
1515
  :see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-cancel-multiple-orders
@@ -1590,7 +1590,7 @@ class okcoin(Exchange, ImplicitAPI):
1590
1590
  }
1591
1591
  return self.safe_string(statuses, status, status)
1592
1592
 
1593
- def parse_order(self, order, market=None) -> Order:
1593
+ def parse_order(self, order, market: Market = None) -> Order:
1594
1594
  #
1595
1595
  # createOrder
1596
1596
  #
@@ -1781,7 +1781,7 @@ class okcoin(Exchange, ImplicitAPI):
1781
1781
  'reduceOnly': reduceOnly,
1782
1782
  }, market)
1783
1783
 
1784
- def fetch_order(self, id: str, symbol: String = None, params={}):
1784
+ def fetch_order(self, id: str, symbol: Str = None, params={}):
1785
1785
  """
1786
1786
  :see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-order-details
1787
1787
  :see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-algo-order-list
@@ -1820,7 +1820,7 @@ class okcoin(Exchange, ImplicitAPI):
1820
1820
  order = self.safe_value(data, 0)
1821
1821
  return self.parse_order(order)
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
  :see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-order-list
1826
1826
  :see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-algo-order-list
@@ -1861,7 +1861,7 @@ class okcoin(Exchange, ImplicitAPI):
1861
1861
  data = self.safe_value(response, 'data', [])
1862
1862
  return self.parse_orders(data, market, since, limit)
1863
1863
 
1864
- def fetch_closed_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1864
+ def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1865
1865
  """
1866
1866
  :see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-algo-order-history
1867
1867
  :see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-order-history-last-3-months
@@ -1942,7 +1942,7 @@ class okcoin(Exchange, ImplicitAPI):
1942
1942
  data = self.safe_value(response, 'data', [])
1943
1943
  return self.parse_orders(data, market, since, limit)
1944
1944
 
1945
- def parse_deposit_address(self, depositAddress, currency=None):
1945
+ def parse_deposit_address(self, depositAddress, currency: Currency = None):
1946
1946
  #
1947
1947
  # {
1948
1948
  # "addr": "okbtothemoon",
@@ -2148,7 +2148,7 @@ class okcoin(Exchange, ImplicitAPI):
2148
2148
  rawTransfer = self.safe_value(data, 0, {})
2149
2149
  return self.parse_transfer(rawTransfer, currency)
2150
2150
 
2151
- def parse_transfer(self, transfer, currency=None):
2151
+ def parse_transfer(self, transfer, currency: Currency = None):
2152
2152
  #
2153
2153
  # transfer
2154
2154
  #
@@ -2284,7 +2284,7 @@ class okcoin(Exchange, ImplicitAPI):
2284
2284
  transaction = self.safe_value(data, 0)
2285
2285
  return self.parse_transaction(transaction, currency)
2286
2286
 
2287
- def fetch_deposits(self, code: String = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
2287
+ def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
2288
2288
  """
2289
2289
  :see: https://www.okcoin.com/docs-v5/en/#rest-api-funding-get-deposit-history
2290
2290
  fetch all deposits made to an account
@@ -2353,7 +2353,7 @@ class okcoin(Exchange, ImplicitAPI):
2353
2353
  data = self.safe_value(response, 'data', [])
2354
2354
  return self.parse_transactions(data, currency, since, limit, params)
2355
2355
 
2356
- def fetch_withdrawals(self, code: String = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
2356
+ def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
2357
2357
  """
2358
2358
  :see: https://www.okcoin.com/docs-v5/en/#rest-api-funding-get-withdrawal-history
2359
2359
  fetch all withdrawals made from an account
@@ -2451,7 +2451,7 @@ class okcoin(Exchange, ImplicitAPI):
2451
2451
  }
2452
2452
  return self.safe_string(statuses, status, status)
2453
2453
 
2454
- def parse_transaction(self, transaction, currency=None) -> Transaction:
2454
+ def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
2455
2455
  #
2456
2456
  # withdraw
2457
2457
  #
@@ -2544,7 +2544,7 @@ class okcoin(Exchange, ImplicitAPI):
2544
2544
  },
2545
2545
  }
2546
2546
 
2547
- def fetch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
2547
+ def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
2548
2548
  """
2549
2549
  :see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-transaction-details-last-3-days
2550
2550
  :see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-transaction-details-last-3-months
@@ -2575,7 +2575,7 @@ class okcoin(Exchange, ImplicitAPI):
2575
2575
  data = self.safe_value(response, 'data', [])
2576
2576
  return self.parse_trades(data, market, since, limit)
2577
2577
 
2578
- def fetch_order_trades(self, id: str, symbol: String = None, since: Int = None, limit: Int = None, params={}):
2578
+ def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
2579
2579
  """
2580
2580
  fetch all the trades made from a single order
2581
2581
  :param str id: order id
@@ -2594,7 +2594,7 @@ class okcoin(Exchange, ImplicitAPI):
2594
2594
  }
2595
2595
  return self.fetch_my_trades(symbol, since, limit, self.extend(request, params))
2596
2596
 
2597
- def fetch_ledger(self, code: String = None, since: Int = None, limit: Int = None, params={}):
2597
+ def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
2598
2598
  """
2599
2599
  :see: https://www.okcoin.com/docs-v5/en/#rest-api-funding-asset-bills-details
2600
2600
  :see: https://www.okcoin.com/docs-v5/en/#rest-api-account-get-bills-details-last-7-days
@@ -2696,7 +2696,7 @@ class okcoin(Exchange, ImplicitAPI):
2696
2696
  }
2697
2697
  return self.safe_string(types, type, type)
2698
2698
 
2699
- def parse_ledger_entry(self, item, currency=None):
2699
+ def parse_ledger_entry(self, item, currency: Currency = None):
2700
2700
  #
2701
2701
  # privateGetAccountBills, privateGetAccountBillsArchive
2702
2702
  #