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/cryptocom.py
CHANGED
@@ -78,7 +78,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
78
78
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
79
79
|
"""
|
80
80
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
81
|
-
|
81
|
+
|
82
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#book-instrument_name
|
83
|
+
|
82
84
|
:param str symbol: unified symbol of the market to fetch the order book for
|
83
85
|
:param int [limit]: the maximum amount of order book entries to return
|
84
86
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -91,7 +93,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
91
93
|
async def un_watch_order_book(self, symbol: str, params={}) -> Any:
|
92
94
|
"""
|
93
95
|
unWatches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
94
|
-
|
96
|
+
|
97
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#book-instrument_name
|
98
|
+
|
95
99
|
:param str symbol: unified symbol of the market to fetch the order book for
|
96
100
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
97
101
|
:param str [params.bookSubscriptionType]: The subscription type. Allowed values: SNAPSHOT full snapshot. This is the default if not specified. SNAPSHOT_AND_UPDATE delta updates
|
@@ -103,7 +107,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
103
107
|
async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
|
104
108
|
"""
|
105
109
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
106
|
-
|
110
|
+
|
111
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#book-instrument_name
|
112
|
+
|
107
113
|
:param str[] symbols: unified array of symbols
|
108
114
|
:param int [limit]: the maximum amount of order book entries to return
|
109
115
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -144,7 +150,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
144
150
|
async def un_watch_order_book_for_symbols(self, symbols: List[str], params={}) -> OrderBook:
|
145
151
|
"""
|
146
152
|
unWatches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
147
|
-
|
153
|
+
|
154
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#book-instrument_name
|
155
|
+
|
148
156
|
:param str[] symbols: unified array of symbols
|
149
157
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
150
158
|
:param int [params.limit]: orderbook limit, default is 50
|
@@ -285,7 +293,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
285
293
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
286
294
|
"""
|
287
295
|
get the list of most recent trades for a particular symbol
|
288
|
-
|
296
|
+
|
297
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#trade-instrument_name
|
298
|
+
|
289
299
|
:param str symbol: unified symbol of the market to fetch trades for
|
290
300
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
291
301
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -297,10 +307,10 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
297
307
|
async def un_watch_trades(self, symbol: str, params={}) -> List[Trade]:
|
298
308
|
"""
|
299
309
|
get the list of most recent trades for a particular symbol
|
300
|
-
|
310
|
+
|
311
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#trade-instrument_name
|
312
|
+
|
301
313
|
:param str symbol: unified symbol of the market to fetch trades for
|
302
|
-
:param int [since]: timestamp in ms of the earliest trade to fetch
|
303
|
-
:param int [limit]: the maximum amount of trades to fetch
|
304
314
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
305
315
|
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=public-trades>`
|
306
316
|
"""
|
@@ -309,8 +319,10 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
309
319
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
310
320
|
"""
|
311
321
|
get the list of most recent trades for a particular symbol
|
312
|
-
|
313
|
-
|
322
|
+
|
323
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#trade-instrument_name
|
324
|
+
|
325
|
+
:param str[] symbols: unified symbol of the market to fetch trades for
|
314
326
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
315
327
|
:param int [limit]: the maximum amount of trades to fetch
|
316
328
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -334,8 +346,10 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
334
346
|
async def un_watch_trades_for_symbols(self, symbols: List[str], params={}) -> Any:
|
335
347
|
"""
|
336
348
|
get the list of most recent trades for a particular symbol
|
337
|
-
|
338
|
-
|
349
|
+
|
350
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#trade-instrument_name
|
351
|
+
|
352
|
+
@param symbols
|
339
353
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
340
354
|
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=public-trades>`
|
341
355
|
"""
|
@@ -398,7 +412,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
398
412
|
async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
399
413
|
"""
|
400
414
|
watches information on multiple trades made by the user
|
401
|
-
|
415
|
+
|
416
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-trade-instrument_name
|
417
|
+
|
402
418
|
:param str symbol: unified market symbol of the market trades were made in
|
403
419
|
:param int [since]: the earliest time in ms to fetch trades for
|
404
420
|
:param int [limit]: the maximum number of trade structures to retrieve
|
@@ -420,7 +436,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
420
436
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
421
437
|
"""
|
422
438
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
423
|
-
|
439
|
+
|
440
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
|
441
|
+
|
424
442
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
425
443
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
426
444
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -433,7 +451,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
433
451
|
async def un_watch_ticker(self, symbol: str, params={}) -> Any:
|
434
452
|
"""
|
435
453
|
unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
436
|
-
|
454
|
+
|
455
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
|
456
|
+
|
437
457
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
438
458
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
439
459
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -447,7 +467,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
447
467
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
448
468
|
"""
|
449
469
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
450
|
-
|
470
|
+
|
471
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
|
472
|
+
|
451
473
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
452
474
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
453
475
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -478,7 +500,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
478
500
|
async def un_watch_tickers(self, symbols: Strings = None, params={}) -> Any:
|
479
501
|
"""
|
480
502
|
unWatches a price ticker
|
481
|
-
|
503
|
+
|
504
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
|
505
|
+
|
482
506
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
483
507
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
484
508
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -580,7 +604,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
580
604
|
|
581
605
|
async def watch_bids_asks(self, symbols: Strings = None, params={}) -> Tickers:
|
582
606
|
"""
|
583
|
-
|
607
|
+
|
608
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
|
609
|
+
|
584
610
|
watches best bid & ask for symbols
|
585
611
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
586
612
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -639,7 +665,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
639
665
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
640
666
|
"""
|
641
667
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
642
|
-
|
668
|
+
|
669
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#candlestick-time_frame-instrument_name
|
670
|
+
|
643
671
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
644
672
|
:param str timeframe: the length of time each candle represents
|
645
673
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -660,7 +688,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
660
688
|
async def un_watch_ohlcv(self, symbol: str, timeframe='1m', params={}) -> Any:
|
661
689
|
"""
|
662
690
|
unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
663
|
-
|
691
|
+
|
692
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#candlestick-time_frame-instrument_name
|
693
|
+
|
664
694
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
665
695
|
:param str timeframe: the length of time each candle represents
|
666
696
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -710,7 +740,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
710
740
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
711
741
|
"""
|
712
742
|
watches information on multiple orders made by the user
|
713
|
-
|
743
|
+
|
744
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-order-instrument_name
|
745
|
+
|
714
746
|
:param str symbol: unified market symbol of the market orders were made in
|
715
747
|
:param int [since]: the earliest time in ms to fetch orders for
|
716
748
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -780,8 +812,12 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
780
812
|
async def watch_positions(self, symbols: Strings = None, since: Int = None, limit: Int = None, params={}) -> List[Position]:
|
781
813
|
"""
|
782
814
|
watch all open positions
|
783
|
-
|
815
|
+
|
816
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-position_balance
|
817
|
+
|
784
818
|
:param str[]|None symbols: list of unified market symbols
|
819
|
+
@param since
|
820
|
+
@param limit
|
785
821
|
:param dict params: extra parameters specific to the exchange API endpoint
|
786
822
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/en/latest/manual.html#position-structure>`
|
787
823
|
"""
|
@@ -889,7 +925,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
889
925
|
async def watch_balance(self, params={}) -> Balances:
|
890
926
|
"""
|
891
927
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
892
|
-
|
928
|
+
|
929
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-balance
|
930
|
+
|
893
931
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
894
932
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
895
933
|
"""
|
@@ -961,7 +999,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
961
999
|
|
962
1000
|
async def create_order_ws(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}) -> Order:
|
963
1001
|
"""
|
964
|
-
|
1002
|
+
|
1003
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-create-order
|
1004
|
+
|
965
1005
|
create a trade order
|
966
1006
|
:param str symbol: unified symbol of the market to create an order in
|
967
1007
|
:param str type: 'market' or 'limit'
|
@@ -1000,7 +1040,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
1000
1040
|
async def cancel_order_ws(self, id: str, symbol: Str = None, params={}) -> Order:
|
1001
1041
|
"""
|
1002
1042
|
cancels an open order
|
1003
|
-
|
1043
|
+
|
1044
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-order
|
1045
|
+
|
1004
1046
|
:param str id: the order id of the order to cancel
|
1005
1047
|
:param str [symbol]: unified symbol of the market the order was made in
|
1006
1048
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1020,7 +1062,9 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
1020
1062
|
async def cancel_all_orders_ws(self, symbol: Str = None, params={}):
|
1021
1063
|
"""
|
1022
1064
|
cancel all open orders
|
1023
|
-
|
1065
|
+
|
1066
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-all-orders
|
1067
|
+
|
1024
1068
|
:param str symbol: unified market symbol of the orders to cancel
|
1025
1069
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1026
1070
|
:returns dict} Returns exchange raw message {@link https://docs.ccxt.com/#/?id=order-structure:
|
ccxt/pro/deribit.py
CHANGED
@@ -83,7 +83,9 @@ class deribit(ccxt.async_support.deribit):
|
|
83
83
|
|
84
84
|
async def watch_balance(self, params={}) -> Balances:
|
85
85
|
"""
|
86
|
-
|
86
|
+
|
87
|
+
https://docs.deribit.com/#user-portfolio-currency
|
88
|
+
|
87
89
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
88
90
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
89
91
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
@@ -163,7 +165,9 @@ class deribit(ccxt.async_support.deribit):
|
|
163
165
|
|
164
166
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
165
167
|
"""
|
166
|
-
|
168
|
+
|
169
|
+
https://docs.deribit.com/#ticker-instrument_name-interval
|
170
|
+
|
167
171
|
watches a price ticker, a statistical calculation with the information for a specific market.
|
168
172
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
169
173
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -192,7 +196,9 @@ class deribit(ccxt.async_support.deribit):
|
|
192
196
|
|
193
197
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
194
198
|
"""
|
195
|
-
|
199
|
+
|
200
|
+
https://docs.deribit.com/#ticker-instrument_name-interval
|
201
|
+
|
196
202
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
197
203
|
:param str[] [symbols]: unified symbol of the market to fetch the ticker for
|
198
204
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -268,7 +274,9 @@ class deribit(ccxt.async_support.deribit):
|
|
268
274
|
|
269
275
|
async def watch_bids_asks(self, symbols: Strings = None, params={}) -> Tickers:
|
270
276
|
"""
|
271
|
-
|
277
|
+
|
278
|
+
https://docs.deribit.com/#quote-instrument_name
|
279
|
+
|
272
280
|
watches best bid & ask for symbols
|
273
281
|
:param str[] [symbols]: unified symbol of the market to fetch the ticker for
|
274
282
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -342,7 +350,9 @@ class deribit(ccxt.async_support.deribit):
|
|
342
350
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
343
351
|
"""
|
344
352
|
get the list of most recent trades for a particular symbol
|
345
|
-
|
353
|
+
|
354
|
+
https://docs.deribit.com/#trades-instrument_name-interval
|
355
|
+
|
346
356
|
:param str symbol: unified symbol of the market to fetch trades for
|
347
357
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
348
358
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -356,7 +366,9 @@ class deribit(ccxt.async_support.deribit):
|
|
356
366
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
357
367
|
"""
|
358
368
|
get the list of most recent trades for a list of symbols
|
359
|
-
|
369
|
+
|
370
|
+
https://docs.deribit.com/#trades-instrument_name-interval
|
371
|
+
|
360
372
|
:param str[] symbols: unified symbol of the market to fetch trades for
|
361
373
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
362
374
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -419,7 +431,9 @@ class deribit(ccxt.async_support.deribit):
|
|
419
431
|
async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
420
432
|
"""
|
421
433
|
get the list of trades associated with the user
|
422
|
-
|
434
|
+
|
435
|
+
https://docs.deribit.com/#user-trades-instrument_name-interval
|
436
|
+
|
423
437
|
:param str symbol: unified symbol of the market to fetch trades for. Use 'any' to watch all trades
|
424
438
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
425
439
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -498,7 +512,9 @@ class deribit(ccxt.async_support.deribit):
|
|
498
512
|
|
499
513
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
500
514
|
"""
|
501
|
-
|
515
|
+
|
516
|
+
https://docs.deribit.com/#book-instrument_name-group-depth-interval
|
517
|
+
|
502
518
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
503
519
|
:param str symbol: unified symbol of the market to fetch the order book for
|
504
520
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -512,7 +528,9 @@ class deribit(ccxt.async_support.deribit):
|
|
512
528
|
async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
|
513
529
|
"""
|
514
530
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
515
|
-
|
531
|
+
|
532
|
+
https://docs.deribit.com/#book-instrument_name-group-depth-interval
|
533
|
+
|
516
534
|
:param str[] symbols: unified array of symbols
|
517
535
|
:param int [limit]: the maximum amount of order book entries to return
|
518
536
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -642,7 +660,9 @@ class deribit(ccxt.async_support.deribit):
|
|
642
660
|
|
643
661
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
644
662
|
"""
|
645
|
-
|
663
|
+
|
664
|
+
https://docs.deribit.com/#user-orders-instrument_name-raw
|
665
|
+
|
646
666
|
watches information on multiple orders made by the user
|
647
667
|
:param str symbol: unified market symbol of the market orders were made in
|
648
668
|
:param int [since]: the earliest time in ms to fetch orders for
|
@@ -728,7 +748,9 @@ class deribit(ccxt.async_support.deribit):
|
|
728
748
|
|
729
749
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
730
750
|
"""
|
731
|
-
|
751
|
+
|
752
|
+
https://docs.deribit.com/#chart-trades-instrument_name-resolution
|
753
|
+
|
732
754
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
733
755
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
734
756
|
:param str timeframe: the length of time each candle represents
|
@@ -745,7 +767,9 @@ class deribit(ccxt.async_support.deribit):
|
|
745
767
|
async def watch_ohlcv_for_symbols(self, symbolsAndTimeframes: List[List[str]], since: Int = None, limit: Int = None, params={}):
|
746
768
|
"""
|
747
769
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
748
|
-
|
770
|
+
|
771
|
+
https://docs.deribit.com/#chart-trades-instrument_name-resolution
|
772
|
+
|
749
773
|
:param str[][] symbolsAndTimeframes: array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
|
750
774
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
751
775
|
:param int [limit]: the maximum amount of candles to fetch
|
ccxt/pro/exmo.py
CHANGED
@@ -199,7 +199,9 @@ class exmo(ccxt.async_support.exmo):
|
|
199
199
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
200
200
|
"""
|
201
201
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
202
|
-
|
202
|
+
|
203
|
+
https://documenter.getpostman.com/view/10287440/SzYXWKPi#fd8f47bc-8517-43c0-bb60-1d61a86d4471
|
204
|
+
|
203
205
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
204
206
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
205
207
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -222,7 +224,9 @@ class exmo(ccxt.async_support.exmo):
|
|
222
224
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
223
225
|
"""
|
224
226
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
225
|
-
|
227
|
+
|
228
|
+
https://documenter.getpostman.com/view/10287440/SzYXWKPi#fd8f47bc-8517-43c0-bb60-1d61a86d4471
|
229
|
+
|
226
230
|
:param str[] [symbols]: unified symbol of the market to fetch the ticker for
|
227
231
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
228
232
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -548,8 +552,10 @@ class exmo(ccxt.async_support.exmo):
|
|
548
552
|
|
549
553
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
550
554
|
"""
|
551
|
-
|
552
|
-
|
555
|
+
|
556
|
+
https://documenter.getpostman.com/view/10287440/SzYXWKPi#85f7bc03-b1c9-4cd2-bd22-8fd422272825
|
557
|
+
https://documenter.getpostman.com/view/10287440/SzYXWKPi#95e4ed18-1791-4e6d-83ad-cbfe9be1051c
|
558
|
+
|
553
559
|
watches information on multiple orders made by the user
|
554
560
|
:param str symbol: unified market symbol of the market orders were made in
|
555
561
|
:param int [since]: the earliest time in ms to fetch orders for
|
ccxt/pro/gate.py
CHANGED
@@ -133,8 +133,10 @@ class gate(ccxt.async_support.gate):
|
|
133
133
|
|
134
134
|
async def create_order_ws(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
135
135
|
"""
|
136
|
-
|
137
|
-
|
136
|
+
|
137
|
+
https://www.gate.io/docs/developers/apiv4/ws/en/#order-place
|
138
|
+
https://www.gate.io/docs/developers/futures/ws/en/#order-place
|
139
|
+
|
138
140
|
Create an order on the exchange
|
139
141
|
:param str symbol: Unified CCXT market symbol
|
140
142
|
:param str type: 'limit' or 'market' *"market" is contract only*
|
@@ -175,8 +177,11 @@ class gate(ccxt.async_support.gate):
|
|
175
177
|
async def create_orders_ws(self, orders: List[OrderRequest], params={}):
|
176
178
|
"""
|
177
179
|
create a list of trade orders
|
178
|
-
|
180
|
+
|
181
|
+
https://www.gate.io/docs/developers/futures/ws/en/#order-batch-place
|
182
|
+
|
179
183
|
:param Array orders: list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
184
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
180
185
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
181
186
|
"""
|
182
187
|
await self.load_markets()
|
@@ -195,8 +200,10 @@ class gate(ccxt.async_support.gate):
|
|
195
200
|
async def cancel_all_orders_ws(self, symbol: Str = None, params={}):
|
196
201
|
"""
|
197
202
|
cancel all open orders
|
198
|
-
|
199
|
-
|
203
|
+
|
204
|
+
https://www.gate.io/docs/developers/futures/ws/en/#cancel-all-open-orders-matched
|
205
|
+
https://www.gate.io/docs/developers/apiv4/ws/en/#order-cancel-all-with-specified-currency-pair
|
206
|
+
|
200
207
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
201
208
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
202
209
|
:param str [params.channel]: the channel to use, defaults to spot.order_cancel_cp or futures.order_cancel_cp
|
@@ -219,8 +226,10 @@ class gate(ccxt.async_support.gate):
|
|
219
226
|
async def cancel_order_ws(self, id: str, symbol: Str = None, params={}):
|
220
227
|
"""
|
221
228
|
Cancels an open order
|
222
|
-
|
223
|
-
|
229
|
+
|
230
|
+
https://www.gate.io/docs/developers/apiv4/ws/en/#order-cancel
|
231
|
+
https://www.gate.io/docs/developers/futures/ws/en/#order-cancel
|
232
|
+
|
224
233
|
:param str id: Order id
|
225
234
|
:param str symbol: Unified market symbol
|
226
235
|
:param dict [params]: Parameters specified by the exchange api
|
@@ -244,8 +253,10 @@ class gate(ccxt.async_support.gate):
|
|
244
253
|
async def edit_order_ws(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
|
245
254
|
"""
|
246
255
|
edit a trade order, gate currently only supports the modification of the price or amount fields
|
247
|
-
|
248
|
-
|
256
|
+
|
257
|
+
https://www.gate.io/docs/developers/apiv4/ws/en/#order-amend
|
258
|
+
https://www.gate.io/docs/developers/futures/ws/en/#order-amend
|
259
|
+
|
249
260
|
:param str id: order id
|
250
261
|
:param str symbol: unified symbol of the market to create an order in
|
251
262
|
:param str type: 'market' or 'limit'
|
@@ -268,8 +279,10 @@ class gate(ccxt.async_support.gate):
|
|
268
279
|
async def fetch_order_ws(self, id: str, symbol: Str = None, params={}):
|
269
280
|
"""
|
270
281
|
Retrieves information on an order
|
271
|
-
|
272
|
-
|
282
|
+
|
283
|
+
https://www.gate.io/docs/developers/apiv4/ws/en/#order-status
|
284
|
+
https://www.gate.io/docs/developers/futures/ws/en/#order-status
|
285
|
+
|
273
286
|
:param str id: Order id
|
274
287
|
:param str symbol: Unified market symbol, *required for spot and margin*
|
275
288
|
:param dict [params]: Parameters specified by the exchange api
|
@@ -292,7 +305,9 @@ class gate(ccxt.async_support.gate):
|
|
292
305
|
async def fetch_open_orders_ws(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
293
306
|
"""
|
294
307
|
fetch all unfilled currently open orders
|
295
|
-
|
308
|
+
|
309
|
+
https://www.gate.io/docs/developers/futures/ws/en/#order-list
|
310
|
+
|
296
311
|
:param str symbol: unified market symbol
|
297
312
|
:param int [since]: the earliest time in ms to fetch open orders for
|
298
313
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -304,7 +319,9 @@ class gate(ccxt.async_support.gate):
|
|
304
319
|
async def fetch_closed_orders_ws(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
305
320
|
"""
|
306
321
|
fetches information on multiple closed orders made by the user
|
307
|
-
|
322
|
+
|
323
|
+
https://www.gate.io/docs/developers/futures/ws/en/#order-list
|
324
|
+
|
308
325
|
:param str symbol: unified market symbol of the market orders were made in
|
309
326
|
:param int [since]: the earliest time in ms to fetch orders for
|
310
327
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -315,8 +332,11 @@ class gate(ccxt.async_support.gate):
|
|
315
332
|
|
316
333
|
async def fetch_orders_by_status_ws(self, status: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
317
334
|
"""
|
318
|
-
|
335
|
+
|
336
|
+
https://www.gate.io/docs/developers/futures/ws/en/#order-list
|
337
|
+
|
319
338
|
fetches information on multiple orders made by the user by status
|
339
|
+
@param status
|
320
340
|
:param str symbol: unified market symbol of the market orders were made in
|
321
341
|
:param int|None [since]: the earliest time in ms to fetch orders for
|
322
342
|
:param int|None [limit]: the maximum number of order structures to retrieve
|
@@ -533,7 +553,9 @@ class gate(ccxt.async_support.gate):
|
|
533
553
|
|
534
554
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
535
555
|
"""
|
536
|
-
|
556
|
+
|
557
|
+
https://www.gate.io/docs/developers/apiv4/ws/en/#tickers-channel
|
558
|
+
|
537
559
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
538
560
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
539
561
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -548,7 +570,9 @@ class gate(ccxt.async_support.gate):
|
|
548
570
|
|
549
571
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
550
572
|
"""
|
551
|
-
|
573
|
+
|
574
|
+
https://www.gate.io/docs/developers/apiv4/ws/en/#tickers-channel
|
575
|
+
|
552
576
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
553
577
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
554
578
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -579,8 +603,10 @@ class gate(ccxt.async_support.gate):
|
|
579
603
|
|
580
604
|
async def watch_bids_asks(self, symbols: Strings = None, params={}) -> Tickers:
|
581
605
|
"""
|
582
|
-
|
583
|
-
|
606
|
+
|
607
|
+
https://www.gate.io/docs/developers/apiv4/ws/en/#best-bid-or-ask-price
|
608
|
+
https://www.gate.io/docs/developers/apiv4/ws/en/#order-book-channel
|
609
|
+
|
584
610
|
watches best bid & ask for symbols
|
585
611
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
586
612
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -673,7 +699,7 @@ class gate(ccxt.async_support.gate):
|
|
673
699
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
674
700
|
"""
|
675
701
|
get the list of most recent trades for a particular symbol
|
676
|
-
:param str
|
702
|
+
:param str[] symbols: unified symbol of the market to fetch trades for
|
677
703
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
678
704
|
:param int [limit]: the maximum amount of trades to fetch
|
679
705
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -700,7 +726,7 @@ class gate(ccxt.async_support.gate):
|
|
700
726
|
async def un_watch_trades_for_symbols(self, symbols: List[str], params={}) -> Any:
|
701
727
|
"""
|
702
728
|
get the list of most recent trades for a particular symbol
|
703
|
-
:param str
|
729
|
+
:param str[] symbols: unified symbol of the market to fetch trades for
|
704
730
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
705
731
|
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=public-trades>`
|
706
732
|
"""
|
@@ -1035,11 +1061,15 @@ class gate(ccxt.async_support.gate):
|
|
1035
1061
|
|
1036
1062
|
async def watch_positions(self, symbols: Strings = None, since: Int = None, limit: Int = None, params={}) -> List[Position]:
|
1037
1063
|
"""
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1064
|
+
|
1065
|
+
https://www.gate.io/docs/developers/futures/ws/en/#positions-subscription
|
1066
|
+
https://www.gate.io/docs/developers/delivery/ws/en/#positions-subscription
|
1067
|
+
https://www.gate.io/docs/developers/options/ws/en/#positions-channel
|
1068
|
+
|
1041
1069
|
watch all open positions
|
1042
1070
|
:param str[]|None symbols: list of unified market symbols
|
1071
|
+
@param since
|
1072
|
+
@param limit
|
1043
1073
|
:param dict params: extra parameters specific to the exchange API endpoint
|
1044
1074
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/en/latest/manual.html#position-structure>`
|
1045
1075
|
"""
|
@@ -1267,9 +1297,11 @@ class gate(ccxt.async_support.gate):
|
|
1267
1297
|
async def watch_my_liquidations(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Liquidation]:
|
1268
1298
|
"""
|
1269
1299
|
watch the public liquidations of a trading pair
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1300
|
+
|
1301
|
+
https://www.gate.io/docs/developers/futures/ws/en/#liquidates-api
|
1302
|
+
https://www.gate.io/docs/developers/delivery/ws/en/#liquidates-api
|
1303
|
+
https://www.gate.io/docs/developers/options/ws/en/#liquidates-channel
|
1304
|
+
|
1273
1305
|
:param str symbol: unified CCXT market symbol
|
1274
1306
|
:param int [since]: the earliest time in ms to fetch liquidations for
|
1275
1307
|
:param int [limit]: the maximum number of liquidation structures to retrieve
|
@@ -1281,10 +1313,12 @@ class gate(ccxt.async_support.gate):
|
|
1281
1313
|
async def watch_my_liquidations_for_symbols(self, symbols: List[str] = None, since: Int = None, limit: Int = None, params={}) -> List[Liquidation]:
|
1282
1314
|
"""
|
1283
1315
|
watch the private liquidations of a trading pair
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1316
|
+
|
1317
|
+
https://www.gate.io/docs/developers/futures/ws/en/#liquidates-api
|
1318
|
+
https://www.gate.io/docs/developers/delivery/ws/en/#liquidates-api
|
1319
|
+
https://www.gate.io/docs/developers/options/ws/en/#liquidates-channel
|
1320
|
+
|
1321
|
+
:param str[] symbols: unified CCXT market symbols
|
1288
1322
|
:param int [since]: the earliest time in ms to fetch liquidations for
|
1289
1323
|
:param int [limit]: the maximum number of liquidation structures to retrieve
|
1290
1324
|
:param dict [params]: exchange specific parameters for the gate api endpoint
|