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/poloniexfutures.py CHANGED
@@ -6,7 +6,7 @@
6
6
  from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.poloniexfutures import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Balances, Int, Market, Order, OrderBook, OrderSide, OrderType, String, Strings, Ticker, Tickers, Trade
9
+ from ccxt.base.types import Balances, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade
10
10
  from typing import List
11
11
  from ccxt.base.errors import AccountSuspended
12
12
  from ccxt.base.errors import ArgumentsRequired
@@ -352,7 +352,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
352
352
  'info': market,
353
353
  }
354
354
 
355
- def parse_ticker(self, ticker, market=None) -> Ticker:
355
+ def parse_ticker(self, ticker, market: Market = None) -> Ticker:
356
356
  #
357
357
  # {
358
358
  # "symbol": "BTCUSDTPERP", # Market of the symbol
@@ -543,7 +543,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
543
543
  market = self.market(symbol)
544
544
  return self.fetch_order_book(market['id'], None, {'level': 3})
545
545
 
546
- def parse_trade(self, trade, market=None) -> Trade:
546
+ def parse_trade(self, trade, market: Market = None) -> Trade:
547
547
  #
548
548
  # fetchTrades(public)
549
549
  #
@@ -873,7 +873,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
873
873
  'info': response,
874
874
  }, market)
875
875
 
876
- def cancel_order(self, id: str, symbol: String = None, params={}):
876
+ def cancel_order(self, id: str, symbol: Str = None, params={}):
877
877
  """
878
878
  cancels an open order
879
879
  :see: https://futures-docs.poloniex.com/#cancel-an-order
@@ -969,7 +969,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
969
969
  data = self.safe_value(response, 'data')
970
970
  return self.parse_positions(data, symbols)
971
971
 
972
- def parse_position(self, position, market=None):
972
+ def parse_position(self, position, market: Market = None):
973
973
  #
974
974
  # {
975
975
  # "code": "200000",
@@ -1020,7 +1020,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1020
1020
  market = self.safe_market(symbol, market)
1021
1021
  timestamp = self.safe_integer(position, 'currentTimestamp')
1022
1022
  size = self.safe_string(position, 'currentQty')
1023
- side = None
1023
+ side: Str
1024
1024
  if Precise.string_gt(size, '0'):
1025
1025
  side = 'long'
1026
1026
  elif Precise.string_lt(size, '0'):
@@ -1060,7 +1060,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1060
1060
  'takeProfitPrice': None,
1061
1061
  }
1062
1062
 
1063
- def fetch_funding_history(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
1063
+ def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1064
1064
  """
1065
1065
  fetch the history of funding payments paid and received on self account
1066
1066
  :see: https://futures-docs.poloniex.com/#get-funding-history
@@ -1126,7 +1126,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1126
1126
  })
1127
1127
  return fees
1128
1128
 
1129
- def cancel_all_orders(self, symbol: String = None, params={}):
1129
+ def cancel_all_orders(self, symbol: Str = None, params={}):
1130
1130
  """
1131
1131
  cancel all open orders
1132
1132
  :param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
@@ -1182,7 +1182,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1182
1182
  })
1183
1183
  return result
1184
1184
 
1185
- def fetch_orders_by_status(self, status, symbol: String = None, since: Int = None, limit: Int = None, params={}):
1185
+ def fetch_orders_by_status(self, status, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1186
1186
  """
1187
1187
  fetches a list of orders placed on the exchange
1188
1188
  :see: https://futures-docs.poloniex.com/#get-order-list
@@ -1209,7 +1209,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1209
1209
  request['status'] = 'active' if (status == 'open') else 'done'
1210
1210
  elif status != 'open':
1211
1211
  raise BadRequest(self.id + ' fetchOrdersByStatus() can only fetch untriggered stop orders')
1212
- market = None
1212
+ market: Market = None
1213
1213
  if symbol is not None:
1214
1214
  market = self.market(symbol)
1215
1215
  request['symbol'] = market['id']
@@ -1277,7 +1277,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1277
1277
  result.append(orders[i])
1278
1278
  return self.parse_orders(result, market, since, limit)
1279
1279
 
1280
- def fetch_open_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1280
+ def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1281
1281
  """
1282
1282
  fetch all unfilled currently open orders
1283
1283
  :see: https://futures-docs.poloniex.com/#get-order-list
@@ -1293,7 +1293,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1293
1293
  """
1294
1294
  return self.fetch_orders_by_status('open', symbol, since, limit, params)
1295
1295
 
1296
- def fetch_closed_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1296
+ def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1297
1297
  """
1298
1298
  fetches information on multiple closed orders made by the user
1299
1299
  :see: https://futures-docs.poloniex.com/#get-order-list
@@ -1309,7 +1309,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1309
1309
  """
1310
1310
  return self.fetch_orders_by_status('closed', symbol, since, limit, params)
1311
1311
 
1312
- def fetch_order(self, id=None, symbol: String = None, params={}):
1312
+ def fetch_order(self, id=None, symbol: Str = None, params={}):
1313
1313
  """
1314
1314
  fetches information on an order made by the user
1315
1315
  :see: https://futures-docs.poloniex.com/#get-details-of-a-single-order
@@ -1380,7 +1380,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1380
1380
  responseData = self.safe_value(response, 'data')
1381
1381
  return self.parse_order(responseData, market)
1382
1382
 
1383
- def parse_order(self, order, market=None) -> Order:
1383
+ def parse_order(self, order, market: Market = None) -> Order:
1384
1384
  #
1385
1385
  # createOrder
1386
1386
  #
@@ -1456,7 +1456,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1456
1456
  feeCurrencyId = self.safe_string(order, 'feeCurrency')
1457
1457
  filled = self.safe_string(order, 'dealSize')
1458
1458
  rawCost = self.safe_string_2(order, 'dealFunds', 'filledValue')
1459
- average = None
1459
+ average: Str = None
1460
1460
  if Precise.string_gt(filled, '0'):
1461
1461
  contractSize = self.safe_string(market, 'contractSize')
1462
1462
  if market['linear']:
@@ -1546,7 +1546,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1546
1546
  'previousFundingDatetime': self.iso8601(fundingTimestamp),
1547
1547
  }
1548
1548
 
1549
- def fetch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
1549
+ def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1550
1550
  """
1551
1551
  fetch all trades made by the user
1552
1552
  :see: https://futures-docs.poloniex.com/#get-fills
ccxt/pro/__init__.py CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.1.54'
7
+ __version__ = '4.1.56'
8
8
 
9
9
  # ----------------------------------------------------------------------------
10
10
 
ccxt/pro/alpaca.py CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCache, ArrayCacheBySymbolById, ArrayCacheByTimestamp
8
- from ccxt.base.types import Int, String, Ticker
8
+ from ccxt.base.types import Int, Str, Ticker
9
9
  from ccxt.async_support.base.ws.client import Client
10
10
  from ccxt.base.errors import ExchangeError
11
11
  from ccxt.base.errors import AuthenticationError
@@ -298,7 +298,7 @@ class alpaca(ccxt.async_support.alpaca):
298
298
  messageHash = 'trade' + ':' + symbol
299
299
  client.resolve(stored, messageHash)
300
300
 
301
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
301
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
302
302
  """
303
303
  watches information on multiple trades made by the user
304
304
  :param str symbol: unified market symbol of the market trades were made in
@@ -326,7 +326,7 @@ class alpaca(ccxt.async_support.alpaca):
326
326
  limit = trades.getLimit(symbol, limit)
327
327
  return self.filter_by_since_limit(trades, since, limit, 'timestamp', True)
328
328
 
329
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
329
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
330
330
  """
331
331
  watches information on multiple orders made by the user
332
332
  :param str symbol: unified market symbol of the market orders were made in
ccxt/pro/ascendex.py CHANGED
@@ -6,7 +6,7 @@
6
6
  import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCache, ArrayCacheBySymbolById, ArrayCacheByTimestamp
8
8
  import hashlib
9
- from ccxt.base.types import Int, String
9
+ from ccxt.base.types import Int, Str
10
10
  from ccxt.async_support.base.ws.client import Client
11
11
  from ccxt.base.errors import NetworkError
12
12
  from ccxt.base.errors import AuthenticationError
@@ -443,7 +443,7 @@ class ascendex(ccxt.async_support.ascendex):
443
443
  messageHash = 'balance' + ':' + type
444
444
  client.resolve(self.safe_balance(result), messageHash)
445
445
 
446
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
446
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
447
447
  """
448
448
  :see: https://ascendex.github.io/ascendex-pro-api/#channel-order-and-balance
449
449
  watches information on multiple orders made by the user
ccxt/pro/binance.py CHANGED
@@ -6,7 +6,7 @@
6
6
  import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCache, ArrayCacheBySymbolById, ArrayCacheBySymbolBySide, ArrayCacheByTimestamp
8
8
  import hashlib
9
- from ccxt.base.types import Int, OrderSide, OrderType, String, Strings, Trade
9
+ from ccxt.base.types import Int, OrderSide, OrderType, Str, Strings, Trade
10
10
  from ccxt.async_support.base.ws.client import Client
11
11
  from typing import List
12
12
  from ccxt.base.errors import ExchangeError
@@ -1714,7 +1714,7 @@ class binance(ccxt.async_support.binance):
1714
1714
  order = self.parse_order(rawOrder)
1715
1715
  client.resolve(order, messageHash)
1716
1716
 
1717
- async def cancel_order_ws(self, id: str, symbol: String = None, params={}):
1717
+ async def cancel_order_ws(self, id: str, symbol: Str = None, params={}):
1718
1718
  """
1719
1719
  :see: https://binance-docs.github.io/apidocs/websocket_api/en/#cancel-order-trade
1720
1720
  cancel multiple orders
@@ -1753,7 +1753,7 @@ class binance(ccxt.async_support.binance):
1753
1753
  }
1754
1754
  return await self.watch(url, messageHash, message, messageHash, subscription)
1755
1755
 
1756
- async def cancel_all_orders_ws(self, symbol: String = None, params={}):
1756
+ async def cancel_all_orders_ws(self, symbol: Str = None, params={}):
1757
1757
  """
1758
1758
  :see: https://binance-docs.github.io/apidocs/websocket_api/en/#current-open-orders-user_data
1759
1759
  cancel all open orders in a market
@@ -1781,7 +1781,7 @@ class binance(ccxt.async_support.binance):
1781
1781
  }
1782
1782
  return await self.watch(url, messageHash, message, messageHash, subscription)
1783
1783
 
1784
- async def fetch_order_ws(self, id: str, symbol: String = None, params={}):
1784
+ async def fetch_order_ws(self, id: str, symbol: Str = None, params={}):
1785
1785
  """
1786
1786
  :see: https://binance-docs.github.io/apidocs/websocket_api/en/#query-order-user_data
1787
1787
  fetches information on an order made by the user
@@ -1817,7 +1817,7 @@ class binance(ccxt.async_support.binance):
1817
1817
  }
1818
1818
  return await self.watch(url, messageHash, message, messageHash, subscription)
1819
1819
 
1820
- async def fetch_orders_ws(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
1820
+ async def fetch_orders_ws(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1821
1821
  """
1822
1822
  :see: https://binance-docs.github.io/apidocs/websocket_api/en/#account-order-history-user_data
1823
1823
  fetches information on multiple orders made by the user
@@ -1855,7 +1855,7 @@ class binance(ccxt.async_support.binance):
1855
1855
  orders = await self.watch(url, messageHash, message, messageHash, subscription)
1856
1856
  return self.filter_by_symbol_since_limit(orders, symbol, since, limit)
1857
1857
 
1858
- async def fetch_open_orders_ws(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
1858
+ async def fetch_open_orders_ws(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1859
1859
  """
1860
1860
  :see: https://binance-docs.github.io/apidocs/websocket_api/en/#current-open-orders-user_data
1861
1861
  fetch all unfilled currently open orders
@@ -1888,7 +1888,7 @@ class binance(ccxt.async_support.binance):
1888
1888
  orders = await self.watch(url, messageHash, message, messageHash, subscription)
1889
1889
  return self.filter_by_symbol_since_limit(orders, symbol, since, limit)
1890
1890
 
1891
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
1891
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1892
1892
  """
1893
1893
  watches information on multiple orders made by the user
1894
1894
  :param str symbol: unified market symbol of the market orders were made in
@@ -2329,7 +2329,7 @@ class binance(ccxt.async_support.binance):
2329
2329
  'marginRatio': None,
2330
2330
  })
2331
2331
 
2332
- async def fetch_my_trades_ws(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
2332
+ async def fetch_my_trades_ws(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
2333
2333
  """
2334
2334
  :see: https://binance-docs.github.io/apidocs/websocket_api/en/#account-trade-history-user_data
2335
2335
  fetch all trades made by the user
@@ -2401,7 +2401,7 @@ class binance(ccxt.async_support.binance):
2401
2401
  trades = self.parse_trades(result)
2402
2402
  client.resolve(trades, messageHash)
2403
2403
 
2404
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
2404
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
2405
2405
  """
2406
2406
  watches information on multiple trades made by the user
2407
2407
  :param str symbol: unified market symbol of the market orders were made in
ccxt/pro/bingx.py CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCache, ArrayCacheBySymbolById, ArrayCacheByTimestamp
8
- from ccxt.base.types import Int, String
8
+ from ccxt.base.types import Int, Str
9
9
  from ccxt.async_support.base.ws.client import Client
10
10
  from ccxt.base.errors import BadRequest
11
11
  from ccxt.base.errors import NetworkError
@@ -400,7 +400,7 @@ class bingx(ccxt.async_support.bingx):
400
400
  limit = ohlcv.getLimit(symbol, limit)
401
401
  return self.filter_by_since_limit(ohlcv, since, limit, 0, True)
402
402
 
403
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
403
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
404
404
  """
405
405
  :see: https://bingx-api.github.io/docs/#/spot/socket/account.html#Subscription%20order%20update%20data
406
406
  :see: https://bingx-api.github.io/docs/#/swapV2/socket/account.html#Account%20balance%20and%20position%20update%20push
@@ -441,7 +441,7 @@ class bingx(ccxt.async_support.bingx):
441
441
  limit = orders.getLimit(symbol, limit)
442
442
  return self.filter_by_symbol_since_limit(orders, symbol, since, limit, True)
443
443
 
444
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
444
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
445
445
  """
446
446
  :see: https://bingx-api.github.io/docs/#/spot/socket/account.html#Subscription%20order%20update%20data
447
447
  :see: https://bingx-api.github.io/docs/#/swapV2/socket/account.html#Account%20balance%20and%20position%20update%20push
ccxt/pro/bitfinex.py CHANGED
@@ -6,7 +6,7 @@
6
6
  import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCache, ArrayCacheBySymbolById
8
8
  import hashlib
9
- from ccxt.base.types import Int, String, Trade
9
+ from ccxt.base.types import Int, Str, Trade
10
10
  from ccxt.async_support.base.ws.client import Client
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import AuthenticationError
@@ -418,13 +418,13 @@ class bitfinex(ccxt.async_support.bitfinex):
418
418
  if method in client.subscriptions:
419
419
  del client.subscriptions[method]
420
420
 
421
- async def watch_order(self, id, symbol: String = None, params={}):
421
+ async def watch_order(self, id, symbol: Str = None, params={}):
422
422
  await self.load_markets()
423
423
  url = self.urls['api']['ws']['private']
424
424
  await self.authenticate()
425
425
  return await self.watch(url, id, None, 1)
426
426
 
427
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
427
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
428
428
  """
429
429
  watches information on multiple orders made by the user
430
430
  :param str symbol: unified market symbol of the market orders were made in
ccxt/pro/bitfinex2.py CHANGED
@@ -6,7 +6,7 @@
6
6
  import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCache, ArrayCacheBySymbolById, ArrayCacheByTimestamp
8
8
  import hashlib
9
- from ccxt.base.types import Int, String
9
+ from ccxt.base.types import Int, Str
10
10
  from ccxt.async_support.base.ws.client import Client
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import InvalidNonce
@@ -197,7 +197,7 @@ class bitfinex2(ccxt.async_support.bitfinex2):
197
197
  limit = trades.getLimit(symbol, limit)
198
198
  return self.filter_by_since_limit(trades, since, limit, 'timestamp', True)
199
199
 
200
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
200
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
201
201
  """
202
202
  watches information on multiple trades made by the user
203
203
  :param str symbol: unified market symbol of the market trades were made in
@@ -822,7 +822,7 @@ class bitfinex2(ccxt.async_support.bitfinex2):
822
822
  if messageHash in client.subscriptions:
823
823
  del client.subscriptions[messageHash]
824
824
 
825
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
825
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
826
826
  """
827
827
  watches information on multiple orders made by the user
828
828
  :param str symbol: unified market symbol of the market orders were made in
ccxt/pro/bitget.py CHANGED
@@ -6,7 +6,7 @@
6
6
  import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCache, ArrayCacheBySymbolById, ArrayCacheBySymbolBySide, ArrayCacheByTimestamp
8
8
  import hashlib
9
- from ccxt.base.types import Int, String, Strings
9
+ from ccxt.base.types import Int, Str, Strings
10
10
  from ccxt.async_support.base.ws.client import Client
11
11
  from typing import List
12
12
  from ccxt.base.errors import ExchangeError
@@ -869,7 +869,7 @@ class bitget(ccxt.async_support.bitget):
869
869
  'marginRatio': self.safe_number(position, 'marginRate'),
870
870
  })
871
871
 
872
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
872
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
873
873
  """
874
874
  :see: https://bitgetlimited.github.io/apidoc/en/spot/#order-channel
875
875
  :see: https://bitgetlimited.github.io/apidoc/en/mix/#order-channel
@@ -1177,7 +1177,7 @@ class bitget(ccxt.async_support.bitget):
1177
1177
  }
1178
1178
  return self.safe_string(statuses, status, status)
1179
1179
 
1180
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
1180
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1181
1181
  """
1182
1182
  watches trades made by the user
1183
1183
  :param str symbol: unified market symbol
ccxt/pro/bitmart.py CHANGED
@@ -6,7 +6,7 @@
6
6
  import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCache, ArrayCacheBySymbolById, ArrayCacheByTimestamp
8
8
  import hashlib
9
- from ccxt.base.types import Int, String
9
+ from ccxt.base.types import Int, Str
10
10
  from ccxt.async_support.base.ws.client import Client
11
11
  from ccxt.base.errors import ArgumentsRequired
12
12
  from ccxt.base.errors import AuthenticationError
@@ -109,7 +109,7 @@ class bitmart(ccxt.async_support.bitmart):
109
109
  """
110
110
  return await self.subscribe('ticker', symbol, params)
111
111
 
112
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
112
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
113
113
  """
114
114
  watches information on multiple orders made by the user
115
115
  :param str symbol: unified market symbol of the market orders were made in
ccxt/pro/bitmex.py CHANGED
@@ -6,7 +6,7 @@
6
6
  import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCache, ArrayCacheBySymbolById, ArrayCacheByTimestamp
8
8
  import hashlib
9
- from ccxt.base.types import Int, String
9
+ from ccxt.base.types import Int, Str
10
10
  from ccxt.async_support.base.ws.client import Client
11
11
  from typing import List
12
12
  from ccxt.base.errors import ExchangeError
@@ -585,7 +585,7 @@ class bitmex(ccxt.async_support.bitmex):
585
585
  if messageHash in client.subscriptions:
586
586
  del client.subscriptions[messageHash]
587
587
 
588
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
588
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
589
589
  """
590
590
  watches information on multiple orders made by the user
591
591
  :param str symbol: unified market symbol of the market orders were made in
@@ -791,7 +791,7 @@ class bitmex(ccxt.async_support.bitmex):
791
791
  symbol = keys[i]
792
792
  client.resolve(self.orders, messageHash + ':' + symbol)
793
793
 
794
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
794
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
795
795
  """
796
796
  watches information on multiple trades made by the user
797
797
  :param str symbol: unified market symbol of the market trades were made in
ccxt/pro/bitpanda.py CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCacheBySymbolById, ArrayCacheByTimestamp
8
- from ccxt.base.types import Int, String, Strings
8
+ from ccxt.base.types import Int, Str, Strings
9
9
  from ccxt.async_support.base.ws.client import Client
10
10
  from ccxt.base.errors import ExchangeError
11
11
  from ccxt.base.errors import NotSupported
@@ -254,7 +254,7 @@ class bitpanda(ccxt.async_support.bitpanda):
254
254
  'info': ticker,
255
255
  }, market)
256
256
 
257
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
257
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
258
258
  """
259
259
  :see: https://developers.bitpanda.com/exchange/#account-history-channel
260
260
  get the list of trades associated with the user
@@ -399,7 +399,7 @@ class bitpanda(ccxt.async_support.bitpanda):
399
399
  for i in range(0, len(deltas)):
400
400
  self.handle_delta(orderbook, deltas[i])
401
401
 
402
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
402
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
403
403
  """
404
404
  :see: https://developers.bitpanda.com/exchange/#account-history-channel
405
405
  watches information on multiple orders made by the user
ccxt/pro/bitrue.py CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCacheBySymbolById
8
- from ccxt.base.types import Int, String
8
+ from ccxt.base.types import Int, Str
9
9
  from ccxt.async_support.base.ws.client import Client
10
10
 
11
11
 
@@ -162,7 +162,7 @@ class bitrue(ccxt.async_support.bitrue):
162
162
  self.balance[code] = account
163
163
  self.balance = self.safe_balance(self.balance)
164
164
 
165
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
165
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
166
166
  """
167
167
  watches information on user orders
168
168
  :see: https://github.com/Bitrue-exchange/Spot-official-api-docs#order-update
ccxt/pro/bitstamp.py CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCache, ArrayCacheBySymbolById
8
- from ccxt.base.types import Int, String
8
+ from ccxt.base.types import Int, Str
9
9
  from ccxt.async_support.base.ws.client import Client
10
10
  from ccxt.base.errors import AuthenticationError
11
11
 
@@ -251,7 +251,7 @@ class bitstamp(ccxt.async_support.bitstamp):
251
251
  tradesArray.append(trade)
252
252
  client.resolve(tradesArray, messageHash)
253
253
 
254
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
254
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
255
255
  """
256
256
  watches information on multiple orders made by the user
257
257
  :param str symbol: unified market symbol of the market orders were made in
ccxt/pro/bittrex.py CHANGED
@@ -7,7 +7,7 @@ import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCache, ArrayCacheBySymbolById, ArrayCacheByTimestamp
8
8
  import hashlib
9
9
  import json
10
- from ccxt.base.types import Int, String
10
+ from ccxt.base.types import Int, Str
11
11
  from ccxt.async_support.base.ws.client import Client
12
12
  from ccxt.base.errors import ExchangeError
13
13
  from ccxt.base.errors import BadRequest
@@ -211,7 +211,7 @@ class bittrex(ccxt.async_support.bittrex):
211
211
  }))
212
212
  return await self.signalrGetStart(request)
213
213
 
214
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
214
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
215
215
  """
216
216
  watches information on multiple orders made by the user
217
217
  :param str symbol: unified market symbol of the market orders were made in
@@ -505,7 +505,7 @@ class bittrex(ccxt.async_support.bittrex):
505
505
  self.trades[symbol] = stored
506
506
  client.resolve(stored, messageHash)
507
507
 
508
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
508
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
509
509
  """
510
510
  watches information on multiple trades made by the user
511
511
  :param str symbol: unified market symbol of the market trades were made in
ccxt/pro/bitvavo.py CHANGED
@@ -6,7 +6,7 @@
6
6
  import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCache, ArrayCacheBySymbolById, ArrayCacheByTimestamp
8
8
  import hashlib
9
- from ccxt.base.types import Int, String
9
+ from ccxt.base.types import Int, Str
10
10
  from ccxt.async_support.base.ws.client import Client
11
11
  from ccxt.base.errors import AuthenticationError
12
12
 
@@ -390,7 +390,7 @@ class bitvavo(ccxt.async_support.bitvavo):
390
390
  if method is not None:
391
391
  method(client, message, subscription)
392
392
 
393
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
393
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
394
394
  """
395
395
  watches information on multiple orders made by the user
396
396
  :param str symbol: unified market symbol of the market orders were made in
@@ -422,7 +422,7 @@ class bitvavo(ccxt.async_support.bitvavo):
422
422
  limit = orders.getLimit(symbol, limit)
423
423
  return self.filter_by_symbol_since_limit(orders, symbol, since, limit, True)
424
424
 
425
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
425
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
426
426
  """
427
427
  watches information on multiple trades made by the user
428
428
  :param str symbol: unified market symbol of the market trades were made in
ccxt/pro/blockchaincom.py CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCache, ArrayCacheBySymbolById, ArrayCacheByTimestamp
8
- from ccxt.base.types import Int, IndexType, String
8
+ from ccxt.base.types import Int, IndexType, Str
9
9
  from ccxt.async_support.base.ws.client import Client
10
10
  from ccxt.base.errors import ExchangeError
11
11
  from ccxt.base.errors import NotSupported
@@ -391,7 +391,7 @@ class blockchaincom(ccxt.async_support.blockchaincom):
391
391
  'info': trade,
392
392
  }, market)
393
393
 
394
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
394
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
395
395
  """
396
396
  watches information on multiple orders made by the user
397
397
  :see: https://exchange.blockchain.com/api/#mass-order-status-request-ordermassstatusrequest
ccxt/pro/bybit.py CHANGED
@@ -7,7 +7,7 @@ import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCache, ArrayCacheBySymbolById, ArrayCacheBySymbolBySide, ArrayCacheByTimestamp
8
8
  import asyncio
9
9
  import hashlib
10
- from ccxt.base.types import Int, String, Strings
10
+ from ccxt.base.types import Int, Str, Strings
11
11
  from ccxt.async_support.base.ws.client import Client
12
12
  from typing import List
13
13
  from ccxt.base.errors import ExchangeError
@@ -127,7 +127,7 @@ class bybit(ccxt.async_support.bybit):
127
127
  self.options['requestId'] = requestId
128
128
  return requestId
129
129
 
130
- def get_url_by_market_type(self, symbol: String = None, isPrivate=False, method=None, params={}):
130
+ def get_url_by_market_type(self, symbol: Str = None, isPrivate=False, method=None, params={}):
131
131
  accessibility = 'private' if isPrivate else 'public'
132
132
  isUsdcSettled = None
133
133
  isSpot = None
@@ -789,7 +789,7 @@ class bybit(ccxt.async_support.bybit):
789
789
  else:
790
790
  return 'usdc'
791
791
 
792
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
792
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
793
793
  """
794
794
  watches information on multiple trades made by the user
795
795
  :see: https://bybit-exchange.github.io/docs/v5/websocket/private/execution
@@ -1031,7 +1031,7 @@ class bybit(ccxt.async_support.bybit):
1031
1031
  client.resolve(positions, messageHash)
1032
1032
  client.resolve(newPositions, 'positions')
1033
1033
 
1034
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
1034
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1035
1035
  """
1036
1036
  watches information on multiple orders made by the user
1037
1037
  :see: https://bybit-exchange.github.io/docs/v5/websocket/private/order
ccxt/pro/cex.py CHANGED
@@ -6,7 +6,7 @@
6
6
  import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCache, ArrayCacheBySymbolById, ArrayCacheByTimestamp
8
8
  import hashlib
9
- from ccxt.base.types import Int, String, Strings
9
+ from ccxt.base.types import Int, Str, Strings
10
10
  from ccxt.async_support.base.ws.client import Client
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.precise import Precise
@@ -355,7 +355,7 @@ class cex(ccxt.async_support.cex):
355
355
  'info': ticker,
356
356
  }, market)
357
357
 
358
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
358
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
359
359
  """
360
360
  get the list of orders associated with the user. Note: In CEX.IO system, orders can be present in trade engine or in archive database. There can be time periods(~2 seconds or more), when order is done/canceled, but still not moved to archive database. That means, you cannot see it using calls: archived-orders/open-orders.
361
361
  :see: https://docs.cex.io/#ws-api-open-orders
@@ -388,7 +388,7 @@ class cex(ccxt.async_support.cex):
388
388
  limit = orders.getLimit(symbol, limit)
389
389
  return self.filter_by_symbol_since_limit(orders, symbol, since, limit, True)
390
390
 
391
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
391
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
392
392
  """
393
393
  get the list of trades associated with the user. Note: In CEX.IO system, orders can be present in trade engine or in archive database. There can be time periods(~2 seconds or more), when order is done/canceled, but still not moved to archive database. That means, you cannot see it using calls: archived-orders/open-orders.
394
394
  :see: https://docs.cex.io/#ws-api-open-orders