ccxt 4.4.29__py2.py3-none-any.whl → 4.4.31__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.
- ccxt/__init__.py +1 -1
- ccxt/abstract/alpaca.py +1 -0
- ccxt/abstract/binance.py +9 -0
- ccxt/abstract/binancecoinm.py +9 -0
- ccxt/abstract/binanceus.py +9 -0
- ccxt/abstract/binanceusdm.py +9 -0
- ccxt/ace.py +36 -12
- ccxt/alpaca.py +113 -28
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +113 -28
- ccxt/async_support/ascendex.py +65 -30
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/bigone.py +71 -27
- ccxt/async_support/binance.py +564 -323
- ccxt/async_support/bingx.py +208 -108
- ccxt/async_support/bit2c.py +34 -12
- ccxt/async_support/bitbank.py +42 -14
- ccxt/async_support/bitbns.py +29 -21
- ccxt/async_support/bitfinex.py +77 -33
- ccxt/async_support/bitfinex2.py +116 -44
- ccxt/async_support/bitflyer.py +54 -18
- ccxt/async_support/bitget.py +277 -145
- ccxt/async_support/bithumb.py +39 -14
- ccxt/async_support/bitmart.py +198 -132
- ccxt/async_support/bitmex.py +90 -30
- ccxt/async_support/bitopro.py +66 -22
- ccxt/async_support/bitrue.py +109 -57
- ccxt/async_support/bitso.py +55 -19
- ccxt/async_support/bitstamp.py +84 -36
- ccxt/async_support/bitteam.py +51 -17
- ccxt/async_support/bitvavo.py +57 -19
- ccxt/async_support/bl3p.py +26 -10
- ccxt/async_support/blockchaincom.py +63 -21
- ccxt/async_support/blofin.py +95 -38
- ccxt/async_support/btcalpha.py +48 -16
- ccxt/async_support/btcbox.py +27 -9
- ccxt/async_support/btcmarkets.py +57 -19
- ccxt/async_support/btcturk.py +36 -12
- ccxt/async_support/bybit.py +251 -95
- ccxt/async_support/cex.py +65 -22
- ccxt/async_support/coinbase.py +138 -56
- ccxt/async_support/coinbaseexchange.py +76 -28
- ccxt/async_support/coinbaseinternational.py +75 -27
- ccxt/async_support/coincatch.py +191 -97
- ccxt/async_support/coincheck.py +33 -11
- ccxt/async_support/coinex.py +212 -101
- ccxt/async_support/coinlist.py +87 -30
- ccxt/async_support/coinmate.py +55 -24
- ccxt/async_support/coinmetro.py +52 -18
- ccxt/async_support/coinone.py +27 -10
- ccxt/async_support/coinsph.py +73 -27
- ccxt/async_support/coinspot.py +25 -9
- ccxt/async_support/cryptocom.py +103 -38
- ccxt/async_support/currencycom.py +70 -23
- ccxt/async_support/delta.py +90 -30
- ccxt/async_support/deribit.py +138 -53
- ccxt/async_support/digifinex.py +114 -51
- ccxt/async_support/exmo.py +104 -45
- ccxt/async_support/gate.py +298 -155
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +156 -73
- ccxt/async_support/hollaex.py +76 -25
- ccxt/async_support/htx.py +297 -240
- ccxt/async_support/huobijp.py +1 -0
- ccxt/async_support/hyperliquid.py +203 -42
- ccxt/async_support/idex.py +73 -24
- ccxt/async_support/independentreserve.py +12 -5
- ccxt/async_support/indodax.py +53 -16
- ccxt/async_support/kraken.py +107 -35
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +211 -109
- ccxt/async_support/kucoinfutures.py +119 -42
- ccxt/async_support/kuna.py +80 -39
- ccxt/async_support/latoken.py +70 -33
- ccxt/async_support/lbank.py +90 -39
- ccxt/async_support/luno.py +54 -19
- ccxt/async_support/lykke.py +54 -19
- ccxt/async_support/mercado.py +1 -0
- ccxt/async_support/mexc.py +226 -108
- ccxt/async_support/ndax.py +58 -19
- ccxt/async_support/novadax.py +67 -22
- ccxt/async_support/oceanex.py +58 -19
- ccxt/async_support/okcoin.py +81 -38
- ccxt/async_support/okx.py +270 -109
- ccxt/async_support/onetrading.py +3 -1
- ccxt/async_support/oxfun.py +95 -36
- ccxt/async_support/p2b.py +49 -23
- ccxt/async_support/paradex.py +75 -27
- ccxt/async_support/paymium.py +31 -11
- ccxt/async_support/phemex.py +91 -41
- ccxt/async_support/poloniex.py +80 -30
- ccxt/async_support/poloniexfutures.py +72 -30
- ccxt/async_support/probit.py +64 -22
- ccxt/async_support/timex.py +58 -19
- ccxt/async_support/tokocrypto.py +63 -22
- ccxt/async_support/tradeogre.py +7 -2
- ccxt/async_support/upbit.py +72 -25
- ccxt/async_support/vertex.py +74 -28
- ccxt/async_support/wavesexchange.py +29 -8
- ccxt/async_support/wazirx.py +51 -17
- ccxt/async_support/whitebit.py +105 -41
- ccxt/async_support/woo.py +162 -65
- ccxt/async_support/woofipro.py +118 -49
- ccxt/async_support/xt.py +150 -73
- ccxt/async_support/yobit.py +49 -16
- ccxt/async_support/zaif.py +30 -10
- ccxt/async_support/zonda.py +46 -16
- ccxt/base/exchange.py +34 -34
- ccxt/base/types.py +1 -0
- ccxt/bigone.py +71 -27
- ccxt/binance.py +564 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +29 -21
- ccxt/bitfinex.py +77 -33
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +198 -132
- ccxt/bitmex.py +90 -30
- ccxt/bitopro.py +66 -22
- ccxt/bitrue.py +109 -57
- ccxt/bitso.py +55 -19
- ccxt/bitstamp.py +84 -36
- ccxt/bitteam.py +51 -17
- ccxt/bitvavo.py +57 -19
- ccxt/bl3p.py +26 -10
- ccxt/blockchaincom.py +63 -21
- ccxt/blofin.py +95 -38
- ccxt/btcalpha.py +48 -16
- ccxt/btcbox.py +27 -9
- ccxt/btcmarkets.py +57 -19
- ccxt/btcturk.py +36 -12
- ccxt/bybit.py +251 -95
- ccxt/cex.py +65 -22
- ccxt/coinbase.py +138 -56
- ccxt/coinbaseexchange.py +76 -28
- ccxt/coinbaseinternational.py +75 -27
- ccxt/coincatch.py +191 -97
- ccxt/coincheck.py +33 -11
- ccxt/coinex.py +212 -101
- ccxt/coinlist.py +87 -30
- ccxt/coinmate.py +55 -24
- ccxt/coinmetro.py +52 -18
- ccxt/coinone.py +27 -10
- ccxt/coinsph.py +73 -27
- ccxt/coinspot.py +25 -9
- ccxt/cryptocom.py +103 -38
- ccxt/currencycom.py +70 -23
- ccxt/delta.py +90 -30
- ccxt/deribit.py +138 -53
- ccxt/digifinex.py +114 -51
- ccxt/exmo.py +104 -45
- ccxt/gate.py +298 -155
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +156 -73
- ccxt/hollaex.py +76 -25
- ccxt/htx.py +297 -240
- ccxt/huobijp.py +1 -0
- ccxt/hyperliquid.py +203 -42
- ccxt/idex.py +73 -24
- ccxt/independentreserve.py +12 -5
- ccxt/indodax.py +53 -16
- ccxt/kraken.py +107 -35
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +211 -109
- ccxt/kucoinfutures.py +119 -42
- ccxt/kuna.py +80 -39
- ccxt/latoken.py +70 -33
- ccxt/lbank.py +90 -39
- ccxt/luno.py +54 -19
- ccxt/lykke.py +54 -19
- ccxt/mercado.py +1 -0
- ccxt/mexc.py +226 -108
- ccxt/ndax.py +58 -19
- ccxt/novadax.py +67 -22
- ccxt/oceanex.py +58 -19
- ccxt/okcoin.py +81 -38
- ccxt/okx.py +270 -109
- ccxt/onetrading.py +3 -1
- ccxt/oxfun.py +95 -36
- ccxt/p2b.py +49 -23
- ccxt/paradex.py +75 -27
- ccxt/paymium.py +31 -11
- ccxt/phemex.py +91 -41
- ccxt/poloniex.py +80 -30
- ccxt/poloniexfutures.py +72 -30
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +15 -5
- ccxt/pro/ascendex.py +18 -6
- ccxt/pro/binance.py +200 -119
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +75 -36
- ccxt/pro/bithumb.py +12 -4
- ccxt/pro/bitmart.py +44 -20
- ccxt/pro/bitmex.py +42 -14
- ccxt/pro/bitopro.py +15 -5
- ccxt/pro/bitrue.py +7 -3
- ccxt/pro/bitvavo.py +51 -17
- ccxt/pro/blockchaincom.py +18 -6
- ccxt/pro/blofin.py +38 -13
- ccxt/pro/bybit.py +100 -42
- ccxt/pro/cex.py +48 -16
- ccxt/pro/coinbase.py +32 -12
- ccxt/pro/coinbaseexchange.py +1 -1
- ccxt/pro/coinbaseinternational.py +34 -14
- ccxt/pro/coincatch.py +54 -19
- ccxt/pro/coincheck.py +6 -2
- ccxt/pro/coinex.py +40 -20
- ccxt/pro/coinone.py +9 -3
- ccxt/pro/cryptocom.py +70 -26
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +64 -30
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +26 -8
- ccxt/pro/hitbtc.py +61 -37
- ccxt/pro/hollaex.py +15 -5
- ccxt/pro/htx.py +39 -21
- ccxt/pro/hyperliquid.py +41 -14
- ccxt/pro/kraken.py +49 -17
- ccxt/pro/krakenfutures.py +47 -24
- ccxt/pro/kucoin.py +60 -31
- ccxt/pro/kucoinfutures.py +41 -19
- ccxt/pro/lbank.py +27 -9
- ccxt/pro/luno.py +3 -1
- ccxt/pro/mexc.py +35 -17
- ccxt/pro/ndax.py +12 -4
- ccxt/pro/okcoin.py +18 -6
- ccxt/pro/okx.py +76 -28
- ccxt/pro/onetrading.py +21 -7
- ccxt/pro/oxfun.py +54 -20
- ccxt/pro/p2b.py +23 -11
- ccxt/pro/paradex.py +12 -4
- ccxt/pro/phemex.py +31 -19
- ccxt/pro/poloniex.py +50 -22
- ccxt/pro/poloniexfutures.py +17 -7
- ccxt/pro/probit.py +18 -6
- ccxt/pro/upbit.py +25 -9
- ccxt/pro/vertex.py +20 -6
- ccxt/pro/wazirx.py +21 -7
- ccxt/pro/whitebit.py +25 -9
- ccxt/pro/woo.py +32 -12
- ccxt/pro/woofipro.py +35 -13
- ccxt/pro/xt.py +46 -26
- ccxt/probit.py +64 -22
- ccxt/test/tests_helpers.py +2 -2
- ccxt/timex.py +58 -19
- ccxt/tokocrypto.py +63 -22
- ccxt/tradeogre.py +7 -2
- ccxt/upbit.py +72 -25
- ccxt/vertex.py +74 -28
- ccxt/wavesexchange.py +29 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +118 -49
- ccxt/xt.py +150 -73
- ccxt/yobit.py +49 -16
- ccxt/zaif.py +30 -10
- ccxt/zonda.py +46 -16
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/RECORD +273 -273
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/pro/kucoin.py
CHANGED
@@ -175,7 +175,9 @@ class kucoin(ccxt.async_support.kucoin):
|
|
175
175
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
176
176
|
"""
|
177
177
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
178
|
-
|
178
|
+
|
179
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/market-snapshot
|
180
|
+
|
179
181
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
180
182
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
181
183
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -191,7 +193,9 @@ class kucoin(ccxt.async_support.kucoin):
|
|
191
193
|
|
192
194
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
193
195
|
"""
|
194
|
-
|
196
|
+
|
197
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/ticker
|
198
|
+
|
195
199
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
196
200
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
197
201
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -308,7 +312,9 @@ class kucoin(ccxt.async_support.kucoin):
|
|
308
312
|
|
309
313
|
async def watch_bids_asks(self, symbols: Strings = None, params={}) -> Tickers:
|
310
314
|
"""
|
311
|
-
|
315
|
+
|
316
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level1-bbo-market-data
|
317
|
+
|
312
318
|
watches best bid & ask for symbols
|
313
319
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
314
320
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -390,7 +396,9 @@ class kucoin(ccxt.async_support.kucoin):
|
|
390
396
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
391
397
|
"""
|
392
398
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
393
|
-
|
399
|
+
|
400
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/klines
|
401
|
+
|
394
402
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
395
403
|
:param str timeframe: the length of time each candle represents
|
396
404
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -455,7 +463,9 @@ class kucoin(ccxt.async_support.kucoin):
|
|
455
463
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
456
464
|
"""
|
457
465
|
get the list of most recent trades for a particular symbol
|
458
|
-
|
466
|
+
|
467
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/match-execution-data
|
468
|
+
|
459
469
|
:param str symbol: unified symbol of the market to fetch trades for
|
460
470
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
461
471
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -467,8 +477,10 @@ class kucoin(ccxt.async_support.kucoin):
|
|
467
477
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
468
478
|
"""
|
469
479
|
get the list of most recent trades for a particular symbol
|
470
|
-
|
471
|
-
|
480
|
+
|
481
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/match-execution-data
|
482
|
+
|
483
|
+
:param str[] symbols:
|
472
484
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
473
485
|
:param int [limit]: the maximum amount of trades to fetch
|
474
486
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -499,8 +511,10 @@ class kucoin(ccxt.async_support.kucoin):
|
|
499
511
|
async def un_watch_trades_for_symbols(self, symbols: List[str], params={}) -> Any:
|
500
512
|
"""
|
501
513
|
unWatches trades stream
|
502
|
-
|
503
|
-
|
514
|
+
|
515
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/match-execution-data
|
516
|
+
|
517
|
+
:param str symbols:
|
504
518
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
505
519
|
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=public-trades>`
|
506
520
|
"""
|
@@ -527,7 +541,9 @@ class kucoin(ccxt.async_support.kucoin):
|
|
527
541
|
async def un_watch_trades(self, symbol: str, params={}) -> Any:
|
528
542
|
"""
|
529
543
|
unWatches trades stream
|
530
|
-
|
544
|
+
|
545
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/match-execution-data
|
546
|
+
|
531
547
|
:param str symbol: unified symbol of the market to fetch trades for
|
532
548
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
533
549
|
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=public-trades>`
|
@@ -568,10 +584,12 @@ class kucoin(ccxt.async_support.kucoin):
|
|
568
584
|
|
569
585
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
570
586
|
"""
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
587
|
+
|
588
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level1-bbo-market-data
|
589
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-market-data
|
590
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-5-best-ask-bid-orders
|
591
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-50-best-ask-bid-orders
|
592
|
+
|
575
593
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
576
594
|
:param str symbol: unified symbol of the market to fetch the order book for
|
577
595
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -598,10 +616,12 @@ class kucoin(ccxt.async_support.kucoin):
|
|
598
616
|
|
599
617
|
async def un_watch_order_book(self, symbol: str, params={}) -> Any:
|
600
618
|
"""
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
619
|
+
|
620
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level1-bbo-market-data
|
621
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-market-data
|
622
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-5-best-ask-bid-orders
|
623
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-50-best-ask-bid-orders
|
624
|
+
|
605
625
|
unWatches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
606
626
|
:param str symbol: unified symbol of the market to fetch the order book for
|
607
627
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -612,10 +632,12 @@ class kucoin(ccxt.async_support.kucoin):
|
|
612
632
|
|
613
633
|
async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
|
614
634
|
"""
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
635
|
+
|
636
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level1-bbo-market-data
|
637
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-market-data
|
638
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-5-best-ask-bid-orders
|
639
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-50-best-ask-bid-orders
|
640
|
+
|
619
641
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
620
642
|
:param str[] symbols: unified array of symbols
|
621
643
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -657,13 +679,14 @@ class kucoin(ccxt.async_support.kucoin):
|
|
657
679
|
|
658
680
|
async def un_watch_order_book_for_symbols(self, symbols: List[str], params={}) -> Any:
|
659
681
|
"""
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
682
|
+
|
683
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level1-bbo-market-data
|
684
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-market-data
|
685
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-5-best-ask-bid-orders
|
686
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-50-best-ask-bid-orders
|
687
|
+
|
664
688
|
unWatches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
665
689
|
:param str[] symbols: unified array of symbols
|
666
|
-
:param int [limit]: the maximum amount of order book entries to return
|
667
690
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
668
691
|
:param str [params.method]: either '/market/level2' or '/spotMarket/level2Depth5' or '/spotMarket/level2Depth50' default is '/market/level2'
|
669
692
|
:returns dict: A dictionary of `order book structures <https://docs.ccxt.com/#/?id=order-book-structure>` indexed by market symbols
|
@@ -867,8 +890,10 @@ class kucoin(ccxt.async_support.kucoin):
|
|
867
890
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
868
891
|
"""
|
869
892
|
watches information on multiple orders made by the user
|
870
|
-
|
871
|
-
|
893
|
+
|
894
|
+
https://www.kucoin.com/docs/websocket/spot-trading/private-channels/private-order-change
|
895
|
+
https://www.kucoin.com/docs/websocket/spot-trading/private-channels/stop-order-event
|
896
|
+
|
872
897
|
:param str symbol: unified market symbol of the market orders were made in
|
873
898
|
:param int [since]: the earliest time in ms to fetch orders for
|
874
899
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1029,7 +1054,9 @@ class kucoin(ccxt.async_support.kucoin):
|
|
1029
1054
|
async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1030
1055
|
"""
|
1031
1056
|
watches information on multiple trades made by the user
|
1032
|
-
|
1057
|
+
|
1058
|
+
https://www.kucoin.com/docs/websocket/spot-trading/private-channels/private-order-change
|
1059
|
+
|
1033
1060
|
:param str symbol: unified market symbol of the market trades were made in
|
1034
1061
|
:param int [since]: the earliest time in ms to fetch trades for
|
1035
1062
|
:param int [limit]: the maximum number of trade structures to retrieve
|
@@ -1176,7 +1203,9 @@ class kucoin(ccxt.async_support.kucoin):
|
|
1176
1203
|
async def watch_balance(self, params={}) -> Balances:
|
1177
1204
|
"""
|
1178
1205
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
1179
|
-
|
1206
|
+
|
1207
|
+
https://www.kucoin.com/docs/websocket/spot-trading/private-channels/account-balance-change
|
1208
|
+
|
1180
1209
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1181
1210
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
1182
1211
|
"""
|
ccxt/pro/kucoinfutures.py
CHANGED
@@ -197,7 +197,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
197
197
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
198
198
|
"""
|
199
199
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
200
|
-
|
200
|
+
|
201
|
+
https://www.kucoin.com/docs/websocket/futures-trading/public-channels/get-ticker
|
202
|
+
|
201
203
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
202
204
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
203
205
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -255,7 +257,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
255
257
|
|
256
258
|
async def watch_bids_asks(self, symbols: Strings = None, params={}) -> Tickers:
|
257
259
|
"""
|
258
|
-
|
260
|
+
|
261
|
+
https://www.kucoin.com/docs/websocket/futures-trading/public-channels/get-ticker-v2
|
262
|
+
|
259
263
|
watches best bid & ask for symbols
|
260
264
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
261
265
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -339,7 +343,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
339
343
|
async def watch_position(self, symbol: Str = None, params={}) -> Position:
|
340
344
|
"""
|
341
345
|
watch open positions for a specific symbol
|
342
|
-
|
346
|
+
|
347
|
+
https://docs.kucoin.com/futures/#position-change-events
|
348
|
+
|
343
349
|
:param str|None symbol: unified market symbol
|
344
350
|
:param dict params: extra parameters specific to the exchange API endpoint
|
345
351
|
:returns dict: a `position structure <https://docs.ccxt.com/en/latest/manual.html#position-structure>`
|
@@ -504,7 +510,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
504
510
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
505
511
|
"""
|
506
512
|
get the list of most recent trades for a particular symbol
|
507
|
-
|
513
|
+
|
514
|
+
https://docs.kucoin.com/futures/#execution-data
|
515
|
+
|
508
516
|
:param str symbol: unified symbol of the market to fetch trades for
|
509
517
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
510
518
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -516,7 +524,7 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
516
524
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
517
525
|
"""
|
518
526
|
get the list of most recent trades for a particular symbol
|
519
|
-
:param str
|
527
|
+
:param str[] symbols:
|
520
528
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
521
529
|
:param int [limit]: the maximum amount of trades to fetch
|
522
530
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -548,7 +556,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
548
556
|
async def un_watch_trades(self, symbol: str, params={}) -> Any:
|
549
557
|
"""
|
550
558
|
unWatches trades stream
|
551
|
-
|
559
|
+
|
560
|
+
https://docs.kucoin.com/futures/#execution-data
|
561
|
+
|
552
562
|
:param str symbol: unified symbol of the market to fetch trades for
|
553
563
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
554
564
|
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=public-trades>`
|
@@ -558,7 +568,7 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
558
568
|
async def un_watch_trades_for_symbols(self, symbols: List[str], params={}) -> Any:
|
559
569
|
"""
|
560
570
|
get the list of most recent trades for a particular symbol
|
561
|
-
:param str
|
571
|
+
:param str[] symbols:
|
562
572
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
563
573
|
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=public-trades>`
|
564
574
|
"""
|
@@ -619,7 +629,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
619
629
|
|
620
630
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
621
631
|
"""
|
622
|
-
|
632
|
+
|
633
|
+
https://www.kucoin.com/docs/websocket/futures-trading/public-channels/klines
|
634
|
+
|
623
635
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
624
636
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
625
637
|
:param str timeframe: the length of time each candle represents
|
@@ -691,13 +703,15 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
691
703
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
692
704
|
"""
|
693
705
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
706
|
+
1. After receiving the websocket Level 2 data flow, cache the data.
|
707
|
+
2. Initiate a REST request to get the snapshot data of Level 2 order book.
|
708
|
+
3. Playback the cached Level 2 data flow.
|
709
|
+
4. Apply the new Level 2 data flow to the local snapshot to ensure that the sequence of the new Level 2 update lines up with the sequence of the previous Level 2 data. Discard all the message prior to that sequence, and then playback the change to snapshot.
|
710
|
+
5. Update the level2 full data based on sequence according to the size. If the price is 0, ignore the messages and update the sequence. If the size=0, update the sequence and remove the price of which the size is 0 out of level 2. For other cases, please update the price.
|
711
|
+
6. If the sequence of the newly pushed message does not line up to the sequence of the last message, you could pull through REST Level 2 message request to get the updated messages. Please note that the difference between the start and end parameters cannot exceed 500.
|
712
|
+
|
713
|
+
https://docs.kucoin.com/futures/#level-2-market-data
|
714
|
+
|
701
715
|
:param str symbol: unified symbol of the market to fetch the order book for
|
702
716
|
:param int [limit]: the maximum amount of order book entries to return
|
703
717
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -708,7 +722,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
708
722
|
async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
|
709
723
|
"""
|
710
724
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
711
|
-
|
725
|
+
|
726
|
+
https://docs.kucoin.com/futures/#level-2-market-data
|
727
|
+
|
712
728
|
:param str[] symbols: unified array of symbols
|
713
729
|
:param int [limit]: the maximum amount of order book entries to return
|
714
730
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -741,7 +757,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
741
757
|
async def un_watch_order_book(self, symbol: str, params={}) -> Any:
|
742
758
|
"""
|
743
759
|
unWatches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
744
|
-
|
760
|
+
|
761
|
+
https://docs.kucoin.com/futures/#level-2-market-data
|
762
|
+
|
745
763
|
:param str symbol: unified symbol of the market to fetch the order book for
|
746
764
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
747
765
|
:returns dict: A dictionary of `order book structures <https://docs.ccxt.com/#/?id=order-book-structure>` indexed by market symbols
|
@@ -879,7 +897,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
879
897
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
880
898
|
"""
|
881
899
|
watches information on multiple orders made by the user
|
882
|
-
|
900
|
+
|
901
|
+
https://docs.kucoin.com/futures/#trade-orders-according-to-the-market
|
902
|
+
|
883
903
|
:param str symbol: unified market symbol of the market orders were made in
|
884
904
|
:param int [since]: the earliest time in ms to fetch orders for
|
885
905
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -995,7 +1015,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
995
1015
|
async def watch_balance(self, params={}) -> Balances:
|
996
1016
|
"""
|
997
1017
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
998
|
-
|
1018
|
+
|
1019
|
+
https://docs.kucoin.com/futures/#account-balance-events
|
1020
|
+
|
999
1021
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1000
1022
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
1001
1023
|
"""
|
ccxt/pro/lbank.py
CHANGED
@@ -67,7 +67,9 @@ class lbank(ccxt.async_support.lbank):
|
|
67
67
|
|
68
68
|
async def fetch_ohlcv_ws(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
69
69
|
"""
|
70
|
-
|
70
|
+
|
71
|
+
https://www.lbank.com/en-US/docs/index.html#request-amp-subscription-instruction
|
72
|
+
|
71
73
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
72
74
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
73
75
|
:param str timeframe: the length of time each candle represents
|
@@ -99,7 +101,9 @@ class lbank(ccxt.async_support.lbank):
|
|
99
101
|
|
100
102
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
101
103
|
"""
|
102
|
-
|
104
|
+
|
105
|
+
https://www.lbank.com/en-US/docs/index.html#subscription-of-k-line-data
|
106
|
+
|
103
107
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
104
108
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
105
109
|
:param str timeframe: the length of time each candle represents
|
@@ -230,7 +234,9 @@ class lbank(ccxt.async_support.lbank):
|
|
230
234
|
|
231
235
|
async def fetch_ticker_ws(self, symbol: str, params={}) -> Ticker:
|
232
236
|
"""
|
233
|
-
|
237
|
+
|
238
|
+
https://www.lbank.com/en-US/docs/index.html#request-amp-subscription-instruction
|
239
|
+
|
234
240
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
235
241
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
236
242
|
:param dict [params]: extra parameters specific to the cex api endpoint
|
@@ -251,7 +257,9 @@ class lbank(ccxt.async_support.lbank):
|
|
251
257
|
|
252
258
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
253
259
|
"""
|
254
|
-
|
260
|
+
|
261
|
+
https://www.lbank.com/en-US/docs/index.html#market
|
262
|
+
|
255
263
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
256
264
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
257
265
|
:param dict params: extra parameters specific to the lbank api endpoint
|
@@ -353,7 +361,9 @@ class lbank(ccxt.async_support.lbank):
|
|
353
361
|
async def fetch_trades_ws(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
354
362
|
"""
|
355
363
|
get the list of most recent trades for a particular symbol
|
356
|
-
|
364
|
+
|
365
|
+
https://www.lbank.com/en-US/docs/index.html#request-amp-subscription-instruction
|
366
|
+
|
357
367
|
:param str symbol: unified symbol of the market to fetch trades for
|
358
368
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
359
369
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -378,7 +388,9 @@ class lbank(ccxt.async_support.lbank):
|
|
378
388
|
|
379
389
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
380
390
|
"""
|
381
|
-
|
391
|
+
|
392
|
+
https://www.lbank.com/en-US/docs/index.html#trade-record
|
393
|
+
|
382
394
|
get the list of most recent trades for a particular symbol
|
383
395
|
:param str symbol: unified symbol of the market to fetch trades for
|
384
396
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -483,7 +495,9 @@ class lbank(ccxt.async_support.lbank):
|
|
483
495
|
|
484
496
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
485
497
|
"""
|
486
|
-
|
498
|
+
|
499
|
+
https://www.lbank.com/en-US/docs/index.html#update-subscribed-orders
|
500
|
+
|
487
501
|
get the list of trades associated with the user
|
488
502
|
:param str [symbol]: unified symbol of the market to fetch trades for
|
489
503
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -640,7 +654,9 @@ class lbank(ccxt.async_support.lbank):
|
|
640
654
|
|
641
655
|
async def fetch_order_book_ws(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
642
656
|
"""
|
643
|
-
|
657
|
+
|
658
|
+
https://www.lbank.com/en-US/docs/index.html#request-amp-subscription-instruction
|
659
|
+
|
644
660
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
645
661
|
:param str symbol: unified symbol of the market to fetch the order book for
|
646
662
|
:param int|None limit: the maximum amount of order book entries to return
|
@@ -665,7 +681,9 @@ class lbank(ccxt.async_support.lbank):
|
|
665
681
|
|
666
682
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
667
683
|
"""
|
668
|
-
|
684
|
+
|
685
|
+
https://www.lbank.com/en-US/docs/index.html#market-depth
|
686
|
+
|
669
687
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
670
688
|
:param str symbol: unified symbol of the market to fetch the order book for
|
671
689
|
:param int|None limit: the maximum amount of order book entries to return
|
ccxt/pro/luno.py
CHANGED
@@ -42,7 +42,9 @@ class luno(ccxt.async_support.luno):
|
|
42
42
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
43
43
|
"""
|
44
44
|
get the list of most recent trades for a particular symbol
|
45
|
-
|
45
|
+
|
46
|
+
https://www.luno.com/en/developers/api#tag/Streaming-API
|
47
|
+
|
46
48
|
:param str symbol: unified symbol of the market to fetch trades for
|
47
49
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
48
50
|
:param int [limit]: the maximum amount of trades to fetch
|
ccxt/pro/mexc.py
CHANGED
@@ -80,9 +80,11 @@ class mexc(ccxt.async_support.mexc):
|
|
80
80
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
81
81
|
"""
|
82
82
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
83
|
-
|
84
|
-
|
85
|
-
|
83
|
+
|
84
|
+
https://mexcdevelop.github.io/apidocs/spot_v3_en/#individual-symbol-book-ticker-streams
|
85
|
+
https://mexcdevelop.github.io/apidocs/contract_v1_en/#public-channels
|
86
|
+
https://mexcdevelop.github.io/apidocs/spot_v3_en/#miniticker
|
87
|
+
|
86
88
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
87
89
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
88
90
|
:param boolean [params.miniTicker]: set to True for using the miniTicker endpoint
|
@@ -195,9 +197,11 @@ class mexc(ccxt.async_support.mexc):
|
|
195
197
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
196
198
|
"""
|
197
199
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
198
|
-
|
199
|
-
|
200
|
-
|
200
|
+
|
201
|
+
https://mexcdevelop.github.io/apidocs/spot_v3_en/#individual-symbol-book-ticker-streams
|
202
|
+
https://mexcdevelop.github.io/apidocs/contract_v1_en/#public-channels
|
203
|
+
https://mexcdevelop.github.io/apidocs/spot_v3_en/#minitickers
|
204
|
+
|
201
205
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
202
206
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
203
207
|
:param boolean [params.miniTicker]: set to True for using the miniTicker endpoint
|
@@ -390,7 +394,9 @@ class mexc(ccxt.async_support.mexc):
|
|
390
394
|
|
391
395
|
async def watch_bids_asks(self, symbols: Strings = None, params={}) -> Tickers:
|
392
396
|
"""
|
393
|
-
|
397
|
+
|
398
|
+
https://mexcdevelop.github.io/apidocs/spot_v3_en/#individual-symbol-book-ticker-streams
|
399
|
+
|
394
400
|
watches best bid & ask for symbols
|
395
401
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
396
402
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -509,7 +515,9 @@ class mexc(ccxt.async_support.mexc):
|
|
509
515
|
|
510
516
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
511
517
|
"""
|
512
|
-
|
518
|
+
|
519
|
+
https://mexcdevelop.github.io/apidocs/spot_v3_en/#kline-streams
|
520
|
+
|
513
521
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
514
522
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
515
523
|
:param str timeframe: the length of time each candle represents
|
@@ -649,8 +657,10 @@ class mexc(ccxt.async_support.mexc):
|
|
649
657
|
|
650
658
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
651
659
|
"""
|
652
|
-
|
653
|
-
|
660
|
+
|
661
|
+
https://mexcdevelop.github.io/apidocs/spot_v3_en/#diff-depth-stream
|
662
|
+
https://mexcdevelop.github.io/apidocs/contract_v1_en/#public-channels
|
663
|
+
|
654
664
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
655
665
|
:param str symbol: unified symbol of the market to fetch the order book for
|
656
666
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -804,8 +814,10 @@ class mexc(ccxt.async_support.mexc):
|
|
804
814
|
|
805
815
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
806
816
|
"""
|
807
|
-
|
808
|
-
|
817
|
+
|
818
|
+
https://mexcdevelop.github.io/apidocs/spot_v3_en/#trade-streams
|
819
|
+
https://mexcdevelop.github.io/apidocs/contract_v1_en/#public-channels
|
820
|
+
|
809
821
|
get the list of most recent trades for a particular symbol
|
810
822
|
:param str symbol: unified symbol of the market to fetch trades for
|
811
823
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -885,8 +897,10 @@ class mexc(ccxt.async_support.mexc):
|
|
885
897
|
|
886
898
|
async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
887
899
|
"""
|
888
|
-
|
889
|
-
|
900
|
+
|
901
|
+
https://mexcdevelop.github.io/apidocs/spot_v3_en/#spot-account-deals
|
902
|
+
https://mexcdevelop.github.io/apidocs/contract_v1_en/#private-channels
|
903
|
+
|
890
904
|
watches information on multiple trades made by the user
|
891
905
|
:param str symbol: unified market symbol of the market trades were made in
|
892
906
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -1023,8 +1037,10 @@ class mexc(ccxt.async_support.mexc):
|
|
1023
1037
|
|
1024
1038
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1025
1039
|
"""
|
1026
|
-
|
1027
|
-
|
1040
|
+
|
1041
|
+
https://mexcdevelop.github.io/apidocs/spot_v3_en/#spot-account-orders
|
1042
|
+
https://mexcdevelop.github.io/apidocs/spot_v3_en/#margin-account-orders
|
1043
|
+
|
1028
1044
|
watches information on multiple orders made by the user
|
1029
1045
|
:param str symbol: unified market symbol of the market orders were made in
|
1030
1046
|
:param int [since]: the earliest time in ms to fetch orders for
|
@@ -1265,7 +1281,9 @@ class mexc(ccxt.async_support.mexc):
|
|
1265
1281
|
|
1266
1282
|
async def watch_balance(self, params={}) -> Balances:
|
1267
1283
|
"""
|
1268
|
-
|
1284
|
+
|
1285
|
+
https://mexcdevelop.github.io/apidocs/spot_v3_en/#spot-account-upadte
|
1286
|
+
|
1269
1287
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
1270
1288
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1271
1289
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
ccxt/pro/ndax.py
CHANGED
@@ -46,7 +46,9 @@ class ndax(ccxt.async_support.ndax):
|
|
46
46
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
47
47
|
"""
|
48
48
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
49
|
-
|
49
|
+
|
50
|
+
https://apidoc.ndax.io/#subscribelevel1
|
51
|
+
|
50
52
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
51
53
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
52
54
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -110,7 +112,9 @@ class ndax(ccxt.async_support.ndax):
|
|
110
112
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
111
113
|
"""
|
112
114
|
get the list of most recent trades for a particular symbol
|
113
|
-
|
115
|
+
|
116
|
+
https://apidoc.ndax.io/#subscribetrades
|
117
|
+
|
114
118
|
:param str symbol: unified symbol of the market to fetch trades for
|
115
119
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
116
120
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -186,7 +190,9 @@ class ndax(ccxt.async_support.ndax):
|
|
186
190
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
187
191
|
"""
|
188
192
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
189
|
-
|
193
|
+
|
194
|
+
https://apidoc.ndax.io/#subscribeticker
|
195
|
+
|
190
196
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
191
197
|
:param str timeframe: the length of time each candle represents
|
192
198
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -307,7 +313,9 @@ class ndax(ccxt.async_support.ndax):
|
|
307
313
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
308
314
|
"""
|
309
315
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
310
|
-
|
316
|
+
|
317
|
+
https://apidoc.ndax.io/#subscribelevel2
|
318
|
+
|
311
319
|
:param str symbol: unified symbol of the market to fetch the order book for
|
312
320
|
:param int [limit]: the maximum amount of order book entries to return
|
313
321
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|