ccxt 4.0.75 → 4.0.76
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.
- package/README.md +3 -3
- package/dist/ccxt.browser.js +594 -457
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +2 -2
- package/dist/cjs/src/alpaca.js +1 -1
- package/dist/cjs/src/ascendex.js +3 -3
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +2 -2
- package/dist/cjs/src/binance.js +5 -5
- package/dist/cjs/src/bingx.js +64 -19
- package/dist/cjs/src/bit2c.js +2 -2
- package/dist/cjs/src/bitbank.js +2 -2
- package/dist/cjs/src/bitbns.js +2 -2
- package/dist/cjs/src/bitfinex.js +2 -2
- package/dist/cjs/src/bitfinex2.js +4 -4
- package/dist/cjs/src/bitflyer.js +2 -2
- package/dist/cjs/src/bitforex.js +2 -2
- package/dist/cjs/src/bitget.js +5 -5
- package/dist/cjs/src/bithumb.js +2 -2
- package/dist/cjs/src/bitmart.js +2 -2
- package/dist/cjs/src/bitmex.js +5 -5
- package/dist/cjs/src/bitopro.js +3 -3
- package/dist/cjs/src/bitpanda.js +2 -2
- package/dist/cjs/src/bitrue.js +3 -3
- package/dist/cjs/src/bitso.js +2 -2
- package/dist/cjs/src/bitstamp.js +2 -2
- package/dist/cjs/src/bitstamp1.js +2 -2
- package/dist/cjs/src/bittrex.js +3 -3
- package/dist/cjs/src/bitvavo.js +3 -3
- package/dist/cjs/src/bkex.js +4 -4
- package/dist/cjs/src/bl3p.js +2 -2
- package/dist/cjs/src/blockchaincom.js +1 -1
- package/dist/cjs/src/btcalpha.js +2 -2
- package/dist/cjs/src/btcbox.js +2 -2
- package/dist/cjs/src/btcmarkets.js +2 -2
- package/dist/cjs/src/btctradeua.js +2 -2
- package/dist/cjs/src/btcturk.js +2 -2
- package/dist/cjs/src/bybit.js +5 -5
- package/dist/cjs/src/cex.js +2 -2
- package/dist/cjs/src/coinbase.js +3 -3
- package/dist/cjs/src/coinbasepro.js +2 -2
- package/dist/cjs/src/coincheck.js +2 -2
- package/dist/cjs/src/coinex.js +6 -6
- package/dist/cjs/src/coinfalcon.js +2 -2
- package/dist/cjs/src/coinmate.js +2 -2
- package/dist/cjs/src/coinone.js +2 -2
- package/dist/cjs/src/coinsph.js +7 -2
- package/dist/cjs/src/coinspot.js +2 -2
- package/dist/cjs/src/cryptocom.js +5 -5
- package/dist/cjs/src/currencycom.js +2 -2
- package/dist/cjs/src/delta.js +2 -2
- package/dist/cjs/src/deribit.js +3 -3
- package/dist/cjs/src/digifinex.js +4 -4
- package/dist/cjs/src/exmo.js +2 -2
- package/dist/cjs/src/gate.js +4 -4
- package/dist/cjs/src/gemini.js +3 -3
- package/dist/cjs/src/hitbtc.js +4 -4
- package/dist/cjs/src/hollaex.js +3 -3
- package/dist/cjs/src/huobi.js +5 -5
- package/dist/cjs/src/huobijp.js +2 -2
- package/dist/cjs/src/idex.js +2 -2
- package/dist/cjs/src/independentreserve.js +2 -2
- package/dist/cjs/src/indodax.js +2 -2
- package/dist/cjs/src/kraken.js +2 -2
- package/dist/cjs/src/kucoin.js +4 -4
- package/dist/cjs/src/kucoinfutures.js +5 -5
- package/dist/cjs/src/kuna.js +2 -2
- package/dist/cjs/src/latoken.js +2 -2
- package/dist/cjs/src/lbank.js +2 -2
- package/dist/cjs/src/lbank2.js +2 -2
- package/dist/cjs/src/luno.js +2 -2
- package/dist/cjs/src/lykke.js +2 -2
- package/dist/cjs/src/mercado.js +2 -2
- package/dist/cjs/src/mexc.js +6 -4
- package/dist/cjs/src/ndax.js +2 -2
- package/dist/cjs/src/novadax.js +2 -2
- package/dist/cjs/src/oceanex.js +2 -2
- package/dist/cjs/src/okcoin.js +2 -2
- package/dist/cjs/src/okx.js +4 -4
- package/dist/cjs/src/paymium.js +2 -2
- package/dist/cjs/src/phemex.js +2 -2
- package/dist/cjs/src/poloniex.js +165 -81
- package/dist/cjs/src/poloniexfutures.js +2 -2
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +1 -1
- package/dist/cjs/src/pro/bitfinex2.js +2 -2
- package/dist/cjs/src/pro/bitget.js +2 -2
- package/dist/cjs/src/pro/bitmart.js +1 -1
- package/dist/cjs/src/pro/bitmex.js +2 -2
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitpanda.js +6 -6
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +1 -1
- package/dist/cjs/src/pro/bittrex.js +2 -2
- package/dist/cjs/src/pro/bitvavo.js +1 -1
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/bybit.js +1 -1
- package/dist/cjs/src/pro/cex.js +4 -4
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +1 -1
- package/dist/cjs/src/pro/coinex.js +2 -2
- package/dist/cjs/src/pro/cryptocom.js +3 -3
- package/dist/cjs/src/pro/currencycom.js +2 -2
- package/dist/cjs/src/pro/deribit.js +3 -3
- package/dist/cjs/src/pro/exmo.js +3 -3
- package/dist/cjs/src/pro/gate.js +2 -2
- package/dist/cjs/src/pro/gemini.js +1 -1
- package/dist/cjs/src/pro/hitbtc.js +1 -1
- package/dist/cjs/src/pro/hollaex.js +2 -2
- package/dist/cjs/src/pro/huobi.js +2 -2
- package/dist/cjs/src/pro/huobijp.js +1 -1
- package/dist/cjs/src/pro/idex.js +1 -1
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +6 -6
- package/dist/cjs/src/pro/krakenfutures.js +5 -5
- package/dist/cjs/src/pro/kucoin.js +2 -2
- package/dist/cjs/src/pro/kucoinfutures.js +3 -2
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/mexc.js +6 -6
- package/dist/cjs/src/pro/ndax.js +1 -1
- package/dist/cjs/src/pro/okcoin.js +2 -2
- package/dist/cjs/src/pro/okx.js +7 -7
- package/dist/cjs/src/pro/phemex.js +2 -2
- package/dist/cjs/src/pro/poloniex.js +6 -6
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +1 -1
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +2 -2
- package/dist/cjs/src/probit.js +2 -2
- package/dist/cjs/src/tidex.js +2 -2
- package/dist/cjs/src/timex.js +2 -2
- package/dist/cjs/src/tokocrypto.js +2 -2
- package/dist/cjs/src/upbit.js +2 -2
- package/dist/cjs/src/wavesexchange.js +3 -3
- package/dist/cjs/src/wazirx.js +2 -2
- package/dist/cjs/src/whitebit.js +3 -3
- package/dist/cjs/src/woo.js +2 -2
- package/dist/cjs/src/yobit.js +2 -2
- package/dist/cjs/src/zaif.js +2 -2
- package/dist/cjs/src/zonda.js +2 -2
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bingx.d.ts +2 -0
- package/js/src/abstract/coinsph.d.ts +5 -0
- package/js/src/ace.js +2 -2
- package/js/src/alpaca.js +1 -1
- package/js/src/ascendex.js +3 -3
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +2 -2
- package/js/src/binance.js +5 -5
- package/js/src/bingx.d.ts +1 -0
- package/js/src/bingx.js +64 -19
- package/js/src/bit2c.js +2 -2
- package/js/src/bitbank.js +2 -2
- package/js/src/bitbns.js +2 -2
- package/js/src/bitfinex.js +2 -2
- package/js/src/bitfinex2.js +4 -4
- package/js/src/bitflyer.js +2 -2
- package/js/src/bitforex.js +2 -2
- package/js/src/bitget.js +5 -5
- package/js/src/bithumb.js +2 -2
- package/js/src/bitmart.js +2 -2
- package/js/src/bitmex.js +5 -5
- package/js/src/bitopro.js +3 -3
- package/js/src/bitpanda.js +2 -2
- package/js/src/bitrue.js +3 -3
- package/js/src/bitso.js +2 -2
- package/js/src/bitstamp.js +2 -2
- package/js/src/bitstamp1.js +2 -2
- package/js/src/bittrex.js +3 -3
- package/js/src/bitvavo.js +3 -3
- package/js/src/bkex.js +4 -4
- package/js/src/bl3p.js +2 -2
- package/js/src/blockchaincom.js +1 -1
- package/js/src/btcalpha.js +2 -2
- package/js/src/btcbox.js +2 -2
- package/js/src/btcmarkets.js +2 -2
- package/js/src/btctradeua.js +2 -2
- package/js/src/btcturk.js +2 -2
- package/js/src/bybit.js +5 -5
- package/js/src/cex.js +2 -2
- package/js/src/coinbase.js +3 -3
- package/js/src/coinbasepro.js +2 -2
- package/js/src/coincheck.js +2 -2
- package/js/src/coinex.js +6 -6
- package/js/src/coinfalcon.js +2 -2
- package/js/src/coinmate.js +2 -2
- package/js/src/coinone.js +2 -2
- package/js/src/coinsph.js +7 -2
- package/js/src/coinspot.js +2 -2
- package/js/src/cryptocom.js +5 -5
- package/js/src/currencycom.js +2 -2
- package/js/src/delta.js +2 -2
- package/js/src/deribit.js +3 -3
- package/js/src/digifinex.js +4 -4
- package/js/src/exmo.js +2 -2
- package/js/src/gate.js +4 -4
- package/js/src/gemini.js +3 -3
- package/js/src/hitbtc.js +4 -4
- package/js/src/hollaex.js +3 -3
- package/js/src/huobi.js +5 -5
- package/js/src/huobijp.js +2 -2
- package/js/src/idex.js +2 -2
- package/js/src/independentreserve.js +2 -2
- package/js/src/indodax.js +2 -2
- package/js/src/kraken.js +2 -2
- package/js/src/kucoin.js +4 -4
- package/js/src/kucoinfutures.js +5 -5
- package/js/src/kuna.js +2 -2
- package/js/src/latoken.js +2 -2
- package/js/src/lbank.js +2 -2
- package/js/src/lbank2.js +2 -2
- package/js/src/luno.js +2 -2
- package/js/src/lykke.js +2 -2
- package/js/src/mercado.js +2 -2
- package/js/src/mexc.js +7 -5
- package/js/src/ndax.js +2 -2
- package/js/src/novadax.js +2 -2
- package/js/src/oceanex.js +2 -2
- package/js/src/okcoin.js +2 -2
- package/js/src/okx.js +4 -4
- package/js/src/paymium.js +2 -2
- package/js/src/phemex.js +2 -2
- package/js/src/poloniex.d.ts +1 -1
- package/js/src/poloniex.js +165 -81
- package/js/src/poloniexfutures.js +2 -2
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +6 -6
- package/js/src/pro/bitfinex.js +1 -1
- package/js/src/pro/bitfinex2.js +2 -2
- package/js/src/pro/bitget.js +2 -2
- package/js/src/pro/bitmart.js +1 -1
- package/js/src/pro/bitmex.js +2 -2
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitpanda.js +6 -6
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +1 -1
- package/js/src/pro/bittrex.js +2 -2
- package/js/src/pro/bitvavo.js +1 -1
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/bybit.js +1 -1
- package/js/src/pro/cex.js +4 -4
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +1 -1
- package/js/src/pro/coinex.js +2 -2
- package/js/src/pro/cryptocom.js +3 -3
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +3 -3
- package/js/src/pro/gate.js +2 -2
- package/js/src/pro/gemini.js +1 -1
- package/js/src/pro/hitbtc.js +1 -1
- package/js/src/pro/hollaex.js +2 -2
- package/js/src/pro/huobi.js +2 -2
- package/js/src/pro/huobijp.js +1 -1
- package/js/src/pro/idex.js +1 -1
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +5 -5
- package/js/src/pro/kucoin.js +2 -2
- package/js/src/pro/kucoinfutures.js +3 -2
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/mexc.js +6 -6
- package/js/src/pro/ndax.js +1 -1
- package/js/src/pro/okcoin.js +2 -2
- package/js/src/pro/okx.js +7 -7
- package/js/src/pro/phemex.js +2 -2
- package/js/src/pro/poloniex.js +6 -6
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +1 -1
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +2 -2
- package/js/src/probit.js +2 -2
- package/js/src/tidex.js +2 -2
- package/js/src/timex.js +2 -2
- package/js/src/tokocrypto.js +2 -2
- package/js/src/upbit.js +2 -2
- package/js/src/wavesexchange.js +3 -3
- package/js/src/wazirx.js +2 -2
- package/js/src/whitebit.js +3 -3
- package/js/src/woo.js +2 -2
- package/js/src/yobit.js +2 -2
- package/js/src/zaif.js +2 -2
- package/js/src/zonda.js +2 -2
- package/package.json +1 -1
- package/skip-tests.json +2 -0
|
@@ -80,7 +80,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
80
80
|
* @see https://developers.bitpanda.com/exchange/#account-history-channel
|
|
81
81
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
82
82
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
83
|
-
* @returns {object} a [balance structure]{@link https://
|
|
83
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
84
84
|
*/
|
|
85
85
|
await this.authenticate(params);
|
|
86
86
|
const url = this.urls['api']['ws'];
|
|
@@ -140,7 +140,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
140
140
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
141
141
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
142
142
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
143
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
143
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
144
144
|
*/
|
|
145
145
|
await this.loadMarkets();
|
|
146
146
|
const market = this.market(symbol);
|
|
@@ -166,7 +166,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
166
166
|
* @description watches price tickers, a statistical calculation with the information for all markets or those specified.
|
|
167
167
|
* @param {string} symbols unified symbols of the markets to fetch the ticker for
|
|
168
168
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
169
|
-
* @returns {object} an array of [ticker structure]{@link https://
|
|
169
|
+
* @returns {object} an array of [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
170
170
|
*/
|
|
171
171
|
await this.loadMarkets();
|
|
172
172
|
symbols = this.marketSymbols(symbols);
|
|
@@ -264,7 +264,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
264
264
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
265
265
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
266
266
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
267
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
267
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
268
268
|
*/
|
|
269
269
|
await this.loadMarkets();
|
|
270
270
|
let messageHash = 'myTrades';
|
|
@@ -307,7 +307,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
307
307
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
308
308
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
309
309
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
310
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
310
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
311
311
|
*/
|
|
312
312
|
await this.loadMarkets();
|
|
313
313
|
const market = this.market(symbol);
|
|
@@ -426,7 +426,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
426
426
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
427
427
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
428
428
|
* @param {string} [params.channel] can listen to orders using ACCOUNT_HISTORY or TRADING
|
|
429
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
429
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
430
430
|
*/
|
|
431
431
|
await this.loadMarkets();
|
|
432
432
|
let messageHash = 'orders';
|
|
@@ -59,7 +59,7 @@ class bitrue extends bitrue$1 {
|
|
|
59
59
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
60
60
|
* @see https://github.com/Bitrue-exchange/Spot-official-api-docs#balance-update
|
|
61
61
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
62
|
-
* @returns {object} a [balance structure]{@link https://
|
|
62
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
63
63
|
*/
|
|
64
64
|
const url = await this.authenticate();
|
|
65
65
|
const messageHash = 'balance';
|
|
@@ -161,7 +161,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
161
161
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
162
162
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
163
163
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
164
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
164
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
165
165
|
*/
|
|
166
166
|
await this.loadMarkets();
|
|
167
167
|
const market = this.market(symbol);
|
|
@@ -264,7 +264,7 @@ class bittrex extends bittrex$1 {
|
|
|
264
264
|
* @name bittrex#watchBalance
|
|
265
265
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
266
266
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
267
|
-
* @returns {object} a [balance structure]{@link https://
|
|
267
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
268
268
|
*/
|
|
269
269
|
await this.loadMarkets();
|
|
270
270
|
const authentication = await this.authenticate();
|
|
@@ -454,7 +454,7 @@ class bittrex extends bittrex$1 {
|
|
|
454
454
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
455
455
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
456
456
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
457
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
457
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
458
458
|
*/
|
|
459
459
|
await this.loadMarkets();
|
|
460
460
|
symbol = this.symbol(symbol);
|
|
@@ -106,7 +106,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
106
106
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
107
107
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
108
108
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
109
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
109
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
110
110
|
*/
|
|
111
111
|
await this.loadMarkets();
|
|
112
112
|
symbol = this.symbol(symbol);
|
|
@@ -55,7 +55,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
55
55
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
56
56
|
* @see https://exchange.blockchain.com/api/#balances
|
|
57
57
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
58
|
-
* @returns {object} a [balance structure]{@link https://
|
|
58
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
59
59
|
*/
|
|
60
60
|
await this.authenticate(params);
|
|
61
61
|
const messageHash = 'balance';
|
|
@@ -205,7 +205,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
205
205
|
* @see https://exchange.blockchain.com/api/#ticker
|
|
206
206
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
207
207
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
208
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
208
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
209
209
|
*/
|
|
210
210
|
await this.loadMarkets();
|
|
211
211
|
const market = this.market(symbol);
|
|
@@ -314,7 +314,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
314
314
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
315
315
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
316
316
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
317
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
317
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
318
318
|
*/
|
|
319
319
|
await this.loadMarkets();
|
|
320
320
|
const market = this.market(symbol);
|
|
@@ -413,7 +413,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
413
413
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
414
414
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
415
415
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
416
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
416
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
417
417
|
*/
|
|
418
418
|
await this.loadMarkets();
|
|
419
419
|
await this.authenticate();
|
|
@@ -627,7 +627,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
627
627
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
628
628
|
* @param {objectConstructor} [params] extra parameters specific to the blockchaincom api endpoint
|
|
629
629
|
* @param {string} [params.type] accepts l2 or l3 for level 2 or level 3 order book
|
|
630
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
630
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
631
631
|
*/
|
|
632
632
|
await this.loadMarkets();
|
|
633
633
|
const market = this.market(symbol);
|
|
@@ -1090,7 +1090,7 @@ class bybit extends bybit$1 {
|
|
|
1090
1090
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
1091
1091
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/private/wallet
|
|
1092
1092
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
1093
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1093
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1094
1094
|
*/
|
|
1095
1095
|
await this.loadMarkets();
|
|
1096
1096
|
const method = 'watchBalance';
|
package/dist/cjs/src/pro/cex.js
CHANGED
|
@@ -47,7 +47,7 @@ class cex extends cex$1 {
|
|
|
47
47
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
48
48
|
* @see https://cex.io/websocket-api#get-balance
|
|
49
49
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
50
|
-
* @returns {object} a [balance structure]{@link https://
|
|
50
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
51
51
|
*/
|
|
52
52
|
await this.authenticate(params);
|
|
53
53
|
const messageHash = 'balance';
|
|
@@ -109,7 +109,7 @@ class cex extends cex$1 {
|
|
|
109
109
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
110
110
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
111
111
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
112
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
112
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
113
113
|
*/
|
|
114
114
|
await this.loadMarkets();
|
|
115
115
|
const market = this.market(symbol);
|
|
@@ -381,7 +381,7 @@ class cex extends cex$1 {
|
|
|
381
381
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
382
382
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
383
383
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
384
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
384
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
385
385
|
*/
|
|
386
386
|
if (symbol === undefined) {
|
|
387
387
|
throw new errors.ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
|
|
@@ -419,7 +419,7 @@ class cex extends cex$1 {
|
|
|
419
419
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
420
420
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
421
421
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
422
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
422
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
423
423
|
*/
|
|
424
424
|
if (symbol === undefined) {
|
|
425
425
|
throw new errors.ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
|
|
@@ -85,7 +85,7 @@ class coinbase extends coinbase$1 {
|
|
|
85
85
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#ticker-channel
|
|
86
86
|
* @param {string} [symbol] unified symbol of the market to fetch the ticker for
|
|
87
87
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
88
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
88
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
89
89
|
*/
|
|
90
90
|
const name = 'ticker';
|
|
91
91
|
return await this.subscribe(name, symbol, params);
|
|
@@ -98,7 +98,7 @@ class coinbase extends coinbase$1 {
|
|
|
98
98
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#ticker-batch-channel
|
|
99
99
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
100
100
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
101
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
101
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
102
102
|
*/
|
|
103
103
|
if (symbols === undefined) {
|
|
104
104
|
throw new errors.ArgumentsRequired(this.id + ' watchTickers requires a symbols argument');
|
|
@@ -239,7 +239,7 @@ class coinbase extends coinbase$1 {
|
|
|
239
239
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
240
240
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
241
241
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
242
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
242
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
243
243
|
*/
|
|
244
244
|
await this.loadMarkets();
|
|
245
245
|
symbol = this.symbol(symbol);
|
|
@@ -260,7 +260,7 @@ class coinbase extends coinbase$1 {
|
|
|
260
260
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
261
261
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
262
262
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
263
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
263
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
264
264
|
*/
|
|
265
265
|
await this.loadMarkets();
|
|
266
266
|
const name = 'user';
|
|
@@ -279,7 +279,7 @@ class coinbase extends coinbase$1 {
|
|
|
279
279
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
280
280
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
281
281
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
282
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
282
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
283
283
|
*/
|
|
284
284
|
await this.loadMarkets();
|
|
285
285
|
const name = 'level2';
|
|
@@ -146,7 +146,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
146
146
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
147
147
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
148
148
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
149
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
149
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
150
150
|
*/
|
|
151
151
|
await this.loadMarkets();
|
|
152
152
|
symbol = this.symbol(symbol);
|
|
@@ -224,7 +224,7 @@ class coinex extends coinex$1 {
|
|
|
224
224
|
* @name coinex#watchBalance
|
|
225
225
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
226
226
|
* @param {object} [params] extra parameters specific to the coinex api endpoint
|
|
227
|
-
* @returns {object} a [balance structure]{@link https://
|
|
227
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
228
228
|
*/
|
|
229
229
|
await this.loadMarkets();
|
|
230
230
|
await this.authenticate(params);
|
|
@@ -452,7 +452,7 @@ class coinex extends coinex$1 {
|
|
|
452
452
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
453
453
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
454
454
|
* @param {object} [params] extra parameters specific to the coinex api endpoint
|
|
455
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
455
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
456
456
|
*/
|
|
457
457
|
await this.loadMarkets();
|
|
458
458
|
const market = this.market(symbol);
|
|
@@ -121,7 +121,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
121
121
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
122
122
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
123
123
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
124
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
124
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
125
125
|
*/
|
|
126
126
|
await this.loadMarkets();
|
|
127
127
|
const market = this.market(symbol);
|
|
@@ -396,7 +396,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
396
396
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
397
397
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-balance
|
|
398
398
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
399
|
-
* @returns {object} a [balance structure]{@link https://
|
|
399
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
400
400
|
*/
|
|
401
401
|
const messageHash = 'user.balance';
|
|
402
402
|
return await this.watchPrivateSubscribe(messageHash, params);
|
|
@@ -477,7 +477,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
477
477
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
478
478
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
479
479
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
480
|
-
* @returns {object} an [order structure]{@link https://
|
|
480
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
481
481
|
*/
|
|
482
482
|
await this.loadMarkets();
|
|
483
483
|
params = this.createOrderRequest(symbol, type, side, amount, price, params);
|
|
@@ -329,7 +329,7 @@ class currencycom extends currencycom$1 {
|
|
|
329
329
|
* @name currencycom#watchBalance
|
|
330
330
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
331
331
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
332
|
-
* @returns {object} a [balance structure]{@link https://
|
|
332
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
333
333
|
*/
|
|
334
334
|
await this.loadMarkets();
|
|
335
335
|
return await this.watchPrivate('/api/v1/account', params);
|
|
@@ -372,7 +372,7 @@ class currencycom extends currencycom$1 {
|
|
|
372
372
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
373
373
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
374
374
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
375
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
375
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
376
376
|
*/
|
|
377
377
|
await this.loadMarkets();
|
|
378
378
|
symbol = this.symbol(symbol);
|
|
@@ -61,7 +61,7 @@ class deribit extends deribit$1 {
|
|
|
61
61
|
* @see https://docs.deribit.com/#user-portfolio-currency
|
|
62
62
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
63
63
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
64
|
-
* @returns {object} a [balance structure]{@link https://
|
|
64
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
65
65
|
*/
|
|
66
66
|
await this.authenticate(params);
|
|
67
67
|
const messageHash = 'balance';
|
|
@@ -219,7 +219,7 @@ class deribit extends deribit$1 {
|
|
|
219
219
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
220
220
|
* @param {object} [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 {object[]} a list of [trade structures]{@link https://
|
|
222
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
223
223
|
*/
|
|
224
224
|
await this.loadMarkets();
|
|
225
225
|
const market = this.market(symbol);
|
|
@@ -299,7 +299,7 @@ class deribit extends deribit$1 {
|
|
|
299
299
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
300
300
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
301
301
|
* @param {str} [params.interval] specify aggregation and frequency of notifications. Possible values: 100ms, raw
|
|
302
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
302
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
303
303
|
*/
|
|
304
304
|
await this.authenticate(params);
|
|
305
305
|
if (symbol !== undefined) {
|
package/dist/cjs/src/pro/exmo.js
CHANGED
|
@@ -46,7 +46,7 @@ class exmo extends exmo$1 {
|
|
|
46
46
|
* @name exmo#watchBalance
|
|
47
47
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
48
48
|
* @param {object} [params] extra parameters specific to the exmo api endpoint
|
|
49
|
-
* @returns {object} a [balance structure]{@link https://
|
|
49
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
50
50
|
*/
|
|
51
51
|
await this.authenticate(params);
|
|
52
52
|
const [type, query] = this.handleMarketTypeAndParams('watchBalance', undefined, params);
|
|
@@ -261,7 +261,7 @@ class exmo extends exmo$1 {
|
|
|
261
261
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
262
262
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
263
263
|
* @param {object} [params] extra parameters specific to the exmo api endpoint
|
|
264
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
264
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
265
265
|
*/
|
|
266
266
|
await this.loadMarkets();
|
|
267
267
|
const market = this.market(symbol);
|
|
@@ -325,7 +325,7 @@ class exmo extends exmo$1 {
|
|
|
325
325
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
326
326
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
327
327
|
* @param {object} [params] extra parameters specific to the exmo api endpoint
|
|
328
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
328
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
329
329
|
*/
|
|
330
330
|
await this.loadMarkets();
|
|
331
331
|
await this.authenticate(params);
|
package/dist/cjs/src/pro/gate.js
CHANGED
|
@@ -377,7 +377,7 @@ class gate extends gate$1 {
|
|
|
377
377
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
378
378
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
379
379
|
* @param {object} [params] extra parameters specific to the gate api endpoint
|
|
380
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
380
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
381
381
|
*/
|
|
382
382
|
await this.loadMarkets();
|
|
383
383
|
const market = this.market(symbol);
|
|
@@ -611,7 +611,7 @@ class gate extends gate$1 {
|
|
|
611
611
|
* @name gate#watchBalance
|
|
612
612
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
613
613
|
* @param {object} [params] extra parameters specific to the gate api endpoint
|
|
614
|
-
* @returns {object} a [balance structure]{@link https://
|
|
614
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
615
615
|
*/
|
|
616
616
|
await this.loadMarkets();
|
|
617
617
|
let type = undefined;
|
|
@@ -42,7 +42,7 @@ class gemini extends gemini$1 {
|
|
|
42
42
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
43
43
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
44
44
|
* @param {object} [params] extra parameters specific to the gemini api endpoint
|
|
45
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
45
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
46
46
|
*/
|
|
47
47
|
await this.loadMarkets();
|
|
48
48
|
const market = this.market(symbol);
|
|
@@ -206,7 +206,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
206
206
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
207
207
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
208
208
|
* @param {object} [params] extra parameters specific to the hitbtc api endpoint
|
|
209
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
209
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
210
210
|
*/
|
|
211
211
|
const trades = await this.watchPublic(symbol, 'trades', undefined, params);
|
|
212
212
|
if (this.newUpdates) {
|
|
@@ -117,7 +117,7 @@ class hollaex extends hollaex$1 {
|
|
|
117
117
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
118
118
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
119
119
|
* @param {object} [params] extra parameters specific to the hollaex api endpoint
|
|
120
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
120
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
121
121
|
*/
|
|
122
122
|
await this.loadMarkets();
|
|
123
123
|
const market = this.market(symbol);
|
|
@@ -371,7 +371,7 @@ class hollaex extends hollaex$1 {
|
|
|
371
371
|
* @name hollaex#watchBalance
|
|
372
372
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
373
373
|
* @param {object} [params] extra parameters specific to the hollaex api endpoint
|
|
374
|
-
* @returns {object} a [balance structure]{@link https://
|
|
374
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
375
375
|
*/
|
|
376
376
|
const messageHash = 'wallet';
|
|
377
377
|
return await this.watchPrivate(messageHash, params);
|
|
@@ -190,7 +190,7 @@ class huobi extends huobi$1 {
|
|
|
190
190
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
191
191
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
192
192
|
* @param {object} [params] extra parameters specific to the huobi api endpoint
|
|
193
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
193
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
194
194
|
*/
|
|
195
195
|
await this.loadMarkets();
|
|
196
196
|
const market = this.market(symbol);
|
|
@@ -1186,7 +1186,7 @@ class huobi extends huobi$1 {
|
|
|
1186
1186
|
* @name huobi#watchBalance
|
|
1187
1187
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
1188
1188
|
* @param {object} [params] extra parameters specific to the huobi api endpoint
|
|
1189
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1189
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1190
1190
|
*/
|
|
1191
1191
|
let type = this.safeString2(this.options, 'watchBalance', 'defaultType', 'spot');
|
|
1192
1192
|
type = this.safeString(params, 'type', type);
|
|
@@ -114,7 +114,7 @@ class huobijp extends huobijp$1 {
|
|
|
114
114
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
115
115
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
116
116
|
* @param {object} [params] extra parameters specific to the huobijp api endpoint
|
|
117
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
117
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
118
118
|
*/
|
|
119
119
|
await this.loadMarkets();
|
|
120
120
|
const market = this.market(symbol);
|
package/dist/cjs/src/pro/idex.js
CHANGED
|
@@ -144,7 +144,7 @@ class idex extends idex$1 {
|
|
|
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 {object} [params] extra parameters specific to the idex api endpoint
|
|
147
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
147
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
148
148
|
*/
|
|
149
149
|
await this.loadMarkets();
|
|
150
150
|
const market = this.market(symbol);
|
|
@@ -41,7 +41,7 @@ class independentreserve extends independentreserve$1 {
|
|
|
41
41
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
42
42
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
43
43
|
* @param {object} [params] extra parameters specific to the independentreserve api endpoint
|
|
44
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
44
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
45
45
|
*/
|
|
46
46
|
await this.loadMarkets();
|
|
47
47
|
const market = this.market(symbol);
|
|
@@ -115,7 +115,7 @@ class kraken extends kraken$1 {
|
|
|
115
115
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
116
116
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
117
117
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
118
|
-
* @returns {object} an [order structure]{@link https://
|
|
118
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
119
119
|
*/
|
|
120
120
|
await this.loadMarkets();
|
|
121
121
|
const token = await this.authenticate();
|
|
@@ -172,7 +172,7 @@ class kraken extends kraken$1 {
|
|
|
172
172
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
173
173
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
174
174
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
175
|
-
* @returns {object} an [order structure]{@link https://
|
|
175
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
176
176
|
*/
|
|
177
177
|
await this.loadMarkets();
|
|
178
178
|
const token = await this.authenticate();
|
|
@@ -200,7 +200,7 @@ class kraken extends kraken$1 {
|
|
|
200
200
|
* @param {string[]} ids order ids
|
|
201
201
|
* @param {string} symbol unified market symbol, default is undefined
|
|
202
202
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
203
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
203
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
204
204
|
*/
|
|
205
205
|
await this.loadMarkets();
|
|
206
206
|
const token = await this.authenticate();
|
|
@@ -224,7 +224,7 @@ class kraken extends kraken$1 {
|
|
|
224
224
|
* @param {string} id order id
|
|
225
225
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
226
226
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
227
|
-
* @returns {object} An [order structure]{@link https://
|
|
227
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
228
228
|
*/
|
|
229
229
|
await this.loadMarkets();
|
|
230
230
|
const token = await this.authenticate();
|
|
@@ -261,7 +261,7 @@ class kraken extends kraken$1 {
|
|
|
261
261
|
* @description cancel all open orders
|
|
262
262
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
263
263
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
264
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
264
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
265
265
|
*/
|
|
266
266
|
if (symbol !== undefined) {
|
|
267
267
|
throw new errors.NotSupported(this.id + ' cancelAllOrdersWs () does not support cancelling orders in a specific market.');
|
|
@@ -479,7 +479,7 @@ class kraken extends kraken$1 {
|
|
|
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 {object} [params] extra parameters specific to the kraken api endpoint
|
|
482
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
482
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
483
483
|
*/
|
|
484
484
|
await this.loadMarkets();
|
|
485
485
|
symbol = this.symbol(symbol);
|
|
@@ -142,7 +142,7 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
142
142
|
* @see https://docs.futures.kraken.com/#websocket-api-public-feeds-ticker
|
|
143
143
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
144
144
|
* @param {object} [params] extra parameters specific to the krakenfutures api endpoint
|
|
145
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
145
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
146
146
|
*/
|
|
147
147
|
const options = this.safeValue(this.options, 'watchTicker');
|
|
148
148
|
const method = this.safeString(options, 'method', 'ticker'); // or ticker_lite
|
|
@@ -158,7 +158,7 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
158
158
|
* @see https://docs.futures.kraken.com/#websocket-api-public-feeds-ticker-lite
|
|
159
159
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
160
160
|
* @param {object} [params] extra parameters specific to the krakenfutures api endpoint
|
|
161
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
161
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
162
162
|
*/
|
|
163
163
|
const method = this.safeString(this.options, 'watchTickerMethod', 'ticker'); // or ticker_lite
|
|
164
164
|
const name = this.safeString2(params, 'method', 'watchTickerMethod', method);
|
|
@@ -175,7 +175,7 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
175
175
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
176
176
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
177
177
|
* @param {object} [params] extra parameters specific to the krakenfutures api endpoint
|
|
178
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
178
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
179
179
|
*/
|
|
180
180
|
await this.loadMarkets();
|
|
181
181
|
const name = 'trade';
|
|
@@ -194,7 +194,7 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
194
194
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
195
195
|
* @param {int} [limit] not used by krakenfutures watchOrderBook
|
|
196
196
|
* @param {object} [params] extra parameters specific to the krakenfutures api endpoint
|
|
197
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
197
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
198
198
|
*/
|
|
199
199
|
const orderbook = await this.subscribePublic('book', [symbol], params);
|
|
200
200
|
return orderbook.limit();
|
|
@@ -210,7 +210,7 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
210
210
|
* @param {int} [since] not used by krakenfutures watchOrders
|
|
211
211
|
* @param {int} [limit] not used by krakenfutures watchOrders
|
|
212
212
|
* @param {object} [params] extra parameters specific to the krakenfutures api endpoint
|
|
213
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
213
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
214
214
|
*/
|
|
215
215
|
await this.loadMarkets();
|
|
216
216
|
const name = 'open_orders';
|