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/binance.py
CHANGED
@@ -204,8 +204,10 @@ class binance(ccxt.async_support.binance):
|
|
204
204
|
async def watch_liquidations(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Liquidation]:
|
205
205
|
"""
|
206
206
|
watch the public liquidations of a trading pair
|
207
|
-
|
208
|
-
|
207
|
+
|
208
|
+
https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Liquidation-Order-Streams
|
209
|
+
https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Liquidation-Order-Streams
|
210
|
+
|
209
211
|
:param str symbol: unified CCXT market symbol
|
210
212
|
:param int [since]: the earliest time in ms to fetch liquidations for
|
211
213
|
:param int [limit]: the maximum number of liquidation structures to retrieve
|
@@ -217,9 +219,11 @@ class binance(ccxt.async_support.binance):
|
|
217
219
|
async def watch_liquidations_for_symbols(self, symbols: List[str] = None, since: Int = None, limit: Int = None, params={}) -> List[Liquidation]:
|
218
220
|
"""
|
219
221
|
watch the public liquidations of a trading pair
|
220
|
-
|
221
|
-
|
222
|
-
|
222
|
+
|
223
|
+
https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/All-Market-Liquidation-Order-Streams
|
224
|
+
https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Market-Liquidation-Order-Streams
|
225
|
+
|
226
|
+
:param str[] symbols:
|
223
227
|
:param int [since]: the earliest time in ms to fetch liquidations for
|
224
228
|
:param int [limit]: the maximum number of liquidation structures to retrieve
|
225
229
|
:param dict [params]: exchange specific parameters for the bitmex api endpoint
|
@@ -413,8 +417,10 @@ class binance(ccxt.async_support.binance):
|
|
413
417
|
async def watch_my_liquidations(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Liquidation]:
|
414
418
|
"""
|
415
419
|
watch the private liquidations of a trading pair
|
416
|
-
|
417
|
-
|
420
|
+
|
421
|
+
https://developers.binance.com/docs/derivatives/usds-margined-futures/user-data-streams/Event-Order-Update
|
422
|
+
https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Event-Order-Update
|
423
|
+
|
418
424
|
:param str symbol: unified CCXT market symbol
|
419
425
|
:param int [since]: the earliest time in ms to fetch liquidations for
|
420
426
|
:param int [limit]: the maximum number of liquidation structures to retrieve
|
@@ -426,9 +432,11 @@ class binance(ccxt.async_support.binance):
|
|
426
432
|
async def watch_my_liquidations_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Liquidation]:
|
427
433
|
"""
|
428
434
|
watch the private liquidations of a trading pair
|
429
|
-
|
430
|
-
|
431
|
-
|
435
|
+
|
436
|
+
https://developers.binance.com/docs/derivatives/usds-margined-futures/user-data-streams/Event-Order-Update
|
437
|
+
https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Event-Order-Update
|
438
|
+
|
439
|
+
@param symbols
|
432
440
|
:param int [since]: the earliest time in ms to fetch liquidations for
|
433
441
|
:param int [limit]: the maximum number of liquidation structures to retrieve
|
434
442
|
:param dict [params]: exchange specific parameters for the bitmex api endpoint
|
@@ -521,12 +529,14 @@ class binance(ccxt.async_support.binance):
|
|
521
529
|
|
522
530
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
523
531
|
"""
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
532
|
+
|
533
|
+
https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
|
534
|
+
https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
|
535
|
+
https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
|
536
|
+
https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
|
537
|
+
https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
|
538
|
+
https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
|
539
|
+
|
530
540
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
531
541
|
:param str symbol: unified symbol of the market to fetch the order book for
|
532
542
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -574,12 +584,14 @@ class binance(ccxt.async_support.binance):
|
|
574
584
|
|
575
585
|
async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
|
576
586
|
"""
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
587
|
+
|
588
|
+
https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
|
589
|
+
https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
|
590
|
+
https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
|
591
|
+
https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
|
592
|
+
https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
|
593
|
+
https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
|
594
|
+
|
583
595
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
584
596
|
:param str[] symbols: unified array of symbols
|
585
597
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -631,12 +643,14 @@ class binance(ccxt.async_support.binance):
|
|
631
643
|
|
632
644
|
async def un_watch_order_book_for_symbols(self, symbols: List[str], params={}) -> Any:
|
633
645
|
"""
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
646
|
+
|
647
|
+
https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
|
648
|
+
https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
|
649
|
+
https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
|
650
|
+
https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
|
651
|
+
https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
|
652
|
+
https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
|
653
|
+
|
640
654
|
unWatches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
641
655
|
:param str[] symbols: unified array of symbols
|
642
656
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -684,12 +698,14 @@ class binance(ccxt.async_support.binance):
|
|
684
698
|
|
685
699
|
async def un_watch_order_book(self, symbol: str, params={}) -> Any:
|
686
700
|
"""
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
701
|
+
|
702
|
+
https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
|
703
|
+
https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
|
704
|
+
https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
|
705
|
+
https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
|
706
|
+
https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
|
707
|
+
https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
|
708
|
+
|
693
709
|
unWatches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
694
710
|
:param str symbol: unified array of symbols
|
695
711
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -700,8 +716,10 @@ class binance(ccxt.async_support.binance):
|
|
700
716
|
async def fetch_order_book_ws(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
701
717
|
"""
|
702
718
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
703
|
-
|
704
|
-
|
719
|
+
|
720
|
+
https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#order-book
|
721
|
+
https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/websocket-api/Order-Book
|
722
|
+
|
705
723
|
:param str symbol: unified symbol of the market to fetch the order book for
|
706
724
|
:param int [limit]: the maximum amount of order book entries to return
|
707
725
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -964,10 +982,12 @@ class binance(ccxt.async_support.binance):
|
|
964
982
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
965
983
|
"""
|
966
984
|
get the list of most recent trades for a list of symbols
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
985
|
+
|
986
|
+
https://binance-docs.github.io/apidocs/spot/en/#aggregate-trade-streams
|
987
|
+
https://binance-docs.github.io/apidocs/spot/en/#trade-streams
|
988
|
+
https://binance-docs.github.io/apidocs/futures/en/#aggregate-trade-streams
|
989
|
+
https://binance-docs.github.io/apidocs/delivery/en/#aggregate-trade-streams
|
990
|
+
|
971
991
|
:param str[] symbols: unified symbol of the market to fetch trades for
|
972
992
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
973
993
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1020,10 +1040,12 @@ class binance(ccxt.async_support.binance):
|
|
1020
1040
|
async def un_watch_trades_for_symbols(self, symbols: List[str], params={}) -> Any:
|
1021
1041
|
"""
|
1022
1042
|
unsubscribes from the trades channel
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1043
|
+
|
1044
|
+
https://binance-docs.github.io/apidocs/spot/en/#aggregate-trade-streams
|
1045
|
+
https://binance-docs.github.io/apidocs/spot/en/#trade-streams
|
1046
|
+
https://binance-docs.github.io/apidocs/futures/en/#aggregate-trade-streams
|
1047
|
+
https://binance-docs.github.io/apidocs/delivery/en/#aggregate-trade-streams
|
1048
|
+
|
1027
1049
|
:param str[] symbols: unified symbol of the market to fetch trades for
|
1028
1050
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1029
1051
|
:param str [params.name]: the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
|
@@ -1076,10 +1098,12 @@ class binance(ccxt.async_support.binance):
|
|
1076
1098
|
async def un_watch_trades(self, symbol: str, params={}) -> Any:
|
1077
1099
|
"""
|
1078
1100
|
unsubscribes from the trades channel
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1101
|
+
|
1102
|
+
https://binance-docs.github.io/apidocs/spot/en/#aggregate-trade-streams
|
1103
|
+
https://binance-docs.github.io/apidocs/spot/en/#trade-streams
|
1104
|
+
https://binance-docs.github.io/apidocs/futures/en/#aggregate-trade-streams
|
1105
|
+
https://binance-docs.github.io/apidocs/delivery/en/#aggregate-trade-streams
|
1106
|
+
|
1083
1107
|
:param str symbol: unified symbol of the market to fetch trades for
|
1084
1108
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1085
1109
|
:param str [params.name]: the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
|
@@ -1091,10 +1115,12 @@ class binance(ccxt.async_support.binance):
|
|
1091
1115
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1092
1116
|
"""
|
1093
1117
|
get the list of most recent trades for a particular symbol
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1118
|
+
|
1119
|
+
https://binance-docs.github.io/apidocs/spot/en/#aggregate-trade-streams
|
1120
|
+
https://binance-docs.github.io/apidocs/spot/en/#trade-streams
|
1121
|
+
https://binance-docs.github.io/apidocs/futures/en/#aggregate-trade-streams
|
1122
|
+
https://binance-docs.github.io/apidocs/delivery/en/#aggregate-trade-streams
|
1123
|
+
|
1098
1124
|
:param str symbol: unified symbol of the market to fetch trades for
|
1099
1125
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1100
1126
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1281,9 +1307,11 @@ class binance(ccxt.async_support.binance):
|
|
1281
1307
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
1282
1308
|
"""
|
1283
1309
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1310
|
+
|
1311
|
+
https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
|
1312
|
+
https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
|
1313
|
+
https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
|
1314
|
+
|
1287
1315
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1288
1316
|
:param str timeframe: the length of time each candle represents
|
1289
1317
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1302,9 +1330,11 @@ class binance(ccxt.async_support.binance):
|
|
1302
1330
|
async def watch_ohlcv_for_symbols(self, symbolsAndTimeframes: List[List[str]], since: Int = None, limit: Int = None, params={}):
|
1303
1331
|
"""
|
1304
1332
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1333
|
+
|
1334
|
+
https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
|
1335
|
+
https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
|
1336
|
+
https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
|
1337
|
+
|
1308
1338
|
:param str[][] symbolsAndTimeframes: array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
|
1309
1339
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
1310
1340
|
:param int [limit]: the maximum amount of candles to fetch
|
@@ -1362,9 +1392,11 @@ class binance(ccxt.async_support.binance):
|
|
1362
1392
|
async def un_watch_ohlcv_for_symbols(self, symbolsAndTimeframes: List[List[str]], params={}) -> Any:
|
1363
1393
|
"""
|
1364
1394
|
unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1395
|
+
|
1396
|
+
https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
|
1397
|
+
https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
|
1398
|
+
https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
|
1399
|
+
|
1368
1400
|
:param str[][] symbolsAndTimeframes: array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
|
1369
1401
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1370
1402
|
:param dict [params.timezone]: if provided, kline intervals are interpreted in that timezone instead of UTC, example '+08:00'
|
@@ -1424,9 +1456,11 @@ class binance(ccxt.async_support.binance):
|
|
1424
1456
|
async def un_watch_ohlcv(self, symbol: str, timeframe='1m', params={}) -> Any:
|
1425
1457
|
"""
|
1426
1458
|
unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1459
|
+
|
1460
|
+
https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
|
1461
|
+
https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
|
1462
|
+
https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
|
1463
|
+
|
1430
1464
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1431
1465
|
:param str timeframe: the length of time each candle represents
|
1432
1466
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1542,15 +1576,17 @@ class binance(ccxt.async_support.binance):
|
|
1542
1576
|
async def fetch_ohlcv_ws(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
1543
1577
|
"""
|
1544
1578
|
query historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1545
|
-
|
1579
|
+
|
1580
|
+
https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#klines
|
1581
|
+
|
1546
1582
|
:param str symbol: unified symbol of the market to query OHLCV data for
|
1547
1583
|
:param str timeframe: the length of time each candle represents
|
1548
1584
|
:param int since: timestamp in ms of the earliest candle to fetch
|
1549
1585
|
:param int limit: the maximum amount of candles to fetch
|
1550
1586
|
:param dict params: extra parameters specific to the exchange API endpoint
|
1551
1587
|
:param int params['until']: timestamp in ms of the earliest candle to fetch
|
1552
|
-
|
1553
|
-
|
1588
|
+
|
1589
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1554
1590
|
:param str params['timeZone']: default=0(UTC)
|
1555
1591
|
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
1556
1592
|
"""
|
@@ -1627,12 +1663,14 @@ class binance(ccxt.async_support.binance):
|
|
1627
1663
|
|
1628
1664
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
1629
1665
|
"""
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1634
|
-
|
1635
|
-
|
1666
|
+
|
1667
|
+
https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
|
1668
|
+
https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
|
1669
|
+
https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
|
1670
|
+
https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
|
1671
|
+
https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
|
1672
|
+
https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
|
1673
|
+
|
1636
1674
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1637
1675
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1638
1676
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1646,7 +1684,9 @@ class binance(ccxt.async_support.binance):
|
|
1646
1684
|
|
1647
1685
|
async def watch_mark_price(self, symbol: str, params={}) -> Ticker:
|
1648
1686
|
"""
|
1649
|
-
|
1687
|
+
|
1688
|
+
https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Mark-Price-Stream
|
1689
|
+
|
1650
1690
|
watches a mark price for a specific market
|
1651
1691
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1652
1692
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1660,7 +1700,9 @@ class binance(ccxt.async_support.binance):
|
|
1660
1700
|
|
1661
1701
|
async def watch_mark_prices(self, symbols: Strings = None, params={}) -> Tickers:
|
1662
1702
|
"""
|
1663
|
-
|
1703
|
+
|
1704
|
+
https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Mark-Price-Stream-for-All-market
|
1705
|
+
|
1664
1706
|
watches the mark price for all markets
|
1665
1707
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
1666
1708
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1679,12 +1721,14 @@ class binance(ccxt.async_support.binance):
|
|
1679
1721
|
|
1680
1722
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
1681
1723
|
"""
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1687
|
-
|
1724
|
+
|
1725
|
+
https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
|
1726
|
+
https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
|
1727
|
+
https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
|
1728
|
+
https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
|
1729
|
+
https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
|
1730
|
+
https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
|
1731
|
+
|
1688
1732
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
1689
1733
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
1690
1734
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1701,12 +1745,14 @@ class binance(ccxt.async_support.binance):
|
|
1701
1745
|
|
1702
1746
|
async def un_watch_tickers(self, symbols: Strings = None, params={}) -> Any:
|
1703
1747
|
"""
|
1704
|
-
|
1705
|
-
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1748
|
+
|
1749
|
+
https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
|
1750
|
+
https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
|
1751
|
+
https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
|
1752
|
+
https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
|
1753
|
+
https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
|
1754
|
+
https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
|
1755
|
+
|
1710
1756
|
unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
1711
1757
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
1712
1758
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1778,12 +1824,14 @@ class binance(ccxt.async_support.binance):
|
|
1778
1824
|
|
1779
1825
|
async def un_watch_ticker(self, symbol: str, params={}) -> Any:
|
1780
1826
|
"""
|
1781
|
-
|
1782
|
-
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1827
|
+
|
1828
|
+
https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
|
1829
|
+
https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
|
1830
|
+
https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
|
1831
|
+
https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
|
1832
|
+
https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
|
1833
|
+
https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
|
1834
|
+
|
1787
1835
|
unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
1788
1836
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1789
1837
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1794,9 +1842,11 @@ class binance(ccxt.async_support.binance):
|
|
1794
1842
|
async def watch_bids_asks(self, symbols: Strings = None, params={}) -> Tickers:
|
1795
1843
|
"""
|
1796
1844
|
watches best bid & ask for symbols
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1845
|
+
|
1846
|
+
https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#symbol-order-book-ticker
|
1847
|
+
https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/All-Book-Tickers-Stream
|
1848
|
+
https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Book-Tickers-Stream
|
1849
|
+
|
1800
1850
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
1801
1851
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1802
1852
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -2280,8 +2330,10 @@ class binance(ccxt.async_support.binance):
|
|
2280
2330
|
async def fetch_balance_ws(self, params={}) -> Balances:
|
2281
2331
|
"""
|
2282
2332
|
fetch balance and get the amount of funds available for trading or funds locked in orders
|
2283
|
-
|
2284
|
-
|
2333
|
+
|
2334
|
+
https://developers.binance.com/docs/derivatives/usds-margined-futures/account/websocket-api/Futures-Account-Balance
|
2335
|
+
https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#account-information-user_data
|
2336
|
+
|
2285
2337
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2286
2338
|
:param str|None [params.type]: 'future', 'delivery', 'savings', 'funding', or 'spot'
|
2287
2339
|
:param str|None [params.marginMode]: 'cross' or 'isolated', for margin trading, uses self.options.defaultMarginMode if not passed, defaults to None/None/None
|
@@ -2382,7 +2434,9 @@ class binance(ccxt.async_support.binance):
|
|
2382
2434
|
|
2383
2435
|
async def fetch_position_ws(self, symbol: str, params={}) -> List[Position]:
|
2384
2436
|
"""
|
2385
|
-
|
2437
|
+
|
2438
|
+
https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Position-Information
|
2439
|
+
|
2386
2440
|
fetch data on an open position
|
2387
2441
|
:param str symbol: unified market symbol of the market the position is held in
|
2388
2442
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2393,7 +2447,9 @@ class binance(ccxt.async_support.binance):
|
|
2393
2447
|
async def fetch_positions_ws(self, symbols: Strings = None, params={}) -> List[Position]:
|
2394
2448
|
"""
|
2395
2449
|
fetch all open positions
|
2396
|
-
|
2450
|
+
|
2451
|
+
https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Position-Information
|
2452
|
+
|
2397
2453
|
:param str[] [symbols]: list of unified market symbols
|
2398
2454
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2399
2455
|
:param boolean [params.returnRateLimits]: set to True to return rate limit informations, defaults to False.
|
@@ -2615,8 +2671,10 @@ class binance(ccxt.async_support.binance):
|
|
2615
2671
|
async def create_order_ws(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}) -> Order:
|
2616
2672
|
"""
|
2617
2673
|
create a trade order
|
2618
|
-
|
2619
|
-
|
2674
|
+
|
2675
|
+
https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#place-new-order-trade
|
2676
|
+
https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/New-Order
|
2677
|
+
|
2620
2678
|
:param str symbol: unified symbol of the market to create an order in
|
2621
2679
|
:param str type: 'market' or 'limit'
|
2622
2680
|
:param str side: 'buy' or 'sell'
|
@@ -2757,8 +2815,10 @@ class binance(ccxt.async_support.binance):
|
|
2757
2815
|
async def edit_order_ws(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}) -> Order:
|
2758
2816
|
"""
|
2759
2817
|
edit a trade order
|
2760
|
-
|
2761
|
-
|
2818
|
+
|
2819
|
+
https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#cancel-and-replace-order-trade
|
2820
|
+
https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Modify-Order
|
2821
|
+
|
2762
2822
|
:param str id: order id
|
2763
2823
|
:param str symbol: unified symbol of the market to create an order in
|
2764
2824
|
:param str type: 'market' or 'limit'
|
@@ -2906,8 +2966,10 @@ class binance(ccxt.async_support.binance):
|
|
2906
2966
|
async def cancel_order_ws(self, id: str, symbol: Str = None, params={}) -> Order:
|
2907
2967
|
"""
|
2908
2968
|
cancel multiple orders
|
2909
|
-
|
2910
|
-
|
2969
|
+
|
2970
|
+
https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#cancel-order-trade
|
2971
|
+
https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Cancel-Order
|
2972
|
+
|
2911
2973
|
:param str id: order id
|
2912
2974
|
:param str symbol: unified market symbol, default is None
|
2913
2975
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2947,7 +3009,9 @@ class binance(ccxt.async_support.binance):
|
|
2947
3009
|
async def cancel_all_orders_ws(self, symbol: Str = None, params={}):
|
2948
3010
|
"""
|
2949
3011
|
cancel all open orders in a market
|
2950
|
-
|
3012
|
+
|
3013
|
+
https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#cancel-open-orders-trade
|
3014
|
+
|
2951
3015
|
:param str symbol: unified market symbol of the market to cancel orders in
|
2952
3016
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2953
3017
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -2979,8 +3043,11 @@ class binance(ccxt.async_support.binance):
|
|
2979
3043
|
async def fetch_order_ws(self, id: str, symbol: Str = None, params={}) -> Order:
|
2980
3044
|
"""
|
2981
3045
|
fetches information on an order made by the user
|
2982
|
-
|
2983
|
-
|
3046
|
+
|
3047
|
+
https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#query-order-user_data
|
3048
|
+
https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Query-Order
|
3049
|
+
|
3050
|
+
:param str id: order id
|
2984
3051
|
:param str symbol: unified symbol of the market the order was made in
|
2985
3052
|
:param dict params: extra parameters specific to the exchange API endpoint
|
2986
3053
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -3019,7 +3086,9 @@ class binance(ccxt.async_support.binance):
|
|
3019
3086
|
async def fetch_orders_ws(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
3020
3087
|
"""
|
3021
3088
|
fetches information on multiple orders made by the user
|
3022
|
-
|
3089
|
+
|
3090
|
+
https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#query-order-list-user_data
|
3091
|
+
|
3023
3092
|
:param str symbol: unified market symbol of the market orders were made in
|
3024
3093
|
:param int|None [since]: the earliest time in ms to fetch orders for
|
3025
3094
|
:param int|None [limit]: the maximum number of order structures to retrieve
|
@@ -3060,7 +3129,9 @@ class binance(ccxt.async_support.binance):
|
|
3060
3129
|
async def fetch_closed_orders_ws(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
3061
3130
|
"""
|
3062
3131
|
fetch closed orders
|
3063
|
-
|
3132
|
+
|
3133
|
+
https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#query-order-list-user_data
|
3134
|
+
|
3064
3135
|
:param str symbol: unified market symbol
|
3065
3136
|
:param int [since]: the earliest time in ms to fetch open orders for
|
3066
3137
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -3078,7 +3149,9 @@ class binance(ccxt.async_support.binance):
|
|
3078
3149
|
async def fetch_open_orders_ws(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
3079
3150
|
"""
|
3080
3151
|
fetch all unfilled currently open orders
|
3081
|
-
|
3152
|
+
|
3153
|
+
https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#current-open-orders-user_data
|
3154
|
+
|
3082
3155
|
:param str symbol: unified market symbol
|
3083
3156
|
:param int|None [since]: the earliest time in ms to fetch open orders for
|
3084
3157
|
:param int|None [limit]: the maximum number of open orders structures to retrieve
|
@@ -3114,9 +3187,11 @@ class binance(ccxt.async_support.binance):
|
|
3114
3187
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
3115
3188
|
"""
|
3116
3189
|
watches information on multiple orders made by the user
|
3117
|
-
|
3118
|
-
|
3119
|
-
|
3190
|
+
|
3191
|
+
https://developers.binance.com/docs/binance-spot-api-docs/user-data-stream#order-update
|
3192
|
+
https://developers.binance.com/docs/margin_trading/trade-data-stream/Event-Order-Update
|
3193
|
+
https://developers.binance.com/docs/derivatives/usds-margined-futures/user-data-streams/Event-Order-Update
|
3194
|
+
|
3120
3195
|
:param str symbol: unified market symbol of the market the orders were made in
|
3121
3196
|
:param int [since]: the earliest time in ms to fetch orders for
|
3122
3197
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -3399,6 +3474,8 @@ class binance(ccxt.async_support.binance):
|
|
3399
3474
|
"""
|
3400
3475
|
watch all open positions
|
3401
3476
|
:param str[]|None symbols: list of unified market symbols
|
3477
|
+
@param since
|
3478
|
+
@param limit
|
3402
3479
|
:param dict params: extra parameters specific to the exchange API endpoint
|
3403
3480
|
:param boolean [params.portfolioMargin]: set to True if you would like to watch positions in a portfolio margin account
|
3404
3481
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/en/latest/manual.html#position-structure>`
|
@@ -3593,7 +3670,9 @@ class binance(ccxt.async_support.binance):
|
|
3593
3670
|
async def fetch_my_trades_ws(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
3594
3671
|
"""
|
3595
3672
|
fetch all trades made by the user
|
3596
|
-
|
3673
|
+
|
3674
|
+
https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#account-trade-history-user_data
|
3675
|
+
|
3597
3676
|
:param str symbol: unified market symbol
|
3598
3677
|
:param int|None [since]: the earliest time in ms to fetch trades for
|
3599
3678
|
:param int|None [limit]: the maximum number of trades structures to retrieve
|
@@ -3639,13 +3718,15 @@ class binance(ccxt.async_support.binance):
|
|
3639
3718
|
async def fetch_trades_ws(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
3640
3719
|
"""
|
3641
3720
|
fetch all trades made by the user
|
3642
|
-
|
3721
|
+
|
3722
|
+
https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#recent-trades
|
3723
|
+
|
3643
3724
|
:param str symbol: unified market symbol
|
3644
3725
|
:param int [since]: the earliest time in ms to fetch trades for
|
3645
3726
|
:param int [limit]: the maximum number of trades structures to retrieve, default=500, max=1000
|
3646
3727
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3647
|
-
|
3648
|
-
|
3728
|
+
|
3729
|
+
EXCHANGE SPECIFIC PARAMETERS
|
3649
3730
|
:param int [params.fromId]: trade ID to begin at
|
3650
3731
|
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
3651
3732
|
"""
|