ccxt 4.0.75 → 4.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/ccxt.browser.js +659 -461
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +2 -2
- package/dist/cjs/src/alpaca.js +1 -1
- package/dist/cjs/src/ascendex.js +3 -3
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +2 -2
- package/dist/cjs/src/binance.js +5 -5
- package/dist/cjs/src/bingx.js +83 -23
- package/dist/cjs/src/bit2c.js +2 -2
- package/dist/cjs/src/bitbank.js +2 -2
- package/dist/cjs/src/bitbns.js +2 -2
- package/dist/cjs/src/bitfinex.js +2 -2
- package/dist/cjs/src/bitfinex2.js +4 -4
- package/dist/cjs/src/bitflyer.js +2 -2
- package/dist/cjs/src/bitforex.js +2 -2
- package/dist/cjs/src/bitget.js +5 -5
- package/dist/cjs/src/bithumb.js +2 -2
- package/dist/cjs/src/bitmart.js +2 -2
- package/dist/cjs/src/bitmex.js +5 -5
- package/dist/cjs/src/bitopro.js +3 -3
- package/dist/cjs/src/bitpanda.js +2 -2
- package/dist/cjs/src/bitrue.js +3 -3
- package/dist/cjs/src/bitso.js +2 -2
- package/dist/cjs/src/bitstamp.js +2 -2
- package/dist/cjs/src/bitstamp1.js +2 -2
- package/dist/cjs/src/bittrex.js +3 -3
- package/dist/cjs/src/bitvavo.js +3 -3
- package/dist/cjs/src/bkex.js +4 -4
- package/dist/cjs/src/bl3p.js +2 -2
- package/dist/cjs/src/blockchaincom.js +1 -1
- package/dist/cjs/src/btcalpha.js +2 -2
- package/dist/cjs/src/btcbox.js +2 -2
- package/dist/cjs/src/btcmarkets.js +2 -2
- package/dist/cjs/src/btctradeua.js +2 -2
- package/dist/cjs/src/btcturk.js +2 -2
- package/dist/cjs/src/bybit.js +5 -5
- package/dist/cjs/src/cex.js +2 -2
- package/dist/cjs/src/coinbase.js +3 -3
- package/dist/cjs/src/coinbasepro.js +2 -2
- package/dist/cjs/src/coincheck.js +2 -2
- package/dist/cjs/src/coinex.js +6 -6
- package/dist/cjs/src/coinfalcon.js +2 -2
- package/dist/cjs/src/coinmate.js +2 -2
- package/dist/cjs/src/coinone.js +2 -2
- package/dist/cjs/src/coinsph.js +7 -2
- package/dist/cjs/src/coinspot.js +2 -2
- package/dist/cjs/src/cryptocom.js +5 -5
- package/dist/cjs/src/currencycom.js +2 -2
- package/dist/cjs/src/delta.js +2 -2
- package/dist/cjs/src/deribit.js +3 -3
- package/dist/cjs/src/digifinex.js +4 -4
- package/dist/cjs/src/exmo.js +2 -2
- package/dist/cjs/src/gate.js +46 -4
- package/dist/cjs/src/gemini.js +3 -3
- package/dist/cjs/src/hitbtc.js +4 -4
- package/dist/cjs/src/hollaex.js +3 -3
- package/dist/cjs/src/huobi.js +5 -5
- package/dist/cjs/src/huobijp.js +2 -2
- package/dist/cjs/src/idex.js +2 -2
- package/dist/cjs/src/independentreserve.js +2 -2
- package/dist/cjs/src/indodax.js +2 -2
- package/dist/cjs/src/kraken.js +2 -2
- package/dist/cjs/src/kucoin.js +4 -4
- package/dist/cjs/src/kucoinfutures.js +5 -5
- package/dist/cjs/src/kuna.js +2 -2
- package/dist/cjs/src/latoken.js +2 -2
- package/dist/cjs/src/lbank.js +2 -2
- package/dist/cjs/src/lbank2.js +2 -2
- package/dist/cjs/src/luno.js +2 -2
- package/dist/cjs/src/lykke.js +2 -2
- package/dist/cjs/src/mercado.js +2 -2
- package/dist/cjs/src/mexc.js +6 -4
- package/dist/cjs/src/ndax.js +2 -2
- package/dist/cjs/src/novadax.js +2 -2
- package/dist/cjs/src/oceanex.js +2 -2
- package/dist/cjs/src/okcoin.js +2 -2
- package/dist/cjs/src/okx.js +4 -4
- package/dist/cjs/src/paymium.js +2 -2
- package/dist/cjs/src/phemex.js +2 -2
- package/dist/cjs/src/poloniex.js +165 -81
- package/dist/cjs/src/poloniexfutures.js +2 -2
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +1 -1
- package/dist/cjs/src/pro/bitfinex2.js +2 -2
- package/dist/cjs/src/pro/bitget.js +2 -2
- package/dist/cjs/src/pro/bitmart.js +1 -1
- package/dist/cjs/src/pro/bitmex.js +2 -2
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitpanda.js +6 -6
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +1 -1
- package/dist/cjs/src/pro/bittrex.js +2 -2
- package/dist/cjs/src/pro/bitvavo.js +1 -1
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/bybit.js +1 -1
- package/dist/cjs/src/pro/cex.js +4 -4
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +1 -1
- package/dist/cjs/src/pro/coinex.js +2 -2
- package/dist/cjs/src/pro/cryptocom.js +3 -3
- package/dist/cjs/src/pro/currencycom.js +2 -2
- package/dist/cjs/src/pro/deribit.js +3 -3
- package/dist/cjs/src/pro/exmo.js +3 -3
- package/dist/cjs/src/pro/gate.js +2 -2
- package/dist/cjs/src/pro/gemini.js +1 -1
- package/dist/cjs/src/pro/hitbtc.js +1 -1
- package/dist/cjs/src/pro/hollaex.js +2 -2
- package/dist/cjs/src/pro/huobi.js +2 -2
- package/dist/cjs/src/pro/huobijp.js +1 -1
- package/dist/cjs/src/pro/idex.js +1 -1
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +6 -6
- package/dist/cjs/src/pro/krakenfutures.js +5 -5
- package/dist/cjs/src/pro/kucoin.js +2 -2
- package/dist/cjs/src/pro/kucoinfutures.js +3 -2
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/mexc.js +6 -6
- package/dist/cjs/src/pro/ndax.js +1 -1
- package/dist/cjs/src/pro/okcoin.js +2 -2
- package/dist/cjs/src/pro/okx.js +10 -7
- package/dist/cjs/src/pro/phemex.js +2 -2
- package/dist/cjs/src/pro/poloniex.js +6 -6
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +1 -1
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +2 -2
- package/dist/cjs/src/probit.js +2 -2
- package/dist/cjs/src/tidex.js +2 -2
- package/dist/cjs/src/timex.js +2 -2
- package/dist/cjs/src/tokocrypto.js +2 -2
- package/dist/cjs/src/upbit.js +2 -2
- package/dist/cjs/src/wavesexchange.js +3 -3
- package/dist/cjs/src/wazirx.js +2 -2
- package/dist/cjs/src/whitebit.js +4 -3
- package/dist/cjs/src/woo.js +2 -2
- package/dist/cjs/src/yobit.js +2 -2
- package/dist/cjs/src/zaif.js +2 -2
- package/dist/cjs/src/zonda.js +2 -2
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bingx.d.ts +2 -0
- package/js/src/abstract/coinsph.d.ts +5 -0
- package/js/src/abstract/gate.d.ts +24 -0
- package/js/src/abstract/gateio.d.ts +24 -0
- package/js/src/ace.js +2 -2
- package/js/src/alpaca.js +1 -1
- package/js/src/ascendex.js +3 -3
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +2 -2
- package/js/src/binance.js +5 -5
- package/js/src/bingx.d.ts +1 -0
- package/js/src/bingx.js +83 -23
- package/js/src/bit2c.js +2 -2
- package/js/src/bitbank.js +2 -2
- package/js/src/bitbns.js +2 -2
- package/js/src/bitfinex.js +2 -2
- package/js/src/bitfinex2.js +4 -4
- package/js/src/bitflyer.js +2 -2
- package/js/src/bitforex.js +2 -2
- package/js/src/bitget.js +5 -5
- package/js/src/bithumb.js +2 -2
- package/js/src/bitmart.js +2 -2
- package/js/src/bitmex.js +5 -5
- package/js/src/bitopro.js +3 -3
- package/js/src/bitpanda.js +2 -2
- package/js/src/bitrue.js +3 -3
- package/js/src/bitso.js +2 -2
- package/js/src/bitstamp.js +2 -2
- package/js/src/bitstamp1.js +2 -2
- package/js/src/bittrex.js +3 -3
- package/js/src/bitvavo.js +3 -3
- package/js/src/bkex.js +4 -4
- package/js/src/bl3p.js +2 -2
- package/js/src/blockchaincom.js +1 -1
- package/js/src/btcalpha.js +2 -2
- package/js/src/btcbox.js +2 -2
- package/js/src/btcmarkets.js +2 -2
- package/js/src/btctradeua.js +2 -2
- package/js/src/btcturk.js +2 -2
- package/js/src/bybit.js +5 -5
- package/js/src/cex.js +2 -2
- package/js/src/coinbase.js +3 -3
- package/js/src/coinbasepro.js +2 -2
- package/js/src/coincheck.js +2 -2
- package/js/src/coinex.js +6 -6
- package/js/src/coinfalcon.js +2 -2
- package/js/src/coinmate.js +2 -2
- package/js/src/coinone.js +2 -2
- package/js/src/coinsph.js +7 -2
- package/js/src/coinspot.js +2 -2
- package/js/src/cryptocom.js +5 -5
- package/js/src/currencycom.js +2 -2
- package/js/src/delta.js +2 -2
- package/js/src/deribit.js +3 -3
- package/js/src/digifinex.js +4 -4
- package/js/src/exmo.js +2 -2
- package/js/src/gate.js +46 -4
- package/js/src/gemini.js +3 -3
- package/js/src/hitbtc.js +4 -4
- package/js/src/hollaex.js +3 -3
- package/js/src/huobi.js +5 -5
- package/js/src/huobijp.js +2 -2
- package/js/src/idex.js +2 -2
- package/js/src/independentreserve.js +2 -2
- package/js/src/indodax.js +2 -2
- package/js/src/kraken.js +2 -2
- package/js/src/kucoin.js +4 -4
- package/js/src/kucoinfutures.js +5 -5
- package/js/src/kuna.js +2 -2
- package/js/src/latoken.js +2 -2
- package/js/src/lbank.js +2 -2
- package/js/src/lbank2.js +2 -2
- package/js/src/luno.js +2 -2
- package/js/src/lykke.js +2 -2
- package/js/src/mercado.js +2 -2
- package/js/src/mexc.js +7 -5
- package/js/src/ndax.js +2 -2
- package/js/src/novadax.js +2 -2
- package/js/src/oceanex.js +2 -2
- package/js/src/okcoin.js +2 -2
- package/js/src/okx.js +4 -4
- package/js/src/paymium.js +2 -2
- package/js/src/phemex.js +2 -2
- package/js/src/poloniex.d.ts +1 -1
- package/js/src/poloniex.js +165 -81
- package/js/src/poloniexfutures.js +2 -2
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +6 -6
- package/js/src/pro/bitfinex.js +1 -1
- package/js/src/pro/bitfinex2.js +2 -2
- package/js/src/pro/bitget.js +2 -2
- package/js/src/pro/bitmart.js +1 -1
- package/js/src/pro/bitmex.js +2 -2
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitpanda.js +6 -6
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +1 -1
- package/js/src/pro/bittrex.js +2 -2
- package/js/src/pro/bitvavo.js +1 -1
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/bybit.js +1 -1
- package/js/src/pro/cex.js +4 -4
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +1 -1
- package/js/src/pro/coinex.js +2 -2
- package/js/src/pro/cryptocom.js +3 -3
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +3 -3
- package/js/src/pro/gate.js +2 -2
- package/js/src/pro/gemini.js +1 -1
- package/js/src/pro/hitbtc.js +1 -1
- package/js/src/pro/hollaex.js +2 -2
- package/js/src/pro/huobi.js +2 -2
- package/js/src/pro/huobijp.js +1 -1
- package/js/src/pro/idex.js +1 -1
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +5 -5
- package/js/src/pro/kucoin.js +2 -2
- package/js/src/pro/kucoinfutures.js +3 -2
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/mexc.js +6 -6
- package/js/src/pro/ndax.js +1 -1
- package/js/src/pro/okcoin.js +2 -2
- package/js/src/pro/okx.js +11 -8
- package/js/src/pro/phemex.js +2 -2
- package/js/src/pro/poloniex.js +6 -6
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +1 -1
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +2 -2
- package/js/src/probit.js +2 -2
- package/js/src/tidex.js +2 -2
- package/js/src/timex.js +2 -2
- package/js/src/tokocrypto.js +2 -2
- package/js/src/upbit.js +2 -2
- package/js/src/wavesexchange.js +3 -3
- package/js/src/wazirx.js +2 -2
- package/js/src/whitebit.js +4 -3
- package/js/src/woo.js +2 -2
- package/js/src/yobit.js +2 -2
- package/js/src/zaif.js +2 -2
- package/js/src/zonda.js +2 -2
- package/package.json +1 -1
- package/skip-tests.json +2 -0
package/js/src/pro/kucoin.js
CHANGED
|
@@ -280,7 +280,7 @@ export default class kucoin extends kucoinRest {
|
|
|
280
280
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
281
281
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
282
282
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
283
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
283
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
284
284
|
*/
|
|
285
285
|
await this.loadMarkets();
|
|
286
286
|
const url = await this.negotiate(false);
|
|
@@ -712,7 +712,7 @@ export default class kucoin extends kucoinRest {
|
|
|
712
712
|
* @name kucoin#watchBalance
|
|
713
713
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
714
714
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
715
|
-
* @returns {object} a [balance structure]{@link https://
|
|
715
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
716
716
|
*/
|
|
717
717
|
await this.loadMarkets();
|
|
718
718
|
const url = await this.negotiate(true);
|
|
@@ -188,7 +188,7 @@ export default class kucoinfutures extends kucoinfuturesRest {
|
|
|
188
188
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
189
189
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
190
190
|
* @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
|
|
191
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
191
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
192
192
|
*/
|
|
193
193
|
await this.loadMarkets();
|
|
194
194
|
const url = await this.negotiate(false);
|
|
@@ -528,8 +528,9 @@ export default class kucoinfutures extends kucoinfuturesRest {
|
|
|
528
528
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
529
529
|
* @see https://docs.kucoin.com/futures/#account-balance-events
|
|
530
530
|
* @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
|
|
531
|
-
* @returns {object} a [balance structure]{@link https://
|
|
531
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
532
532
|
*/
|
|
533
|
+
await this.loadMarkets();
|
|
533
534
|
const url = await this.negotiate(true);
|
|
534
535
|
const topic = '/contractAccount/wallet';
|
|
535
536
|
const request = {
|
package/js/src/pro/luno.js
CHANGED
|
@@ -43,7 +43,7 @@ export default class luno extends lunoRest {
|
|
|
43
43
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
44
44
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
45
45
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
46
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
46
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
47
47
|
*/
|
|
48
48
|
await this.checkRequiredCredentials();
|
|
49
49
|
await this.loadMarkets();
|
package/js/src/pro/mexc.js
CHANGED
|
@@ -67,7 +67,7 @@ export default class mexc extends mexcRest {
|
|
|
67
67
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
68
68
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
69
69
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
70
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
70
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
71
71
|
*/
|
|
72
72
|
await this.loadMarkets();
|
|
73
73
|
const market = this.market(symbol);
|
|
@@ -348,7 +348,7 @@ export default class mexc extends mexcRest {
|
|
|
348
348
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
349
349
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
350
350
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
351
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
351
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
352
352
|
*/
|
|
353
353
|
await this.loadMarkets();
|
|
354
354
|
const market = this.market(symbol);
|
|
@@ -516,7 +516,7 @@ export default class mexc extends mexcRest {
|
|
|
516
516
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
517
517
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
518
518
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
519
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
519
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
520
520
|
*/
|
|
521
521
|
await this.loadMarkets();
|
|
522
522
|
const market = this.market(symbol);
|
|
@@ -605,7 +605,7 @@ export default class mexc extends mexcRest {
|
|
|
605
605
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
606
606
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
607
607
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
608
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
608
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
609
609
|
*/
|
|
610
610
|
await this.loadMarkets();
|
|
611
611
|
let messageHash = 'myTrades';
|
|
@@ -734,7 +734,7 @@ export default class mexc extends mexcRest {
|
|
|
734
734
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
735
735
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
736
736
|
* @params {string|undefined} params.type the type of orders to retrieve, can be 'spot' or 'margin'
|
|
737
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
737
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
738
738
|
*/
|
|
739
739
|
await this.loadMarkets();
|
|
740
740
|
params = this.omit(params, 'type');
|
|
@@ -981,7 +981,7 @@ export default class mexc extends mexcRest {
|
|
|
981
981
|
* @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#spot-account-upadte
|
|
982
982
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
983
983
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
984
|
-
* @returns {object} a [balance structure]{@link https://
|
|
984
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
985
985
|
*/
|
|
986
986
|
await this.loadMarkets();
|
|
987
987
|
let type = undefined;
|
package/js/src/pro/ndax.js
CHANGED
|
@@ -112,7 +112,7 @@ export default class ndax extends ndaxRest {
|
|
|
112
112
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
113
113
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
114
114
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
115
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
115
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
116
116
|
*/
|
|
117
117
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
118
118
|
await this.loadMarkets();
|
package/js/src/pro/okcoin.js
CHANGED
|
@@ -74,7 +74,7 @@ export default class okcoin extends okcoinRest {
|
|
|
74
74
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
75
75
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
76
76
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
77
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
77
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
78
78
|
*/
|
|
79
79
|
await this.loadMarkets();
|
|
80
80
|
symbol = this.symbol(symbol);
|
|
@@ -486,7 +486,7 @@ export default class okcoin extends okcoinRest {
|
|
|
486
486
|
* @name okcoin#watchBalance
|
|
487
487
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
488
488
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
489
|
-
* @returns {object} a [balance structure]{@link https://
|
|
489
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
490
490
|
*/
|
|
491
491
|
const defaultType = this.safeString2(this.options, 'watchBalance', 'defaultType');
|
|
492
492
|
const type = this.safeString(params, 'type', defaultType);
|
package/js/src/pro/okx.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
// ---------------------------------------------------------------------------
|
|
8
8
|
import okxRest from '../okx.js';
|
|
9
|
-
import { AuthenticationError, BadRequest, InvalidNonce } from '../base/errors.js';
|
|
9
|
+
import { ArgumentsRequired, AuthenticationError, BadRequest, InvalidNonce } from '../base/errors.js';
|
|
10
10
|
import { ArrayCache, ArrayCacheByTimestamp, ArrayCacheBySymbolById } from '../base/ws/Cache.js';
|
|
11
11
|
import { sha256 } from '../static_dependencies/noble-hashes/sha256.js';
|
|
12
12
|
// ---------------------------------------------------------------------------
|
|
@@ -160,7 +160,7 @@ export default class okx extends okxRest {
|
|
|
160
160
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
161
161
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
162
162
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
163
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
163
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
164
164
|
*/
|
|
165
165
|
await this.loadMarkets();
|
|
166
166
|
symbol = this.symbol(symbol);
|
|
@@ -233,6 +233,9 @@ export default class okx extends okxRest {
|
|
|
233
233
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
234
234
|
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
235
235
|
*/
|
|
236
|
+
if (this.isEmpty(symbols)) {
|
|
237
|
+
throw new ArgumentsRequired(this.id + ' watchTickers requires a list of symbols');
|
|
238
|
+
}
|
|
236
239
|
let channel = undefined;
|
|
237
240
|
[channel, params] = this.handleOptionAndParams(params, 'watchTickers', 'channel', 'tickers');
|
|
238
241
|
const newTickers = await this.subscribeMultiple('public', channel, symbols, params);
|
|
@@ -640,7 +643,7 @@ export default class okx extends okxRest {
|
|
|
640
643
|
* @name okx#watchBalance
|
|
641
644
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
642
645
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
643
|
-
* @returns {object} a [balance structure]{@link https://
|
|
646
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
644
647
|
*/
|
|
645
648
|
await this.loadMarkets();
|
|
646
649
|
await this.authenticate();
|
|
@@ -993,7 +996,7 @@ export default class okx extends okxRest {
|
|
|
993
996
|
* @param {float|undefined} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
994
997
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
995
998
|
* @param {boolean} params.test test order, default false
|
|
996
|
-
* @returns {object} an [order structure]{@link https://
|
|
999
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
997
1000
|
*/
|
|
998
1001
|
await this.loadMarkets();
|
|
999
1002
|
await this.authenticate();
|
|
@@ -1062,7 +1065,7 @@ export default class okx extends okxRest {
|
|
|
1062
1065
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
1063
1066
|
* @param {float|undefined} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1064
1067
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
1065
|
-
* @returns {object} an [order structure]{@link https://
|
|
1068
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1066
1069
|
*/
|
|
1067
1070
|
await this.loadMarkets();
|
|
1068
1071
|
await this.authenticate();
|
|
@@ -1088,7 +1091,7 @@ export default class okx extends okxRest {
|
|
|
1088
1091
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1089
1092
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
1090
1093
|
* @param {string} [params.clOrdId] client order id
|
|
1091
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
1094
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1092
1095
|
*/
|
|
1093
1096
|
if (symbol === undefined) {
|
|
1094
1097
|
throw new BadRequest(this.id + ' cancelOrderWs() requires a symbol argument');
|
|
@@ -1124,7 +1127,7 @@ export default class okx extends okxRest {
|
|
|
1124
1127
|
* @param {string[]} ids order ids
|
|
1125
1128
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1126
1129
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
1127
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
1130
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1128
1131
|
*/
|
|
1129
1132
|
const idsLength = ids.length;
|
|
1130
1133
|
if (idsLength > 20) {
|
|
@@ -1160,7 +1163,7 @@ export default class okx extends okxRest {
|
|
|
1160
1163
|
* @description cancel all open orders of a type. Only applicable to Option in Portfolio Margin mode, and MMP privilege is required.
|
|
1161
1164
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1162
1165
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
1163
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1166
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1164
1167
|
*/
|
|
1165
1168
|
if (symbol === undefined) {
|
|
1166
1169
|
throw new BadRequest(this.id + ' cancelAllOrdersWs() requires a symbol argument');
|
package/js/src/pro/phemex.js
CHANGED
|
@@ -303,7 +303,7 @@ export default class phemex extends phemexRest {
|
|
|
303
303
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
304
304
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
305
305
|
* @param {string} [params.settle] set to USDT to use hedged perpetual api
|
|
306
|
-
* @returns {object} a [balance structure]{@link https://
|
|
306
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
307
307
|
*/
|
|
308
308
|
await this.loadMarkets();
|
|
309
309
|
let type = undefined;
|
|
@@ -533,7 +533,7 @@ export default class phemex extends phemexRest {
|
|
|
533
533
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
534
534
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
535
535
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
536
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
536
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
537
537
|
*/
|
|
538
538
|
await this.loadMarkets();
|
|
539
539
|
const market = this.market(symbol);
|
package/js/src/pro/poloniex.js
CHANGED
|
@@ -187,7 +187,7 @@ export default class poloniex extends poloniexRest {
|
|
|
187
187
|
* @see https://docs.poloniex.com/#public-channels-market-data-ticker
|
|
188
188
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
189
189
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
190
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
190
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
191
191
|
*/
|
|
192
192
|
await this.loadMarkets();
|
|
193
193
|
symbol = this.symbol(symbol);
|
|
@@ -202,7 +202,7 @@ export default class poloniex extends poloniexRest {
|
|
|
202
202
|
* @see https://docs.poloniex.com/#public-channels-market-data-ticker
|
|
203
203
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
204
204
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
205
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
205
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
206
206
|
*/
|
|
207
207
|
await this.loadMarkets();
|
|
208
208
|
const name = 'ticker';
|
|
@@ -223,7 +223,7 @@ export default class poloniex extends poloniexRest {
|
|
|
223
223
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
224
224
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
225
225
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
226
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
226
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
227
227
|
*/
|
|
228
228
|
await this.loadMarkets();
|
|
229
229
|
symbol = this.symbol(symbol);
|
|
@@ -243,7 +243,7 @@ export default class poloniex extends poloniexRest {
|
|
|
243
243
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
244
244
|
* @param {int} [limit] not used by poloniex watchOrderBook
|
|
245
245
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
246
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
246
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
247
247
|
*/
|
|
248
248
|
await this.loadMarkets();
|
|
249
249
|
const watchOrderBookOptions = this.safeValue(this.options, 'watchOrderBook');
|
|
@@ -262,7 +262,7 @@ export default class poloniex extends poloniexRest {
|
|
|
262
262
|
* @param {int} [since] not used by poloniex watchOrders
|
|
263
263
|
* @param {int} [limit] not used by poloniex watchOrders
|
|
264
264
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
265
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
265
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
266
266
|
*/
|
|
267
267
|
await this.loadMarkets();
|
|
268
268
|
const name = 'orders';
|
|
@@ -310,7 +310,7 @@ export default class poloniex extends poloniexRest {
|
|
|
310
310
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
311
311
|
* @see https://docs.poloniex.com/#authenticated-channels-market-data-balances
|
|
312
312
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
313
|
-
* @returns {object} a [balance structure]{@link https://
|
|
313
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
314
314
|
*/
|
|
315
315
|
await this.loadMarkets();
|
|
316
316
|
const name = 'balances';
|
|
@@ -225,7 +225,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
225
225
|
* @see https://futures-docs.poloniex.com/#get-real-time-symbol-ticker
|
|
226
226
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
227
227
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
228
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
228
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
229
229
|
*/
|
|
230
230
|
await this.loadMarkets();
|
|
231
231
|
symbol = this.symbol(symbol);
|
|
@@ -242,7 +242,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
242
242
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
243
243
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
244
244
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
245
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
245
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
246
246
|
*/
|
|
247
247
|
await this.loadMarkets();
|
|
248
248
|
const options = this.safeValue(this.options, 'watchTrades');
|
|
@@ -265,7 +265,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
265
265
|
* @param {int} [limit] not used by poloniexfutures watchOrderBook
|
|
266
266
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
267
267
|
* @param {string} [params.method] the method to use. Defaults to /contractMarket/level2 can also be /contractMarket/level3v2 to receive the raw stream of orders
|
|
268
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
268
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
269
269
|
*/
|
|
270
270
|
await this.loadMarkets();
|
|
271
271
|
const options = this.safeValue(this.options, 'watchOrderBook');
|
|
@@ -296,7 +296,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
296
296
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
297
297
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
298
298
|
* @param {string} [params.method] the method to use will default to /contractMarket/tradeOrders. Set to /contractMarket/advancedOrders to watch stop orders
|
|
299
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
299
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
300
300
|
*/
|
|
301
301
|
await this.loadMarkets();
|
|
302
302
|
const options = this.safeValue(this.options, 'watchOrders');
|
|
@@ -318,7 +318,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
318
318
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
319
319
|
* @see https://futures-docs.poloniex.com/#account-balance-events
|
|
320
320
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
321
|
-
* @returns {object} a [balance structure]{@link https://
|
|
321
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
322
322
|
*/
|
|
323
323
|
await this.loadMarkets();
|
|
324
324
|
const name = '/contractAccount/wallet';
|
package/js/src/pro/probit.js
CHANGED
|
@@ -58,7 +58,7 @@ export default class probit extends probitRest {
|
|
|
58
58
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
59
59
|
* @see https://docs-en.probit.com/reference/balance-1
|
|
60
60
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
61
|
-
* @returns {object} a [balance structure]{@link https://
|
|
61
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
62
62
|
*/
|
|
63
63
|
await this.authenticate(params);
|
|
64
64
|
const messageHash = 'balance';
|
|
@@ -126,7 +126,7 @@ export default class probit extends probitRest {
|
|
|
126
126
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
127
127
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
128
128
|
* @param {int} [params.interval] Unit time to synchronize market information (ms). Available units: 100, 500
|
|
129
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
129
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
130
130
|
*/
|
|
131
131
|
let filter = undefined;
|
|
132
132
|
[filter, params] = this.handleOptionAndParams(params, 'watchTicker', 'filter', 'ticker');
|
|
@@ -171,7 +171,7 @@ export default class probit extends probitRest {
|
|
|
171
171
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
172
172
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
173
173
|
* @param {int} [params.interval] Unit time to synchronize market information (ms). Available units: 100, 500
|
|
174
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
174
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
175
175
|
*/
|
|
176
176
|
let filter = undefined;
|
|
177
177
|
[filter, params] = this.handleOptionAndParams(params, 'watchTrades', 'filter', 'recent_trades');
|
|
@@ -231,7 +231,7 @@ export default class probit extends probitRest {
|
|
|
231
231
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
232
232
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
233
233
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
234
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
234
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
235
235
|
*/
|
|
236
236
|
await this.loadMarkets();
|
|
237
237
|
await this.authenticate(params);
|
|
@@ -312,7 +312,7 @@ export default class probit extends probitRest {
|
|
|
312
312
|
* @param {int} [limit] the maximum amount of orders to watch
|
|
313
313
|
* @param {object} [params] extra parameters specific to the aax api endpoint
|
|
314
314
|
* @param {string} [params.channel] choose what channel to use. Can open_order or order_history.
|
|
315
|
-
* @returns {object} An [order structure]{@link https://
|
|
315
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
316
316
|
*/
|
|
317
317
|
await this.authenticate(params);
|
|
318
318
|
const url = this.urls['api']['ws'];
|
|
@@ -396,7 +396,7 @@ export default class probit extends probitRest {
|
|
|
396
396
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
397
397
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
398
398
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
399
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
399
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
400
400
|
*/
|
|
401
401
|
let filter = undefined;
|
|
402
402
|
[filter, params] = this.handleOptionAndParams(params, 'watchOrderBook', 'filter', 'order_books');
|
package/js/src/pro/upbit.js
CHANGED
|
@@ -71,7 +71,7 @@ export default class upbit extends upbitRest {
|
|
|
71
71
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
72
72
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
73
73
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
74
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
74
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
75
75
|
*/
|
|
76
76
|
await this.loadMarkets();
|
|
77
77
|
symbol = this.symbol(symbol);
|
package/js/src/pro/wazirx.js
CHANGED
|
@@ -47,7 +47,7 @@ export default class wazirx extends wazirxRest {
|
|
|
47
47
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
48
48
|
* @see https://docs.wazirx.com/#account-update
|
|
49
49
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
50
|
-
* @returns {object} a [balance structure]{@link https://
|
|
50
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
51
51
|
*/
|
|
52
52
|
await this.loadMarkets();
|
|
53
53
|
const token = await this.authenticate(params);
|
|
@@ -291,7 +291,7 @@ export default class wazirx extends wazirxRest {
|
|
|
291
291
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
292
292
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
293
293
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
294
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
294
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
295
295
|
*/
|
|
296
296
|
await this.loadMarkets();
|
|
297
297
|
const market = this.market(symbol);
|
|
@@ -357,7 +357,7 @@ export default class wazirx extends wazirxRest {
|
|
|
357
357
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
358
358
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
359
359
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
360
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
360
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
361
361
|
*/
|
|
362
362
|
await this.loadMarkets();
|
|
363
363
|
const token = await this.authenticate(params);
|
package/js/src/pro/whitebit.js
CHANGED
|
@@ -308,7 +308,7 @@ export default class whitebit extends whitebitRest {
|
|
|
308
308
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
309
309
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
310
310
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
311
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
311
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
312
312
|
*/
|
|
313
313
|
await this.loadMarkets();
|
|
314
314
|
const market = this.market(symbol);
|
|
@@ -646,7 +646,7 @@ export default class whitebit extends whitebitRest {
|
|
|
646
646
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
647
647
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
648
648
|
* @param {str} [params.type] spot or contract if not provided this.options['defaultType'] is used
|
|
649
|
-
* @returns {object} a [balance structure]{@link https://
|
|
649
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
650
650
|
*/
|
|
651
651
|
await this.loadMarkets();
|
|
652
652
|
let type = undefined;
|
package/js/src/probit.js
CHANGED
|
@@ -533,7 +533,7 @@ export default class probit extends Exchange {
|
|
|
533
533
|
* @see https://docs-en.probit.com/reference/balance
|
|
534
534
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
535
535
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
536
|
-
* @returns {object} a [balance structure]{@link https://
|
|
536
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
537
537
|
*/
|
|
538
538
|
await this.loadMarkets();
|
|
539
539
|
const response = await this.privateGetBalance(params);
|
|
@@ -762,7 +762,7 @@ export default class probit extends Exchange {
|
|
|
762
762
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
763
763
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
764
764
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
765
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
765
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
766
766
|
*/
|
|
767
767
|
await this.loadMarkets();
|
|
768
768
|
const market = this.market(symbol);
|
package/js/src/tidex.js
CHANGED
|
@@ -369,7 +369,7 @@ export default class tidex extends Exchange {
|
|
|
369
369
|
* @name tidex#fetchBalance
|
|
370
370
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
371
371
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
372
|
-
* @returns {object} a [balance structure]{@link https://
|
|
372
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
373
373
|
*/
|
|
374
374
|
await this.loadMarkets();
|
|
375
375
|
const response = await this.privatePostGetInfoExt(params);
|
|
@@ -623,7 +623,7 @@ export default class tidex extends Exchange {
|
|
|
623
623
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
624
624
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
625
625
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
626
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
626
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
627
627
|
*/
|
|
628
628
|
await this.loadMarkets();
|
|
629
629
|
const market = this.market(symbol);
|
package/js/src/timex.js
CHANGED
|
@@ -584,7 +584,7 @@ export default class timex extends Exchange {
|
|
|
584
584
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
585
585
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
586
586
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
587
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
587
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
588
588
|
*/
|
|
589
589
|
await this.loadMarkets();
|
|
590
590
|
const market = this.market(symbol);
|
|
@@ -693,7 +693,7 @@ export default class timex extends Exchange {
|
|
|
693
693
|
* @name timex#fetchBalance
|
|
694
694
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
695
695
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
696
|
-
* @returns {object} a [balance structure]{@link https://
|
|
696
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
697
697
|
*/
|
|
698
698
|
await this.loadMarkets();
|
|
699
699
|
const response = await this.tradingGetBalances(params);
|
package/js/src/tokocrypto.js
CHANGED
|
@@ -997,7 +997,7 @@ export default class tokocrypto extends Exchange {
|
|
|
997
997
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
998
998
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
999
999
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1000
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1000
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
1001
1001
|
*/
|
|
1002
1002
|
await this.loadMarkets();
|
|
1003
1003
|
const market = this.market(symbol);
|
|
@@ -1324,7 +1324,7 @@ export default class tokocrypto extends Exchange {
|
|
|
1324
1324
|
* @param {string} [params.type] 'future', 'delivery', 'savings', 'funding', or 'spot'
|
|
1325
1325
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null
|
|
1326
1326
|
* @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
|
|
1327
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1327
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1328
1328
|
*/
|
|
1329
1329
|
await this.loadMarkets();
|
|
1330
1330
|
const defaultType = this.safeString2(this.options, 'fetchBalance', 'defaultType', 'spot');
|
package/js/src/upbit.js
CHANGED
|
@@ -502,7 +502,7 @@ export default class upbit extends Exchange {
|
|
|
502
502
|
* @see https://docs.upbit.com/reference/%EC%A0%84%EC%B2%B4-%EA%B3%84%EC%A2%8C-%EC%A1%B0%ED%9A%8C
|
|
503
503
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
504
504
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
505
|
-
* @returns {object} a [balance structure]{@link https://
|
|
505
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
506
506
|
*/
|
|
507
507
|
await this.loadMarkets();
|
|
508
508
|
const response = await this.privateGetAccounts(params);
|
|
@@ -824,7 +824,7 @@ export default class upbit extends Exchange {
|
|
|
824
824
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
825
825
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
826
826
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
827
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
827
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
828
828
|
*/
|
|
829
829
|
await this.loadMarkets();
|
|
830
830
|
const market = this.market(symbol);
|
package/js/src/wavesexchange.js
CHANGED
|
@@ -1836,7 +1836,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1836
1836
|
* @name wavesexchange#fetchBalance
|
|
1837
1837
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1838
1838
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1839
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1839
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1840
1840
|
*/
|
|
1841
1841
|
// makes a lot of different requests to get all the data
|
|
1842
1842
|
// in particular:
|
|
@@ -2082,7 +2082,7 @@ export default class wavesexchange extends Exchange {
|
|
|
2082
2082
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2083
2083
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
2084
2084
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
2085
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
2085
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
2086
2086
|
*/
|
|
2087
2087
|
await this.loadMarkets();
|
|
2088
2088
|
const market = this.market(symbol);
|
|
@@ -2338,7 +2338,7 @@ export default class wavesexchange extends Exchange {
|
|
|
2338
2338
|
* @see https://docs.wx.network/en/api/gateways/withdraw/currencies
|
|
2339
2339
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2340
2340
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
2341
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
2341
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
2342
2342
|
*/
|
|
2343
2343
|
await this.loadMarkets();
|
|
2344
2344
|
let data = [];
|
package/js/src/wazirx.js
CHANGED
|
@@ -439,7 +439,7 @@ export default class wazirx extends Exchange {
|
|
|
439
439
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
440
440
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
441
441
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
442
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
442
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
443
443
|
*/
|
|
444
444
|
await this.loadMarkets();
|
|
445
445
|
const market = this.market(symbol);
|
|
@@ -611,7 +611,7 @@ export default class wazirx extends Exchange {
|
|
|
611
611
|
* @see https://docs.wazirx.com/#fund-details-user_data
|
|
612
612
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
613
613
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
614
|
-
* @returns {object} a [balance structure]{@link https://
|
|
614
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
615
615
|
*/
|
|
616
616
|
await this.loadMarkets();
|
|
617
617
|
const response = await this.privateGetFunds(params);
|