ccxt 4.0.75__py2.py3-none-any.whl → 4.0.77__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.
Potentially problematic release.
This version of ccxt might be problematic. Click here for more details.
- ccxt/__init__.py +1 -1
- ccxt/abstract/bingx.py +2 -0
- ccxt/abstract/coinsph.py +5 -0
- ccxt/abstract/gate.py +24 -0
- ccxt/abstract/gateio.py +24 -0
- ccxt/ace.py +2 -2
- ccxt/alpaca.py +1 -1
- ccxt/ascendex.py +3 -3
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +2 -2
- ccxt/async_support/alpaca.py +1 -1
- ccxt/async_support/ascendex.py +3 -3
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/bigone.py +2 -2
- ccxt/async_support/binance.py +5 -5
- ccxt/async_support/bingx.py +72 -21
- ccxt/async_support/bit2c.py +2 -2
- ccxt/async_support/bitbank.py +2 -2
- ccxt/async_support/bitbns.py +2 -2
- ccxt/async_support/bitfinex.py +2 -2
- ccxt/async_support/bitfinex2.py +4 -4
- ccxt/async_support/bitflyer.py +2 -2
- ccxt/async_support/bitforex.py +2 -2
- ccxt/async_support/bitget.py +5 -5
- ccxt/async_support/bithumb.py +2 -2
- ccxt/async_support/bitmart.py +2 -2
- ccxt/async_support/bitmex.py +5 -5
- ccxt/async_support/bitopro.py +3 -3
- ccxt/async_support/bitpanda.py +2 -2
- ccxt/async_support/bitrue.py +3 -3
- ccxt/async_support/bitso.py +2 -2
- ccxt/async_support/bitstamp.py +2 -2
- ccxt/async_support/bitstamp1.py +2 -2
- ccxt/async_support/bittrex.py +3 -3
- ccxt/async_support/bitvavo.py +3 -3
- ccxt/async_support/bkex.py +4 -4
- ccxt/async_support/bl3p.py +2 -2
- ccxt/async_support/blockchaincom.py +1 -1
- ccxt/async_support/btcalpha.py +2 -2
- ccxt/async_support/btcbox.py +2 -2
- ccxt/async_support/btcmarkets.py +2 -2
- ccxt/async_support/btctradeua.py +2 -2
- ccxt/async_support/btcturk.py +2 -2
- ccxt/async_support/bybit.py +6 -6
- ccxt/async_support/cex.py +2 -2
- ccxt/async_support/coinbase.py +3 -3
- ccxt/async_support/coinbasepro.py +2 -2
- ccxt/async_support/coincheck.py +2 -2
- ccxt/async_support/coinex.py +6 -6
- ccxt/async_support/coinfalcon.py +2 -2
- ccxt/async_support/coinmate.py +2 -2
- ccxt/async_support/coinone.py +2 -2
- ccxt/async_support/coinsph.py +7 -2
- ccxt/async_support/coinspot.py +2 -2
- ccxt/async_support/cryptocom.py +5 -5
- ccxt/async_support/currencycom.py +2 -2
- ccxt/async_support/delta.py +2 -2
- ccxt/async_support/deribit.py +3 -3
- ccxt/async_support/digifinex.py +4 -4
- ccxt/async_support/exmo.py +2 -2
- ccxt/async_support/gate.py +46 -4
- ccxt/async_support/gemini.py +3 -3
- ccxt/async_support/hitbtc.py +4 -4
- ccxt/async_support/hollaex.py +3 -3
- ccxt/async_support/huobi.py +5 -5
- ccxt/async_support/huobijp.py +2 -2
- ccxt/async_support/idex.py +2 -2
- ccxt/async_support/independentreserve.py +2 -2
- ccxt/async_support/indodax.py +2 -2
- ccxt/async_support/kraken.py +2 -2
- ccxt/async_support/kucoin.py +4 -4
- ccxt/async_support/kucoinfutures.py +5 -5
- ccxt/async_support/kuna.py +2 -2
- ccxt/async_support/latoken.py +2 -2
- ccxt/async_support/lbank.py +2 -2
- ccxt/async_support/lbank2.py +2 -2
- ccxt/async_support/luno.py +2 -2
- ccxt/async_support/lykke.py +2 -2
- ccxt/async_support/mercado.py +2 -2
- ccxt/async_support/mexc.py +6 -3
- ccxt/async_support/ndax.py +2 -2
- ccxt/async_support/novadax.py +2 -2
- ccxt/async_support/oceanex.py +2 -2
- ccxt/async_support/okcoin.py +2 -2
- ccxt/async_support/okx.py +4 -4
- ccxt/async_support/paymium.py +2 -2
- ccxt/async_support/phemex.py +2 -2
- ccxt/async_support/poloniex.py +149 -68
- ccxt/async_support/poloniexfutures.py +2 -2
- ccxt/async_support/probit.py +2 -2
- ccxt/async_support/tidex.py +2 -2
- ccxt/async_support/timex.py +2 -2
- ccxt/async_support/tokocrypto.py +2 -2
- ccxt/async_support/upbit.py +2 -2
- ccxt/async_support/wavesexchange.py +3 -3
- ccxt/async_support/wazirx.py +2 -2
- ccxt/async_support/whitebit.py +4 -3
- ccxt/async_support/woo.py +2 -2
- ccxt/async_support/yobit.py +2 -2
- ccxt/async_support/zaif.py +2 -2
- ccxt/async_support/zonda.py +2 -2
- ccxt/base/exchange.py +3 -3
- ccxt/bigone.py +2 -2
- ccxt/binance.py +5 -5
- ccxt/bingx.py +72 -21
- ccxt/bit2c.py +2 -2
- ccxt/bitbank.py +2 -2
- ccxt/bitbns.py +2 -2
- ccxt/bitfinex.py +2 -2
- ccxt/bitfinex2.py +4 -4
- ccxt/bitflyer.py +2 -2
- ccxt/bitforex.py +2 -2
- ccxt/bitget.py +5 -5
- ccxt/bithumb.py +2 -2
- ccxt/bitmart.py +2 -2
- ccxt/bitmex.py +5 -5
- ccxt/bitopro.py +3 -3
- ccxt/bitpanda.py +2 -2
- ccxt/bitrue.py +3 -3
- ccxt/bitso.py +2 -2
- ccxt/bitstamp.py +2 -2
- ccxt/bitstamp1.py +2 -2
- ccxt/bittrex.py +3 -3
- ccxt/bitvavo.py +3 -3
- ccxt/bkex.py +4 -4
- ccxt/bl3p.py +2 -2
- ccxt/blockchaincom.py +1 -1
- ccxt/btcalpha.py +2 -2
- ccxt/btcbox.py +2 -2
- ccxt/btcmarkets.py +2 -2
- ccxt/btctradeua.py +2 -2
- ccxt/btcturk.py +2 -2
- ccxt/bybit.py +6 -6
- ccxt/cex.py +2 -2
- ccxt/coinbase.py +3 -3
- ccxt/coinbasepro.py +2 -2
- ccxt/coincheck.py +2 -2
- ccxt/coinex.py +6 -6
- ccxt/coinfalcon.py +2 -2
- ccxt/coinmate.py +2 -2
- ccxt/coinone.py +2 -2
- ccxt/coinsph.py +7 -2
- ccxt/coinspot.py +2 -2
- ccxt/cryptocom.py +5 -5
- ccxt/currencycom.py +2 -2
- ccxt/delta.py +2 -2
- ccxt/deribit.py +3 -3
- ccxt/digifinex.py +4 -4
- ccxt/exmo.py +2 -2
- ccxt/gate.py +46 -4
- ccxt/gemini.py +3 -3
- ccxt/hitbtc.py +4 -4
- ccxt/hollaex.py +3 -3
- ccxt/huobi.py +5 -5
- ccxt/huobijp.py +2 -2
- ccxt/idex.py +2 -2
- ccxt/independentreserve.py +2 -2
- ccxt/indodax.py +2 -2
- ccxt/kraken.py +2 -2
- ccxt/kucoin.py +4 -4
- ccxt/kucoinfutures.py +5 -5
- ccxt/kuna.py +2 -2
- ccxt/latoken.py +2 -2
- ccxt/lbank.py +2 -2
- ccxt/lbank2.py +2 -2
- ccxt/luno.py +2 -2
- ccxt/lykke.py +2 -2
- ccxt/mercado.py +2 -2
- ccxt/mexc.py +6 -3
- ccxt/ndax.py +2 -2
- ccxt/novadax.py +2 -2
- ccxt/oceanex.py +2 -2
- ccxt/okcoin.py +2 -2
- ccxt/okx.py +4 -4
- ccxt/paymium.py +2 -2
- ccxt/phemex.py +2 -2
- ccxt/poloniex.py +149 -68
- ccxt/poloniexfutures.py +2 -2
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/ascendex.py +2 -2
- ccxt/pro/binance.py +6 -6
- ccxt/pro/bitfinex.py +1 -1
- ccxt/pro/bitfinex2.py +2 -2
- ccxt/pro/bitget.py +2 -2
- ccxt/pro/bitmart.py +1 -1
- ccxt/pro/bitmex.py +2 -2
- ccxt/pro/bitopro.py +2 -2
- ccxt/pro/bitpanda.py +6 -6
- ccxt/pro/bitrue.py +1 -1
- ccxt/pro/bitstamp.py +1 -1
- ccxt/pro/bittrex.py +2 -2
- ccxt/pro/bitvavo.py +1 -1
- ccxt/pro/blockchaincom.py +5 -5
- ccxt/pro/bybit.py +1 -1
- ccxt/pro/cex.py +4 -4
- ccxt/pro/coinbase.py +5 -5
- ccxt/pro/coinbasepro.py +1 -1
- ccxt/pro/coinex.py +2 -2
- ccxt/pro/cryptocom.py +3 -3
- ccxt/pro/currencycom.py +2 -2
- ccxt/pro/deribit.py +3 -3
- ccxt/pro/exmo.py +3 -3
- ccxt/pro/gate.py +2 -2
- ccxt/pro/gemini.py +1 -1
- ccxt/pro/hitbtc.py +1 -1
- ccxt/pro/hollaex.py +2 -2
- ccxt/pro/huobi.py +2 -2
- ccxt/pro/huobijp.py +1 -1
- ccxt/pro/idex.py +1 -1
- ccxt/pro/independentreserve.py +1 -1
- ccxt/pro/kraken.py +6 -6
- ccxt/pro/krakenfutures.py +5 -5
- ccxt/pro/kucoin.py +2 -2
- ccxt/pro/kucoinfutures.py +3 -2
- ccxt/pro/luno.py +1 -1
- ccxt/pro/mexc.py +6 -6
- ccxt/pro/ndax.py +1 -1
- ccxt/pro/okcoin.py +2 -2
- ccxt/pro/okx.py +10 -7
- ccxt/pro/phemex.py +2 -2
- ccxt/pro/poloniex.py +6 -6
- ccxt/pro/poloniexfutures.py +5 -5
- ccxt/pro/probit.py +6 -6
- ccxt/pro/upbit.py +1 -1
- ccxt/pro/wazirx.py +3 -3
- ccxt/pro/whitebit.py +2 -2
- ccxt/probit.py +2 -2
- ccxt/tidex.py +2 -2
- ccxt/timex.py +2 -2
- ccxt/tokocrypto.py +2 -2
- ccxt/upbit.py +2 -2
- ccxt/wavesexchange.py +3 -3
- ccxt/wazirx.py +2 -2
- ccxt/whitebit.py +4 -3
- ccxt/woo.py +2 -2
- ccxt/yobit.py +2 -2
- ccxt/zaif.py +2 -2
- ccxt/zonda.py +2 -2
- {ccxt-4.0.75.dist-info → ccxt-4.0.77.dist-info}/METADATA +4 -4
- ccxt-4.0.77.dist-info/RECORD +456 -0
- ccxt-4.0.75.dist-info/RECORD +0 -456
- {ccxt-4.0.75.dist-info → ccxt-4.0.77.dist-info}/WHEEL +0 -0
- {ccxt-4.0.75.dist-info → ccxt-4.0.77.dist-info}/top_level.txt +0 -0
ccxt/pro/bitrue.py
CHANGED
@@ -62,7 +62,7 @@ class bitrue(ccxt.async_support.bitrue):
|
|
62
62
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
63
63
|
see https://github.com/Bitrue-exchange/Spot-official-api-docs#balance-update
|
64
64
|
:param dict [params]: extra parameters specific to the bitrue api endpoint
|
65
|
-
:returns dict: a `balance structure <https://
|
65
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
66
66
|
"""
|
67
67
|
url = await self.authenticate()
|
68
68
|
messageHash = 'balance'
|
ccxt/pro/bitstamp.py
CHANGED
@@ -156,7 +156,7 @@ class bitstamp(ccxt.async_support.bitstamp):
|
|
156
156
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
157
157
|
:param int [limit]: the maximum amount of trades to fetch
|
158
158
|
:param dict [params]: extra parameters specific to the bitstamp api endpoint
|
159
|
-
:returns dict[]: a list of `trade structures <https://
|
159
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
160
160
|
"""
|
161
161
|
await self.load_markets()
|
162
162
|
market = self.market(symbol)
|
ccxt/pro/bittrex.py
CHANGED
@@ -260,7 +260,7 @@ class bittrex(ccxt.async_support.bittrex):
|
|
260
260
|
"""
|
261
261
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
262
262
|
:param dict [params]: extra parameters specific to the bittrex api endpoint
|
263
|
-
:returns dict: a `balance structure <https://
|
263
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
264
264
|
"""
|
265
265
|
await self.load_markets()
|
266
266
|
authentication = await self.authenticate()
|
@@ -442,7 +442,7 @@ class bittrex(ccxt.async_support.bittrex):
|
|
442
442
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
443
443
|
:param int [limit]: the maximum amount of trades to fetch
|
444
444
|
:param dict [params]: extra parameters specific to the bittrex api endpoint
|
445
|
-
:returns dict[]: a list of `trade structures <https://
|
445
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
446
446
|
"""
|
447
447
|
await self.load_markets()
|
448
448
|
symbol = self.symbol(symbol)
|
ccxt/pro/bitvavo.py
CHANGED
@@ -107,7 +107,7 @@ class bitvavo(ccxt.async_support.bitvavo):
|
|
107
107
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
108
108
|
:param int [limit]: the maximum amount of trades to fetch
|
109
109
|
:param dict [params]: extra parameters specific to the bitvavo api endpoint
|
110
|
-
:returns dict[]: a list of `trade structures <https://
|
110
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
111
111
|
"""
|
112
112
|
await self.load_markets()
|
113
113
|
symbol = self.symbol(symbol)
|
ccxt/pro/blockchaincom.py
CHANGED
@@ -63,7 +63,7 @@ class blockchaincom(ccxt.async_support.blockchaincom):
|
|
63
63
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
64
64
|
see https://exchange.blockchain.com/api/#balances
|
65
65
|
:param dict [params]: extra parameters specific to the blockchaincom api endpoint
|
66
|
-
:returns dict: a `balance structure <https://
|
66
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
67
67
|
"""
|
68
68
|
await self.authenticate(params)
|
69
69
|
messageHash = 'balance'
|
@@ -201,7 +201,7 @@ class blockchaincom(ccxt.async_support.blockchaincom):
|
|
201
201
|
see https://exchange.blockchain.com/api/#ticker
|
202
202
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
203
203
|
:param dict [params]: extra parameters specific to the blockchaincom api endpoint
|
204
|
-
:returns dict: a `ticker structure <https://
|
204
|
+
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
205
205
|
"""
|
206
206
|
await self.load_markets()
|
207
207
|
market = self.market(symbol)
|
@@ -305,7 +305,7 @@ class blockchaincom(ccxt.async_support.blockchaincom):
|
|
305
305
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
306
306
|
:param int [limit]: the maximum amount of trades to fetch
|
307
307
|
:param dict [params]: extra parameters specific to the blockchaincom api endpoint
|
308
|
-
:returns dict[]: a list of `trade structures <https://
|
308
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
309
309
|
"""
|
310
310
|
await self.load_markets()
|
311
311
|
market = self.market(symbol)
|
@@ -400,7 +400,7 @@ class blockchaincom(ccxt.async_support.blockchaincom):
|
|
400
400
|
:param int [since]: the earliest time in ms to fetch orders for
|
401
401
|
:param int [limit]: the maximum number of orde structures to retrieve
|
402
402
|
:param dict [params]: extra parameters specific to the blockchaincom api endpoint
|
403
|
-
:returns dict[]: a list of `order structures <https://
|
403
|
+
:returns dict[]: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
404
404
|
"""
|
405
405
|
await self.load_markets()
|
406
406
|
await self.authenticate()
|
@@ -603,7 +603,7 @@ class blockchaincom(ccxt.async_support.blockchaincom):
|
|
603
603
|
:param int [limit]: the maximum amount of order book entries to return
|
604
604
|
:param dictConstructor [params]: extra parameters specific to the blockchaincom api endpoint
|
605
605
|
:param str [params.type]: accepts l2 or l3 for level 2 or level 3 order book
|
606
|
-
:returns dict: A dictionary of `order book structures <https://
|
606
|
+
:returns dict: A dictionary of `order book structures <https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure>` indexed by market symbols
|
607
607
|
"""
|
608
608
|
await self.load_markets()
|
609
609
|
market = self.market(symbol)
|
ccxt/pro/bybit.py
CHANGED
@@ -1032,7 +1032,7 @@ class bybit(ccxt.async_support.bybit):
|
|
1032
1032
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
1033
1033
|
see https://bybit-exchange.github.io/docs/v5/websocket/private/wallet
|
1034
1034
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
1035
|
-
:returns dict: a `balance structure <https://
|
1035
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1036
1036
|
"""
|
1037
1037
|
await self.load_markets()
|
1038
1038
|
method = 'watchBalance'
|
ccxt/pro/cex.py
CHANGED
@@ -54,7 +54,7 @@ class cex(ccxt.async_support.cex):
|
|
54
54
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
55
55
|
see https://cex.io/websocket-api#get-balance
|
56
56
|
:param dict [params]: extra parameters specific to the cex api endpoint
|
57
|
-
:returns dict: a `balance structure <https://
|
57
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
58
58
|
"""
|
59
59
|
await self.authenticate(params)
|
60
60
|
messageHash = 'balance'
|
@@ -113,7 +113,7 @@ class cex(ccxt.async_support.cex):
|
|
113
113
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
114
114
|
:param int [limit]: the maximum amount of trades to fetch
|
115
115
|
:param dict [params]: extra parameters specific to the cex api endpoint
|
116
|
-
:returns dict[]: a list of `trade structures <https://
|
116
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
117
117
|
"""
|
118
118
|
await self.load_markets()
|
119
119
|
market = self.market(symbol)
|
@@ -365,7 +365,7 @@ class cex(ccxt.async_support.cex):
|
|
365
365
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
366
366
|
:param int [limit]: the maximum amount of trades to fetch
|
367
367
|
:param dict [params]: extra parameters specific to the cex api endpoint
|
368
|
-
:returns dict[]: a list of `trade structures <https://
|
368
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
369
369
|
"""
|
370
370
|
if symbol is None:
|
371
371
|
raise ArgumentsRequired(self.id + ' watchOrders requires a symbol argument')
|
@@ -399,7 +399,7 @@ class cex(ccxt.async_support.cex):
|
|
399
399
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
400
400
|
:param int [limit]: the maximum amount of trades to fetch
|
401
401
|
:param dict [params]: extra parameters specific to the cex api endpoint
|
402
|
-
:returns dict[]: a list of `trade structures <https://
|
402
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
403
403
|
"""
|
404
404
|
if symbol is None:
|
405
405
|
raise ArgumentsRequired(self.id + ' watchOrders requires a symbol argument')
|
ccxt/pro/coinbase.py
CHANGED
@@ -84,7 +84,7 @@ class coinbase(ccxt.async_support.coinbase):
|
|
84
84
|
see https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#ticker-channel
|
85
85
|
:param str [symbol]: unified symbol of the market to fetch the ticker for
|
86
86
|
:param dict [params]: extra parameters specific to the coinbasepro api endpoint
|
87
|
-
:returns dict: a `ticker structure <https://
|
87
|
+
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
88
88
|
"""
|
89
89
|
name = 'ticker'
|
90
90
|
return await self.subscribe(name, symbol, params)
|
@@ -95,7 +95,7 @@ class coinbase(ccxt.async_support.coinbase):
|
|
95
95
|
see https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#ticker-batch-channel
|
96
96
|
:param str[] [symbols]: unified symbol of the market to fetch the ticker for
|
97
97
|
:param dict [params]: extra parameters specific to the coinbasepro api endpoint
|
98
|
-
:returns dict: a `ticker structure <https://
|
98
|
+
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
99
99
|
"""
|
100
100
|
if symbols is None:
|
101
101
|
raise ArgumentsRequired(self.id + ' watchTickers requires a symbols argument')
|
@@ -229,7 +229,7 @@ class coinbase(ccxt.async_support.coinbase):
|
|
229
229
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
230
230
|
:param int [limit]: the maximum amount of trades to fetch
|
231
231
|
:param dict [params]: extra parameters specific to the coinbasepro api endpoint
|
232
|
-
:returns dict[]: a list of `trade structures <https://
|
232
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
233
233
|
"""
|
234
234
|
await self.load_markets()
|
235
235
|
symbol = self.symbol(symbol)
|
@@ -247,7 +247,7 @@ class coinbase(ccxt.async_support.coinbase):
|
|
247
247
|
:param int [since]: the earliest time in ms to fetch orders for
|
248
248
|
:param int [limit]: the maximum number of orde structures to retrieve
|
249
249
|
:param dict [params]: extra parameters specific to the coinbasepro api endpoint
|
250
|
-
:returns dict[]: a list of `order structures <https://
|
250
|
+
:returns dict[]: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
251
251
|
"""
|
252
252
|
await self.load_markets()
|
253
253
|
name = 'user'
|
@@ -263,7 +263,7 @@ class coinbase(ccxt.async_support.coinbase):
|
|
263
263
|
:param str symbol: unified symbol of the market to fetch the order book for
|
264
264
|
:param int [limit]: the maximum amount of order book entries to return
|
265
265
|
:param dict [params]: extra parameters specific to the coinbasepro api endpoint
|
266
|
-
:returns dict: A dictionary of `order book structures <https://
|
266
|
+
:returns dict: A dictionary of `order book structures <https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure>` indexed by market symbols
|
267
267
|
"""
|
268
268
|
await self.load_markets()
|
269
269
|
name = 'level2'
|
ccxt/pro/coinbasepro.py
CHANGED
@@ -142,7 +142,7 @@ class coinbasepro(ccxt.async_support.coinbasepro):
|
|
142
142
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
143
143
|
:param int [limit]: the maximum amount of trades to fetch
|
144
144
|
:param dict [params]: extra parameters specific to the coinbasepro api endpoint
|
145
|
-
:returns dict[]: a list of `trade structures <https://
|
145
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
146
146
|
"""
|
147
147
|
await self.load_markets()
|
148
148
|
symbol = self.symbol(symbol)
|
ccxt/pro/coinex.py
CHANGED
@@ -229,7 +229,7 @@ class coinex(ccxt.async_support.coinex):
|
|
229
229
|
"""
|
230
230
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
231
231
|
:param dict [params]: extra parameters specific to the coinex api endpoint
|
232
|
-
:returns dict: a `balance structure <https://
|
232
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
233
233
|
"""
|
234
234
|
await self.load_markets()
|
235
235
|
await self.authenticate(params)
|
@@ -443,7 +443,7 @@ class coinex(ccxt.async_support.coinex):
|
|
443
443
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
444
444
|
:param int [limit]: the maximum amount of trades to fetch
|
445
445
|
:param dict [params]: extra parameters specific to the coinex api endpoint
|
446
|
-
:returns dict[]: a list of `trade structures <https://
|
446
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
447
447
|
"""
|
448
448
|
await self.load_markets()
|
449
449
|
market = self.market(symbol)
|
ccxt/pro/cryptocom.py
CHANGED
@@ -124,7 +124,7 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
124
124
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
125
125
|
:param int [limit]: the maximum amount of trades to fetch
|
126
126
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
127
|
-
:returns dict[]: a list of `trade structures <https://
|
127
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
128
128
|
"""
|
129
129
|
await self.load_markets()
|
130
130
|
market = self.market(symbol)
|
@@ -374,7 +374,7 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
374
374
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
375
375
|
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-balance
|
376
376
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
377
|
-
:returns dict: a `balance structure <https://
|
377
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
378
378
|
"""
|
379
379
|
messageHash = 'user.balance'
|
380
380
|
return await self.watch_private_subscribe(messageHash, params)
|
@@ -452,7 +452,7 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
452
452
|
:param float amount: how much of currency you want to trade in units of base currency
|
453
453
|
:param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
454
454
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
455
|
-
:returns dict: an `order structure <https://
|
455
|
+
:returns dict: an `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
456
456
|
"""
|
457
457
|
await self.load_markets()
|
458
458
|
params = self.createOrderRequest(symbol, type, side, amount, price, params)
|
ccxt/pro/currencycom.py
CHANGED
@@ -325,7 +325,7 @@ class currencycom(ccxt.async_support.currencycom):
|
|
325
325
|
"""
|
326
326
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
327
327
|
:param dict [params]: extra parameters specific to the currencycom api endpoint
|
328
|
-
:returns dict: a `balance structure <https://
|
328
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
329
329
|
"""
|
330
330
|
await self.load_markets()
|
331
331
|
return await self.watch_private('/api/v1/account', params)
|
@@ -364,7 +364,7 @@ class currencycom(ccxt.async_support.currencycom):
|
|
364
364
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
365
365
|
:param int [limit]: the maximum amount of trades to fetch
|
366
366
|
:param dict [params]: extra parameters specific to the currencycom api endpoint
|
367
|
-
:returns dict[]: a list of `trade structures <https://
|
367
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
368
368
|
"""
|
369
369
|
await self.load_markets()
|
370
370
|
symbol = self.symbol(symbol)
|
ccxt/pro/deribit.py
CHANGED
@@ -67,7 +67,7 @@ class deribit(ccxt.async_support.deribit):
|
|
67
67
|
see https://docs.deribit.com/#user-portfolio-currency
|
68
68
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
69
69
|
:param dict [params]: extra parameters specific to the deribit api endpoint
|
70
|
-
:returns dict: a `balance structure <https://
|
70
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
71
71
|
"""
|
72
72
|
await self.authenticate(params)
|
73
73
|
messageHash = 'balance'
|
@@ -219,7 +219,7 @@ class deribit(ccxt.async_support.deribit):
|
|
219
219
|
:param int [limit]: the maximum amount of trades to fetch
|
220
220
|
:param dict [params]: extra parameters specific to the deribit api endpoint
|
221
221
|
:param str [params.interval]: specify aggregation and frequency of notifications. Possible values: 100ms, raw
|
222
|
-
:returns dict[]: a list of `trade structures <https://
|
222
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
223
223
|
"""
|
224
224
|
await self.load_markets()
|
225
225
|
market = self.market(symbol)
|
@@ -293,7 +293,7 @@ class deribit(ccxt.async_support.deribit):
|
|
293
293
|
:param int [limit]: the maximum amount of trades to fetch
|
294
294
|
:param dict [params]: extra parameters specific to the deribit api endpoint
|
295
295
|
:param str [params.interval]: specify aggregation and frequency of notifications. Possible values: 100ms, raw
|
296
|
-
:returns dict[]: a list of `trade structures <https://
|
296
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
297
297
|
"""
|
298
298
|
await self.authenticate(params)
|
299
299
|
if symbol is not None:
|
ccxt/pro/exmo.py
CHANGED
@@ -52,7 +52,7 @@ class exmo(ccxt.async_support.exmo):
|
|
52
52
|
"""
|
53
53
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
54
54
|
:param dict [params]: extra parameters specific to the exmo api endpoint
|
55
|
-
:returns dict: a `balance structure <https://
|
55
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
56
56
|
"""
|
57
57
|
await self.authenticate(params)
|
58
58
|
type, query = self.handle_market_type_and_params('watchBalance', None, params)
|
@@ -257,7 +257,7 @@ class exmo(ccxt.async_support.exmo):
|
|
257
257
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
258
258
|
:param int [limit]: the maximum amount of trades to fetch
|
259
259
|
:param dict [params]: extra parameters specific to the exmo api endpoint
|
260
|
-
:returns dict[]: a list of `trade structures <https://
|
260
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
261
261
|
"""
|
262
262
|
await self.load_markets()
|
263
263
|
market = self.market(symbol)
|
@@ -317,7 +317,7 @@ class exmo(ccxt.async_support.exmo):
|
|
317
317
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
318
318
|
:param int [limit]: the maximum amount of trades to fetch
|
319
319
|
:param dict [params]: extra parameters specific to the exmo api endpoint
|
320
|
-
:returns dict[]: a list of `trade structures <https://
|
320
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
321
321
|
"""
|
322
322
|
await self.load_markets()
|
323
323
|
await self.authenticate(params)
|
ccxt/pro/gate.py
CHANGED
@@ -359,7 +359,7 @@ class gate(ccxt.async_support.gate):
|
|
359
359
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
360
360
|
:param int [limit]: the maximum amount of trades to fetch
|
361
361
|
:param dict [params]: extra parameters specific to the gate api endpoint
|
362
|
-
:returns dict[]: a list of `trade structures <https://
|
362
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
363
363
|
"""
|
364
364
|
await self.load_markets()
|
365
365
|
market = self.market(symbol)
|
@@ -571,7 +571,7 @@ class gate(ccxt.async_support.gate):
|
|
571
571
|
"""
|
572
572
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
573
573
|
:param dict [params]: extra parameters specific to the gate api endpoint
|
574
|
-
:returns dict: a `balance structure <https://
|
574
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
575
575
|
"""
|
576
576
|
await self.load_markets()
|
577
577
|
type = None
|
ccxt/pro/gemini.py
CHANGED
@@ -45,7 +45,7 @@ class gemini(ccxt.async_support.gemini):
|
|
45
45
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
46
46
|
:param int [limit]: the maximum amount of trades to fetch
|
47
47
|
:param dict [params]: extra parameters specific to the gemini api endpoint
|
48
|
-
:returns dict[]: a list of `trade structures <https://
|
48
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
49
49
|
"""
|
50
50
|
await self.load_markets()
|
51
51
|
market = self.market(symbol)
|
ccxt/pro/hitbtc.py
CHANGED
@@ -201,7 +201,7 @@ class hitbtc(ccxt.async_support.hitbtc):
|
|
201
201
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
202
202
|
:param int [limit]: the maximum amount of trades to fetch
|
203
203
|
:param dict [params]: extra parameters specific to the hitbtc api endpoint
|
204
|
-
:returns dict[]: a list of `trade structures <https://
|
204
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
205
205
|
"""
|
206
206
|
trades = await self.watch_public(symbol, 'trades', None, params)
|
207
207
|
if self.newUpdates:
|
ccxt/pro/hollaex.py
CHANGED
@@ -118,7 +118,7 @@ class hollaex(ccxt.async_support.hollaex):
|
|
118
118
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
119
119
|
:param int [limit]: the maximum amount of trades to fetch
|
120
120
|
:param dict [params]: extra parameters specific to the hollaex api endpoint
|
121
|
-
:returns dict[]: a list of `trade structures <https://
|
121
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
122
122
|
"""
|
123
123
|
await self.load_markets()
|
124
124
|
market = self.market(symbol)
|
@@ -349,7 +349,7 @@ class hollaex(ccxt.async_support.hollaex):
|
|
349
349
|
"""
|
350
350
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
351
351
|
:param dict [params]: extra parameters specific to the hollaex api endpoint
|
352
|
-
:returns dict: a `balance structure <https://
|
352
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
353
353
|
"""
|
354
354
|
messageHash = 'wallet'
|
355
355
|
return await self.watch_private(messageHash, params)
|
ccxt/pro/huobi.py
CHANGED
@@ -196,7 +196,7 @@ class huobi(ccxt.async_support.huobi):
|
|
196
196
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
197
197
|
:param int [limit]: the maximum amount of trades to fetch
|
198
198
|
:param dict [params]: extra parameters specific to the huobi api endpoint
|
199
|
-
:returns dict[]: a list of `trade structures <https://
|
199
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
200
200
|
"""
|
201
201
|
await self.load_markets()
|
202
202
|
market = self.market(symbol)
|
@@ -1121,7 +1121,7 @@ class huobi(ccxt.async_support.huobi):
|
|
1121
1121
|
"""
|
1122
1122
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
1123
1123
|
:param dict [params]: extra parameters specific to the huobi api endpoint
|
1124
|
-
:returns dict: a `balance structure <https://
|
1124
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1125
1125
|
"""
|
1126
1126
|
type = self.safe_string_2(self.options, 'watchBalance', 'defaultType', 'spot')
|
1127
1127
|
type = self.safe_string(params, 'type', type)
|
ccxt/pro/huobijp.py
CHANGED
@@ -115,7 +115,7 @@ class huobijp(ccxt.async_support.huobijp):
|
|
115
115
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
116
116
|
:param int [limit]: the maximum amount of trades to fetch
|
117
117
|
:param dict [params]: extra parameters specific to the huobijp api endpoint
|
118
|
-
:returns dict[]: a list of `trade structures <https://
|
118
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
119
119
|
"""
|
120
120
|
await self.load_markets()
|
121
121
|
market = self.market(symbol)
|
ccxt/pro/idex.py
CHANGED
@@ -144,7 +144,7 @@ class idex(ccxt.async_support.idex):
|
|
144
144
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
145
145
|
:param int [limit]: the maximum amount of trades to fetch
|
146
146
|
:param dict [params]: extra parameters specific to the idex api endpoint
|
147
|
-
:returns dict[]: a list of `trade structures <https://
|
147
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
148
148
|
"""
|
149
149
|
await self.load_markets()
|
150
150
|
market = self.market(symbol)
|
ccxt/pro/independentreserve.py
CHANGED
@@ -47,7 +47,7 @@ class independentreserve(ccxt.async_support.independentreserve):
|
|
47
47
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
48
48
|
:param int [limit]: the maximum amount of trades to fetch
|
49
49
|
:param dict [params]: extra parameters specific to the independentreserve api endpoint
|
50
|
-
:returns dict[]: a list of `trade structures <https://
|
50
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
51
51
|
"""
|
52
52
|
await self.load_markets()
|
53
53
|
market = self.market(symbol)
|
ccxt/pro/kraken.py
CHANGED
@@ -133,7 +133,7 @@ class kraken(ccxt.async_support.kraken):
|
|
133
133
|
:param float amount: how much of currency you want to trade in units of base currency
|
134
134
|
:param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
135
135
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
136
|
-
:returns dict: an `order structure <https://
|
136
|
+
:returns dict: an `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
137
137
|
"""
|
138
138
|
await self.load_markets()
|
139
139
|
token = await self.authenticate()
|
@@ -188,7 +188,7 @@ class kraken(ccxt.async_support.kraken):
|
|
188
188
|
:param float amount: how much of the currency you want to trade in units of the base currency
|
189
189
|
:param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
190
190
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
191
|
-
:returns dict: an `order structure <https://
|
191
|
+
:returns dict: an `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
192
192
|
"""
|
193
193
|
await self.load_markets()
|
194
194
|
token = await self.authenticate()
|
@@ -214,7 +214,7 @@ class kraken(ccxt.async_support.kraken):
|
|
214
214
|
:param str[] ids: order ids
|
215
215
|
:param str symbol: unified market symbol, default is None
|
216
216
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
217
|
-
:returns dict: an list of `order structures <https://
|
217
|
+
:returns dict: an list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
218
218
|
"""
|
219
219
|
await self.load_markets()
|
220
220
|
token = await self.authenticate()
|
@@ -236,7 +236,7 @@ class kraken(ccxt.async_support.kraken):
|
|
236
236
|
:param str id: order id
|
237
237
|
:param str symbol: unified symbol of the market the order was made in
|
238
238
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
239
|
-
:returns dict: An `order structure <https://
|
239
|
+
:returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
240
240
|
"""
|
241
241
|
await self.load_markets()
|
242
242
|
token = await self.authenticate()
|
@@ -271,7 +271,7 @@ class kraken(ccxt.async_support.kraken):
|
|
271
271
|
cancel all open orders
|
272
272
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
273
273
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
274
|
-
:returns dict[]: a list of `order structures <https://
|
274
|
+
:returns dict[]: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
275
275
|
"""
|
276
276
|
if symbol is not None:
|
277
277
|
raise NotSupported(self.id + ' cancelAllOrdersWs() does not support cancelling orders in a specific market.')
|
@@ -479,7 +479,7 @@ class kraken(ccxt.async_support.kraken):
|
|
479
479
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
480
480
|
:param int [limit]: the maximum amount of trades to fetch
|
481
481
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
482
|
-
:returns dict[]: a list of `trade structures <https://
|
482
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
483
483
|
"""
|
484
484
|
await self.load_markets()
|
485
485
|
symbol = self.symbol(symbol)
|
ccxt/pro/krakenfutures.py
CHANGED
@@ -140,7 +140,7 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
140
140
|
see https://docs.futures.kraken.com/#websocket-api-public-feeds-ticker
|
141
141
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
142
142
|
:param dict [params]: extra parameters specific to the krakenfutures api endpoint
|
143
|
-
:returns dict: a `ticker structure <https://
|
143
|
+
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
144
144
|
"""
|
145
145
|
options = self.safe_value(self.options, 'watchTicker')
|
146
146
|
method = self.safe_string(options, 'method', 'ticker') # or ticker_lite
|
@@ -154,7 +154,7 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
154
154
|
see https://docs.futures.kraken.com/#websocket-api-public-feeds-ticker-lite
|
155
155
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
156
156
|
:param dict [params]: extra parameters specific to the krakenfutures api endpoint
|
157
|
-
:returns dict: a `ticker structure <https://
|
157
|
+
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
158
158
|
"""
|
159
159
|
method = self.safe_string(self.options, 'watchTickerMethod', 'ticker') # or ticker_lite
|
160
160
|
name = self.safe_string_2(params, 'method', 'watchTickerMethod', method)
|
@@ -169,7 +169,7 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
169
169
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
170
170
|
:param int [limit]: the maximum amount of trades to fetch
|
171
171
|
:param dict [params]: extra parameters specific to the krakenfutures api endpoint
|
172
|
-
:returns dict[]: a list of `trade structures <https://
|
172
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
173
173
|
"""
|
174
174
|
await self.load_markets()
|
175
175
|
name = 'trade'
|
@@ -185,7 +185,7 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
185
185
|
:param str symbol: unified symbol of the market to fetch the order book for
|
186
186
|
:param int [limit]: not used by krakenfutures watchOrderBook
|
187
187
|
:param dict [params]: extra parameters specific to the krakenfutures api endpoint
|
188
|
-
:returns dict: A dictionary of `order book structures <https://
|
188
|
+
:returns dict: A dictionary of `order book structures <https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure>` indexed by market symbols
|
189
189
|
"""
|
190
190
|
orderbook = await self.subscribe_public('book', [symbol], params)
|
191
191
|
return orderbook.limit()
|
@@ -199,7 +199,7 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
199
199
|
:param int [since]: not used by krakenfutures watchOrders
|
200
200
|
:param int [limit]: not used by krakenfutures watchOrders
|
201
201
|
:param dict [params]: extra parameters specific to the krakenfutures api endpoint
|
202
|
-
:returns dict[]: a list of `order structures <https://
|
202
|
+
:returns dict[]: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
203
203
|
"""
|
204
204
|
await self.load_markets()
|
205
205
|
name = 'open_orders'
|
ccxt/pro/kucoin.py
CHANGED
@@ -269,7 +269,7 @@ class kucoin(ccxt.async_support.kucoin):
|
|
269
269
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
270
270
|
:param int [limit]: the maximum amount of trades to fetch
|
271
271
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
272
|
-
:returns dict[]: a list of `trade structures <https://
|
272
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
273
273
|
"""
|
274
274
|
await self.load_markets()
|
275
275
|
url = await self.negotiate(False)
|
@@ -672,7 +672,7 @@ class kucoin(ccxt.async_support.kucoin):
|
|
672
672
|
"""
|
673
673
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
674
674
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
675
|
-
:returns dict: a `balance structure <https://
|
675
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
676
676
|
"""
|
677
677
|
await self.load_markets()
|
678
678
|
url = await self.negotiate(True)
|
ccxt/pro/kucoinfutures.py
CHANGED
@@ -181,7 +181,7 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
181
181
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
182
182
|
:param int [limit]: the maximum amount of trades to fetch
|
183
183
|
:param dict [params]: extra parameters specific to the kucoinfutures api endpoint
|
184
|
-
:returns dict[]: a list of `trade structures <https://
|
184
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
185
185
|
"""
|
186
186
|
await self.load_markets()
|
187
187
|
url = await self.negotiate(False)
|
@@ -494,8 +494,9 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
494
494
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
495
495
|
see https://docs.kucoin.com/futures/#account-balance-events
|
496
496
|
:param dict [params]: extra parameters specific to the kucoinfutures api endpoint
|
497
|
-
:returns dict: a `balance structure <https://
|
497
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
498
498
|
"""
|
499
|
+
await self.load_markets()
|
499
500
|
url = await self.negotiate(True)
|
500
501
|
topic = '/contractAccount/wallet'
|
501
502
|
request = {
|
ccxt/pro/luno.py
CHANGED
@@ -45,7 +45,7 @@ class luno(ccxt.async_support.luno):
|
|
45
45
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
46
46
|
:param int [limit]: the maximum amount of trades to fetch
|
47
47
|
:param dict [params]: extra parameters specific to the luno api endpoint
|
48
|
-
:returns dict[]: a list of `trade structures <https://
|
48
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
49
49
|
"""
|
50
50
|
await self.check_required_credentials()
|
51
51
|
await self.load_markets()
|