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/cex.py
CHANGED
@@ -62,7 +62,9 @@ class cex(ccxt.async_support.cex):
|
|
62
62
|
async def watch_balance(self, params={}) -> Balances:
|
63
63
|
"""
|
64
64
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
65
|
-
|
65
|
+
|
66
|
+
https://cex.io/websocket-api#get-balance
|
67
|
+
|
66
68
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
67
69
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
68
70
|
"""
|
@@ -119,7 +121,9 @@ class cex(ccxt.async_support.cex):
|
|
119
121
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
120
122
|
"""
|
121
123
|
get the list of most recent trades for a particular symbol. Note: can only watch one symbol at a time.
|
122
|
-
|
124
|
+
|
125
|
+
https://cex.io/websocket-api#old-pair-room
|
126
|
+
|
123
127
|
:param str symbol: unified symbol of the market to fetch trades for
|
124
128
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
125
129
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -236,7 +240,9 @@ class cex(ccxt.async_support.cex):
|
|
236
240
|
|
237
241
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
238
242
|
"""
|
239
|
-
|
243
|
+
|
244
|
+
https://cex.io/websocket-api#ticker-subscription
|
245
|
+
|
240
246
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
241
247
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
242
248
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -271,7 +277,9 @@ class cex(ccxt.async_support.cex):
|
|
271
277
|
|
272
278
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
273
279
|
"""
|
274
|
-
|
280
|
+
|
281
|
+
https://cex.io/websocket-api#ticker-subscription
|
282
|
+
|
275
283
|
watches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
276
284
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
277
285
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -300,7 +308,9 @@ class cex(ccxt.async_support.cex):
|
|
300
308
|
|
301
309
|
async def fetch_ticker_ws(self, symbol: str, params={}) -> Ticker:
|
302
310
|
"""
|
303
|
-
|
311
|
+
|
312
|
+
https://docs.cex.io/#ws-api-ticker-deprecated
|
313
|
+
|
304
314
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
305
315
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
306
316
|
:param dict [params]: extra parameters specific to the cex api endpoint
|
@@ -405,7 +415,9 @@ class cex(ccxt.async_support.cex):
|
|
405
415
|
|
406
416
|
async def fetch_balance_ws(self, params={}) -> Balances:
|
407
417
|
"""
|
408
|
-
|
418
|
+
|
419
|
+
https://docs.cex.io/#ws-api-get-balance
|
420
|
+
|
409
421
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
410
422
|
:param dict [params]: extra parameters specific to the cex api endpoint
|
411
423
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
@@ -423,7 +435,9 @@ class cex(ccxt.async_support.cex):
|
|
423
435
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
424
436
|
"""
|
425
437
|
get the list of orders associated with the user. Note: In CEX.IO system, orders can be present in trade engine or in archive database. There can be time periods(~2 seconds or more), when order is done/canceled, but still not moved to archive database. That means, you cannot see it using calls: archived-orders/open-orders.
|
426
|
-
|
438
|
+
|
439
|
+
https://docs.cex.io/#ws-api-open-orders
|
440
|
+
|
427
441
|
:param str symbol: unified symbol of the market to fetch trades for
|
428
442
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
429
443
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -457,7 +471,9 @@ class cex(ccxt.async_support.cex):
|
|
457
471
|
async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
458
472
|
"""
|
459
473
|
get the list of trades associated with the user. Note: In CEX.IO system, orders can be present in trade engine or in archive database. There can be time periods(~2 seconds or more), when order is done/canceled, but still not moved to archive database. That means, you cannot see it using calls: archived-orders/open-orders.
|
460
|
-
|
474
|
+
|
475
|
+
https://docs.cex.io/#ws-api-open-orders
|
476
|
+
|
461
477
|
:param str symbol: unified symbol of the market to fetch trades for
|
462
478
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
463
479
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -869,7 +885,9 @@ class cex(ccxt.async_support.cex):
|
|
869
885
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
870
886
|
"""
|
871
887
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
872
|
-
|
888
|
+
|
889
|
+
https://cex.io/websocket-api#orderbook-subscribe
|
890
|
+
|
873
891
|
:param str symbol: unified symbol of the market to fetch the order book for
|
874
892
|
:param int [limit]: the maximum amount of order book entries to return
|
875
893
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -990,7 +1008,9 @@ class cex(ccxt.async_support.cex):
|
|
990
1008
|
|
991
1009
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
992
1010
|
"""
|
993
|
-
|
1011
|
+
|
1012
|
+
https://cex.io/websocket-api#minute-data
|
1013
|
+
|
994
1014
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market. It will return the last 120 minutes with the selected timeframe and then 1m candle updates after that.
|
995
1015
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
996
1016
|
:param str timeframe: the length of time each candle represents.
|
@@ -1129,7 +1149,9 @@ class cex(ccxt.async_support.cex):
|
|
1129
1149
|
async def fetch_order_ws(self, id: str, symbol: Str = None, params={}):
|
1130
1150
|
"""
|
1131
1151
|
fetches information on an order made by the user
|
1132
|
-
|
1152
|
+
|
1153
|
+
https://docs.cex.io/#ws-api-get-order
|
1154
|
+
|
1133
1155
|
:param str id: the order id
|
1134
1156
|
:param str symbol: not used by cex fetchOrder
|
1135
1157
|
:param dict [params]: extra parameters specific to the cex api endpoint
|
@@ -1155,7 +1177,9 @@ class cex(ccxt.async_support.cex):
|
|
1155
1177
|
|
1156
1178
|
async def fetch_open_orders_ws(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1157
1179
|
"""
|
1158
|
-
|
1180
|
+
|
1181
|
+
https://docs.cex.io/#ws-api-open-orders
|
1182
|
+
|
1159
1183
|
fetch all unfilled currently open orders
|
1160
1184
|
:param str symbol: unified market symbol
|
1161
1185
|
:param int [since]: the earliest time in ms to fetch open orders for
|
@@ -1183,7 +1207,9 @@ class cex(ccxt.async_support.cex):
|
|
1183
1207
|
|
1184
1208
|
async def create_order_ws(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}) -> Order:
|
1185
1209
|
"""
|
1186
|
-
|
1210
|
+
|
1211
|
+
https://docs.cex.io/#ws-api-order-placement
|
1212
|
+
|
1187
1213
|
create a trade order
|
1188
1214
|
:param str symbol: unified symbol of the market to create an order in
|
1189
1215
|
:param str type: 'market' or 'limit'
|
@@ -1218,7 +1244,9 @@ class cex(ccxt.async_support.cex):
|
|
1218
1244
|
async def edit_order_ws(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}) -> Order:
|
1219
1245
|
"""
|
1220
1246
|
edit a trade order
|
1221
|
-
|
1247
|
+
|
1248
|
+
https://docs.cex.io/#ws-api-cancel-replace
|
1249
|
+
|
1222
1250
|
:param str id: order id
|
1223
1251
|
:param str symbol: unified symbol of the market to create an order in
|
1224
1252
|
:param str type: 'market' or 'limit'
|
@@ -1254,7 +1282,9 @@ class cex(ccxt.async_support.cex):
|
|
1254
1282
|
|
1255
1283
|
async def cancel_order_ws(self, id: str, symbol: Str = None, params={}):
|
1256
1284
|
"""
|
1257
|
-
|
1285
|
+
|
1286
|
+
https://docs.cex.io/#ws-api-order-cancel
|
1287
|
+
|
1258
1288
|
cancels an open order
|
1259
1289
|
:param str id: order id
|
1260
1290
|
:param str symbol: not used by cex cancelOrder()
|
@@ -1282,7 +1312,9 @@ class cex(ccxt.async_support.cex):
|
|
1282
1312
|
async def cancel_orders_ws(self, ids: List[str], symbol: Str = None, params={}):
|
1283
1313
|
"""
|
1284
1314
|
cancel multiple orders
|
1285
|
-
|
1315
|
+
|
1316
|
+
https://docs.cex.io/#ws-api-mass-cancel-place
|
1317
|
+
|
1286
1318
|
:param str[] ids: order ids
|
1287
1319
|
:param str symbol: not used by cex cancelOrders()
|
1288
1320
|
:param dict [params]: extra parameters specific to the cex api endpoint
|
ccxt/pro/coinbase.py
CHANGED
@@ -56,11 +56,14 @@ class coinbase(ccxt.async_support.coinbase):
|
|
56
56
|
|
57
57
|
async def subscribe(self, name: str, isPrivate: bool, symbol=None, params={}):
|
58
58
|
"""
|
59
|
-
|
59
|
+
@ignore
|
60
60
|
subscribes to a websocket channel
|
61
|
-
|
61
|
+
|
62
|
+
https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-overview#subscribe
|
63
|
+
|
62
64
|
:param str name: the name of the channel
|
63
|
-
:param
|
65
|
+
:param boolean isPrivate: whether the channel is private or not
|
66
|
+
:param str [symbol]: unified market symbol
|
64
67
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
65
68
|
:returns dict: subscription to a websocket channel
|
66
69
|
"""
|
@@ -92,10 +95,13 @@ class coinbase(ccxt.async_support.coinbase):
|
|
92
95
|
|
93
96
|
async def subscribe_multiple(self, name: str, isPrivate: bool, symbols: Strings = None, params={}):
|
94
97
|
"""
|
95
|
-
|
98
|
+
@ignore
|
96
99
|
subscribes to a websocket channel
|
97
|
-
|
100
|
+
|
101
|
+
https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-overview#subscribe
|
102
|
+
|
98
103
|
:param str name: the name of the channel
|
104
|
+
:param boolean isPrivate: whether the channel is private or not
|
99
105
|
:param str[] [symbols]: unified market symbol
|
100
106
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
101
107
|
:returns dict: subscription to a websocket channel
|
@@ -147,7 +153,9 @@ class coinbase(ccxt.async_support.coinbase):
|
|
147
153
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
148
154
|
"""
|
149
155
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
150
|
-
|
156
|
+
|
157
|
+
https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#ticker-channel
|
158
|
+
|
151
159
|
:param str [symbol]: unified symbol of the market to fetch the ticker for
|
152
160
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
153
161
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -158,7 +166,9 @@ class coinbase(ccxt.async_support.coinbase):
|
|
158
166
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
159
167
|
"""
|
160
168
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
161
|
-
|
169
|
+
|
170
|
+
https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#ticker-batch-channel
|
171
|
+
|
162
172
|
:param str[] [symbols]: unified symbol of the market to fetch the ticker for
|
163
173
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
164
174
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -345,7 +355,9 @@ class coinbase(ccxt.async_support.coinbase):
|
|
345
355
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
346
356
|
"""
|
347
357
|
get the list of most recent trades for a particular symbol
|
348
|
-
|
358
|
+
|
359
|
+
https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#market-trades-channel
|
360
|
+
|
349
361
|
:param str symbol: unified symbol of the market to fetch trades for
|
350
362
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
351
363
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -363,7 +375,9 @@ class coinbase(ccxt.async_support.coinbase):
|
|
363
375
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
364
376
|
"""
|
365
377
|
get the list of most recent trades for a particular symbol
|
366
|
-
|
378
|
+
|
379
|
+
https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#market-trades-channel
|
380
|
+
|
367
381
|
:param str[] symbols: unified symbol of the market to fetch trades for
|
368
382
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
369
383
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -382,7 +396,9 @@ class coinbase(ccxt.async_support.coinbase):
|
|
382
396
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
383
397
|
"""
|
384
398
|
watches information on multiple orders made by the user
|
385
|
-
|
399
|
+
|
400
|
+
https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#user-channel
|
401
|
+
|
386
402
|
:param str [symbol]: unified market symbol of the market orders were made in
|
387
403
|
:param int [since]: the earliest time in ms to fetch orders for
|
388
404
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -399,7 +415,9 @@ class coinbase(ccxt.async_support.coinbase):
|
|
399
415
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
400
416
|
"""
|
401
417
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
402
|
-
|
418
|
+
|
419
|
+
https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#level2-channel
|
420
|
+
|
403
421
|
:param str symbol: unified symbol of the market to fetch the order book for
|
404
422
|
:param int [limit]: the maximum amount of order book entries to return
|
405
423
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -415,7 +433,9 @@ class coinbase(ccxt.async_support.coinbase):
|
|
415
433
|
async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
|
416
434
|
"""
|
417
435
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
418
|
-
|
436
|
+
|
437
|
+
https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#level2-channel
|
438
|
+
|
419
439
|
:param str[] symbols: unified array of symbols
|
420
440
|
:param int [limit]: the maximum amount of order book entries to return
|
421
441
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/pro/coinbaseexchange.py
CHANGED
@@ -163,7 +163,7 @@ class coinbaseexchange(ccxt.async_support.coinbaseexchange):
|
|
163
163
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
164
164
|
"""
|
165
165
|
get the list of most recent trades for a particular symbol
|
166
|
-
:param str
|
166
|
+
:param str[] symbols: unified symbol of the market to fetch trades for
|
167
167
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
168
168
|
:param int [limit]: the maximum amount of trades to fetch
|
169
169
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -76,9 +76,11 @@ class coinbaseinternational(ccxt.async_support.coinbaseinternational):
|
|
76
76
|
|
77
77
|
async def subscribe(self, name: str, symbols: Strings = None, params={}):
|
78
78
|
"""
|
79
|
-
|
79
|
+
@ignore
|
80
80
|
subscribes to a websocket channel
|
81
|
-
|
81
|
+
|
82
|
+
https://docs.cloud.coinbase.com/intx/docs/websocket-overview#subscribe
|
83
|
+
|
82
84
|
:param str name: the name of the channel
|
83
85
|
:param str[] [symbols]: unified market symbol
|
84
86
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -127,11 +129,13 @@ class coinbaseinternational(ccxt.async_support.coinbaseinternational):
|
|
127
129
|
|
128
130
|
async def subscribe_multiple(self, name: str, symbols: Strings = None, params={}):
|
129
131
|
"""
|
130
|
-
|
132
|
+
@ignore
|
131
133
|
subscribes to a websocket channel using watchMultiple
|
132
|
-
|
134
|
+
|
135
|
+
https://docs.cloud.coinbase.com/intx/docs/websocket-overview#subscribe
|
136
|
+
|
133
137
|
:param str name: the name of the channel
|
134
|
-
:param string|str[] [
|
138
|
+
:param string|str[] [symbols]: unified market symbol
|
135
139
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
136
140
|
:returns dict: subscription to a websocket channel
|
137
141
|
"""
|
@@ -168,7 +172,9 @@ class coinbaseinternational(ccxt.async_support.coinbaseinternational):
|
|
168
172
|
async def watch_funding_rate(self, symbol: str, params={}) -> FundingRate:
|
169
173
|
"""
|
170
174
|
watch the current funding rate
|
171
|
-
|
175
|
+
|
176
|
+
https://docs.cloud.coinbase.com/intx/docs/websocket-channels#funding-channel
|
177
|
+
|
172
178
|
:param str symbol: unified market symbol
|
173
179
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
174
180
|
:returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -179,7 +185,9 @@ class coinbaseinternational(ccxt.async_support.coinbaseinternational):
|
|
179
185
|
async def watch_funding_rates(self, symbols: List[str], params={}) -> FundingRates:
|
180
186
|
"""
|
181
187
|
watch the funding rate for multiple markets
|
182
|
-
|
188
|
+
|
189
|
+
https://docs.cloud.coinbase.com/intx/docs/websocket-channels#funding-channel
|
190
|
+
|
183
191
|
:param str[]|None symbols: list of unified market symbols
|
184
192
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
185
193
|
:returns dict: a dictionary of `funding rates structures <https://docs.ccxt.com/#/?id=funding-rates-structure>`, indexe by market symbols
|
@@ -196,7 +204,9 @@ class coinbaseinternational(ccxt.async_support.coinbaseinternational):
|
|
196
204
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
197
205
|
"""
|
198
206
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
199
|
-
|
207
|
+
|
208
|
+
https://docs.cloud.coinbase.com/intx/docs/websocket-channels#instruments-channel
|
209
|
+
|
200
210
|
:param str [symbol]: unified symbol of the market to fetch the ticker for
|
201
211
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
202
212
|
:param str [params.channel]: the channel to watch, 'LEVEL1' or 'INSTRUMENTS', default is 'LEVEL1'
|
@@ -220,7 +230,9 @@ class coinbaseinternational(ccxt.async_support.coinbaseinternational):
|
|
220
230
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
221
231
|
"""
|
222
232
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
223
|
-
|
233
|
+
|
234
|
+
https://docs.cloud.coinbase.com/intx/docs/websocket-channels#instruments-channel
|
235
|
+
|
224
236
|
:param str[] [symbols]: unified symbol of the market to fetch the ticker for
|
225
237
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
226
238
|
:param str [params.channel]: the channel to watch, 'LEVEL1' or 'INSTRUMENTS', default is 'INSTLEVEL1UMENTS'
|
@@ -418,7 +430,9 @@ class coinbaseinternational(ccxt.async_support.coinbaseinternational):
|
|
418
430
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
419
431
|
"""
|
420
432
|
watches historical candlestick data containing the open, high, low, close price, and the volume of a market
|
421
|
-
|
433
|
+
|
434
|
+
https://docs.cdp.coinbase.com/intx/docs/websocket-channels#candles-channel
|
435
|
+
|
422
436
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
423
437
|
:param str timeframe: the length of time each candle represents
|
424
438
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -475,7 +489,9 @@ class coinbaseinternational(ccxt.async_support.coinbaseinternational):
|
|
475
489
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
476
490
|
"""
|
477
491
|
get the list of most recent trades for a particular symbol
|
478
|
-
|
492
|
+
|
493
|
+
https://docs.cloud.coinbase.com/intx/docs/websocket-channels#match-channel
|
494
|
+
|
479
495
|
:param str symbol: unified symbol of the market to fetch trades for
|
480
496
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
481
497
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -564,7 +580,9 @@ class coinbaseinternational(ccxt.async_support.coinbaseinternational):
|
|
564
580
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
565
581
|
"""
|
566
582
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
567
|
-
|
583
|
+
|
584
|
+
https://docs.cloud.coinbase.com/intx/docs/websocket-channels#level2-channel
|
585
|
+
|
568
586
|
:param str symbol: unified symbol of the market to fetch the order book for
|
569
587
|
:param int [limit]: the maximum amount of order book entries to return
|
570
588
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -575,8 +593,10 @@ class coinbaseinternational(ccxt.async_support.coinbaseinternational):
|
|
575
593
|
async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
|
576
594
|
"""
|
577
595
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
578
|
-
|
579
|
-
|
596
|
+
|
597
|
+
https://docs.cloud.coinbase.com/intx/docs/websocket-channels#level2-channel
|
598
|
+
|
599
|
+
:param str[] symbols:
|
580
600
|
:param int [limit]: the maximum amount of order book entries to return
|
581
601
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
582
602
|
:returns dict: A dictionary of `order book structures <https://docs.ccxt.com/#/?id=order-book-structure>` indexed by market symbols
|
ccxt/pro/coincatch.py
CHANGED
@@ -231,7 +231,9 @@ class coincatch(ccxt.async_support.coincatch):
|
|
231
231
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
232
232
|
"""
|
233
233
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
234
|
-
|
234
|
+
|
235
|
+
https://coincatch.github.io/github.io/en/spot/#tickers-channel
|
236
|
+
|
235
237
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
236
238
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
237
239
|
:param str [params.instType]: the type of the instrument to fetch the ticker for, 'SP' for spot markets, 'MC' for futures markets(default is 'SP')
|
@@ -252,8 +254,11 @@ class coincatch(ccxt.async_support.coincatch):
|
|
252
254
|
async def un_watch_ticker(self, symbol: str, params={}) -> Any:
|
253
255
|
"""
|
254
256
|
unsubscribe from the ticker channel
|
255
|
-
|
257
|
+
|
258
|
+
https://coincatch.github.io/github.io/en/mix/#tickers-channel
|
259
|
+
|
256
260
|
:param str symbol: unified symbol of the market to unwatch the ticker for
|
261
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
257
262
|
:returns any: status of the unwatch request
|
258
263
|
"""
|
259
264
|
await self.load_markets()
|
@@ -262,7 +267,9 @@ class coincatch(ccxt.async_support.coincatch):
|
|
262
267
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
263
268
|
"""
|
264
269
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
265
|
-
|
270
|
+
|
271
|
+
https://coincatch.github.io/github.io/en/mix/#tickers-channel
|
272
|
+
|
266
273
|
:param str[] symbols: unified symbol of the market to watch the tickers for
|
267
274
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
268
275
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -405,7 +412,9 @@ class coincatch(ccxt.async_support.coincatch):
|
|
405
412
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
406
413
|
"""
|
407
414
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
408
|
-
|
415
|
+
|
416
|
+
https://coincatch.github.io/github.io/en/spot/#candlesticks-channel
|
417
|
+
|
409
418
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
410
419
|
:param str timeframe: the length of time each candle represents
|
411
420
|
:param int [since]: timestamp in ms of the earliest candle to fetch(not including)
|
@@ -433,8 +442,12 @@ class coincatch(ccxt.async_support.coincatch):
|
|
433
442
|
async def un_watch_ohlcv(self, symbol: str, timeframe='1m', params={}) -> Any:
|
434
443
|
"""
|
435
444
|
unsubscribe from the ohlcv channel
|
436
|
-
|
445
|
+
|
446
|
+
https://www.bitget.com/api-doc/spot/websocket/public/Candlesticks-Channel
|
447
|
+
|
437
448
|
:param str symbol: unified symbol of the market to unwatch the ohlcv for
|
449
|
+
@param timeframe
|
450
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
438
451
|
:returns dict: A dictionary of `order book structures <https://docs.ccxt.com/#/?id=order-book-structure>` indexed by market symbols
|
439
452
|
"""
|
440
453
|
await self.load_markets()
|
@@ -508,7 +521,9 @@ class coincatch(ccxt.async_support.coincatch):
|
|
508
521
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
509
522
|
"""
|
510
523
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
511
|
-
|
524
|
+
|
525
|
+
https://coincatch.github.io/github.io/en/spot/#depth-channel
|
526
|
+
|
512
527
|
:param str symbol: unified symbol of the market to fetch the order book for
|
513
528
|
:param int [limit]: the maximum amount of order book entries to return
|
514
529
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -519,8 +534,11 @@ class coincatch(ccxt.async_support.coincatch):
|
|
519
534
|
async def un_watch_order_book(self, symbol: str, params={}) -> Any:
|
520
535
|
"""
|
521
536
|
unsubscribe from the orderbook channel
|
522
|
-
|
537
|
+
|
538
|
+
https://coincatch.github.io/github.io/en/spot/#depth-channel
|
539
|
+
|
523
540
|
:param str symbol: unified symbol of the market to fetch the order book for
|
541
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
524
542
|
:param int [params.limit]: orderbook limit, default is None
|
525
543
|
:returns dict: A dictionary of `order book structures <https://docs.ccxt.com/#/?id=order-book-structure>` indexed by market symbols
|
526
544
|
"""
|
@@ -535,8 +553,10 @@ class coincatch(ccxt.async_support.coincatch):
|
|
535
553
|
async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
|
536
554
|
"""
|
537
555
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
538
|
-
|
539
|
-
|
556
|
+
|
557
|
+
https://coincatch.github.io/github.io/en/spot/#depth-channel
|
558
|
+
|
559
|
+
@param symbols
|
540
560
|
:param int [limit]: the maximum amount of order book entries to return
|
541
561
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
542
562
|
:returns dict: A dictionary of `order book structures <https://docs.ccxt.com/#/?id=order-book-structure>` indexed by market symbols
|
@@ -646,7 +666,9 @@ class coincatch(ccxt.async_support.coincatch):
|
|
646
666
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
647
667
|
"""
|
648
668
|
get the list of most recent trades for a particular symbol
|
649
|
-
|
669
|
+
|
670
|
+
https://coincatch.github.io/github.io/en/spot/#trades-channel
|
671
|
+
|
650
672
|
:param str symbol: unified symbol of the market to fetch trades for
|
651
673
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
652
674
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -658,8 +680,10 @@ class coincatch(ccxt.async_support.coincatch):
|
|
658
680
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
659
681
|
"""
|
660
682
|
watches information on multiple trades made in a market
|
661
|
-
|
662
|
-
|
683
|
+
|
684
|
+
https://coincatch.github.io/github.io/en/spot/#trades-channel
|
685
|
+
|
686
|
+
@param symbols
|
663
687
|
:param int [since]: the earliest time in ms to fetch orders for
|
664
688
|
:param int [limit]: the maximum number of trade structures to retrieve
|
665
689
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -693,8 +717,11 @@ class coincatch(ccxt.async_support.coincatch):
|
|
693
717
|
async def un_watch_trades(self, symbol: str, params={}) -> Any:
|
694
718
|
"""
|
695
719
|
unsubscribe from the trades channel
|
696
|
-
|
720
|
+
|
721
|
+
https://coincatch.github.io/github.io/en/spot/#trades-channel
|
722
|
+
|
697
723
|
:param str symbol: unified symbol of the market to unwatch the trades for
|
724
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
698
725
|
:returns any: status of the unwatch request
|
699
726
|
"""
|
700
727
|
await self.load_markets()
|
@@ -759,8 +786,10 @@ class coincatch(ccxt.async_support.coincatch):
|
|
759
786
|
async def watch_balance(self, params={}) -> Balances:
|
760
787
|
"""
|
761
788
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
762
|
-
|
763
|
-
|
789
|
+
|
790
|
+
https://coincatch.github.io/github.io/en/spot/#account-channel
|
791
|
+
https://coincatch.github.io/github.io/en/mix/#account-channel
|
792
|
+
|
764
793
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
765
794
|
:param str [params.type]: 'spot' or 'swap'(default is 'spot')
|
766
795
|
:param str [params.instType]: *swap only* 'umcbl' or 'dmcbl'(default is 'umcbl')
|
@@ -838,9 +867,11 @@ class coincatch(ccxt.async_support.coincatch):
|
|
838
867
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
839
868
|
"""
|
840
869
|
watches information on multiple orders made by the user
|
841
|
-
|
842
|
-
|
843
|
-
|
870
|
+
|
871
|
+
https://coincatch.github.io/github.io/en/spot/#order-channel
|
872
|
+
https://coincatch.github.io/github.io/en/mix/#order-channel
|
873
|
+
https://coincatch.github.io/github.io/en/mix/#plan-order-channel
|
874
|
+
|
844
875
|
:param str symbol: unified market symbol of the market orders were made in
|
845
876
|
:param int [since]: the earliest time in ms to fetch orders for
|
846
877
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1079,8 +1110,12 @@ class coincatch(ccxt.async_support.coincatch):
|
|
1079
1110
|
async def watch_positions(self, symbols: Strings = None, since: Int = None, limit: Int = None, params={}) -> List[Position]:
|
1080
1111
|
"""
|
1081
1112
|
watch all open positions
|
1082
|
-
|
1113
|
+
|
1114
|
+
https://coincatch.github.io/github.io/en/mix/#positions-channel
|
1115
|
+
|
1083
1116
|
:param str[]|None symbols: list of unified market symbols
|
1117
|
+
@param since
|
1118
|
+
@param limit
|
1084
1119
|
:param dict params: extra parameters specific to the exchange API endpoint
|
1085
1120
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/en/latest/manual.html#position-structure>`
|
1086
1121
|
"""
|
ccxt/pro/coincheck.py
CHANGED
@@ -51,7 +51,9 @@ class coincheck(ccxt.async_support.coincheck):
|
|
51
51
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
52
52
|
"""
|
53
53
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
54
|
-
|
54
|
+
|
55
|
+
https://coincheck.com/documents/exchange/api#websocket-order-book
|
56
|
+
|
55
57
|
:param str symbol: unified symbol of the market to fetch the order book for
|
56
58
|
:param int [limit]: the maximum amount of order book entries to return
|
57
59
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -107,7 +109,9 @@ class coincheck(ccxt.async_support.coincheck):
|
|
107
109
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
108
110
|
"""
|
109
111
|
watches information on multiple trades made in a market
|
110
|
-
|
112
|
+
|
113
|
+
https://coincheck.com/documents/exchange/api#websocket-trades
|
114
|
+
|
111
115
|
:param str symbol: unified market symbol of the market trades were made in
|
112
116
|
:param int [since]: the earliest time in ms to fetch trades for
|
113
117
|
:param int [limit]: the maximum number of trade structures to retrieve
|