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.
- ccxt/__init__.py +2 -2
- ccxt/abstract/binance.py +1 -0
- ccxt/abstract/binancecoinm.py +1 -0
- ccxt/abstract/binanceus.py +1 -0
- ccxt/abstract/binanceusdm.py +1 -0
- ccxt/abstract/bitbank.py +1 -0
- ccxt/abstract/coinbase.py +2 -0
- ccxt/abstract/htx.py +3 -0
- ccxt/abstract/huobi.py +3 -0
- ccxt/abstract/huobipro.py +3 -0
- ccxt/abstract/okex.py +3 -1
- ccxt/abstract/okex5.py +3 -1
- ccxt/abstract/okx.py +3 -1
- ccxt/ace.py +23 -23
- ccxt/alpaca.py +8 -8
- ccxt/ascendex.py +26 -26
- ccxt/async_support/__init__.py +2 -2
- ccxt/async_support/ace.py +23 -23
- ccxt/async_support/alpaca.py +8 -8
- ccxt/async_support/ascendex.py +26 -26
- ccxt/async_support/base/exchange.py +4 -2216
- ccxt/async_support/bigone.py +21 -24
- ccxt/async_support/binance.py +61 -54
- ccxt/async_support/bingx.py +28 -28
- ccxt/async_support/bit2c.py +9 -9
- ccxt/async_support/bitbank.py +11 -10
- ccxt/async_support/bitbns.py +11 -11
- ccxt/async_support/bitfinex.py +15 -15
- ccxt/async_support/bitfinex2.py +22 -22
- ccxt/async_support/bitflyer.py +13 -13
- ccxt/async_support/bitforex.py +10 -10
- ccxt/async_support/bitget.py +44 -44
- ccxt/async_support/bithumb.py +9 -9
- ccxt/async_support/bitmart.py +85 -104
- ccxt/async_support/bitmex.py +27 -27
- ccxt/async_support/bitopro.py +18 -18
- ccxt/async_support/bitpanda.py +18 -18
- ccxt/async_support/bitrue.py +14 -14
- ccxt/async_support/bitso.py +17 -17
- ccxt/async_support/bitstamp.py +17 -17
- ccxt/async_support/bittrex.py +22 -24
- ccxt/async_support/bitvavo.py +15 -15
- ccxt/async_support/bl3p.py +4 -4
- ccxt/async_support/blockchaincom.py +17 -17
- ccxt/async_support/btcalpha.py +14 -14
- ccxt/async_support/btcbox.py +9 -9
- ccxt/async_support/btcmarkets.py +17 -17
- ccxt/async_support/btcturk.py +9 -9
- ccxt/async_support/bybit.py +46 -46
- ccxt/async_support/cex.py +10 -10
- ccxt/async_support/coinbase.py +69 -25
- ccxt/async_support/coinbasepro.py +19 -19
- ccxt/async_support/coincheck.py +10 -10
- ccxt/async_support/coinex.py +57 -66
- ccxt/async_support/coinlist.py +22 -22
- ccxt/async_support/coinmate.py +10 -10
- ccxt/async_support/coinone.py +10 -10
- ccxt/async_support/coinsph.py +17 -17
- ccxt/async_support/coinspot.py +5 -5
- ccxt/async_support/cryptocom.py +27 -27
- ccxt/async_support/currencycom.py +18 -18
- ccxt/async_support/delta.py +21 -21
- ccxt/async_support/deribit.py +24 -24
- ccxt/async_support/digifinex.py +35 -35
- ccxt/async_support/exmo.py +19 -19
- ccxt/async_support/gate.py +38 -38
- ccxt/async_support/gemini.py +11 -11
- ccxt/async_support/hitbtc.py +27 -27
- ccxt/async_support/hollaex.py +19 -19
- ccxt/async_support/htx.py +47 -44
- ccxt/async_support/huobijp.py +22 -22
- ccxt/async_support/idex.py +20 -20
- ccxt/async_support/independentreserve.py +9 -9
- ccxt/async_support/indodax.py +10 -10
- ccxt/async_support/kraken.py +25 -25
- ccxt/async_support/krakenfutures.py +17 -17
- ccxt/async_support/kucoin.py +27 -27
- ccxt/async_support/kucoinfutures.py +20 -20
- ccxt/async_support/kuna.py +19 -19
- ccxt/async_support/latoken.py +14 -14
- ccxt/async_support/lbank.py +18 -18
- ccxt/async_support/luno.py +14 -14
- ccxt/async_support/lykke.py +12 -12
- ccxt/async_support/mercado.py +11 -11
- ccxt/async_support/mexc.py +36 -36
- ccxt/async_support/ndax.py +18 -18
- ccxt/async_support/novadax.py +17 -17
- ccxt/async_support/oceanex.py +12 -12
- ccxt/async_support/okcoin.py +19 -19
- ccxt/async_support/okx.py +48 -45
- ccxt/async_support/p2b.py +6 -6
- ccxt/async_support/paymium.py +6 -6
- ccxt/async_support/phemex.py +57 -57
- ccxt/async_support/poloniex.py +31 -30
- ccxt/async_support/poloniexfutures.py +16 -16
- ccxt/async_support/probit.py +22 -22
- ccxt/async_support/tidex.py +15 -15
- ccxt/async_support/timex.py +20 -20
- ccxt/async_support/tokocrypto.py +16 -16
- ccxt/async_support/upbit.py +15 -15
- ccxt/async_support/wavesexchange.py +12 -12
- ccxt/async_support/wazirx.py +13 -13
- ccxt/async_support/whitebit.py +26 -26
- ccxt/async_support/woo.py +47 -47
- ccxt/async_support/yobit.py +8 -8
- ccxt/async_support/zaif.py +10 -10
- ccxt/async_support/zonda.py +16 -16
- ccxt/base/errors.py +17 -16
- ccxt/base/exchange.py +57 -97
- ccxt/base/types.py +138 -139
- ccxt/bigone.py +21 -24
- ccxt/binance.py +61 -54
- ccxt/bingx.py +28 -28
- ccxt/bit2c.py +9 -9
- ccxt/bitbank.py +11 -10
- ccxt/bitbns.py +11 -11
- ccxt/bitfinex.py +15 -15
- ccxt/bitfinex2.py +22 -22
- ccxt/bitflyer.py +13 -13
- ccxt/bitforex.py +10 -10
- ccxt/bitget.py +44 -44
- ccxt/bithumb.py +9 -9
- ccxt/bitmart.py +85 -104
- ccxt/bitmex.py +27 -27
- ccxt/bitopro.py +18 -18
- ccxt/bitpanda.py +18 -18
- ccxt/bitrue.py +14 -14
- ccxt/bitso.py +17 -17
- ccxt/bitstamp.py +17 -17
- ccxt/bittrex.py +22 -24
- ccxt/bitvavo.py +15 -15
- ccxt/bl3p.py +4 -4
- ccxt/blockchaincom.py +17 -17
- ccxt/btcalpha.py +14 -14
- ccxt/btcbox.py +9 -9
- ccxt/btcmarkets.py +17 -17
- ccxt/btcturk.py +9 -9
- ccxt/bybit.py +46 -46
- ccxt/cex.py +10 -10
- ccxt/coinbase.py +69 -25
- ccxt/coinbasepro.py +19 -19
- ccxt/coincheck.py +10 -10
- ccxt/coinex.py +57 -66
- ccxt/coinlist.py +22 -22
- ccxt/coinmate.py +10 -10
- ccxt/coinone.py +10 -10
- ccxt/coinsph.py +17 -17
- ccxt/coinspot.py +5 -5
- ccxt/cryptocom.py +27 -27
- ccxt/currencycom.py +18 -18
- ccxt/delta.py +21 -21
- ccxt/deribit.py +24 -24
- ccxt/digifinex.py +35 -35
- ccxt/exmo.py +19 -19
- ccxt/gate.py +38 -38
- ccxt/gemini.py +11 -11
- ccxt/hitbtc.py +27 -27
- ccxt/hollaex.py +19 -19
- ccxt/htx.py +47 -44
- ccxt/huobijp.py +22 -22
- ccxt/idex.py +20 -20
- ccxt/independentreserve.py +9 -9
- ccxt/indodax.py +10 -10
- ccxt/kraken.py +25 -25
- ccxt/krakenfutures.py +17 -17
- ccxt/kucoin.py +27 -27
- ccxt/kucoinfutures.py +20 -20
- ccxt/kuna.py +19 -19
- ccxt/latoken.py +14 -14
- ccxt/lbank.py +18 -18
- ccxt/luno.py +14 -14
- ccxt/lykke.py +12 -12
- ccxt/mercado.py +11 -11
- ccxt/mexc.py +36 -36
- ccxt/ndax.py +18 -18
- ccxt/novadax.py +17 -17
- ccxt/oceanex.py +12 -12
- ccxt/okcoin.py +19 -19
- ccxt/okx.py +48 -45
- ccxt/p2b.py +6 -6
- ccxt/paymium.py +6 -6
- ccxt/phemex.py +57 -57
- ccxt/poloniex.py +31 -30
- ccxt/poloniexfutures.py +16 -16
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +3 -3
- ccxt/pro/ascendex.py +2 -2
- ccxt/pro/binance.py +9 -9
- ccxt/pro/bingx.py +3 -3
- ccxt/pro/bitfinex.py +3 -3
- ccxt/pro/bitfinex2.py +3 -3
- ccxt/pro/bitget.py +3 -3
- ccxt/pro/bitmart.py +2 -2
- ccxt/pro/bitmex.py +3 -3
- ccxt/pro/bitpanda.py +3 -3
- ccxt/pro/bitrue.py +2 -2
- ccxt/pro/bitstamp.py +2 -2
- ccxt/pro/bittrex.py +3 -3
- ccxt/pro/bitvavo.py +3 -3
- ccxt/pro/blockchaincom.py +2 -2
- ccxt/pro/bybit.py +4 -4
- ccxt/pro/cex.py +3 -3
- ccxt/pro/coinbasepro.py +3 -3
- ccxt/pro/coinex.py +2 -2
- ccxt/pro/cryptocom.py +5 -5
- ccxt/pro/deribit.py +3 -3
- ccxt/pro/exmo.py +2 -2
- ccxt/pro/gate.py +3 -3
- ccxt/pro/gemini.py +2 -2
- ccxt/pro/hitbtc.py +4 -4
- ccxt/pro/hollaex.py +3 -3
- ccxt/pro/htx.py +3 -3
- ccxt/pro/idex.py +3 -3
- ccxt/pro/kraken.py +7 -7
- ccxt/pro/krakenfutures.py +4 -4
- ccxt/pro/kucoin.py +3 -3
- ccxt/pro/kucoinfutures.py +3 -3
- ccxt/pro/mexc.py +3 -3
- ccxt/pro/okcoin.py +2 -2
- ccxt/pro/okx.py +6 -6
- ccxt/pro/phemex.py +3 -3
- ccxt/pro/poloniex.py +3 -3
- ccxt/pro/poloniexfutures.py +3 -3
- ccxt/pro/probit.py +3 -3
- ccxt/pro/wazirx.py +3 -3
- ccxt/pro/whitebit.py +3 -3
- ccxt/pro/woo.py +2 -2
- ccxt/probit.py +22 -22
- ccxt/test/base/test_shared_methods.py +3 -3
- ccxt/test/test_async.py +543 -535
- ccxt/test/test_sync.py +542 -534
- ccxt/tidex.py +15 -15
- ccxt/timex.py +20 -20
- ccxt/tokocrypto.py +16 -16
- ccxt/upbit.py +15 -15
- ccxt/wavesexchange.py +12 -12
- ccxt/wazirx.py +13 -13
- ccxt/whitebit.py +26 -26
- ccxt/woo.py +47 -47
- ccxt/yobit.py +8 -8
- ccxt/zaif.py +10 -10
- ccxt/zonda.py +16 -16
- {ccxt-4.1.54.dist-info → ccxt-4.1.56.dist-info}/METADATA +10 -8
- ccxt-4.1.56.dist-info/RECORD +449 -0
- ccxt/async_support/bitstamp1.py +0 -402
- ccxt/async_support/lbank2.py +0 -2620
- ccxt/bitstamp1.py +0 -402
- ccxt/lbank2.py +0 -2619
- ccxt-4.1.54.dist-info/RECORD +0 -453
- {ccxt-4.1.54.dist-info → ccxt-4.1.56.dist-info}/WHEEL +0 -0
- {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,
|
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:
|
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:
|
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,
|
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:
|
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,
|
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:
|
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:
|
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:
|
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:
|
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,
|
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:
|
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:
|
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,
|
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:
|
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,
|
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:
|
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:
|
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,
|
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:
|
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,
|
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:
|
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:
|
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.
|
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,
|
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:
|
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:
|
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,
|
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:
|
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:
|
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,
|
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:
|
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:
|
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,
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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,
|
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:
|
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:
|
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:
|
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,
|
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:
|
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:
|
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,
|
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:
|
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:
|
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,
|
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:
|
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:
|
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,
|
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:
|
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,
|
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:
|
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:
|
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:
|
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:
|
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:
|
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,
|
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:
|
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:
|
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,
|
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:
|
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:
|
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
|
ccxt/pro/poloniexfutures.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,
|
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:
|
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:
|
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
|