ccxt 4.0.74 → 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 +4 -4
- package/dist/ccxt.browser.js +2635 -2383
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +11 -11
- package/dist/cjs/src/alpaca.js +7 -7
- package/dist/cjs/src/ascendex.js +25 -25
- package/dist/cjs/src/base/Exchange.js +4 -4
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +56 -56
- package/dist/cjs/src/bingx.js +85 -40
- package/dist/cjs/src/bit2c.js +12 -12
- package/dist/cjs/src/bitbank.js +13 -13
- package/dist/cjs/src/bitbns.js +14 -14
- package/dist/cjs/src/bitfinex.js +21 -21
- package/dist/cjs/src/bitfinex2.js +29 -29
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +11 -11
- package/dist/cjs/src/bitget.js +39 -39
- package/dist/cjs/src/bithumb.js +11 -11
- package/dist/cjs/src/bitmart.js +44 -31
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +21 -21
- package/dist/cjs/src/bitpanda.js +21 -21
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +21 -21
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bitstamp1.js +8 -8
- package/dist/cjs/src/bittrex.js +27 -27
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/bkex.js +21 -21
- package/dist/cjs/src/bl3p.js +8 -8
- package/dist/cjs/src/blockchaincom.js +21 -21
- package/dist/cjs/src/btcalpha.js +15 -15
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +17 -17
- package/dist/cjs/src/btctradeua.js +8 -8
- package/dist/cjs/src/btcturk.js +11 -11
- package/dist/cjs/src/bybit.js +153 -121
- package/dist/cjs/src/cex.js +14 -14
- package/dist/cjs/src/coinbase.js +23 -23
- package/dist/cjs/src/coinbasepro.js +24 -24
- package/dist/cjs/src/coincheck.js +12 -12
- package/dist/cjs/src/coinex.js +87 -41
- package/dist/cjs/src/coinfalcon.js +16 -16
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +12 -12
- package/dist/cjs/src/coinsph.js +27 -22
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +29 -29
- package/dist/cjs/src/currencycom.js +20 -20
- package/dist/cjs/src/delta.js +25 -25
- package/dist/cjs/src/deribit.js +30 -30
- package/dist/cjs/src/digifinex.js +31 -31
- package/dist/cjs/src/exmo.js +26 -26
- package/dist/cjs/src/gate.js +38 -38
- package/dist/cjs/src/gemini.js +17 -17
- package/dist/cjs/src/hitbtc.js +34 -34
- package/dist/cjs/src/hollaex.js +23 -23
- package/dist/cjs/src/huobi.js +45 -45
- package/dist/cjs/src/huobijp.js +20 -20
- package/dist/cjs/src/idex.js +19 -19
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +27 -27
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +33 -33
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +12 -12
- package/dist/cjs/src/latoken.js +17 -17
- package/dist/cjs/src/lbank.js +12 -12
- package/dist/cjs/src/lbank2.js +23 -23
- package/dist/cjs/src/luno.js +16 -16
- package/dist/cjs/src/lykke.js +16 -16
- package/dist/cjs/src/mercado.js +12 -12
- package/dist/cjs/src/mexc.js +44 -42
- package/dist/cjs/src/ndax.js +20 -20
- package/dist/cjs/src/novadax.js +20 -20
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okcoin.js +21 -21
- package/dist/cjs/src/okx.js +52 -52
- package/dist/cjs/src/paymium.js +11 -11
- package/dist/cjs/src/phemex.js +26 -26
- package/dist/cjs/src/poloniex.js +237 -136
- package/dist/cjs/src/poloniexfutures.js +18 -18
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +4 -4
- package/dist/cjs/src/pro/binance.js +16 -16
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +6 -6
- package/dist/cjs/src/pro/bitget.js +6 -6
- package/dist/cjs/src/pro/bitmart.js +4 -4
- package/dist/cjs/src/pro/bitmex.js +6 -6
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +6 -6
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +6 -6
- package/dist/cjs/src/pro/bitvavo.js +5 -5
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/bybit.js +6 -6
- package/dist/cjs/src/pro/cex.js +7 -7
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +6 -6
- package/dist/cjs/src/pro/coinex.js +5 -5
- package/dist/cjs/src/pro/cryptocom.js +10 -10
- package/dist/cjs/src/pro/currencycom.js +4 -4
- package/dist/cjs/src/pro/deribit.js +6 -6
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +7 -7
- package/dist/cjs/src/pro/gemini.js +3 -3
- package/dist/cjs/src/pro/hitbtc.js +3 -3
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/huobi.js +6 -6
- package/dist/cjs/src/pro/huobijp.js +3 -3
- package/dist/cjs/src/pro/idex.js +4 -4
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +12 -12
- package/dist/cjs/src/pro/krakenfutures.js +7 -7
- package/dist/cjs/src/pro/kucoin.js +6 -6
- package/dist/cjs/src/pro/kucoinfutures.js +6 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +6 -6
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okcoin.js +5 -5
- package/dist/cjs/src/pro/okx.js +19 -18
- package/dist/cjs/src/pro/phemex.js +6 -6
- package/dist/cjs/src/pro/poloniex.js +7 -7
- 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 +3 -3
- package/dist/cjs/src/pro/wazirx.js +6 -6
- package/dist/cjs/src/pro/whitebit.js +6 -6
- package/dist/cjs/src/probit.js +19 -19
- package/dist/cjs/src/tidex.js +13 -13
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +18 -18
- package/dist/cjs/src/upbit.js +20 -20
- package/dist/cjs/src/wavesexchange.js +16 -16
- package/dist/cjs/src/wazirx.js +12 -12
- package/dist/cjs/src/whitebit.js +24 -24
- package/dist/cjs/src/woo.js +30 -24
- package/dist/cjs/src/yobit.js +16 -16
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +15 -15
- 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/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/coinsph.d.ts +5 -0
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +11 -11
- package/js/src/alpaca.js +7 -7
- package/js/src/ascendex.js +25 -25
- package/js/src/base/Exchange.js +4 -4
- package/js/src/bigone.js +19 -19
- package/js/src/binance.js +56 -56
- package/js/src/bingx.d.ts +1 -0
- package/js/src/bingx.js +85 -40
- package/js/src/bit2c.js +12 -12
- package/js/src/bitbank.js +13 -13
- package/js/src/bitbns.js +14 -14
- package/js/src/bitfinex.js +21 -21
- package/js/src/bitfinex2.js +29 -29
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +11 -11
- package/js/src/bitget.js +39 -39
- package/js/src/bithumb.js +11 -11
- package/js/src/bitmart.js +44 -31
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.js +21 -21
- package/js/src/bitpanda.js +21 -21
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.js +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bitstamp1.js +8 -8
- package/js/src/bittrex.js +27 -27
- package/js/src/bitvavo.js +19 -19
- package/js/src/bkex.js +21 -21
- package/js/src/bl3p.js +8 -8
- package/js/src/blockchaincom.js +21 -21
- package/js/src/btcalpha.js +15 -15
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.js +17 -17
- package/js/src/btctradeua.js +8 -8
- package/js/src/btcturk.js +11 -11
- package/js/src/bybit.js +153 -121
- package/js/src/cex.js +14 -14
- package/js/src/coinbase.js +23 -23
- package/js/src/coinbasepro.js +24 -24
- package/js/src/coincheck.js +12 -12
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +87 -41
- package/js/src/coinfalcon.js +16 -16
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +12 -12
- package/js/src/coinsph.js +27 -22
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.js +29 -29
- package/js/src/currencycom.js +20 -20
- package/js/src/delta.js +25 -25
- package/js/src/deribit.js +30 -30
- package/js/src/digifinex.js +31 -31
- package/js/src/exmo.js +26 -26
- package/js/src/gate.js +38 -38
- package/js/src/gemini.js +17 -17
- package/js/src/hitbtc.js +34 -34
- package/js/src/hollaex.js +23 -23
- package/js/src/huobi.js +45 -45
- package/js/src/huobijp.js +20 -20
- package/js/src/idex.js +19 -19
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.js +27 -27
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +33 -33
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +12 -12
- package/js/src/latoken.js +17 -17
- package/js/src/lbank.js +12 -12
- package/js/src/lbank2.js +23 -23
- package/js/src/luno.js +16 -16
- package/js/src/lykke.js +16 -16
- package/js/src/mercado.js +12 -12
- package/js/src/mexc.js +45 -43
- package/js/src/ndax.js +20 -20
- package/js/src/novadax.js +20 -20
- package/js/src/oceanex.js +16 -16
- package/js/src/okcoin.js +21 -21
- package/js/src/okx.js +52 -52
- package/js/src/paymium.js +11 -11
- package/js/src/phemex.js +26 -26
- package/js/src/poloniex.d.ts +1 -1
- package/js/src/poloniex.js +237 -136
- package/js/src/poloniexfutures.js +18 -18
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +4 -4
- package/js/src/pro/binance.js +16 -16
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +6 -6
- package/js/src/pro/bitmart.js +4 -4
- package/js/src/pro/bitmex.js +6 -6
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +6 -6
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +6 -6
- package/js/src/pro/bitvavo.js +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/bybit.js +6 -6
- package/js/src/pro/cex.js +7 -7
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +6 -6
- package/js/src/pro/coinex.js +5 -5
- package/js/src/pro/cryptocom.js +10 -10
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.js +3 -3
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/huobi.js +6 -6
- package/js/src/pro/huobijp.js +3 -3
- package/js/src/pro/idex.js +4 -4
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +12 -12
- package/js/src/pro/krakenfutures.js +7 -7
- package/js/src/pro/kucoin.js +6 -6
- package/js/src/pro/kucoinfutures.js +6 -5
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.js +6 -6
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okcoin.js +5 -5
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +19 -18
- package/js/src/pro/phemex.js +6 -6
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +6 -6
- package/js/src/pro/whitebit.js +6 -6
- package/js/src/probit.js +19 -19
- package/js/src/tidex.js +13 -13
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.js +18 -18
- package/js/src/upbit.js +20 -20
- package/js/src/wavesexchange.js +16 -16
- package/js/src/wazirx.js +12 -12
- package/js/src/whitebit.js +24 -24
- package/js/src/woo.js +30 -24
- package/js/src/yobit.js +16 -16
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +15 -15
- package/package.json +1 -1
- package/skip-tests.json +2 -0
package/js/src/pro/cryptocom.js
CHANGED
|
@@ -66,7 +66,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
66
66
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
67
67
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
68
68
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
69
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
69
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
70
70
|
*/
|
|
71
71
|
await this.loadMarkets();
|
|
72
72
|
const market = this.market(symbol);
|
|
@@ -124,7 +124,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
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 {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
127
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
127
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
128
128
|
*/
|
|
129
129
|
await this.loadMarkets();
|
|
130
130
|
const market = this.market(symbol);
|
|
@@ -193,7 +193,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
193
193
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
194
194
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
195
195
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
196
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
196
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
197
197
|
*/
|
|
198
198
|
await this.loadMarkets();
|
|
199
199
|
let market = undefined;
|
|
@@ -217,7 +217,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
217
217
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
|
|
218
218
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
219
219
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
220
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
220
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
221
221
|
*/
|
|
222
222
|
await this.loadMarkets();
|
|
223
223
|
const market = this.market(symbol);
|
|
@@ -325,7 +325,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
325
325
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
326
326
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
327
327
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
328
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
328
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
329
329
|
*/
|
|
330
330
|
await this.loadMarkets();
|
|
331
331
|
let market = undefined;
|
|
@@ -399,7 +399,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
399
399
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
400
400
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-balance
|
|
401
401
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
402
|
-
* @returns {object} a [balance structure]{@link https://
|
|
402
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
403
403
|
*/
|
|
404
404
|
const messageHash = 'user.balance';
|
|
405
405
|
return await this.watchPrivateSubscribe(messageHash, params);
|
|
@@ -478,9 +478,9 @@ export default class cryptocom extends cryptocomRest {
|
|
|
478
478
|
* @param {string} type 'market' or 'limit'
|
|
479
479
|
* @param {string} side 'buy' or 'sell'
|
|
480
480
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
481
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
481
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
482
482
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
483
|
-
* @returns {object} an [order structure]{@link https://
|
|
483
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
484
484
|
*/
|
|
485
485
|
await this.loadMarkets();
|
|
486
486
|
params = this.createOrderRequest(symbol, type, side, amount, price, params);
|
|
@@ -517,7 +517,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
517
517
|
* @param {string} id the order id of the order to cancel
|
|
518
518
|
* @param {string} [symbol] unified symbol of the market the order was made in
|
|
519
519
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
520
|
-
* @returns {object} An [order structure]{@link https://
|
|
520
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
521
521
|
*/
|
|
522
522
|
await this.loadMarkets();
|
|
523
523
|
params = this.extend({
|
|
@@ -538,7 +538,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
538
538
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-all-orders
|
|
539
539
|
* @param {string} symbol unified market symbol of the orders to cancel
|
|
540
540
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
541
|
-
* @returns {object} Returns exchange raw message {@link https://
|
|
541
|
+
* @returns {object} Returns exchange raw message {@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
542
542
|
*/
|
|
543
543
|
await this.loadMarkets();
|
|
544
544
|
let market = undefined;
|
|
@@ -332,7 +332,7 @@ export default class currencycom extends currencycomRest {
|
|
|
332
332
|
* @name currencycom#watchBalance
|
|
333
333
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
334
334
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
335
|
-
* @returns {object} a [balance structure]{@link https://
|
|
335
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
336
336
|
*/
|
|
337
337
|
await this.loadMarkets();
|
|
338
338
|
return await this.watchPrivate('/api/v1/account', params);
|
|
@@ -344,7 +344,7 @@ export default class currencycom extends currencycomRest {
|
|
|
344
344
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
345
345
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
346
346
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
347
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
347
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
348
348
|
*/
|
|
349
349
|
await this.loadMarkets();
|
|
350
350
|
const market = this.market(symbol);
|
|
@@ -375,7 +375,7 @@ export default class currencycom extends currencycomRest {
|
|
|
375
375
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
376
376
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
377
377
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
378
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
378
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
379
379
|
*/
|
|
380
380
|
await this.loadMarkets();
|
|
381
381
|
symbol = this.symbol(symbol);
|
|
@@ -393,7 +393,7 @@ export default class currencycom extends currencycomRest {
|
|
|
393
393
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
394
394
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
395
395
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
396
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
396
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
397
397
|
*/
|
|
398
398
|
await this.loadMarkets();
|
|
399
399
|
symbol = this.symbol(symbol);
|
package/js/src/pro/deribit.js
CHANGED
|
@@ -64,7 +64,7 @@ export default class deribit extends deribitRest {
|
|
|
64
64
|
* @see https://docs.deribit.com/#user-portfolio-currency
|
|
65
65
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
66
66
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
67
|
-
* @returns {object} a [balance structure]{@link https://
|
|
67
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
68
68
|
*/
|
|
69
69
|
await this.authenticate(params);
|
|
70
70
|
const messageHash = 'balance';
|
|
@@ -149,7 +149,7 @@ export default class deribit extends deribitRest {
|
|
|
149
149
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
150
150
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
151
151
|
* @param {str} [params.interval] specify aggregation and frequency of notifications. Possible values: 100ms, raw
|
|
152
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
152
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
153
153
|
*/
|
|
154
154
|
await this.loadMarkets();
|
|
155
155
|
const market = this.market(symbol);
|
|
@@ -222,7 +222,7 @@ export default class deribit extends deribitRest {
|
|
|
222
222
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
223
223
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
224
224
|
* @param {str} [params.interval] specify aggregation and frequency of notifications. Possible values: 100ms, raw
|
|
225
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
225
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
226
226
|
*/
|
|
227
227
|
await this.loadMarkets();
|
|
228
228
|
const market = this.market(symbol);
|
|
@@ -302,7 +302,7 @@ export default class deribit extends deribitRest {
|
|
|
302
302
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
303
303
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
304
304
|
* @param {str} [params.interval] specify aggregation and frequency of notifications. Possible values: 100ms, raw
|
|
305
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
305
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
306
306
|
*/
|
|
307
307
|
await this.authenticate(params);
|
|
308
308
|
if (symbol !== undefined) {
|
|
@@ -386,7 +386,7 @@ export default class deribit extends deribitRest {
|
|
|
386
386
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
387
387
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
388
388
|
* @param {string} [params.interval] Frequency of notifications. Events will be aggregated over this interval. Possible values: 100ms, raw
|
|
389
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
389
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
390
390
|
*/
|
|
391
391
|
await this.loadMarkets();
|
|
392
392
|
const market = this.market(symbol);
|
|
@@ -516,7 +516,7 @@ export default class deribit extends deribitRest {
|
|
|
516
516
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
517
517
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
518
518
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
519
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
519
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
|
|
520
520
|
*/
|
|
521
521
|
await this.loadMarkets();
|
|
522
522
|
await this.authenticate(params);
|
package/js/src/pro/exmo.js
CHANGED
|
@@ -49,7 +49,7 @@ export default class exmo extends exmoRest {
|
|
|
49
49
|
* @name exmo#watchBalance
|
|
50
50
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
51
51
|
* @param {object} [params] extra parameters specific to the exmo api endpoint
|
|
52
|
-
* @returns {object} a [balance structure]{@link https://
|
|
52
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
53
53
|
*/
|
|
54
54
|
await this.authenticate(params);
|
|
55
55
|
const [type, query] = this.handleMarketTypeAndParams('watchBalance', undefined, params);
|
|
@@ -207,7 +207,7 @@ export default class exmo extends exmoRest {
|
|
|
207
207
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
208
208
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
209
209
|
* @param {object} [params] extra parameters specific to the exmo api endpoint
|
|
210
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
210
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
211
211
|
*/
|
|
212
212
|
await this.loadMarkets();
|
|
213
213
|
const market = this.market(symbol);
|
|
@@ -264,7 +264,7 @@ export default class exmo extends exmoRest {
|
|
|
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 exmo 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
|
const market = this.market(symbol);
|
|
@@ -328,7 +328,7 @@ export default class exmo extends exmoRest {
|
|
|
328
328
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
329
329
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
330
330
|
* @param {object} [params] extra parameters specific to the exmo api endpoint
|
|
331
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
331
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
332
332
|
*/
|
|
333
333
|
await this.loadMarkets();
|
|
334
334
|
await this.authenticate(params);
|
|
@@ -457,7 +457,7 @@ export default class exmo extends exmoRest {
|
|
|
457
457
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
458
458
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
459
459
|
* @param {object} [params] extra parameters specific to the exmo api endpoint
|
|
460
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
460
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
461
461
|
*/
|
|
462
462
|
await this.loadMarkets();
|
|
463
463
|
const market = this.market(symbol);
|
package/js/src/pro/gate.js
CHANGED
|
@@ -95,7 +95,7 @@ export default class gate extends gateRest {
|
|
|
95
95
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
96
96
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
97
97
|
* @param {object} [params] extra parameters specific to the gate api endpoint
|
|
98
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
98
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
99
99
|
*/
|
|
100
100
|
await this.loadMarkets();
|
|
101
101
|
const market = this.market(symbol);
|
|
@@ -272,7 +272,7 @@ export default class gate extends gateRest {
|
|
|
272
272
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
273
273
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
274
274
|
* @param {object} [params] extra parameters specific to the gate api endpoint
|
|
275
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
275
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
276
276
|
*/
|
|
277
277
|
await this.loadMarkets();
|
|
278
278
|
const market = this.market(symbol);
|
|
@@ -293,7 +293,7 @@ export default class gate extends gateRest {
|
|
|
293
293
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
294
294
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
295
295
|
* @param {object} [params] extra parameters specific to the gate api endpoint
|
|
296
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
296
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
297
297
|
*/
|
|
298
298
|
await this.loadMarkets();
|
|
299
299
|
symbols = this.marketSymbols(symbols);
|
|
@@ -380,7 +380,7 @@ export default class gate extends gateRest {
|
|
|
380
380
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
381
381
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
382
382
|
* @param {object} [params] extra parameters specific to the gate api endpoint
|
|
383
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
383
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
384
384
|
*/
|
|
385
385
|
await this.loadMarkets();
|
|
386
386
|
const market = this.market(symbol);
|
|
@@ -524,7 +524,7 @@ export default class gate extends gateRest {
|
|
|
524
524
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
525
525
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
526
526
|
* @param {object} [params] extra parameters specific to the gate api endpoint
|
|
527
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
527
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
528
528
|
*/
|
|
529
529
|
await this.loadMarkets();
|
|
530
530
|
let subType = undefined;
|
|
@@ -614,7 +614,7 @@ export default class gate extends gateRest {
|
|
|
614
614
|
* @name gate#watchBalance
|
|
615
615
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
616
616
|
* @param {object} [params] extra parameters specific to the gate api endpoint
|
|
617
|
-
* @returns {object} a [balance structure]{@link https://
|
|
617
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
618
618
|
*/
|
|
619
619
|
await this.loadMarkets();
|
|
620
620
|
let type = undefined;
|
|
@@ -733,7 +733,7 @@ export default class gate extends gateRest {
|
|
|
733
733
|
* @param {object} [params] extra parameters specific to the gate api endpoint
|
|
734
734
|
* @param {string} [params.type] spot, margin, swap, future, or option. Required if listening to all symbols.
|
|
735
735
|
* @param {boolean} [params.isInverse] if future, listen to inverse or linear contracts
|
|
736
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
736
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
|
|
737
737
|
*/
|
|
738
738
|
await this.loadMarkets();
|
|
739
739
|
let market = undefined;
|
package/js/src/pro/gemini.js
CHANGED
|
@@ -45,7 +45,7 @@ export default class gemini extends geminiRest {
|
|
|
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 {object} [params] extra parameters specific to the gemini api endpoint
|
|
48
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
48
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
49
49
|
*/
|
|
50
50
|
await this.loadMarkets();
|
|
51
51
|
const market = this.market(symbol);
|
|
@@ -286,7 +286,7 @@ export default class gemini extends geminiRest {
|
|
|
286
286
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
287
287
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
288
288
|
* @param {object} [params] extra parameters specific to the gemini api endpoint
|
|
289
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
289
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
290
290
|
*/
|
|
291
291
|
await this.loadMarkets();
|
|
292
292
|
const market = this.market(symbol);
|
|
@@ -382,7 +382,7 @@ export default class gemini extends geminiRest {
|
|
|
382
382
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
383
383
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
384
384
|
* @param {object} [params] extra parameters specific to the gemini api endpoint
|
|
385
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
385
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
386
386
|
*/
|
|
387
387
|
const url = this.urls['api']['ws'] + '/v1/order/events?eventTypeFilter=initial&eventTypeFilter=accepted&eventTypeFilter=rejected&eventTypeFilter=fill&eventTypeFilter=cancelled&eventTypeFilter=booked';
|
|
388
388
|
await this.loadMarkets();
|
package/js/src/pro/hitbtc.js
CHANGED
|
@@ -65,7 +65,7 @@ export default class hitbtc extends hitbtcRest {
|
|
|
65
65
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
66
66
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
67
67
|
* @param {object} [params] extra parameters specific to the hitbtc api endpoint
|
|
68
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
68
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
69
69
|
*/
|
|
70
70
|
const orderbook = await this.watchPublic(symbol, 'orderbook', undefined, params);
|
|
71
71
|
return orderbook.limit();
|
|
@@ -167,7 +167,7 @@ export default class hitbtc extends hitbtcRest {
|
|
|
167
167
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
168
168
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
169
169
|
* @param {object} [params] extra parameters specific to the hitbtc api endpoint
|
|
170
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
170
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
171
171
|
*/
|
|
172
172
|
return await this.watchPublic(symbol, 'ticker', undefined, params);
|
|
173
173
|
}
|
|
@@ -209,7 +209,7 @@ export default class hitbtc extends hitbtcRest {
|
|
|
209
209
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
210
210
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
211
211
|
* @param {object} [params] extra parameters specific to the hitbtc api endpoint
|
|
212
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
212
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
213
213
|
*/
|
|
214
214
|
const trades = await this.watchPublic(symbol, 'trades', undefined, params);
|
|
215
215
|
if (this.newUpdates) {
|
package/js/src/pro/hollaex.js
CHANGED
|
@@ -61,7 +61,7 @@ export default class hollaex extends hollaexRest {
|
|
|
61
61
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
62
62
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
63
63
|
* @param {object} [params] extra parameters specific to the hollaex api endpoint
|
|
64
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
64
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
65
65
|
*/
|
|
66
66
|
await this.loadMarkets();
|
|
67
67
|
const market = this.market(symbol);
|
|
@@ -120,7 +120,7 @@ export default class hollaex extends hollaexRest {
|
|
|
120
120
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
121
121
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
122
122
|
* @param {object} [params] extra parameters specific to the hollaex api endpoint
|
|
123
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
123
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
124
124
|
*/
|
|
125
125
|
await this.loadMarkets();
|
|
126
126
|
const market = this.market(symbol);
|
|
@@ -176,7 +176,7 @@ export default class hollaex extends hollaexRest {
|
|
|
176
176
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
177
177
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
178
178
|
* @param {object} [params] extra parameters specific to the hollaex api endpoint
|
|
179
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
179
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
180
180
|
*/
|
|
181
181
|
await this.loadMarkets();
|
|
182
182
|
let messageHash = 'usertrade';
|
|
@@ -256,7 +256,7 @@ export default class hollaex extends hollaexRest {
|
|
|
256
256
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
257
257
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
258
258
|
* @param {object} [params] extra parameters specific to the hollaex api endpoint
|
|
259
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
259
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
260
260
|
*/
|
|
261
261
|
await this.loadMarkets();
|
|
262
262
|
let messageHash = 'order';
|
|
@@ -374,7 +374,7 @@ export default class hollaex extends hollaexRest {
|
|
|
374
374
|
* @name hollaex#watchBalance
|
|
375
375
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
376
376
|
* @param {object} [params] extra parameters specific to the hollaex api endpoint
|
|
377
|
-
* @returns {object} a [balance structure]{@link https://
|
|
377
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
378
378
|
*/
|
|
379
379
|
const messageHash = 'wallet';
|
|
380
380
|
return await this.watchPrivate(messageHash, params);
|
package/js/src/pro/huobi.js
CHANGED
|
@@ -123,7 +123,7 @@ export default class huobi extends huobiRest {
|
|
|
123
123
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
124
124
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
125
125
|
* @param {object} [params] extra parameters specific to the huobi api endpoint
|
|
126
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
126
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
127
127
|
*/
|
|
128
128
|
await this.loadMarkets();
|
|
129
129
|
const market = this.market(symbol);
|
|
@@ -193,7 +193,7 @@ export default class huobi extends huobiRest {
|
|
|
193
193
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
194
194
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
195
195
|
* @param {object} [params] extra parameters specific to the huobi api endpoint
|
|
196
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
196
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
197
197
|
*/
|
|
198
198
|
await this.loadMarkets();
|
|
199
199
|
const market = this.market(symbol);
|
|
@@ -318,7 +318,7 @@ export default class huobi extends huobiRest {
|
|
|
318
318
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
319
319
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
320
320
|
* @param {object} [params] extra parameters specific to the huobi api endpoint
|
|
321
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
321
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
322
322
|
*/
|
|
323
323
|
await this.loadMarkets();
|
|
324
324
|
const market = this.market(symbol);
|
|
@@ -642,7 +642,7 @@ export default class huobi extends huobiRest {
|
|
|
642
642
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
643
643
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
644
644
|
* @param {object} [params] extra parameters specific to the huobi api endpoint
|
|
645
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
645
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
646
646
|
*/
|
|
647
647
|
this.checkRequiredCredentials();
|
|
648
648
|
await this.loadMarkets();
|
|
@@ -745,7 +745,7 @@ export default class huobi extends huobiRest {
|
|
|
745
745
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
746
746
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
747
747
|
* @param {object} [params] extra parameters specific to the huobi api endpoint
|
|
748
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
748
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
749
749
|
*/
|
|
750
750
|
await this.loadMarkets();
|
|
751
751
|
let type = undefined;
|
|
@@ -1189,7 +1189,7 @@ export default class huobi extends huobiRest {
|
|
|
1189
1189
|
* @name huobi#watchBalance
|
|
1190
1190
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
1191
1191
|
* @param {object} [params] extra parameters specific to the huobi api endpoint
|
|
1192
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1192
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1193
1193
|
*/
|
|
1194
1194
|
let type = this.safeString2(this.options, 'watchBalance', 'defaultType', 'spot');
|
|
1195
1195
|
type = this.safeString(params, 'type', type);
|
package/js/src/pro/huobijp.js
CHANGED
|
@@ -53,7 +53,7 @@ export default class huobijp extends huobijpRest {
|
|
|
53
53
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
54
54
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
55
55
|
* @param {object} [params] extra parameters specific to the huobijp api endpoint
|
|
56
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
56
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
57
57
|
*/
|
|
58
58
|
await this.loadMarkets();
|
|
59
59
|
const market = this.market(symbol);
|
|
@@ -117,7 +117,7 @@ export default class huobijp extends huobijpRest {
|
|
|
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 huobijp 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);
|
|
@@ -267,7 +267,7 @@ export default class huobijp extends huobijpRest {
|
|
|
267
267
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
268
268
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
269
269
|
* @param {object} [params] extra parameters specific to the huobijp api endpoint
|
|
270
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
270
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
271
271
|
*/
|
|
272
272
|
if ((limit !== undefined) && (limit !== 150)) {
|
|
273
273
|
throw new ExchangeError(this.id + ' watchOrderBook accepts limit = 150 only');
|
package/js/src/pro/idex.js
CHANGED
|
@@ -73,7 +73,7 @@ export default class idex extends idexRest {
|
|
|
73
73
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
74
74
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
75
75
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
76
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
76
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
77
77
|
*/
|
|
78
78
|
await this.loadMarkets();
|
|
79
79
|
const market = this.market(symbol);
|
|
@@ -147,7 +147,7 @@ export default class idex extends idexRest {
|
|
|
147
147
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
148
148
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
149
149
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
150
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
150
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
151
151
|
*/
|
|
152
152
|
await this.loadMarkets();
|
|
153
153
|
const market = this.market(symbol);
|
|
@@ -410,7 +410,7 @@ export default class idex extends idexRest {
|
|
|
410
410
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
411
411
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
412
412
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
413
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
413
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
414
414
|
*/
|
|
415
415
|
await this.loadMarkets();
|
|
416
416
|
const market = this.market(symbol);
|
|
@@ -514,7 +514,7 @@ export default class idex extends idexRest {
|
|
|
514
514
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
515
515
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
516
516
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
517
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
517
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
518
518
|
*/
|
|
519
519
|
await this.loadMarkets();
|
|
520
520
|
const name = 'orders';
|
|
@@ -44,7 +44,7 @@ export default class independentreserve extends independentreserveRest {
|
|
|
44
44
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
45
45
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
46
46
|
* @param {object} [params] extra parameters specific to the independentreserve api endpoint
|
|
47
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
47
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
48
48
|
*/
|
|
49
49
|
await this.loadMarkets();
|
|
50
50
|
const market = this.market(symbol);
|
|
@@ -127,7 +127,7 @@ export default class independentreserve extends independentreserveRest {
|
|
|
127
127
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
128
128
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
129
129
|
* @param {object} [params] extra parameters specific to the independentreserve api endpoint
|
|
130
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
130
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
131
131
|
*/
|
|
132
132
|
await this.loadMarkets();
|
|
133
133
|
const market = this.market(symbol);
|