ccxt 4.4.30__py2.py3-none-any.whl → 4.4.32__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/ace.py +36 -12
- ccxt/alpaca.py +62 -22
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +62 -22
- ccxt/async_support/ascendex.py +65 -30
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/base/ws/aiohttp_client.py +25 -3
- ccxt/async_support/bigone.py +71 -27
- ccxt/async_support/binance.py +555 -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 +17 -9
- ccxt/async_support/bitfinex.py +68 -24
- 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 +145 -79
- 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 -22
- 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 +131 -50
- ccxt/async_support/digifinex.py +114 -51
- ccxt/async_support/exmo.py +104 -45
- ccxt/async_support/gate.py +313 -157
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +157 -74
- 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 +94 -38
- ccxt/async_support/idex.py +73 -24
- ccxt/async_support/independentreserve.py +12 -5
- ccxt/async_support/indodax.py +54 -17
- ccxt/async_support/kraken.py +108 -36
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +214 -110
- ccxt/async_support/kucoinfutures.py +209 -64
- ccxt/async_support/kuna.py +80 -39
- ccxt/async_support/latoken.py +70 -33
- ccxt/async_support/lbank.py +89 -38
- 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 +108 -56
- 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 +32 -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 +119 -50
- 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 +47 -35
- ccxt/base/types.py +1 -0
- ccxt/bigone.py +71 -27
- ccxt/binance.py +555 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +17 -9
- ccxt/bitfinex.py +68 -24
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +145 -79
- 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 -22
- 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 +131 -50
- ccxt/digifinex.py +114 -51
- ccxt/exmo.py +104 -45
- ccxt/gate.py +313 -157
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +157 -74
- ccxt/hollaex.py +76 -25
- ccxt/htx.py +297 -240
- ccxt/huobijp.py +1 -0
- ccxt/hyperliquid.py +94 -38
- ccxt/idex.py +73 -24
- ccxt/independentreserve.py +12 -5
- ccxt/indodax.py +54 -17
- ccxt/kraken.py +108 -36
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +214 -110
- ccxt/kucoinfutures.py +209 -64
- ccxt/kuna.py +80 -39
- ccxt/latoken.py +70 -33
- ccxt/lbank.py +89 -38
- 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 +108 -56
- 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 +204 -123
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +76 -37
- 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 +97 -62
- ccxt/pro/blockchaincom.py +18 -6
- ccxt/pro/blofin.py +36 -12
- 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 +71 -27
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +65 -31
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +27 -9
- 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 +36 -19
- 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/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 +32 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +119 -50
- ccxt/xt.py +150 -73
- ccxt/yobit.py +49 -16
- ccxt/zaif.py +30 -10
- ccxt/zonda.py +46 -16
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/METADATA +11 -5
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/RECORD +268 -268
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/WHEEL +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/top_level.txt +0 -0
ccxt/pro/bingx.py
CHANGED
@@ -96,9 +96,11 @@ class bingx(ccxt.async_support.bingx):
|
|
96
96
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
97
97
|
"""
|
98
98
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
99
|
-
|
100
|
-
|
101
|
-
|
99
|
+
|
100
|
+
https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscribe%20to%2024-hour%20Price%20Change
|
101
|
+
https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20to%2024-hour%20price%20changes
|
102
|
+
https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%2024-Hour%20Price%20Change
|
103
|
+
|
102
104
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
103
105
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
104
106
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -246,7 +248,9 @@ class bingx(ccxt.async_support.bingx):
|
|
246
248
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
247
249
|
"""
|
248
250
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
249
|
-
|
251
|
+
|
252
|
+
https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20to%2024-hour%20price%20changes%20of%20all%20trading%20pairs
|
253
|
+
|
250
254
|
:param str[] symbols: unified symbol of the market to watch the tickers for
|
251
255
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
252
256
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -292,7 +296,9 @@ class bingx(ccxt.async_support.bingx):
|
|
292
296
|
async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
|
293
297
|
"""
|
294
298
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
295
|
-
|
299
|
+
|
300
|
+
https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20Market%20Depth%20Data%20of%20all%20trading%20pairs
|
301
|
+
|
296
302
|
:param str[] symbols: unified array of symbols
|
297
303
|
:param int [limit]: the maximum amount of order book entries to return
|
298
304
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -345,7 +351,9 @@ class bingx(ccxt.async_support.bingx):
|
|
345
351
|
async def watch_ohlcv_for_symbols(self, symbolsAndTimeframes: List[List[str]], since: Int = None, limit: Int = None, params={}):
|
346
352
|
"""
|
347
353
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
348
|
-
|
354
|
+
|
355
|
+
https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20K-Line%20Data%20of%20all%20trading%20pairs
|
356
|
+
|
349
357
|
:param str[][] symbolsAndTimeframes: array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
|
350
358
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
351
359
|
:param int [limit]: the maximum amount of candles to fetch
|
@@ -426,9 +434,11 @@ class bingx(ccxt.async_support.bingx):
|
|
426
434
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
427
435
|
"""
|
428
436
|
watches information on multiple trades made in a market
|
429
|
-
|
430
|
-
|
431
|
-
|
437
|
+
|
438
|
+
https://bingx-api.github.io/docs/#/spot/socket/market.html#Subscribe%20to%20tick-by-tick
|
439
|
+
https://bingx-api.github.io/docs/#/swapV2/socket/market.html#Subscribe%20the%20Latest%20Trade%20Detail
|
440
|
+
https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscription%20transaction%20by%20transaction
|
441
|
+
|
432
442
|
:param str symbol: unified market symbol of the market orders were made in
|
433
443
|
:param int [since]: the earliest time in ms to fetch orders for
|
434
444
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -568,9 +578,11 @@ class bingx(ccxt.async_support.bingx):
|
|
568
578
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
569
579
|
"""
|
570
580
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
571
|
-
|
572
|
-
|
573
|
-
|
581
|
+
|
582
|
+
https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscribe%20Market%20Depth%20Data
|
583
|
+
https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20Market%20Depth%20Data
|
584
|
+
https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%20Limited%20Depth
|
585
|
+
|
574
586
|
:param str symbol: unified symbol of the market to fetch the order book for
|
575
587
|
:param int [limit]: the maximum amount of order book entries to return
|
576
588
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -851,9 +863,11 @@ class bingx(ccxt.async_support.bingx):
|
|
851
863
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
852
864
|
"""
|
853
865
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
854
|
-
|
855
|
-
|
856
|
-
|
866
|
+
|
867
|
+
https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#K-line%20Streams
|
868
|
+
https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20K-Line%20Data
|
869
|
+
https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%20Latest%20Trading%20Pair%20K-Line
|
870
|
+
|
857
871
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
858
872
|
:param str timeframe: the length of time each candle represents
|
859
873
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -899,9 +913,11 @@ class bingx(ccxt.async_support.bingx):
|
|
899
913
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
900
914
|
"""
|
901
915
|
watches information on multiple orders made by the user
|
902
|
-
|
903
|
-
|
904
|
-
|
916
|
+
|
917
|
+
https://bingx-api.github.io/docs/#/en-us/spot/socket/account.html#Subscription%20order%20update%20data
|
918
|
+
https://bingx-api.github.io/docs/#/en-us/swapV2/socket/account.html#Order%20update%20push
|
919
|
+
https://bingx-api.github.io/docs/#/en-us/cswap/socket/account.html#Order%20update%20push
|
920
|
+
|
905
921
|
:param str [symbol]: unified market symbol of the market orders are made in
|
906
922
|
:param int [since]: the earliest time in ms to watch orders for
|
907
923
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -950,9 +966,11 @@ class bingx(ccxt.async_support.bingx):
|
|
950
966
|
async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
951
967
|
"""
|
952
968
|
watches information on multiple trades made by the user
|
953
|
-
|
954
|
-
|
955
|
-
|
969
|
+
|
970
|
+
https://bingx-api.github.io/docs/#/en-us/spot/socket/account.html#Subscription%20order%20update%20data
|
971
|
+
https://bingx-api.github.io/docs/#/en-us/swapV2/socket/account.html#Order%20update%20push
|
972
|
+
https://bingx-api.github.io/docs/#/en-us/cswap/socket/account.html#Order%20update%20push
|
973
|
+
|
956
974
|
:param str [symbol]: unified market symbol of the market the trades are made in
|
957
975
|
:param int [since]: the earliest time in ms to watch trades for
|
958
976
|
:param int [limit]: the maximum number of trade structures to retrieve
|
@@ -1001,9 +1019,11 @@ class bingx(ccxt.async_support.bingx):
|
|
1001
1019
|
async def watch_balance(self, params={}) -> Balances:
|
1002
1020
|
"""
|
1003
1021
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1022
|
+
|
1023
|
+
https://bingx-api.github.io/docs/#/en-us/spot/socket/account.html#Subscription%20account%20balance%20push
|
1024
|
+
https://bingx-api.github.io/docs/#/en-us/swapV2/socket/account.html#Account%20balance%20and%20position%20update%20push
|
1025
|
+
https://bingx-api.github.io/docs/#/en-us/cswap/socket/account.html#Account%20balance%20and%20position%20update%20push
|
1026
|
+
|
1007
1027
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1008
1028
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
1009
1029
|
"""
|
ccxt/pro/bitfinex.py
CHANGED
@@ -63,7 +63,9 @@ class bitfinex(ccxt.async_support.bitfinex):
|
|
63
63
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
64
64
|
"""
|
65
65
|
get the list of most recent trades for a particular symbol
|
66
|
-
|
66
|
+
|
67
|
+
https://docs.bitfinex.com/v1/reference/ws-public-trades
|
68
|
+
|
67
69
|
:param str symbol: unified symbol of the market to fetch trades for
|
68
70
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
69
71
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -80,7 +82,9 @@ class bitfinex(ccxt.async_support.bitfinex):
|
|
80
82
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
81
83
|
"""
|
82
84
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
83
|
-
|
85
|
+
|
86
|
+
https://docs.bitfinex.com/v1/reference/ws-public-ticker
|
87
|
+
|
84
88
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
85
89
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
86
90
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -241,7 +245,9 @@ class bitfinex(ccxt.async_support.bitfinex):
|
|
241
245
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
242
246
|
"""
|
243
247
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
244
|
-
|
248
|
+
|
249
|
+
https://docs.bitfinex.com/v1/reference/ws-public-order-books
|
250
|
+
|
245
251
|
:param str symbol: unified symbol of the market to fetch the order book for
|
246
252
|
:param int [limit]: the maximum amount of order book entries to return
|
247
253
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -434,8 +440,10 @@ class bitfinex(ccxt.async_support.bitfinex):
|
|
434
440
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
435
441
|
"""
|
436
442
|
watches information on multiple orders made by the user
|
437
|
-
|
438
|
-
|
443
|
+
|
444
|
+
https://docs.bitfinex.com/v1/reference/ws-auth-order-updates
|
445
|
+
https://docs.bitfinex.com/v1/reference/ws-auth-order-snapshots
|
446
|
+
|
439
447
|
:param str symbol: unified market symbol of the market orders were made in
|
440
448
|
:param int [since]: the earliest time in ms to fetch orders for
|
441
449
|
:param int [limit]: the maximum number of order structures to retrieve
|
ccxt/pro/bitget.py
CHANGED
@@ -116,8 +116,10 @@ class bitget(ccxt.async_support.bitget):
|
|
116
116
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
117
117
|
"""
|
118
118
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
119
|
-
|
120
|
-
|
119
|
+
|
120
|
+
https://www.bitget.com/api-doc/spot/websocket/public/Tickers-Channel
|
121
|
+
https://www.bitget.com/api-doc/contract/websocket/public/Tickers-Channel
|
122
|
+
|
121
123
|
:param str symbol: unified symbol of the market to watch the ticker for
|
122
124
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
123
125
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -138,9 +140,12 @@ class bitget(ccxt.async_support.bitget):
|
|
138
140
|
async def un_watch_ticker(self, symbol: str, params={}) -> Any:
|
139
141
|
"""
|
140
142
|
unsubscribe from the ticker channel
|
141
|
-
|
142
|
-
|
143
|
+
|
144
|
+
https://www.bitget.com/api-doc/spot/websocket/public/Tickers-Channel
|
145
|
+
https://www.bitget.com/api-doc/contract/websocket/public/Tickers-Channel
|
146
|
+
|
143
147
|
:param str symbol: unified symbol of the market to unwatch the ticker for
|
148
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
144
149
|
:returns any: status of the unwatch request
|
145
150
|
"""
|
146
151
|
await self.load_markets()
|
@@ -149,8 +154,10 @@ class bitget(ccxt.async_support.bitget):
|
|
149
154
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
150
155
|
"""
|
151
156
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
152
|
-
|
153
|
-
|
157
|
+
|
158
|
+
https://www.bitget.com/api-doc/spot/websocket/public/Tickers-Channel
|
159
|
+
https://www.bitget.com/api-doc/contract/websocket/public/Tickers-Channel
|
160
|
+
|
154
161
|
:param str[] symbols: unified symbol of the market to watch the tickers for
|
155
162
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
156
163
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -324,8 +331,10 @@ class bitget(ccxt.async_support.bitget):
|
|
324
331
|
|
325
332
|
async def watch_bids_asks(self, symbols: Strings = None, params={}) -> Tickers:
|
326
333
|
"""
|
327
|
-
|
328
|
-
|
334
|
+
|
335
|
+
https://www.bitget.com/api-doc/spot/websocket/public/Tickers-Channel
|
336
|
+
https://www.bitget.com/api-doc/contract/websocket/public/Tickers-Channel
|
337
|
+
|
329
338
|
watches best bid & ask for symbols
|
330
339
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
331
340
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -385,8 +394,10 @@ class bitget(ccxt.async_support.bitget):
|
|
385
394
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
386
395
|
"""
|
387
396
|
watches historical candlestick data containing the open, high, low, close price, and the volume of a market
|
388
|
-
|
389
|
-
|
397
|
+
|
398
|
+
https://www.bitget.com/api-doc/spot/websocket/public/Candlesticks-Channel
|
399
|
+
https://www.bitget.com/api-doc/contract/websocket/public/Candlesticks-Channel
|
400
|
+
|
390
401
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
391
402
|
:param str timeframe: the length of time each candle represents
|
392
403
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -415,9 +426,13 @@ class bitget(ccxt.async_support.bitget):
|
|
415
426
|
async def un_watch_ohlcv(self, symbol: str, timeframe='1m', params={}) -> Any:
|
416
427
|
"""
|
417
428
|
unsubscribe from the ohlcv channel
|
418
|
-
|
419
|
-
|
429
|
+
|
430
|
+
https://www.bitget.com/api-doc/spot/websocket/public/Candlesticks-Channel
|
431
|
+
https://www.bitget.com/api-doc/contract/websocket/public/Candlesticks-Channel
|
432
|
+
|
420
433
|
:param str symbol: unified symbol of the market to unwatch the ohlcv for
|
434
|
+
:param str [timeframe]: the period for the ratio, default is 1 minute
|
435
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
421
436
|
:returns dict: A dictionary of `order book structures <https://docs.ccxt.com/#/?id=order-book-structure>` indexed by market symbols
|
422
437
|
"""
|
423
438
|
await self.load_markets()
|
@@ -509,8 +524,10 @@ class bitget(ccxt.async_support.bitget):
|
|
509
524
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
510
525
|
"""
|
511
526
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
512
|
-
|
513
|
-
|
527
|
+
|
528
|
+
https://www.bitget.com/api-doc/spot/websocket/public/Depth-Channel
|
529
|
+
https://www.bitget.com/api-doc/contract/websocket/public/Order-Book-Channel
|
530
|
+
|
514
531
|
:param str symbol: unified symbol of the market to fetch the order book for
|
515
532
|
:param int [limit]: the maximum amount of order book entries to return
|
516
533
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -521,9 +538,12 @@ class bitget(ccxt.async_support.bitget):
|
|
521
538
|
async def un_watch_order_book(self, symbol: str, params={}) -> Any:
|
522
539
|
"""
|
523
540
|
unsubscribe from the orderbook channel
|
524
|
-
|
525
|
-
|
541
|
+
|
542
|
+
https://www.bitget.com/api-doc/spot/websocket/public/Depth-Channel
|
543
|
+
https://www.bitget.com/api-doc/contract/websocket/public/Order-Book-Channel
|
544
|
+
|
526
545
|
:param str symbol: unified symbol of the market to fetch the order book for
|
546
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
527
547
|
:param int [params.limit]: orderbook limit, default is None
|
528
548
|
:returns dict: A dictionary of `order book structures <https://docs.ccxt.com/#/?id=order-book-structure>` indexed by market symbols
|
529
549
|
"""
|
@@ -551,8 +571,10 @@ class bitget(ccxt.async_support.bitget):
|
|
551
571
|
async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
|
552
572
|
"""
|
553
573
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
554
|
-
|
555
|
-
|
574
|
+
|
575
|
+
https://www.bitget.com/api-doc/spot/websocket/public/Depth-Channel
|
576
|
+
https://www.bitget.com/api-doc/contract/websocket/public/Order-Book-Channel
|
577
|
+
|
556
578
|
:param str[] symbols: unified array of symbols
|
557
579
|
:param int [limit]: the maximum amount of order book entries to return
|
558
580
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -642,7 +664,7 @@ class bitget(ccxt.async_support.bitget):
|
|
642
664
|
self.handle_deltas(storedOrderBook['bids'], bids)
|
643
665
|
storedOrderBook['timestamp'] = timestamp
|
644
666
|
storedOrderBook['datetime'] = self.iso8601(timestamp)
|
645
|
-
checksum = self.
|
667
|
+
checksum = self.handle_option('watchOrderBook', 'checksum', True)
|
646
668
|
isSnapshot = self.safe_string(message, 'action') == 'snapshot' # snapshot does not have a checksum
|
647
669
|
if not isSnapshot and checksum:
|
648
670
|
storedAsks = storedOrderBook['asks']
|
@@ -693,8 +715,10 @@ class bitget(ccxt.async_support.bitget):
|
|
693
715
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
694
716
|
"""
|
695
717
|
get the list of most recent trades for a particular symbol
|
696
|
-
|
697
|
-
|
718
|
+
|
719
|
+
https://www.bitget.com/api-doc/spot/websocket/public/Trades-Channel
|
720
|
+
https://www.bitget.com/api-doc/contract/websocket/public/New-Trades-Channel
|
721
|
+
|
698
722
|
:param str symbol: unified symbol of the market to fetch trades for
|
699
723
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
700
724
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -706,9 +730,11 @@ class bitget(ccxt.async_support.bitget):
|
|
706
730
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
707
731
|
"""
|
708
732
|
get the list of most recent trades for a particular symbol
|
709
|
-
|
710
|
-
|
711
|
-
|
733
|
+
|
734
|
+
https://www.bitget.com/api-doc/spot/websocket/public/Trades-Channel
|
735
|
+
https://www.bitget.com/api-doc/contract/websocket/public/New-Trades-Channel
|
736
|
+
|
737
|
+
:param str[] symbols: unified symbol of the market to fetch trades for
|
712
738
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
713
739
|
:param int [limit]: the maximum amount of trades to fetch
|
714
740
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -743,9 +769,12 @@ class bitget(ccxt.async_support.bitget):
|
|
743
769
|
async def un_watch_trades(self, symbol: str, params={}) -> Any:
|
744
770
|
"""
|
745
771
|
unsubscribe from the trades channel
|
746
|
-
|
747
|
-
|
772
|
+
|
773
|
+
https://www.bitget.com/api-doc/spot/websocket/public/Trades-Channel
|
774
|
+
https://www.bitget.com/api-doc/contract/websocket/public/New-Trades-Channel
|
775
|
+
|
748
776
|
:param str symbol: unified symbol of the market to unwatch the trades for
|
777
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
749
778
|
:returns any: status of the unwatch request
|
750
779
|
"""
|
751
780
|
await self.load_markets()
|
@@ -883,8 +912,12 @@ class bitget(ccxt.async_support.bitget):
|
|
883
912
|
async def watch_positions(self, symbols: Strings = None, since: Int = None, limit: Int = None, params={}) -> List[Position]:
|
884
913
|
"""
|
885
914
|
watch all open positions
|
886
|
-
|
915
|
+
|
916
|
+
https://www.bitget.com/api-doc/contract/websocket/private/Positions-Channel
|
917
|
+
|
887
918
|
:param str[]|None symbols: list of unified market symbols
|
919
|
+
:param int [since]: the earliest time in ms to fetch positions for
|
920
|
+
:param int [limit]: the maximum number of positions to retrieve
|
888
921
|
:param dict params: extra parameters specific to the exchange API endpoint
|
889
922
|
:param str [params.instType]: one of 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES', default is 'USDT-FUTURES'
|
890
923
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/en/latest/manual.html#position-structure>`
|
@@ -1046,11 +1079,13 @@ class bitget(ccxt.async_support.bitget):
|
|
1046
1079
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1047
1080
|
"""
|
1048
1081
|
watches information on multiple orders made by the user
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1082
|
+
|
1083
|
+
https://www.bitget.com/api-doc/spot/websocket/private/Order-Channel
|
1084
|
+
https://www.bitget.com/api-doc/contract/websocket/private/Order-Channel
|
1085
|
+
https://www.bitget.com/api-doc/contract/websocket/private/Plan-Order-Channel
|
1086
|
+
https://www.bitget.com/api-doc/margin/cross/websocket/private/Cross-Orders
|
1087
|
+
https://www.bitget.com/api-doc/margin/isolated/websocket/private/Isolate-Orders
|
1088
|
+
|
1054
1089
|
:param str symbol: unified market symbol of the market orders were made in
|
1055
1090
|
:param int [since]: the earliest time in ms to fetch orders for
|
1056
1091
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1421,7 +1456,9 @@ class bitget(ccxt.async_support.bitget):
|
|
1421
1456
|
async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1422
1457
|
"""
|
1423
1458
|
watches trades made by the user
|
1424
|
-
|
1459
|
+
|
1460
|
+
https://www.bitget.com/api-doc/contract/websocket/private/Order-Channel
|
1461
|
+
|
1425
1462
|
:param str symbol: unified market symbol
|
1426
1463
|
:param int [since]: the earliest time in ms to fetch trades for
|
1427
1464
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -1544,10 +1581,12 @@ class bitget(ccxt.async_support.bitget):
|
|
1544
1581
|
async def watch_balance(self, params={}) -> Balances:
|
1545
1582
|
"""
|
1546
1583
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1584
|
+
|
1585
|
+
https://www.bitget.com/api-doc/spot/websocket/private/Account-Channel
|
1586
|
+
https://www.bitget.com/api-doc/contract/websocket/private/Account-Channel
|
1587
|
+
https://www.bitget.com/api-doc/margin/cross/websocket/private/Margin-Cross-Account-Assets
|
1588
|
+
https://www.bitget.com/api-doc/margin/isolated/websocket/private/Margin-isolated-account-assets
|
1589
|
+
|
1551
1590
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1552
1591
|
:param str [params.type]: spot or contract if not provided self.options['defaultType'] is used
|
1553
1592
|
:param str [params.instType]: one of 'SPOT', 'MARGIN', 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
ccxt/pro/bithumb.py
CHANGED
@@ -37,7 +37,9 @@ class bithumb(ccxt.async_support.bithumb):
|
|
37
37
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
38
38
|
"""
|
39
39
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
40
|
-
|
40
|
+
|
41
|
+
https://apidocs.bithumb.com/v1.2.0/reference/%EB%B9%97%EC%8D%B8-%EA%B1%B0%EB%9E%98%EC%86%8C-%EC%A0%95%EB%B3%B4-%EC%88%98%EC%8B%A0
|
42
|
+
|
41
43
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
42
44
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
43
45
|
:param str [params.channel]: the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
@@ -57,7 +59,9 @@ class bithumb(ccxt.async_support.bithumb):
|
|
57
59
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
58
60
|
"""
|
59
61
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
60
|
-
|
62
|
+
|
63
|
+
https://apidocs.bithumb.com/v1.2.0/reference/%EB%B9%97%EC%8D%B8-%EA%B1%B0%EB%9E%98%EC%86%8C-%EC%A0%95%EB%B3%B4-%EC%88%98%EC%8B%A0
|
64
|
+
|
61
65
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
62
66
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
63
67
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -167,7 +171,9 @@ class bithumb(ccxt.async_support.bithumb):
|
|
167
171
|
|
168
172
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
169
173
|
"""
|
170
|
-
|
174
|
+
|
175
|
+
https://apidocs.bithumb.com/v1.2.0/reference/%EB%B9%97%EC%8D%B8-%EA%B1%B0%EB%9E%98%EC%86%8C-%EC%A0%95%EB%B3%B4-%EC%88%98%EC%8B%A0
|
176
|
+
|
171
177
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
172
178
|
:param str symbol: unified symbol of the market to fetch the order book for
|
173
179
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -251,7 +257,9 @@ class bithumb(ccxt.async_support.bithumb):
|
|
251
257
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
252
258
|
"""
|
253
259
|
get the list of most recent trades for a particular symbol
|
254
|
-
|
260
|
+
|
261
|
+
https://apidocs.bithumb.com/v1.2.0/reference/%EB%B9%97%EC%8D%B8-%EA%B1%B0%EB%9E%98%EC%86%8C-%EC%A0%95%EB%B3%B4-%EC%88%98%EC%8B%A0
|
262
|
+
|
255
263
|
:param str symbol: unified symbol of the market to fetch trades for
|
256
264
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
257
265
|
:param int [limit]: the maximum amount of trades to fetch
|
ccxt/pro/bitmart.py
CHANGED
@@ -137,8 +137,10 @@ class bitmart(ccxt.async_support.bitmart):
|
|
137
137
|
|
138
138
|
async def watch_balance(self, params={}) -> Balances:
|
139
139
|
"""
|
140
|
-
|
141
|
-
|
140
|
+
|
141
|
+
https://developer-pro.bitmart.com/en/spot/#private-balance-change
|
142
|
+
https://developer-pro.bitmart.com/en/futuresv2/#private-assets-channel
|
143
|
+
|
142
144
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
143
145
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
144
146
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
@@ -257,8 +259,10 @@ class bitmart(ccxt.async_support.bitmart):
|
|
257
259
|
|
258
260
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
259
261
|
"""
|
260
|
-
|
261
|
-
|
262
|
+
|
263
|
+
https://developer-pro.bitmart.com/en/spot/#public-trade-channel
|
264
|
+
https://developer-pro.bitmart.com/en/futuresv2/#public-trade-channel
|
265
|
+
|
262
266
|
get the list of most recent trades for a particular symbol
|
263
267
|
:param str symbol: unified symbol of the market to fetch trades for
|
264
268
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -270,7 +274,9 @@ class bitmart(ccxt.async_support.bitmart):
|
|
270
274
|
|
271
275
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
272
276
|
"""
|
273
|
-
|
277
|
+
|
278
|
+
https://developer-pro.bitmart.com/en/spot/#public-trade-channel
|
279
|
+
|
274
280
|
get the list of most recent trades for a list of symbols
|
275
281
|
:param str[] symbols: unified symbol of the market to fetch trades for
|
276
282
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -301,8 +307,10 @@ class bitmart(ccxt.async_support.bitmart):
|
|
301
307
|
|
302
308
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
303
309
|
"""
|
304
|
-
|
305
|
-
|
310
|
+
|
311
|
+
https://developer-pro.bitmart.com/en/spot/#public-ticker-channel
|
312
|
+
https://developer-pro.bitmart.com/en/futuresv2/#public-ticker-channel
|
313
|
+
|
306
314
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
307
315
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
308
316
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -315,8 +323,10 @@ class bitmart(ccxt.async_support.bitmart):
|
|
315
323
|
|
316
324
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
317
325
|
"""
|
318
|
-
|
319
|
-
|
326
|
+
|
327
|
+
https://developer-pro.bitmart.com/en/spot/#public-ticker-channel
|
328
|
+
https://developer-pro.bitmart.com/en/futuresv2/#public-ticker-channel
|
329
|
+
|
320
330
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
321
331
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
322
332
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -335,8 +345,10 @@ class bitmart(ccxt.async_support.bitmart):
|
|
335
345
|
|
336
346
|
async def watch_bids_asks(self, symbols: Strings = None, params={}) -> Tickers:
|
337
347
|
"""
|
338
|
-
|
339
|
-
|
348
|
+
|
349
|
+
https://developer-pro.bitmart.com/en/spot/#public-ticker-channel
|
350
|
+
https://developer-pro.bitmart.com/en/futuresv2/#public-ticker-channel
|
351
|
+
|
340
352
|
watches best bid & ask for symbols
|
341
353
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
342
354
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -405,8 +417,10 @@ class bitmart(ccxt.async_support.bitmart):
|
|
405
417
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
406
418
|
"""
|
407
419
|
watches information on multiple orders made by the user
|
408
|
-
|
409
|
-
|
420
|
+
|
421
|
+
https://developer-pro.bitmart.com/en/spot/#private-order-progress
|
422
|
+
https://developer-pro.bitmart.com/en/futuresv2/#private-order-channel
|
423
|
+
|
410
424
|
:param str symbol: unified market symbol of the market orders were made in
|
411
425
|
:param int [since]: the earliest time in ms to fetch orders for
|
412
426
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -676,9 +690,13 @@ class bitmart(ccxt.async_support.bitmart):
|
|
676
690
|
|
677
691
|
async def watch_positions(self, symbols: Strings = None, since: Int = None, limit: Int = None, params={}) -> List[Position]:
|
678
692
|
"""
|
679
|
-
|
693
|
+
|
694
|
+
https://developer-pro.bitmart.com/en/futures/#private-position-channel
|
695
|
+
|
680
696
|
watch all open positions
|
681
697
|
:param str[]|None symbols: list of unified market symbols
|
698
|
+
:param int [since]: the earliest time in ms to fetch positions
|
699
|
+
:param int [limit]: the maximum number of positions to retrieve
|
682
700
|
:param dict params: extra parameters specific to the exchange API endpoint
|
683
701
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/en/latest/manual.html#position-structure>`
|
684
702
|
"""
|
@@ -1005,8 +1023,10 @@ class bitmart(ccxt.async_support.bitmart):
|
|
1005
1023
|
|
1006
1024
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
1007
1025
|
"""
|
1008
|
-
|
1009
|
-
|
1026
|
+
|
1027
|
+
https://developer-pro.bitmart.com/en/spot/#public-kline-channel
|
1028
|
+
https://developer-pro.bitmart.com/en/futuresv2/#public-klinebin-channel
|
1029
|
+
|
1010
1030
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1011
1031
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1012
1032
|
:param str timeframe: the length of time each candle represents
|
@@ -1120,9 +1140,11 @@ class bitmart(ccxt.async_support.bitmart):
|
|
1120
1140
|
|
1121
1141
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
1122
1142
|
"""
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1143
|
+
|
1144
|
+
https://developer-pro.bitmart.com/en/spot/#public-depth-all-channel
|
1145
|
+
https://developer-pro.bitmart.com/en/spot/#public-depth-increase-channel
|
1146
|
+
https://developer-pro.bitmart.com/en/futuresv2/#public-depth-channel
|
1147
|
+
|
1126
1148
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
1127
1149
|
:param str symbol: unified symbol of the market to fetch the order book for
|
1128
1150
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -1335,7 +1357,9 @@ class bitmart(ccxt.async_support.bitmart):
|
|
1335
1357
|
async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
|
1336
1358
|
"""
|
1337
1359
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
1338
|
-
|
1360
|
+
|
1361
|
+
https://developer-pro.bitmart.com/en/spot/#public-depth-increase-channel
|
1362
|
+
|
1339
1363
|
:param str[] symbols: unified array of symbols
|
1340
1364
|
:param int [limit]: the maximum amount of order book entries to return
|
1341
1365
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|