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/pro/coinbasepro.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, Strings, Ticker
9
+ from ccxt.base.types import Int, Str, Strings, Ticker
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
@@ -180,7 +180,7 @@ class coinbasepro(ccxt.async_support.coinbasepro):
180
180
  limit = trades.getLimit(tradeSymbol, limit)
181
181
  return self.filter_by_since_limit(trades, since, limit, 'timestamp', True)
182
182
 
183
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
183
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
184
184
  """
185
185
  watches information on multiple trades made by the user
186
186
  :param str symbol: unified market symbol of the market trades were made in
@@ -242,7 +242,7 @@ class coinbasepro(ccxt.async_support.coinbasepro):
242
242
  limit = orders.getLimit(tradeSymbol, limit)
243
243
  return self.filter_by_since_limit(orders, since, limit, 'timestamp', True)
244
244
 
245
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
245
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
246
246
  """
247
247
  watches information on multiple orders made by the user
248
248
  :param str symbol: unified market symbol of the market orders were made in
ccxt/pro/coinex.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, 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 BadRequest
@@ -659,7 +659,7 @@ class coinex(ccxt.async_support.coinex):
659
659
  # self.checkOrderBookChecksum(self.orderbooks[symbol])
660
660
  client.resolve(self.orderbooks[symbol], messageHash)
661
661
 
662
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
662
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
663
663
  await self.load_markets()
664
664
  await self.authenticate(params)
665
665
  messageHash = 'orders'
ccxt/pro/cryptocom.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
9
+ from ccxt.base.types import Int, OrderSide, OrderType, 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 NetworkError
@@ -234,7 +234,7 @@ class cryptocom(ccxt.async_support.cryptocom):
234
234
  client.resolve(stored, channelReplaced)
235
235
  self.resolve_promise_if_messagehash_matches(client, 'multipleTrades::', symbol, stored)
236
236
 
237
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
237
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
238
238
  """
239
239
  watches information on multiple trades made by the user
240
240
  :see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-trade-instrument_name
@@ -354,7 +354,7 @@ class cryptocom(ccxt.async_support.cryptocom):
354
354
  stored.append(parsed)
355
355
  client.resolve(stored, messageHash)
356
356
 
357
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
357
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
358
358
  """
359
359
  watches information on multiple orders made by the user
360
360
  :see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-order-instrument_name
@@ -644,7 +644,7 @@ class cryptocom(ccxt.async_support.cryptocom):
644
644
  order = self.parse_order(rawOrder)
645
645
  client.resolve(order, messageHash)
646
646
 
647
- async def cancel_order_ws(self, id: str, symbol: String = None, params={}):
647
+ async def cancel_order_ws(self, id: str, symbol: Str = None, params={}):
648
648
  """
649
649
  cancels an open order
650
650
  :see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-order
@@ -664,7 +664,7 @@ class cryptocom(ccxt.async_support.cryptocom):
664
664
  messageHash = self.nonce()
665
665
  return await self.watch_private_request(messageHash, request)
666
666
 
667
- async def cancel_all_orders_ws(self, symbol: String = None, params={}):
667
+ async def cancel_all_orders_ws(self, symbol: Str = None, params={}):
668
668
  """
669
669
  cancel all open orders
670
670
  :see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-all-orders
ccxt/pro/deribit.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 NotSupported
@@ -284,7 +284,7 @@ class deribit(ccxt.async_support.deribit):
284
284
  self.trades[symbol] = stored
285
285
  client.resolve(self.trades[symbol], channel)
286
286
 
287
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
287
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
288
288
  """
289
289
  get the list of trades associated with the user
290
290
  :see: https://docs.deribit.com/#user-trades-instrument_name-interval
@@ -485,7 +485,7 @@ class deribit(ccxt.async_support.deribit):
485
485
  for i in range(0, len(deltas)):
486
486
  self.handle_delta(bookside, deltas[i])
487
487
 
488
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
488
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
489
489
  """
490
490
  :see: https://docs.deribit.com/#user-orders-instrument_name-raw
491
491
  watches information on multiple orders made by the user
ccxt/pro/exmo.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
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 NotSupported
12
12
 
@@ -310,7 +310,7 @@ class exmo(ccxt.async_support.exmo):
310
310
  self.trades[symbol] = stored
311
311
  client.resolve(self.trades[symbol], messageHash)
312
312
 
313
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
313
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
314
314
  """
315
315
  get the list of trades associated with the user
316
316
  :param str symbol: unified symbol of the market to fetch trades for
ccxt/pro/gate.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 ArgumentsRequired
@@ -516,7 +516,7 @@ class gate(ccxt.async_support.gate):
516
516
  stored = self.safe_value(self.ohlcvs[symbol], interval)
517
517
  client.resolve(stored, hash)
518
518
 
519
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
519
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
520
520
  """
521
521
  watches information on multiple trades made by the user
522
522
  :param str symbol: unified market symbol of the market trades were made in
@@ -834,7 +834,7 @@ class gate(ccxt.async_support.gate):
834
834
  client.resolve(positions, messageHash)
835
835
  client.resolve(newPositions, type + ':positions')
836
836
 
837
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
837
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
838
838
  """
839
839
  watches information on multiple orders made by the user
840
840
  :param str symbol: unified market symbol of the market orders were made in
ccxt/pro/gemini.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
 
@@ -357,7 +357,7 @@ class gemini(ccxt.async_support.gemini):
357
357
  self.handle_order_book(client, message)
358
358
  self.handle_trades(client, message)
359
359
 
360
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
360
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
361
361
  """
362
362
  watches information on multiple orders made by the user
363
363
  :see: https://docs.gemini.com/websocket-api/#order-events
ccxt/pro/hitbtc.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 AuthenticationError
12
12
 
@@ -128,7 +128,7 @@ class hitbtc(ccxt.async_support.hitbtc):
128
128
  request = self.extend(subscribe, params)
129
129
  return await self.watch(url, messageHash, request, messageHash)
130
130
 
131
- async def subscribe_private(self, name: str, symbol: String = None, params={}):
131
+ async def subscribe_private(self, name: str, symbol: Str = None, params={}):
132
132
  """
133
133
  * @ignore
134
134
  :param str name: websocket endpoint name
@@ -651,7 +651,7 @@ class hitbtc(ccxt.async_support.hitbtc):
651
651
  self.safe_number(ohlcv, 'v'),
652
652
  ]
653
653
 
654
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
654
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
655
655
  """
656
656
  watches information on multiple orders made by the user
657
657
  :see: https://api.hitbtc.com/#subscribe-to-reports
@@ -843,7 +843,7 @@ class hitbtc(ccxt.async_support.hitbtc):
843
843
  # }
844
844
  #
845
845
  timestamp = self.safe_string(order, 'created_at')
846
- marketId = self.safe_symbol(order, 'symbol')
846
+ marketId = self.safe_string(order, 'symbol')
847
847
  market = self.safe_market(marketId, market)
848
848
  tradeId = self.safe_string(order, 'trade_id')
849
849
  trades = None
ccxt/pro/hollaex.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
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 BadRequest
12
12
  from ccxt.base.errors import BadSymbol
@@ -162,7 +162,7 @@ class hollaex(ccxt.async_support.hollaex):
162
162
  client.resolve(stored, messageHash)
163
163
  client.resolve(stored, channel)
164
164
 
165
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
165
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
166
166
  """
167
167
  watches information on multiple trades made by the user
168
168
  :param str symbol: unified market symbol of the market trades were made in
@@ -234,7 +234,7 @@ class hollaex(ccxt.async_support.hollaex):
234
234
  messageHash = channel + ':' + marketId
235
235
  client.resolve(self.myTrades, messageHash)
236
236
 
237
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
237
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
238
238
  """
239
239
  watches information on multiple orders made by the user
240
240
  :param str symbol: unified market symbol of the market orders were made in
ccxt/pro/htx.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 ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import ArgumentsRequired
@@ -610,7 +610,7 @@ class htx(ccxt.async_support.htx):
610
610
  if self.markets[symbol]['spot'] is True:
611
611
  self.spawn(self.watch_order_book_snapshot, client, message, subscription)
612
612
 
613
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
613
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
614
614
  """
615
615
  watches information on multiple trades made by the user
616
616
  :param str symbol: unified market symbol of the market trades were made in
@@ -696,7 +696,7 @@ class htx(ccxt.async_support.htx):
696
696
  channel = prefix + '.' + '*'
697
697
  return [channel, messageHash]
698
698
 
699
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
699
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
700
700
  """
701
701
  watches information on multiple orders made by the user
702
702
  :param str symbol: unified market symbol of the market orders were made in
ccxt/pro/idex.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 InvalidNonce
11
11
  from ccxt.base.precise import Precise
@@ -474,7 +474,7 @@ class idex(ccxt.async_support.idex):
474
474
  self.options['token'] = self.safe_string(response, 'token')
475
475
  return self.options['token']
476
476
 
477
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
477
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
478
478
  """
479
479
  watches information on multiple orders made by the user
480
480
  :param str symbol: unified market symbol of the market orders were made in
@@ -598,7 +598,7 @@ class idex(ccxt.async_support.idex):
598
598
  client.resolve(orders, symbolSpecificMessageHash)
599
599
  client.resolve(orders, type)
600
600
 
601
- async def watch_transactions(self, code: String = None, since: Int = None, limit: Int = None, params={}):
601
+ async def watch_transactions(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
602
602
  await self.load_markets()
603
603
  name = 'balances'
604
604
  subscribeObject = {
ccxt/pro/kraken.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, OrderSide, OrderType, String
8
+ from ccxt.base.types import Int, OrderSide, OrderType, Str
9
9
  from ccxt.async_support.base.ws.client import Client
10
10
  from typing import List
11
11
  from ccxt.base.errors import ExchangeError
@@ -205,7 +205,7 @@ class kraken(ccxt.async_support.kraken):
205
205
  request, params = self.orderRequest('editOrderWs()', symbol, type, request, price, params)
206
206
  return await self.watch(url, messageHash, self.extend(request, params), messageHash)
207
207
 
208
- async def cancel_orders_ws(self, ids: List[str], symbol: String = None, params={}):
208
+ async def cancel_orders_ws(self, ids: List[str], symbol: Str = None, params={}):
209
209
  """
210
210
  :see: https://docs.kraken.com/websockets/#message-cancelOrder
211
211
  cancel multiple orders
@@ -227,7 +227,7 @@ class kraken(ccxt.async_support.kraken):
227
227
  }
228
228
  return await self.watch(url, messageHash, self.extend(request, params), messageHash)
229
229
 
230
- async def cancel_order_ws(self, id: str, symbol: String = None, params={}):
230
+ async def cancel_order_ws(self, id: str, symbol: Str = None, params={}):
231
231
  """
232
232
  :see: https://docs.kraken.com/websockets/#message-cancelOrder
233
233
  cancels an open order
@@ -263,7 +263,7 @@ class kraken(ccxt.async_support.kraken):
263
263
  reqId = self.safe_value(message, 'reqid')
264
264
  client.resolve(message, reqId)
265
265
 
266
- async def cancel_all_orders_ws(self, symbol: String = None, params={}):
266
+ async def cancel_all_orders_ws(self, symbol: Str = None, params={}):
267
267
  """
268
268
  :see: https://docs.kraken.com/websockets/#message-cancelAll
269
269
  cancel all open orders
@@ -761,7 +761,7 @@ class kraken(ccxt.async_support.kraken):
761
761
  client.subscriptions[authenticated] = subscription
762
762
  return self.safe_string(subscription, 'token')
763
763
 
764
- async def watch_private(self, name, symbol: String = None, since: Int = None, limit: Int = None, params={}):
764
+ async def watch_private(self, name, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
765
765
  await self.load_markets()
766
766
  token = await self.authenticate()
767
767
  subscriptionHash = name
@@ -785,7 +785,7 @@ class kraken(ccxt.async_support.kraken):
785
785
  limit = result.getLimit(symbol, limit)
786
786
  return self.filter_by_symbol_since_limit(result, symbol, since, limit)
787
787
 
788
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
788
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
789
789
  """
790
790
  watches information on multiple trades made by the user
791
791
  :param str symbol: unified market symbol of the market trades were made in
@@ -934,7 +934,7 @@ class kraken(ccxt.async_support.kraken):
934
934
  'fee': fee,
935
935
  }
936
936
 
937
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
937
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
938
938
  """
939
939
  :see: https://docs.kraken.com/websockets/#message-openOrders
940
940
  watches information on multiple orders made by the user
ccxt/pro/krakenfutures.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, 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 ArgumentsRequired
@@ -166,7 +166,7 @@ class krakenfutures(ccxt.async_support.krakenfutures):
166
166
  symbols = self.market_symbols(symbols, None, False)
167
167
  return await self.subscribe_public(name, symbols, params)
168
168
 
169
- async def watch_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
169
+ async def watch_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
170
170
  """
171
171
  get the list of most recent trades for a particular symbol
172
172
  :see: https://docs.futures.kraken.com/#websocket-api-public-feeds-trade
@@ -314,7 +314,7 @@ class krakenfutures(ccxt.async_support.krakenfutures):
314
314
  'marginRatio': None,
315
315
  })
316
316
 
317
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
317
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
318
318
  """
319
319
  watches information on multiple orders made by the user
320
320
  :see: https://docs.futures.kraken.com/#websocket-api-private-feeds-open-orders
@@ -336,7 +336,7 @@ class krakenfutures(ccxt.async_support.krakenfutures):
336
336
  limit = orders.getLimit(symbol, limit)
337
337
  return self.filter_by_since_limit(orders, since, limit, 'timestamp', True)
338
338
 
339
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
339
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
340
340
  """
341
341
  watches information on multiple trades made by the user
342
342
  :see: https://docs.futures.kraken.com/#websocket-api-private-feeds-fills
ccxt/pro/kucoin.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, Strings
8
+ from ccxt.base.types import Int, Str, Strings
9
9
  from ccxt.async_support.base.ws.client import Client
10
10
  from typing import List
11
11
  from ccxt.base.errors import ExchangeError
@@ -579,7 +579,7 @@ class kucoin(ccxt.async_support.kucoin):
579
579
  #
580
580
  return message
581
581
 
582
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
582
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
583
583
  """
584
584
  watches information on multiple orders made by the user
585
585
  :param str symbol: unified market symbol of the market orders were made in
@@ -736,7 +736,7 @@ class kucoin(ccxt.async_support.kucoin):
736
736
  symbolSpecificMessageHash = messageHash + ':' + symbol
737
737
  client.resolve(cachedOrders, symbolSpecificMessageHash)
738
738
 
739
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
739
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
740
740
  """
741
741
  watches information on multiple trades made by the user
742
742
  :param str symbol: unified market symbol of the market trades were made in
ccxt/pro/kucoinfutures.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 typing import List
11
11
  from ccxt.base.errors import ExchangeError
@@ -184,7 +184,7 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
184
184
  client.resolve(ticker, messageHash)
185
185
  return message
186
186
 
187
- async def watch_position(self, symbol: String = None, params={}):
187
+ async def watch_position(self, symbol: Str = None, params={}):
188
188
  """
189
189
  watch open positions for a specific symbol
190
190
  :see: https://docs.kucoin.com/futures/#position-change-events
@@ -618,7 +618,7 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
618
618
  #
619
619
  return message
620
620
 
621
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
621
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
622
622
  """
623
623
  watches information on multiple orders made by the user
624
624
  :see: https://docs.kucoin.com/futures/#trade-orders-according-to-the-market
ccxt/pro/mexc.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 AuthenticationError
@@ -562,7 +562,7 @@ class mexc(ccxt.async_support.mexc):
562
562
  stored.append(parsedTrade)
563
563
  client.resolve(stored, messageHash)
564
564
 
565
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
565
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
566
566
  """
567
567
  :see: https://mxcdevelop.github.io/apidocs/spot_v3_en/#spot-account-deals
568
568
  watches information on multiple trades made by the user
@@ -679,7 +679,7 @@ class mexc(ccxt.async_support.mexc):
679
679
  'fee': None,
680
680
  }, market)
681
681
 
682
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
682
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
683
683
  """
684
684
  :see: https://mxcdevelop.github.io/apidocs/spot_v3_en/#spot-account-orders
685
685
  :see: https://mxcdevelop.github.io/apidocs/spot_v3_en/#margin-account-orders
ccxt/pro/okcoin.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
@@ -84,7 +84,7 @@ class okcoin(ccxt.async_support.okcoin):
84
84
  limit = trades.getLimit(symbol, limit)
85
85
  return self.filter_by_since_limit(trades, since, limit, 'timestamp', True)
86
86
 
87
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
87
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
88
88
  """
89
89
  watches information on multiple orders made by the user
90
90
  :param str symbol: unified market symbol of the market orders were made in
ccxt/pro/okx.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
9
+ from ccxt.base.types import Int, OrderSide, OrderType, 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 ArgumentsRequired
@@ -765,7 +765,7 @@ class okx(ccxt.async_support.okx):
765
765
  },
766
766
  }, market)
767
767
 
768
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
768
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
769
769
  """
770
770
  :see: https://www.okx.com/docs-v5/en/#order-book-trading-trade-ws-order-channel
771
771
  watches information on multiple trades made by the user
@@ -913,7 +913,7 @@ class okx(ccxt.async_support.okx):
913
913
  if not self.is_empty(positions):
914
914
  client.resolve(positions, messageHash)
915
915
 
916
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
916
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
917
917
  """
918
918
  :see: https://www.okx.com/docs-v5/en/#order-book-trading-trade-ws-order-channel
919
919
  watches information on multiple orders made by the user
@@ -1205,7 +1205,7 @@ class okx(ccxt.async_support.okx):
1205
1205
  }
1206
1206
  return await self.watch(url, messageHash, self.extend(request, params), messageHash)
1207
1207
 
1208
- async def cancel_order_ws(self, id: str, symbol: String = None, params={}):
1208
+ async def cancel_order_ws(self, id: str, symbol: Str = None, params={}):
1209
1209
  """
1210
1210
  :see: https://okx-docs.github.io/apidocs/websocket_api/en/#cancel-order-trade
1211
1211
  cancel multiple orders
@@ -1237,7 +1237,7 @@ class okx(ccxt.async_support.okx):
1237
1237
  }
1238
1238
  return await self.watch(url, messageHash, request, messageHash)
1239
1239
 
1240
- async def cancel_orders_ws(self, ids: List[str], symbol: String = None, params={}):
1240
+ async def cancel_orders_ws(self, ids: List[str], symbol: Str = None, params={}):
1241
1241
  """
1242
1242
  :see: https://www.okx.com/docs-v5/en/#order-book-trading-trade-ws-mass-cancel-order
1243
1243
  cancel multiple orders
@@ -1269,7 +1269,7 @@ class okx(ccxt.async_support.okx):
1269
1269
  }
1270
1270
  return await self.watch(url, messageHash, self.deep_extend(request, params), messageHash)
1271
1271
 
1272
- async def cancel_all_orders_ws(self, symbol: String = None, params={}):
1272
+ async def cancel_all_orders_ws(self, symbol: Str = None, params={}):
1273
1273
  """
1274
1274
  :see: https://docs.okx.com/websockets/#message-cancelAll
1275
1275
  cancel all open orders of a type. Only applicable to Option in Portfolio Margin mode, and MMP privilege is required.
ccxt/pro/phemex.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
  from ccxt.base.precise import Precise
@@ -684,7 +684,7 @@ class phemex(ccxt.async_support.phemex):
684
684
  self.orderbooks[symbol] = orderbook
685
685
  client.resolve(orderbook, messageHash)
686
686
 
687
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
687
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
688
688
  """
689
689
  watches information on multiple trades made by the user
690
690
  :param str symbol: unified market symbol of the market trades were made in
@@ -836,7 +836,7 @@ class phemex(ccxt.async_support.phemex):
836
836
  messageHash = channel + ':' + type
837
837
  client.resolve(cachedTrades, messageHash)
838
838
 
839
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
839
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
840
840
  """
841
841
  watches information on multiple orders made by the user
842
842
  :param str symbol: unified market symbol of the market orders were made in
ccxt/pro/poloniex.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.errors import BadRequest
@@ -236,7 +236,7 @@ class poloniex(ccxt.async_support.poloniex):
236
236
  orderbook = await self.subscribe(name, name, False, [symbol], params)
237
237
  return orderbook.limit()
238
238
 
239
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
239
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
240
240
  """
241
241
  watches information on multiple orders made by the user
242
242
  :see: https://docs.poloniex.com/#authenticated-channels-market-data-orders
@@ -257,7 +257,7 @@ class poloniex(ccxt.async_support.poloniex):
257
257
  limit = orders.getLimit(symbol, limit)
258
258
  return self.filter_by_since_limit(orders, since, limit, 'timestamp', True)
259
259
 
260
- async def watch_my_trades(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
260
+ async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
261
261
  """
262
262
  watches information on multiple trades made by the user using orders stream
263
263
  :see: https://docs.poloniex.com/#authenticated-channels-market-data-orders
@@ -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 ExchangeError
11
11
  from ccxt.base.errors import BadRequest
@@ -123,7 +123,7 @@ class poloniexfutures(ccxt.async_support.poloniexfutures):
123
123
  self.options['requestId'] = requestId
124
124
  return requestId
125
125
 
126
- async def subscribe(self, name: str, isPrivate: bool, symbol: String = None, subscription=None, params={}):
126
+ async def subscribe(self, name: str, isPrivate: bool, symbol: Str = None, subscription=None, params={}):
127
127
  """
128
128
  * @ignore
129
129
  Connects to a websocket channel
@@ -279,7 +279,7 @@ class poloniexfutures(ccxt.async_support.poloniexfutures):
279
279
  orderbook = await self.subscribe(name, False, symbol, subscription, params)
280
280
  return orderbook.limit()
281
281
 
282
- async def watch_orders(self, symbol: String = None, since: Int = None, limit: Int = None, params={}):
282
+ async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
283
283
  """
284
284
  watches information on multiple orders made by the user
285
285
  :see: https://futures-docs.poloniex.com/#private-messages