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/krakenfutures.py
CHANGED
@@ -69,9 +69,11 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
69
69
|
|
70
70
|
async def authenticate(self, params={}):
|
71
71
|
"""
|
72
|
-
|
72
|
+
@ignore
|
73
73
|
authenticates the user to access private web socket channels
|
74
|
-
|
74
|
+
|
75
|
+
https://docs.futures.kraken.com/#websocket-api-public-feeds-challenge
|
76
|
+
|
75
77
|
:returns dict: response from exchange
|
76
78
|
"""
|
77
79
|
self.check_required_credentials()
|
@@ -96,7 +98,9 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
96
98
|
async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
|
97
99
|
"""
|
98
100
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
99
|
-
|
101
|
+
|
102
|
+
https://docs.futures.kraken.com/#websocket-api-public-feeds-challenge
|
103
|
+
|
100
104
|
:param str[] symbols: unified array of symbols
|
101
105
|
:param int [limit]: the maximum amount of order book entries to return
|
102
106
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -107,7 +111,7 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
107
111
|
|
108
112
|
async def subscribe_public(self, name: str, symbols: List[str], params={}):
|
109
113
|
"""
|
110
|
-
|
114
|
+
@ignore
|
111
115
|
Connects to a websocket channel
|
112
116
|
:param str name: name of the channel
|
113
117
|
:param str[] symbols: CCXT market symbols
|
@@ -137,10 +141,10 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
137
141
|
|
138
142
|
async def subscribe_private(self, name: str, messageHash: str, params={}):
|
139
143
|
"""
|
140
|
-
|
144
|
+
@ignore
|
141
145
|
Connects to a websocket channel
|
142
146
|
:param str name: name of the channel
|
143
|
-
:param str
|
147
|
+
:param str messageHash: unique identifier for the message
|
144
148
|
:param dict [params]: extra parameters specific to the krakenfutures api
|
145
149
|
:returns dict: data from the websocket stream
|
146
150
|
"""
|
@@ -160,7 +164,9 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
160
164
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
161
165
|
"""
|
162
166
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
163
|
-
|
167
|
+
|
168
|
+
https://docs.futures.kraken.com/#websocket-api-public-feeds-ticker
|
169
|
+
|
164
170
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
165
171
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
166
172
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -173,8 +179,10 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
173
179
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
174
180
|
"""
|
175
181
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
176
|
-
|
177
|
-
|
182
|
+
|
183
|
+
https://docs.futures.kraken.com/#websocket-api-public-feeds-ticker
|
184
|
+
|
185
|
+
:param str[] symbols: unified symbols of the markets to fetch the ticker for
|
178
186
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
179
187
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
180
188
|
"""
|
@@ -189,7 +197,9 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
189
197
|
|
190
198
|
async def watch_bids_asks(self, symbols: Strings = None, params={}) -> Tickers:
|
191
199
|
"""
|
192
|
-
|
200
|
+
|
201
|
+
https://docs.futures.kraken.com/#websocket-api-public-feeds-ticker-lite
|
202
|
+
|
193
203
|
watches best bid & ask for symbols
|
194
204
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
195
205
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -205,7 +215,9 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
205
215
|
async def watch_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
206
216
|
"""
|
207
217
|
get the list of most recent trades for a particular symbol
|
208
|
-
|
218
|
+
|
219
|
+
https://docs.futures.kraken.com/#websocket-api-public-feeds-trade
|
220
|
+
|
209
221
|
:param str symbol: unified symbol of the market to fetch trades for
|
210
222
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
211
223
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -216,7 +228,9 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
216
228
|
|
217
229
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
218
230
|
"""
|
219
|
-
|
231
|
+
|
232
|
+
https://docs.futures.kraken.com/#websocket-api-public-feeds-trade
|
233
|
+
|
220
234
|
get the list of most recent trades for a list of symbols
|
221
235
|
:param str[] symbols: unified symbol of the market to fetch trades for
|
222
236
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -234,7 +248,9 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
234
248
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
235
249
|
"""
|
236
250
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
237
|
-
|
251
|
+
|
252
|
+
https://docs.futures.kraken.com/#websocket-api-public-feeds-book
|
253
|
+
|
238
254
|
:param str symbol: unified symbol of the market to fetch the order book for
|
239
255
|
:param int [limit]: not used by krakenfutures watchOrderBook
|
240
256
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -244,9 +260,13 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
244
260
|
|
245
261
|
async def watch_positions(self, symbols: Strings = None, since: Int = None, limit: Int = None, params={}) -> List[Position]:
|
246
262
|
"""
|
247
|
-
|
263
|
+
|
264
|
+
https://docs.futures.kraken.com/#websocket-api-private-feeds-open-positions
|
265
|
+
|
248
266
|
watch all open positions
|
249
267
|
:param str[]|None symbols: list of unified market symbols
|
268
|
+
@param since
|
269
|
+
@param limit
|
250
270
|
:param dict params: extra parameters specific to the exchange API endpoint
|
251
271
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/en/latest/manual.html#position-structure>`
|
252
272
|
"""
|
@@ -364,8 +384,10 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
364
384
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
365
385
|
"""
|
366
386
|
watches information on multiple orders made by the user
|
367
|
-
|
368
|
-
|
387
|
+
|
388
|
+
https://docs.futures.kraken.com/#websocket-api-private-feeds-open-orders
|
389
|
+
https://docs.futures.kraken.com/#websocket-api-private-feeds-open-orders-verbose
|
390
|
+
|
369
391
|
:param str symbol: not used by krakenfutures watchOrders
|
370
392
|
:param int [since]: not used by krakenfutures watchOrders
|
371
393
|
:param int [limit]: not used by krakenfutures watchOrders
|
@@ -386,7 +408,9 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
386
408
|
async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
387
409
|
"""
|
388
410
|
watches information on multiple trades made by the user
|
389
|
-
|
411
|
+
|
412
|
+
https://docs.futures.kraken.com/#websocket-api-private-feeds-fills
|
413
|
+
|
390
414
|
:param str symbol: unified market symbol of the market orders were made in
|
391
415
|
:param int [since]: the earliest time in ms to fetch orders for
|
392
416
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -406,11 +430,10 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
406
430
|
|
407
431
|
async def watch_balance(self, params={}) -> Balances:
|
408
432
|
"""
|
409
|
-
watches information on
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
:param int [limit]: not used by krakenfutures watchBalance
|
433
|
+
watches information on the user's account balance
|
434
|
+
|
435
|
+
https://docs.futures.kraken.com/#websocket-api-private-feeds-balances
|
436
|
+
|
414
437
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
415
438
|
:param str [params.account]: can be either 'futures' or 'flex_futures'
|
416
439
|
:returns dict} a object of wallet types each with a balance structure {@link https://docs.ccxt.com/#/?id=balance-structure:
|
@@ -1467,8 +1490,8 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
1467
1490
|
|
1468
1491
|
def handle_authenticate(self, client: Client, message):
|
1469
1492
|
"""
|
1470
|
-
|
1471
|
-
|
1493
|
+
@ignore
|
1494
|
+
https://docs.futures.kraken.com/#websocket-api-websocket-api-introduction-sign-challenge-challenge
|
1472
1495
|
"""
|
1473
1496
|
#
|
1474
1497
|
# {
|
ccxt/pro/kucoin.py
CHANGED
@@ -175,7 +175,9 @@ class kucoin(ccxt.async_support.kucoin):
|
|
175
175
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
176
176
|
"""
|
177
177
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
178
|
-
|
178
|
+
|
179
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/market-snapshot
|
180
|
+
|
179
181
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
180
182
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
181
183
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -191,7 +193,9 @@ class kucoin(ccxt.async_support.kucoin):
|
|
191
193
|
|
192
194
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
193
195
|
"""
|
194
|
-
|
196
|
+
|
197
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/ticker
|
198
|
+
|
195
199
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
196
200
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
197
201
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -308,7 +312,9 @@ class kucoin(ccxt.async_support.kucoin):
|
|
308
312
|
|
309
313
|
async def watch_bids_asks(self, symbols: Strings = None, params={}) -> Tickers:
|
310
314
|
"""
|
311
|
-
|
315
|
+
|
316
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level1-bbo-market-data
|
317
|
+
|
312
318
|
watches best bid & ask for symbols
|
313
319
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
314
320
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -390,7 +396,9 @@ class kucoin(ccxt.async_support.kucoin):
|
|
390
396
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
391
397
|
"""
|
392
398
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
393
|
-
|
399
|
+
|
400
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/klines
|
401
|
+
|
394
402
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
395
403
|
:param str timeframe: the length of time each candle represents
|
396
404
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -455,7 +463,9 @@ class kucoin(ccxt.async_support.kucoin):
|
|
455
463
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
456
464
|
"""
|
457
465
|
get the list of most recent trades for a particular symbol
|
458
|
-
|
466
|
+
|
467
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/match-execution-data
|
468
|
+
|
459
469
|
:param str symbol: unified symbol of the market to fetch trades for
|
460
470
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
461
471
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -467,8 +477,10 @@ class kucoin(ccxt.async_support.kucoin):
|
|
467
477
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
468
478
|
"""
|
469
479
|
get the list of most recent trades for a particular symbol
|
470
|
-
|
471
|
-
|
480
|
+
|
481
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/match-execution-data
|
482
|
+
|
483
|
+
:param str[] symbols:
|
472
484
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
473
485
|
:param int [limit]: the maximum amount of trades to fetch
|
474
486
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -499,8 +511,10 @@ class kucoin(ccxt.async_support.kucoin):
|
|
499
511
|
async def un_watch_trades_for_symbols(self, symbols: List[str], params={}) -> Any:
|
500
512
|
"""
|
501
513
|
unWatches trades stream
|
502
|
-
|
503
|
-
|
514
|
+
|
515
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/match-execution-data
|
516
|
+
|
517
|
+
:param str symbols:
|
504
518
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
505
519
|
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=public-trades>`
|
506
520
|
"""
|
@@ -527,7 +541,9 @@ class kucoin(ccxt.async_support.kucoin):
|
|
527
541
|
async def un_watch_trades(self, symbol: str, params={}) -> Any:
|
528
542
|
"""
|
529
543
|
unWatches trades stream
|
530
|
-
|
544
|
+
|
545
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/match-execution-data
|
546
|
+
|
531
547
|
:param str symbol: unified symbol of the market to fetch trades for
|
532
548
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
533
549
|
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=public-trades>`
|
@@ -568,10 +584,12 @@ class kucoin(ccxt.async_support.kucoin):
|
|
568
584
|
|
569
585
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
570
586
|
"""
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
587
|
+
|
588
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level1-bbo-market-data
|
589
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-market-data
|
590
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-5-best-ask-bid-orders
|
591
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-50-best-ask-bid-orders
|
592
|
+
|
575
593
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
576
594
|
:param str symbol: unified symbol of the market to fetch the order book for
|
577
595
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -598,10 +616,12 @@ class kucoin(ccxt.async_support.kucoin):
|
|
598
616
|
|
599
617
|
async def un_watch_order_book(self, symbol: str, params={}) -> Any:
|
600
618
|
"""
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
619
|
+
|
620
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level1-bbo-market-data
|
621
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-market-data
|
622
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-5-best-ask-bid-orders
|
623
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-50-best-ask-bid-orders
|
624
|
+
|
605
625
|
unWatches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
606
626
|
:param str symbol: unified symbol of the market to fetch the order book for
|
607
627
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -612,10 +632,12 @@ class kucoin(ccxt.async_support.kucoin):
|
|
612
632
|
|
613
633
|
async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
|
614
634
|
"""
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
635
|
+
|
636
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level1-bbo-market-data
|
637
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-market-data
|
638
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-5-best-ask-bid-orders
|
639
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-50-best-ask-bid-orders
|
640
|
+
|
619
641
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
620
642
|
:param str[] symbols: unified array of symbols
|
621
643
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -657,13 +679,14 @@ class kucoin(ccxt.async_support.kucoin):
|
|
657
679
|
|
658
680
|
async def un_watch_order_book_for_symbols(self, symbols: List[str], params={}) -> Any:
|
659
681
|
"""
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
682
|
+
|
683
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level1-bbo-market-data
|
684
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-market-data
|
685
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-5-best-ask-bid-orders
|
686
|
+
https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level2-50-best-ask-bid-orders
|
687
|
+
|
664
688
|
unWatches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
665
689
|
:param str[] symbols: unified array of symbols
|
666
|
-
:param int [limit]: the maximum amount of order book entries to return
|
667
690
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
668
691
|
:param str [params.method]: either '/market/level2' or '/spotMarket/level2Depth5' or '/spotMarket/level2Depth50' default is '/market/level2'
|
669
692
|
:returns dict: A dictionary of `order book structures <https://docs.ccxt.com/#/?id=order-book-structure>` indexed by market symbols
|
@@ -867,8 +890,10 @@ class kucoin(ccxt.async_support.kucoin):
|
|
867
890
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
868
891
|
"""
|
869
892
|
watches information on multiple orders made by the user
|
870
|
-
|
871
|
-
|
893
|
+
|
894
|
+
https://www.kucoin.com/docs/websocket/spot-trading/private-channels/private-order-change
|
895
|
+
https://www.kucoin.com/docs/websocket/spot-trading/private-channels/stop-order-event
|
896
|
+
|
872
897
|
:param str symbol: unified market symbol of the market orders were made in
|
873
898
|
:param int [since]: the earliest time in ms to fetch orders for
|
874
899
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1029,7 +1054,9 @@ class kucoin(ccxt.async_support.kucoin):
|
|
1029
1054
|
async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1030
1055
|
"""
|
1031
1056
|
watches information on multiple trades made by the user
|
1032
|
-
|
1057
|
+
|
1058
|
+
https://www.kucoin.com/docs/websocket/spot-trading/private-channels/private-order-change
|
1059
|
+
|
1033
1060
|
:param str symbol: unified market symbol of the market trades were made in
|
1034
1061
|
:param int [since]: the earliest time in ms to fetch trades for
|
1035
1062
|
:param int [limit]: the maximum number of trade structures to retrieve
|
@@ -1176,7 +1203,9 @@ class kucoin(ccxt.async_support.kucoin):
|
|
1176
1203
|
async def watch_balance(self, params={}) -> Balances:
|
1177
1204
|
"""
|
1178
1205
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
1179
|
-
|
1206
|
+
|
1207
|
+
https://www.kucoin.com/docs/websocket/spot-trading/private-channels/account-balance-change
|
1208
|
+
|
1180
1209
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1181
1210
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
1182
1211
|
"""
|
ccxt/pro/kucoinfutures.py
CHANGED
@@ -197,7 +197,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
197
197
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
198
198
|
"""
|
199
199
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
200
|
-
|
200
|
+
|
201
|
+
https://www.kucoin.com/docs/websocket/futures-trading/public-channels/get-ticker
|
202
|
+
|
201
203
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
202
204
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
203
205
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -255,7 +257,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
255
257
|
|
256
258
|
async def watch_bids_asks(self, symbols: Strings = None, params={}) -> Tickers:
|
257
259
|
"""
|
258
|
-
|
260
|
+
|
261
|
+
https://www.kucoin.com/docs/websocket/futures-trading/public-channels/get-ticker-v2
|
262
|
+
|
259
263
|
watches best bid & ask for symbols
|
260
264
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
261
265
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -339,7 +343,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
339
343
|
async def watch_position(self, symbol: Str = None, params={}) -> Position:
|
340
344
|
"""
|
341
345
|
watch open positions for a specific symbol
|
342
|
-
|
346
|
+
|
347
|
+
https://docs.kucoin.com/futures/#position-change-events
|
348
|
+
|
343
349
|
:param str|None symbol: unified market symbol
|
344
350
|
:param dict params: extra parameters specific to the exchange API endpoint
|
345
351
|
:returns dict: a `position structure <https://docs.ccxt.com/en/latest/manual.html#position-structure>`
|
@@ -504,7 +510,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
504
510
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
505
511
|
"""
|
506
512
|
get the list of most recent trades for a particular symbol
|
507
|
-
|
513
|
+
|
514
|
+
https://docs.kucoin.com/futures/#execution-data
|
515
|
+
|
508
516
|
:param str symbol: unified symbol of the market to fetch trades for
|
509
517
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
510
518
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -516,7 +524,7 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
516
524
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
517
525
|
"""
|
518
526
|
get the list of most recent trades for a particular symbol
|
519
|
-
:param str
|
527
|
+
:param str[] symbols:
|
520
528
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
521
529
|
:param int [limit]: the maximum amount of trades to fetch
|
522
530
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -548,7 +556,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
548
556
|
async def un_watch_trades(self, symbol: str, params={}) -> Any:
|
549
557
|
"""
|
550
558
|
unWatches trades stream
|
551
|
-
|
559
|
+
|
560
|
+
https://docs.kucoin.com/futures/#execution-data
|
561
|
+
|
552
562
|
:param str symbol: unified symbol of the market to fetch trades for
|
553
563
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
554
564
|
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=public-trades>`
|
@@ -558,7 +568,7 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
558
568
|
async def un_watch_trades_for_symbols(self, symbols: List[str], params={}) -> Any:
|
559
569
|
"""
|
560
570
|
get the list of most recent trades for a particular symbol
|
561
|
-
:param str
|
571
|
+
:param str[] symbols:
|
562
572
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
563
573
|
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=public-trades>`
|
564
574
|
"""
|
@@ -619,7 +629,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
619
629
|
|
620
630
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
621
631
|
"""
|
622
|
-
|
632
|
+
|
633
|
+
https://www.kucoin.com/docs/websocket/futures-trading/public-channels/klines
|
634
|
+
|
623
635
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
624
636
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
625
637
|
:param str timeframe: the length of time each candle represents
|
@@ -691,13 +703,15 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
691
703
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
692
704
|
"""
|
693
705
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
706
|
+
1. After receiving the websocket Level 2 data flow, cache the data.
|
707
|
+
2. Initiate a REST request to get the snapshot data of Level 2 order book.
|
708
|
+
3. Playback the cached Level 2 data flow.
|
709
|
+
4. Apply the new Level 2 data flow to the local snapshot to ensure that the sequence of the new Level 2 update lines up with the sequence of the previous Level 2 data. Discard all the message prior to that sequence, and then playback the change to snapshot.
|
710
|
+
5. Update the level2 full data based on sequence according to the size. If the price is 0, ignore the messages and update the sequence. If the size=0, update the sequence and remove the price of which the size is 0 out of level 2. For other cases, please update the price.
|
711
|
+
6. If the sequence of the newly pushed message does not line up to the sequence of the last message, you could pull through REST Level 2 message request to get the updated messages. Please note that the difference between the start and end parameters cannot exceed 500.
|
712
|
+
|
713
|
+
https://docs.kucoin.com/futures/#level-2-market-data
|
714
|
+
|
701
715
|
:param str symbol: unified symbol of the market to fetch the order book for
|
702
716
|
:param int [limit]: the maximum amount of order book entries to return
|
703
717
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -708,7 +722,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
708
722
|
async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
|
709
723
|
"""
|
710
724
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
711
|
-
|
725
|
+
|
726
|
+
https://docs.kucoin.com/futures/#level-2-market-data
|
727
|
+
|
712
728
|
:param str[] symbols: unified array of symbols
|
713
729
|
:param int [limit]: the maximum amount of order book entries to return
|
714
730
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -741,7 +757,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
741
757
|
async def un_watch_order_book(self, symbol: str, params={}) -> Any:
|
742
758
|
"""
|
743
759
|
unWatches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
744
|
-
|
760
|
+
|
761
|
+
https://docs.kucoin.com/futures/#level-2-market-data
|
762
|
+
|
745
763
|
:param str symbol: unified symbol of the market to fetch the order book for
|
746
764
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
747
765
|
:returns dict: A dictionary of `order book structures <https://docs.ccxt.com/#/?id=order-book-structure>` indexed by market symbols
|
@@ -879,7 +897,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
879
897
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
880
898
|
"""
|
881
899
|
watches information on multiple orders made by the user
|
882
|
-
|
900
|
+
|
901
|
+
https://docs.kucoin.com/futures/#trade-orders-according-to-the-market
|
902
|
+
|
883
903
|
:param str symbol: unified market symbol of the market orders were made in
|
884
904
|
:param int [since]: the earliest time in ms to fetch orders for
|
885
905
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -995,7 +1015,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
995
1015
|
async def watch_balance(self, params={}) -> Balances:
|
996
1016
|
"""
|
997
1017
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
998
|
-
|
1018
|
+
|
1019
|
+
https://docs.kucoin.com/futures/#account-balance-events
|
1020
|
+
|
999
1021
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1000
1022
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
1001
1023
|
"""
|
ccxt/pro/lbank.py
CHANGED
@@ -67,7 +67,9 @@ class lbank(ccxt.async_support.lbank):
|
|
67
67
|
|
68
68
|
async def fetch_ohlcv_ws(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
69
69
|
"""
|
70
|
-
|
70
|
+
|
71
|
+
https://www.lbank.com/en-US/docs/index.html#request-amp-subscription-instruction
|
72
|
+
|
71
73
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
72
74
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
73
75
|
:param str timeframe: the length of time each candle represents
|
@@ -99,7 +101,9 @@ class lbank(ccxt.async_support.lbank):
|
|
99
101
|
|
100
102
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
101
103
|
"""
|
102
|
-
|
104
|
+
|
105
|
+
https://www.lbank.com/en-US/docs/index.html#subscription-of-k-line-data
|
106
|
+
|
103
107
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
104
108
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
105
109
|
:param str timeframe: the length of time each candle represents
|
@@ -230,7 +234,9 @@ class lbank(ccxt.async_support.lbank):
|
|
230
234
|
|
231
235
|
async def fetch_ticker_ws(self, symbol: str, params={}) -> Ticker:
|
232
236
|
"""
|
233
|
-
|
237
|
+
|
238
|
+
https://www.lbank.com/en-US/docs/index.html#request-amp-subscription-instruction
|
239
|
+
|
234
240
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
235
241
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
236
242
|
:param dict [params]: extra parameters specific to the cex api endpoint
|
@@ -251,7 +257,9 @@ class lbank(ccxt.async_support.lbank):
|
|
251
257
|
|
252
258
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
253
259
|
"""
|
254
|
-
|
260
|
+
|
261
|
+
https://www.lbank.com/en-US/docs/index.html#market
|
262
|
+
|
255
263
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
256
264
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
257
265
|
:param dict params: extra parameters specific to the lbank api endpoint
|
@@ -353,7 +361,9 @@ class lbank(ccxt.async_support.lbank):
|
|
353
361
|
async def fetch_trades_ws(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
354
362
|
"""
|
355
363
|
get the list of most recent trades for a particular symbol
|
356
|
-
|
364
|
+
|
365
|
+
https://www.lbank.com/en-US/docs/index.html#request-amp-subscription-instruction
|
366
|
+
|
357
367
|
:param str symbol: unified symbol of the market to fetch trades for
|
358
368
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
359
369
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -378,7 +388,9 @@ class lbank(ccxt.async_support.lbank):
|
|
378
388
|
|
379
389
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
380
390
|
"""
|
381
|
-
|
391
|
+
|
392
|
+
https://www.lbank.com/en-US/docs/index.html#trade-record
|
393
|
+
|
382
394
|
get the list of most recent trades for a particular symbol
|
383
395
|
:param str symbol: unified symbol of the market to fetch trades for
|
384
396
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -483,7 +495,9 @@ class lbank(ccxt.async_support.lbank):
|
|
483
495
|
|
484
496
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
485
497
|
"""
|
486
|
-
|
498
|
+
|
499
|
+
https://www.lbank.com/en-US/docs/index.html#update-subscribed-orders
|
500
|
+
|
487
501
|
get the list of trades associated with the user
|
488
502
|
:param str [symbol]: unified symbol of the market to fetch trades for
|
489
503
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -640,7 +654,9 @@ class lbank(ccxt.async_support.lbank):
|
|
640
654
|
|
641
655
|
async def fetch_order_book_ws(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
642
656
|
"""
|
643
|
-
|
657
|
+
|
658
|
+
https://www.lbank.com/en-US/docs/index.html#request-amp-subscription-instruction
|
659
|
+
|
644
660
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
645
661
|
:param str symbol: unified symbol of the market to fetch the order book for
|
646
662
|
:param int|None limit: the maximum amount of order book entries to return
|
@@ -665,7 +681,9 @@ class lbank(ccxt.async_support.lbank):
|
|
665
681
|
|
666
682
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
667
683
|
"""
|
668
|
-
|
684
|
+
|
685
|
+
https://www.lbank.com/en-US/docs/index.html#market-depth
|
686
|
+
|
669
687
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
670
688
|
:param str symbol: unified symbol of the market to fetch the order book for
|
671
689
|
:param int|None limit: the maximum amount of order book entries to return
|
ccxt/pro/luno.py
CHANGED
@@ -42,7 +42,9 @@ class luno(ccxt.async_support.luno):
|
|
42
42
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
43
43
|
"""
|
44
44
|
get the list of most recent trades for a particular symbol
|
45
|
-
|
45
|
+
|
46
|
+
https://www.luno.com/en/developers/api#tag/Streaming-API
|
47
|
+
|
46
48
|
:param str symbol: unified symbol of the market to fetch trades for
|
47
49
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
48
50
|
:param int [limit]: the maximum amount of trades to fetch
|