ccxt 4.0.73 → 4.0.75
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 +11 -11
- package/dist/ccxt.browser.js +2058 -1943
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +9 -9
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +22 -22
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +17 -17
- package/dist/cjs/src/binance.js +51 -51
- package/dist/cjs/src/bingx.js +25 -26
- package/dist/cjs/src/bit2c.js +10 -10
- package/dist/cjs/src/bitbank.js +11 -11
- package/dist/cjs/src/bitbns.js +12 -12
- package/dist/cjs/src/bitfinex.js +19 -19
- package/dist/cjs/src/bitfinex2.js +25 -25
- package/dist/cjs/src/bitflyer.js +15 -15
- package/dist/cjs/src/bitforex.js +9 -9
- package/dist/cjs/src/bitget.js +34 -34
- package/dist/cjs/src/bithumb.js +9 -9
- package/dist/cjs/src/bitmart.js +42 -29
- package/dist/cjs/src/bitmex.js +19 -19
- package/dist/cjs/src/bitopro.js +18 -18
- package/dist/cjs/src/bitpanda.js +19 -19
- package/dist/cjs/src/bitrue.js +15 -15
- package/dist/cjs/src/bitso.js +19 -19
- package/dist/cjs/src/bitstamp.js +19 -19
- package/dist/cjs/src/bitstamp1.js +6 -6
- package/dist/cjs/src/bittrex.js +24 -24
- package/dist/cjs/src/bitvavo.js +16 -16
- package/dist/cjs/src/bkex.js +17 -17
- package/dist/cjs/src/bl3p.js +6 -6
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +13 -13
- package/dist/cjs/src/btcbox.js +8 -8
- package/dist/cjs/src/btcmarkets.js +15 -15
- package/dist/cjs/src/btctradeua.js +6 -6
- package/dist/cjs/src/btcturk.js +9 -9
- package/dist/cjs/src/bybit.js +148 -116
- package/dist/cjs/src/cex.js +12 -12
- package/dist/cjs/src/coinbase.js +20 -20
- package/dist/cjs/src/coinbasepro.js +22 -22
- package/dist/cjs/src/coincheck.js +10 -10
- package/dist/cjs/src/coinex.js +81 -35
- package/dist/cjs/src/coinfalcon.js +14 -14
- package/dist/cjs/src/coinmate.js +12 -12
- package/dist/cjs/src/coinone.js +10 -10
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +6 -6
- package/dist/cjs/src/cryptocom.js +24 -24
- package/dist/cjs/src/currencycom.js +18 -18
- package/dist/cjs/src/delta.js +23 -23
- package/dist/cjs/src/deribit.js +27 -27
- package/dist/cjs/src/digifinex.js +27 -27
- package/dist/cjs/src/exmo.js +24 -24
- package/dist/cjs/src/gate.js +34 -34
- package/dist/cjs/src/gemini.js +14 -14
- package/dist/cjs/src/hitbtc.js +30 -30
- package/dist/cjs/src/hollaex.js +20 -20
- package/dist/cjs/src/huobi.js +40 -40
- package/dist/cjs/src/huobijp.js +18 -18
- package/dist/cjs/src/idex.js +17 -17
- package/dist/cjs/src/independentreserve.js +10 -10
- package/dist/cjs/src/indodax.js +12 -12
- package/dist/cjs/src/kraken.js +25 -25
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +29 -29
- package/dist/cjs/src/kucoinfutures.js +19 -19
- package/dist/cjs/src/kuna.js +10 -10
- package/dist/cjs/src/latoken.js +15 -15
- package/dist/cjs/src/lbank.js +10 -10
- package/dist/cjs/src/lbank2.js +21 -21
- package/dist/cjs/src/luno.js +14 -14
- package/dist/cjs/src/lykke.js +14 -14
- package/dist/cjs/src/mercado.js +10 -10
- package/dist/cjs/src/mexc.js +38 -38
- package/dist/cjs/src/ndax.js +18 -18
- package/dist/cjs/src/novadax.js +18 -18
- package/dist/cjs/src/oceanex.js +14 -14
- package/dist/cjs/src/okcoin.js +19 -19
- package/dist/cjs/src/okx.js +48 -48
- package/dist/cjs/src/paymium.js +9 -9
- package/dist/cjs/src/phemex.js +24 -24
- package/dist/cjs/src/poloniex.js +77 -60
- package/dist/cjs/src/poloniexfutures.js +16 -16
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +10 -10
- package/dist/cjs/src/pro/bitfinex.js +3 -3
- package/dist/cjs/src/pro/bitfinex2.js +4 -4
- package/dist/cjs/src/pro/bitget.js +4 -4
- package/dist/cjs/src/pro/bitmart.js +3 -3
- package/dist/cjs/src/pro/bitmex.js +4 -4
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +2 -2
- package/dist/cjs/src/pro/bittrex.js +4 -4
- package/dist/cjs/src/pro/bitvavo.js +4 -4
- package/dist/cjs/src/pro/bybit.js +12 -11
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbasepro.js +5 -5
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +7 -7
- 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 +2 -2
- package/dist/cjs/src/pro/gate.js +5 -5
- package/dist/cjs/src/pro/gemini.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +2 -2
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/huobi.js +4 -4
- package/dist/cjs/src/pro/huobijp.js +2 -2
- package/dist/cjs/src/pro/idex.js +3 -3
- 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 +2 -2
- package/dist/cjs/src/pro/kucoin.js +4 -4
- package/dist/cjs/src/pro/kucoinfutures.js +3 -3
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/ndax.js +2 -2
- package/dist/cjs/src/pro/okcoin.js +3 -3
- package/dist/cjs/src/pro/okx.js +12 -11
- package/dist/cjs/src/pro/phemex.js +4 -4
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/upbit.js +2 -2
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +4 -4
- package/dist/cjs/src/probit.js +17 -17
- package/dist/cjs/src/tidex.js +11 -11
- package/dist/cjs/src/timex.js +14 -14
- package/dist/cjs/src/tokocrypto.js +16 -16
- package/dist/cjs/src/upbit.js +18 -18
- package/dist/cjs/src/wavesexchange.js +13 -13
- package/dist/cjs/src/wazirx.js +10 -10
- package/dist/cjs/src/whitebit.js +21 -21
- package/dist/cjs/src/woo.js +28 -22
- package/dist/cjs/src/yobit.js +14 -14
- package/dist/cjs/src/zaif.js +8 -8
- package/dist/cjs/src/zonda.js +13 -13
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +9 -9
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +22 -22
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +17 -17
- package/js/src/binance.js +51 -51
- package/js/src/bingx.js +25 -26
- package/js/src/bit2c.js +10 -10
- package/js/src/bitbank.js +11 -11
- package/js/src/bitbns.js +12 -12
- package/js/src/bitfinex.js +19 -19
- package/js/src/bitfinex2.js +25 -25
- package/js/src/bitflyer.js +15 -15
- package/js/src/bitforex.js +9 -9
- package/js/src/bitget.js +34 -34
- package/js/src/bithumb.js +9 -9
- package/js/src/bitmart.js +42 -29
- package/js/src/bitmex.js +19 -19
- package/js/src/bitopro.js +18 -18
- package/js/src/bitpanda.js +19 -19
- package/js/src/bitrue.js +15 -15
- package/js/src/bitso.js +19 -19
- package/js/src/bitstamp.js +19 -19
- package/js/src/bitstamp1.js +6 -6
- package/js/src/bittrex.js +24 -24
- package/js/src/bitvavo.js +16 -16
- package/js/src/bkex.js +17 -17
- package/js/src/bl3p.js +6 -6
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +13 -13
- package/js/src/btcbox.js +8 -8
- package/js/src/btcmarkets.js +15 -15
- package/js/src/btctradeua.js +6 -6
- package/js/src/btcturk.js +9 -9
- package/js/src/bybit.js +148 -116
- package/js/src/cex.js +12 -12
- package/js/src/coinbase.js +20 -20
- package/js/src/coinbasepro.js +22 -22
- package/js/src/coincheck.js +10 -10
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +81 -35
- package/js/src/coinfalcon.js +14 -14
- package/js/src/coinmate.js +12 -12
- package/js/src/coinone.js +10 -10
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.js +6 -6
- package/js/src/cryptocom.js +24 -24
- package/js/src/currencycom.js +18 -18
- package/js/src/delta.js +23 -23
- package/js/src/deribit.js +27 -27
- package/js/src/digifinex.js +27 -27
- package/js/src/exmo.js +24 -24
- package/js/src/gate.js +34 -34
- package/js/src/gemini.js +14 -14
- package/js/src/hitbtc.js +30 -30
- package/js/src/hollaex.js +20 -20
- package/js/src/huobi.js +40 -40
- package/js/src/huobijp.js +18 -18
- package/js/src/idex.js +17 -17
- package/js/src/independentreserve.js +10 -10
- package/js/src/indodax.js +12 -12
- package/js/src/kraken.js +25 -25
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +29 -29
- package/js/src/kucoinfutures.js +19 -19
- package/js/src/kuna.js +10 -10
- package/js/src/latoken.js +15 -15
- package/js/src/lbank.js +10 -10
- package/js/src/lbank2.js +21 -21
- package/js/src/luno.js +14 -14
- package/js/src/lykke.js +14 -14
- package/js/src/mercado.js +10 -10
- package/js/src/mexc.js +38 -38
- package/js/src/ndax.js +18 -18
- package/js/src/novadax.js +18 -18
- package/js/src/oceanex.js +14 -14
- package/js/src/okcoin.js +19 -19
- package/js/src/okx.js +48 -48
- package/js/src/paymium.js +9 -9
- package/js/src/phemex.js +24 -24
- package/js/src/poloniex.js +77 -60
- package/js/src/poloniexfutures.js +16 -16
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +10 -10
- package/js/src/pro/bitfinex.js +3 -3
- package/js/src/pro/bitfinex2.js +4 -4
- package/js/src/pro/bitget.js +4 -4
- package/js/src/pro/bitmart.js +3 -3
- package/js/src/pro/bitmex.js +4 -4
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +2 -2
- package/js/src/pro/bittrex.js +4 -4
- package/js/src/pro/bitvavo.js +4 -4
- package/js/src/pro/bybit.d.ts +1 -1
- package/js/src/pro/bybit.js +12 -11
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbasepro.js +5 -5
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/cryptocom.js +7 -7
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +2 -2
- package/js/src/pro/gate.js +5 -5
- package/js/src/pro/gemini.js +2 -2
- package/js/src/pro/hitbtc.js +2 -2
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/huobi.js +4 -4
- package/js/src/pro/huobijp.js +2 -2
- package/js/src/pro/idex.js +3 -3
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/kucoin.js +4 -4
- package/js/src/pro/kucoinfutures.js +3 -3
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/ndax.js +2 -2
- package/js/src/pro/okcoin.js +3 -3
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +12 -11
- package/js/src/pro/phemex.js +4 -4
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/upbit.js +2 -2
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +4 -4
- package/js/src/probit.js +17 -17
- package/js/src/tidex.js +11 -11
- package/js/src/timex.js +14 -14
- package/js/src/tokocrypto.js +16 -16
- package/js/src/upbit.js +18 -18
- package/js/src/wavesexchange.js +13 -13
- package/js/src/wazirx.js +10 -10
- package/js/src/whitebit.js +21 -21
- package/js/src/woo.js +28 -22
- package/js/src/yobit.js +14 -14
- package/js/src/zaif.js +8 -8
- package/js/src/zonda.js +13 -13
- package/package.json +1 -1
package/js/src/pro/bybit.js
CHANGED
|
@@ -165,7 +165,7 @@ export default class bybit extends bybitRest {
|
|
|
165
165
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
|
|
166
166
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
167
167
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
168
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
168
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
169
169
|
*/
|
|
170
170
|
await this.loadMarkets();
|
|
171
171
|
const market = this.market(symbol);
|
|
@@ -426,7 +426,7 @@ export default class bybit extends bybitRest {
|
|
|
426
426
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
427
427
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
428
428
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
429
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
429
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
430
430
|
*/
|
|
431
431
|
await this.loadMarkets();
|
|
432
432
|
const market = this.market(symbol);
|
|
@@ -536,7 +536,7 @@ export default class bybit extends bybitRest {
|
|
|
536
536
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
537
537
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
538
538
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
539
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
539
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
540
540
|
*/
|
|
541
541
|
await this.loadMarkets();
|
|
542
542
|
const market = this.market(symbol);
|
|
@@ -686,7 +686,7 @@ export default class bybit extends bybitRest {
|
|
|
686
686
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
687
687
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
688
688
|
* @param {boolean} [params.unifiedMargin] use unified margin account
|
|
689
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
689
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
|
|
690
690
|
*/
|
|
691
691
|
const method = 'watchMyTrades';
|
|
692
692
|
let messageHash = 'myTrades';
|
|
@@ -811,7 +811,7 @@ export default class bybit extends bybitRest {
|
|
|
811
811
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
812
812
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
813
813
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
814
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
814
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
|
|
815
815
|
*/
|
|
816
816
|
await this.loadMarkets();
|
|
817
817
|
const method = 'watchOrders';
|
|
@@ -1391,12 +1391,13 @@ export default class bybit extends bybitRest {
|
|
|
1391
1391
|
const message = this.extend(request, params);
|
|
1392
1392
|
return await this.watch(url, messageHash, message, messageHash);
|
|
1393
1393
|
}
|
|
1394
|
-
authenticate(url, params = {}) {
|
|
1394
|
+
async authenticate(url, params = {}) {
|
|
1395
1395
|
this.checkRequiredCredentials();
|
|
1396
1396
|
const messageHash = 'authenticated';
|
|
1397
1397
|
const client = this.client(url);
|
|
1398
|
-
|
|
1399
|
-
|
|
1398
|
+
const future = client.future(messageHash);
|
|
1399
|
+
const authenticated = this.safeValue(client.subscriptions, messageHash);
|
|
1400
|
+
if (authenticated === undefined) {
|
|
1400
1401
|
const expiresInt = this.milliseconds() + 10000;
|
|
1401
1402
|
const expires = expiresInt.toString();
|
|
1402
1403
|
const path = 'GET/realtime';
|
|
@@ -1409,8 +1410,7 @@ export default class bybit extends bybitRest {
|
|
|
1409
1410
|
],
|
|
1410
1411
|
};
|
|
1411
1412
|
const message = this.extend(request, params);
|
|
1412
|
-
|
|
1413
|
-
client.subscriptions[messageHash] = future;
|
|
1413
|
+
this.watch(url, messageHash, message, messageHash);
|
|
1414
1414
|
}
|
|
1415
1415
|
return future;
|
|
1416
1416
|
}
|
|
@@ -1569,7 +1569,8 @@ export default class bybit extends bybitRest {
|
|
|
1569
1569
|
const success = this.safeValue(message, 'success');
|
|
1570
1570
|
const messageHash = 'authenticated';
|
|
1571
1571
|
if (success) {
|
|
1572
|
-
client.
|
|
1572
|
+
const future = this.safeValue(client.futures, messageHash);
|
|
1573
|
+
future.resolve(true);
|
|
1573
1574
|
}
|
|
1574
1575
|
else {
|
|
1575
1576
|
const error = new AuthenticationError(this.id + ' ' + this.json(message));
|
package/js/src/pro/cex.js
CHANGED
|
@@ -228,7 +228,7 @@ export default class cex extends cexRest {
|
|
|
228
228
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
229
229
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
230
230
|
* @param {string} [params.method] public or private
|
|
231
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
231
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
232
232
|
*/
|
|
233
233
|
await this.loadMarkets();
|
|
234
234
|
const market = this.market(symbol);
|
|
@@ -265,7 +265,7 @@ export default class cex extends cexRest {
|
|
|
265
265
|
* @description watches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
266
266
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
267
267
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
268
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
268
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
269
269
|
*/
|
|
270
270
|
await this.loadMarkets();
|
|
271
271
|
symbols = this.marketSymbols(symbols);
|
|
@@ -855,7 +855,7 @@ export default class cex extends cexRest {
|
|
|
855
855
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
856
856
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
857
857
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
858
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
858
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
859
859
|
*/
|
|
860
860
|
await this.loadMarkets();
|
|
861
861
|
await this.authenticate();
|
|
@@ -111,7 +111,7 @@ export default class coinbasepro extends coinbaseproRest {
|
|
|
111
111
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
112
112
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
113
113
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
114
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
114
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
115
115
|
*/
|
|
116
116
|
const name = 'ticker';
|
|
117
117
|
return await this.subscribe(name, symbol, name, params);
|
|
@@ -125,7 +125,7 @@ export default class coinbasepro extends coinbaseproRest {
|
|
|
125
125
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
126
126
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
127
127
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
128
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
128
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
129
129
|
*/
|
|
130
130
|
await this.loadMarkets();
|
|
131
131
|
const symbolsLength = symbols.length;
|
|
@@ -169,7 +169,7 @@ export default class coinbasepro extends coinbaseproRest {
|
|
|
169
169
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
170
170
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
171
171
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
172
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
172
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
173
173
|
*/
|
|
174
174
|
this.checkRequiredSymbol('watchMyTrades', symbol);
|
|
175
175
|
await this.loadMarkets();
|
|
@@ -192,7 +192,7 @@ export default class coinbasepro extends coinbaseproRest {
|
|
|
192
192
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
193
193
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
194
194
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
195
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
195
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
196
196
|
*/
|
|
197
197
|
if (symbol === undefined) {
|
|
198
198
|
throw new BadSymbol(this.id + ' watchMyTrades requires a symbol');
|
|
@@ -216,7 +216,7 @@ export default class coinbasepro extends coinbaseproRest {
|
|
|
216
216
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
217
217
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
218
218
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
219
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
219
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
220
220
|
*/
|
|
221
221
|
const name = 'level2';
|
|
222
222
|
await this.loadMarkets();
|
package/js/src/pro/coinex.js
CHANGED
|
@@ -409,7 +409,7 @@ export default class coinex extends coinexRest {
|
|
|
409
409
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
410
410
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
411
411
|
* @param {object} [params] extra parameters specific to the coinex api endpoint
|
|
412
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
412
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
413
413
|
*/
|
|
414
414
|
return await this.watchTickers([symbol], params);
|
|
415
415
|
}
|
|
@@ -421,7 +421,7 @@ export default class coinex extends coinexRest {
|
|
|
421
421
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
422
422
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
423
423
|
* @param {object} [params] extra parameters specific to the coinex api endpoint
|
|
424
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
424
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
425
425
|
*/
|
|
426
426
|
await this.loadMarkets();
|
|
427
427
|
symbols = this.marketSymbols(symbols);
|
|
@@ -486,7 +486,7 @@ export default class coinex extends coinexRest {
|
|
|
486
486
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
487
487
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
488
488
|
* @param {object} [params] extra parameters specific to the coinex api endpoint
|
|
489
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
489
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
490
490
|
*/
|
|
491
491
|
await this.loadMarkets();
|
|
492
492
|
const market = this.market(symbol);
|
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);
|
|
@@ -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;
|
|
@@ -478,7 +478,7 @@ 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
483
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
|
|
484
484
|
*/
|
|
@@ -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;
|
|
@@ -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);
|
|
@@ -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
|
@@ -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);
|
|
@@ -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
|
@@ -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);
|
|
@@ -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);
|
|
@@ -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;
|
|
@@ -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
|
@@ -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
|
}
|
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);
|
|
@@ -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';
|
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);
|
|
@@ -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;
|
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);
|
|
@@ -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);
|
|
@@ -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';
|
|
@@ -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);
|
package/js/src/pro/kraken.js
CHANGED
|
@@ -116,7 +116,7 @@ export default class kraken extends krakenRest {
|
|
|
116
116
|
* @param {string} type 'market' or 'limit'
|
|
117
117
|
* @param {string} side 'buy' or 'sell'
|
|
118
118
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
119
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
119
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
120
120
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
121
121
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
|
|
122
122
|
*/
|
|
@@ -173,7 +173,7 @@ export default class kraken extends krakenRest {
|
|
|
173
173
|
* @param {string} type 'market' or 'limit'
|
|
174
174
|
* @param {string} side 'buy' or 'sell'
|
|
175
175
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
176
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
176
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
177
177
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
178
178
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
|
|
179
179
|
*/
|
|
@@ -469,7 +469,7 @@ export default class kraken extends krakenRest {
|
|
|
469
469
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
470
470
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
471
471
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
472
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
472
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
473
473
|
*/
|
|
474
474
|
return await this.watchPublic('ticker', symbol, params);
|
|
475
475
|
}
|
|
@@ -501,7 +501,7 @@ export default class kraken extends krakenRest {
|
|
|
501
501
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
502
502
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
503
503
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
504
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
504
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
505
505
|
*/
|
|
506
506
|
const name = 'book';
|
|
507
507
|
const request = {};
|
|
@@ -833,7 +833,7 @@ export default class kraken extends krakenRest {
|
|
|
833
833
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
834
834
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
835
835
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
836
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
836
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
837
837
|
*/
|
|
838
838
|
return await this.watchPrivate('ownTrades', symbol, since, limit, params);
|
|
839
839
|
}
|
|
@@ -995,7 +995,7 @@ export default class kraken extends krakenRest {
|
|
|
995
995
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
996
996
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
997
997
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
998
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
998
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
999
999
|
*/
|
|
1000
1000
|
return await this.watchPrivate('openOrders', symbol, since, limit, params);
|
|
1001
1001
|
}
|
|
@@ -238,7 +238,7 @@ export default class krakenfutures extends krakenfuturesRest {
|
|
|
238
238
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
239
239
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
240
240
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
241
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
241
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
242
242
|
*/
|
|
243
243
|
await this.loadMarkets();
|
|
244
244
|
const name = 'fills';
|
|
@@ -264,7 +264,7 @@ export default class krakenfutures extends krakenfuturesRest {
|
|
|
264
264
|
* @param {int} [limit] not used by krakenfutures watchBalance
|
|
265
265
|
* @param {object} [params] extra parameters specific to the krakenfutures api endpoint
|
|
266
266
|
* @param {string} [params.account] can be either 'futures' or 'flex_futures'
|
|
267
|
-
* @returns {object[]} a list of [balance structures]{@link https://
|
|
267
|
+
* @returns {object[]} a list of [balance structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
268
268
|
*/
|
|
269
269
|
await this.loadMarkets();
|
|
270
270
|
const name = 'balances';
|