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/btcturk.js
CHANGED
|
@@ -292,7 +292,7 @@ export default class btcturk extends Exchange {
|
|
|
292
292
|
* @name btcturk#fetchBalance
|
|
293
293
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
294
294
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
295
|
-
* @returns {object} a [balance structure]{@link https://
|
|
295
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
296
296
|
*/
|
|
297
297
|
await this.loadMarkets();
|
|
298
298
|
const response = await this.privateGetUsersBalances(params);
|
|
@@ -492,7 +492,7 @@ export default class btcturk extends Exchange {
|
|
|
492
492
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
493
493
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
494
494
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
495
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
495
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
496
496
|
*/
|
|
497
497
|
await this.loadMarkets();
|
|
498
498
|
const market = this.market(symbol);
|
package/js/src/bybit.js
CHANGED
|
@@ -2602,10 +2602,10 @@ export default class bybit extends Exchange {
|
|
|
2602
2602
|
* @see https://bybit-exchange.github.io/docs/v5/market/history-fund-rate
|
|
2603
2603
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2604
2604
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
2605
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://
|
|
2605
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
|
|
2606
2606
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
2607
2607
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
2608
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://
|
|
2608
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
|
|
2609
2609
|
*/
|
|
2610
2610
|
this.checkRequiredSymbol('fetchFundingRateHistory', symbol);
|
|
2611
2611
|
await this.loadMarkets();
|
|
@@ -2939,7 +2939,7 @@ export default class bybit extends Exchange {
|
|
|
2939
2939
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2940
2940
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
2941
2941
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
2942
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
2942
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
2943
2943
|
*/
|
|
2944
2944
|
this.checkRequiredSymbol('fetchTrades', symbol);
|
|
2945
2945
|
await this.loadMarkets();
|
|
@@ -3347,7 +3347,7 @@ export default class bybit extends Exchange {
|
|
|
3347
3347
|
* @name bybit#fetchBalance
|
|
3348
3348
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
3349
3349
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
3350
|
-
* @returns {object} a [balance structure]{@link https://
|
|
3350
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
3351
3351
|
*/
|
|
3352
3352
|
await this.loadMarkets();
|
|
3353
3353
|
const request = {};
|
|
@@ -8909,7 +8909,7 @@ export default class bybit extends Exchange {
|
|
|
8909
8909
|
* @see https://bybit-exchange.github.io/docs/v5/asset/coin-info
|
|
8910
8910
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
8911
8911
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
8912
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
8912
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
8913
8913
|
*/
|
|
8914
8914
|
this.checkRequiredCredentials();
|
|
8915
8915
|
await this.loadMarkets();
|
package/js/src/cex.js
CHANGED
|
@@ -467,7 +467,7 @@ export default class cex extends Exchange {
|
|
|
467
467
|
* @name cex#fetchBalance
|
|
468
468
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
469
469
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
470
|
-
* @returns {object} a [balance structure]{@link https://
|
|
470
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
471
471
|
*/
|
|
472
472
|
await this.loadMarkets();
|
|
473
473
|
const response = await this.privatePostBalance(params);
|
|
@@ -681,7 +681,7 @@ export default class cex extends Exchange {
|
|
|
681
681
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
682
682
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
683
683
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
684
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
684
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
685
685
|
*/
|
|
686
686
|
await this.loadMarkets();
|
|
687
687
|
const market = this.market(symbol);
|
package/js/src/coinbase.js
CHANGED
|
@@ -1504,7 +1504,7 @@ export default class coinbase extends Exchange {
|
|
|
1504
1504
|
* @name coinbase#fetchBalance
|
|
1505
1505
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1506
1506
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
1507
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1507
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1508
1508
|
*/
|
|
1509
1509
|
await this.loadMarkets();
|
|
1510
1510
|
const request = {
|
|
@@ -2652,7 +2652,7 @@ export default class coinbase extends Exchange {
|
|
|
2652
2652
|
* @param {int} [since] not used by coinbase fetchTrades
|
|
2653
2653
|
* @param {int} [limit] the maximum number of trade structures to fetch
|
|
2654
2654
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
2655
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
2655
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
2656
2656
|
*/
|
|
2657
2657
|
await this.loadMarkets();
|
|
2658
2658
|
const market = this.market(symbol);
|
|
@@ -2789,7 +2789,7 @@ export default class coinbase extends Exchange {
|
|
|
2789
2789
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getbestbidask
|
|
2790
2790
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
2791
2791
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
2792
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
2792
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
2793
2793
|
*/
|
|
2794
2794
|
await this.loadMarkets();
|
|
2795
2795
|
symbols = this.marketSymbols(symbols);
|
package/js/src/coinbasepro.js
CHANGED
|
@@ -488,7 +488,7 @@ export default class coinbasepro extends Exchange {
|
|
|
488
488
|
* @name coinbasepro#fetchBalance
|
|
489
489
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
490
490
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
491
|
-
* @returns {object} a [balance structure]{@link https://
|
|
491
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
492
492
|
*/
|
|
493
493
|
await this.loadMarkets();
|
|
494
494
|
const response = await this.privateGetAccounts(params);
|
|
@@ -807,7 +807,7 @@ export default class coinbasepro extends Exchange {
|
|
|
807
807
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
808
808
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
809
809
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
810
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
810
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
811
811
|
*/
|
|
812
812
|
await this.loadMarkets();
|
|
813
813
|
const market = this.market(symbol);
|
package/js/src/coincheck.js
CHANGED
|
@@ -189,7 +189,7 @@ export default class coincheck extends Exchange {
|
|
|
189
189
|
* @name coincheck#fetchBalance
|
|
190
190
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
191
191
|
* @param {object} [params] extra parameters specific to the coincheck api endpoint
|
|
192
|
-
* @returns {object} a [balance structure]{@link https://
|
|
192
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
193
193
|
*/
|
|
194
194
|
await this.loadMarkets();
|
|
195
195
|
const response = await this.privateGetAccountsBalance(params);
|
|
@@ -491,7 +491,7 @@ export default class coincheck extends Exchange {
|
|
|
491
491
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
492
492
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
493
493
|
* @param {object} [params] extra parameters specific to the coincheck api endpoint
|
|
494
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
494
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
495
495
|
*/
|
|
496
496
|
await this.loadMarkets();
|
|
497
497
|
const market = this.market(symbol);
|
package/js/src/coinex.js
CHANGED
|
@@ -689,9 +689,9 @@ export default class coinex extends Exchange {
|
|
|
689
689
|
'high': this.safeString(ticker, 'high'),
|
|
690
690
|
'low': this.safeString(ticker, 'low'),
|
|
691
691
|
'bid': this.safeString(ticker, 'buy'),
|
|
692
|
-
'bidVolume':
|
|
692
|
+
'bidVolume': this.safeString(ticker, 'buy_amount'),
|
|
693
693
|
'ask': this.safeString(ticker, 'sell'),
|
|
694
|
-
'askVolume':
|
|
694
|
+
'askVolume': this.safeString(ticker, 'sell_amount'),
|
|
695
695
|
'vwap': undefined,
|
|
696
696
|
'open': this.safeString(ticker, 'open'),
|
|
697
697
|
'close': last,
|
|
@@ -1100,7 +1100,7 @@ export default class coinex extends Exchange {
|
|
|
1100
1100
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1101
1101
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1102
1102
|
* @param {object} [params] extra parameters specific to the coinex api endpoint
|
|
1103
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1103
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
1104
1104
|
*/
|
|
1105
1105
|
await this.loadMarkets();
|
|
1106
1106
|
const market = this.market(symbol);
|
|
@@ -1491,7 +1491,7 @@ export default class coinex extends Exchange {
|
|
|
1491
1491
|
* @see https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http016_asset_query // swap
|
|
1492
1492
|
* @param {object} [params] extra parameters specific to the coinex api endpoint
|
|
1493
1493
|
* @param {string} [params.type] 'margin', 'swap', 'financial', or 'spot'
|
|
1494
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1494
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1495
1495
|
*/
|
|
1496
1496
|
let marketType = undefined;
|
|
1497
1497
|
[marketType, params] = this.handleMarketTypeAndParams('fetchBalance', undefined, params);
|
|
@@ -3848,9 +3848,9 @@ export default class coinex extends Exchange {
|
|
|
3848
3848
|
* @description fetches historical funding rate prices
|
|
3849
3849
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
3850
3850
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
3851
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://
|
|
3851
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
|
|
3852
3852
|
* @param {object} [params] extra parameters specific to the coinex api endpoint
|
|
3853
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://
|
|
3853
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
|
|
3854
3854
|
*/
|
|
3855
3855
|
if (symbol === undefined) {
|
|
3856
3856
|
throw new ArgumentsRequired(this.id + ' fetchFundingRateHistory() requires a symbol argument');
|
package/js/src/coinfalcon.js
CHANGED
|
@@ -452,7 +452,7 @@ export default class coinfalcon extends Exchange {
|
|
|
452
452
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
453
453
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
454
454
|
* @param {object} [params] extra parameters specific to the coinfalcon api endpoint
|
|
455
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
455
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
456
456
|
*/
|
|
457
457
|
await this.loadMarkets();
|
|
458
458
|
const market = this.market(symbol);
|
|
@@ -538,7 +538,7 @@ export default class coinfalcon extends Exchange {
|
|
|
538
538
|
* @name coinfalcon#fetchBalance
|
|
539
539
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
540
540
|
* @param {object} [params] extra parameters specific to the coinfalcon api endpoint
|
|
541
|
-
* @returns {object} a [balance structure]{@link https://
|
|
541
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
542
542
|
*/
|
|
543
543
|
await this.loadMarkets();
|
|
544
544
|
const response = await this.privateGetUserAccounts(params);
|
package/js/src/coinmate.js
CHANGED
|
@@ -318,7 +318,7 @@ export default class coinmate extends Exchange {
|
|
|
318
318
|
* @name coinmate#fetchBalance
|
|
319
319
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
320
320
|
* @param {object} [params] extra parameters specific to the coinmate 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 response = await this.privatePostBalances(params);
|
|
@@ -651,7 +651,7 @@ export default class coinmate extends Exchange {
|
|
|
651
651
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
652
652
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
653
653
|
* @param {object} [params] extra parameters specific to the coinmate api endpoint
|
|
654
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
654
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
655
655
|
*/
|
|
656
656
|
await this.loadMarkets();
|
|
657
657
|
const market = this.market(symbol);
|
package/js/src/coinone.js
CHANGED
|
@@ -262,7 +262,7 @@ export default class coinone extends Exchange {
|
|
|
262
262
|
* @name coinone#fetchBalance
|
|
263
263
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
264
264
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
265
|
-
* @returns {object} a [balance structure]{@link https://
|
|
265
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
266
266
|
*/
|
|
267
267
|
await this.loadMarkets();
|
|
268
268
|
const response = await this.privatePostAccountBalance(params);
|
|
@@ -463,7 +463,7 @@ export default class coinone extends Exchange {
|
|
|
463
463
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
464
464
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
465
465
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
466
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
466
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
467
467
|
*/
|
|
468
468
|
await this.loadMarkets();
|
|
469
469
|
const market = this.market(symbol);
|
package/js/src/coinsph.js
CHANGED
|
@@ -205,6 +205,11 @@ export default class coinsph extends Exchange {
|
|
|
205
205
|
'openapi/convert/v1/get-supported-trading-pairs': 1,
|
|
206
206
|
'openapi/convert/v1/get-quote': 1,
|
|
207
207
|
'openapi/convert/v1/accpet-quote': 1,
|
|
208
|
+
'openapi/fiat/v1/support-channel': 1,
|
|
209
|
+
'openapi/fiat/v1/cash-out': 1,
|
|
210
|
+
'openapi/fiat/v1/history': 1,
|
|
211
|
+
'openapi/migration/v4/sellorder': 1,
|
|
212
|
+
'openapi/migration/v4/validate-field': 1,
|
|
208
213
|
'openapi/transfer/v3/transfers': 1,
|
|
209
214
|
},
|
|
210
215
|
'delete': {
|
|
@@ -832,7 +837,7 @@ export default class coinsph extends Exchange {
|
|
|
832
837
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
833
838
|
* @param {int} [limit] the maximum amount of trades to fetch (default 500, max 1000)
|
|
834
839
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
835
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
840
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
836
841
|
*/
|
|
837
842
|
await this.loadMarkets();
|
|
838
843
|
const market = this.market(symbol);
|
|
@@ -1006,7 +1011,7 @@ export default class coinsph extends Exchange {
|
|
|
1006
1011
|
* @name coinsph#fetchBalance
|
|
1007
1012
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1008
1013
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1009
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1014
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1010
1015
|
*/
|
|
1011
1016
|
await this.loadMarkets();
|
|
1012
1017
|
const response = await this.privateGetOpenapiV1Account(params);
|
package/js/src/coinspot.js
CHANGED
|
@@ -174,7 +174,7 @@ export default class coinspot extends Exchange {
|
|
|
174
174
|
* @name coinspot#fetchBalance
|
|
175
175
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
176
176
|
* @param {object} [params] extra parameters specific to the coinspot api endpoint
|
|
177
|
-
* @returns {object} a [balance structure]{@link https://
|
|
177
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
178
178
|
*/
|
|
179
179
|
await this.loadMarkets();
|
|
180
180
|
const method = this.safeString(this.options, 'fetchBalance', 'private_post_my_balances');
|
|
@@ -332,7 +332,7 @@ export default class coinspot extends Exchange {
|
|
|
332
332
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
333
333
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
334
334
|
* @param {object} [params] extra parameters specific to the coinspot api endpoint
|
|
335
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
335
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
336
336
|
*/
|
|
337
337
|
await this.loadMarkets();
|
|
338
338
|
const market = this.market(symbol);
|
package/js/src/cryptocom.js
CHANGED
|
@@ -729,7 +729,7 @@ export default class cryptocom extends Exchange {
|
|
|
729
729
|
* @param {int} [limit] the maximum number of trades to fetch
|
|
730
730
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
731
731
|
* @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
|
|
732
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
732
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
733
733
|
*/
|
|
734
734
|
await this.loadMarkets();
|
|
735
735
|
const market = this.market(symbol);
|
|
@@ -895,7 +895,7 @@ export default class cryptocom extends Exchange {
|
|
|
895
895
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
896
896
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-user-balance
|
|
897
897
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
898
|
-
* @returns {object} a [balance structure]{@link https://
|
|
898
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
899
899
|
*/
|
|
900
900
|
await this.loadMarkets();
|
|
901
901
|
const response = await this.v1PrivatePostPrivateUserBalance(params);
|
|
@@ -2434,7 +2434,7 @@ export default class cryptocom extends Exchange {
|
|
|
2434
2434
|
* @see https://exchange-docs.crypto.com/spot/index.html#private-get-currency-networks
|
|
2435
2435
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2436
2436
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
2437
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
2437
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
2438
2438
|
*/
|
|
2439
2439
|
await this.loadMarkets();
|
|
2440
2440
|
const response = await this.v2PrivatePostPrivateGetCurrencyNetworks(params);
|
|
@@ -2453,7 +2453,7 @@ export default class cryptocom extends Exchange {
|
|
|
2453
2453
|
* @param {int} [limit] max number of ledger entries to return
|
|
2454
2454
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
2455
2455
|
* @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
|
|
2456
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
2456
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
2457
2457
|
*/
|
|
2458
2458
|
await this.loadMarkets();
|
|
2459
2459
|
const request = {};
|
|
@@ -2764,7 +2764,7 @@ export default class cryptocom extends Exchange {
|
|
|
2764
2764
|
* @param {int} [limit] the maximum amount of [funding rate structures] to fetch
|
|
2765
2765
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
2766
2766
|
* @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
|
|
2767
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://
|
|
2767
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
|
|
2768
2768
|
*/
|
|
2769
2769
|
this.checkRequiredSymbol('fetchFundingRateHistory', symbol);
|
|
2770
2770
|
await this.loadMarkets();
|
package/js/src/currencycom.js
CHANGED
|
@@ -713,7 +713,7 @@ export default class currencycom extends Exchange {
|
|
|
713
713
|
* @name currencycom#fetchBalance
|
|
714
714
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
715
715
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
716
|
-
* @returns {object} a [balance structure]{@link https://
|
|
716
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
717
717
|
*/
|
|
718
718
|
await this.loadMarkets();
|
|
719
719
|
const response = await this.privateGetV2Account(params);
|
|
@@ -1075,7 +1075,7 @@ export default class currencycom extends Exchange {
|
|
|
1075
1075
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1076
1076
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1077
1077
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1078
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1078
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
1079
1079
|
*/
|
|
1080
1080
|
await this.loadMarkets();
|
|
1081
1081
|
const market = this.market(symbol);
|
package/js/src/delta.js
CHANGED
|
@@ -1413,7 +1413,7 @@ export default class delta extends Exchange {
|
|
|
1413
1413
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1414
1414
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1415
1415
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1416
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1416
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
1417
1417
|
*/
|
|
1418
1418
|
await this.loadMarkets();
|
|
1419
1419
|
const market = this.market(symbol);
|
|
@@ -1537,7 +1537,7 @@ export default class delta extends Exchange {
|
|
|
1537
1537
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1538
1538
|
* @see https://docs.delta.exchange/#get-wallet-balances
|
|
1539
1539
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1540
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1540
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1541
1541
|
*/
|
|
1542
1542
|
await this.loadMarkets();
|
|
1543
1543
|
const response = await this.privateGetWalletBalances(params);
|
package/js/src/deribit.js
CHANGED
|
@@ -836,7 +836,7 @@ export default class deribit extends Exchange {
|
|
|
836
836
|
* @name deribit#fetchBalance
|
|
837
837
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
838
838
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
839
|
-
* @returns {object} a [balance structure]{@link https://
|
|
839
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
840
840
|
*/
|
|
841
841
|
await this.loadMarkets();
|
|
842
842
|
const code = this.codeFromOptions('fetchBalance', params);
|
|
@@ -1306,7 +1306,7 @@ export default class deribit extends Exchange {
|
|
|
1306
1306
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1307
1307
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1308
1308
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1309
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1309
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
1310
1310
|
*/
|
|
1311
1311
|
await this.loadMarkets();
|
|
1312
1312
|
const market = this.market(symbol);
|
|
@@ -2758,7 +2758,7 @@ export default class deribit extends Exchange {
|
|
|
2758
2758
|
* @see https://docs.deribit.com/#public-get_currencies
|
|
2759
2759
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2760
2760
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2761
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
2761
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
2762
2762
|
*/
|
|
2763
2763
|
await this.loadMarkets();
|
|
2764
2764
|
const response = await this.publicGetGetCurrencies(params);
|
package/js/src/digifinex.js
CHANGED
|
@@ -786,7 +786,7 @@ export default class digifinex extends Exchange {
|
|
|
786
786
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
|
|
787
787
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#accountbalance
|
|
788
788
|
* @param {object} [params] extra parameters specific to the digifinex api endpoint
|
|
789
|
-
* @returns {object} a [balance structure]{@link https://
|
|
789
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
790
790
|
*/
|
|
791
791
|
await this.loadMarkets();
|
|
792
792
|
let marketType = undefined;
|
|
@@ -1355,7 +1355,7 @@ export default class digifinex extends Exchange {
|
|
|
1355
1355
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1356
1356
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1357
1357
|
* @param {object} [params] extra parameters specific to the digifinex api endpoint
|
|
1358
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1358
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
1359
1359
|
*/
|
|
1360
1360
|
await this.loadMarkets();
|
|
1361
1361
|
const market = this.market(symbol);
|
|
@@ -3002,9 +3002,9 @@ export default class digifinex extends Exchange {
|
|
|
3002
3002
|
* @description fetches historical funding rate prices
|
|
3003
3003
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
3004
3004
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
3005
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://
|
|
3005
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
|
|
3006
3006
|
* @param {object} [params] extra parameters specific to the digifinex api endpoint
|
|
3007
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://
|
|
3007
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
|
|
3008
3008
|
*/
|
|
3009
3009
|
this.checkRequiredSymbol('fetchFundingRateHistory', symbol);
|
|
3010
3010
|
await this.loadMarkets();
|
package/js/src/exmo.js
CHANGED
|
@@ -897,7 +897,7 @@ export default class exmo extends Exchange {
|
|
|
897
897
|
* @name exmo#fetchBalance
|
|
898
898
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
899
899
|
* @param {object} [params] extra parameters specific to the exmo api endpoint
|
|
900
|
-
* @returns {object} a [balance structure]{@link https://
|
|
900
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
901
901
|
*/
|
|
902
902
|
await this.loadMarkets();
|
|
903
903
|
const response = await this.privatePostUserInfo(params);
|
|
@@ -1151,7 +1151,7 @@ export default class exmo extends Exchange {
|
|
|
1151
1151
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1152
1152
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1153
1153
|
* @param {object} [params] extra parameters specific to the exmo api endpoint
|
|
1154
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1154
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
1155
1155
|
*/
|
|
1156
1156
|
await this.loadMarkets();
|
|
1157
1157
|
const market = this.market(symbol);
|
package/js/src/gate.js
CHANGED
|
@@ -280,6 +280,29 @@ export default class gate extends Exchange {
|
|
|
280
280
|
'sub_accounts/{user_id}/keys/{key}': 1,
|
|
281
281
|
},
|
|
282
282
|
},
|
|
283
|
+
'portfolio': {
|
|
284
|
+
'get': {
|
|
285
|
+
'accounts': 1.5,
|
|
286
|
+
'account_mode': 1.5,
|
|
287
|
+
'borrowable': 1.5,
|
|
288
|
+
'transferable': 1.5,
|
|
289
|
+
'loans': 1.5,
|
|
290
|
+
'loan_records': 1.5,
|
|
291
|
+
'interest_records': 1.5,
|
|
292
|
+
'spot/orders': 1.5,
|
|
293
|
+
'spot/orders/{order_id}': 1.5,
|
|
294
|
+
},
|
|
295
|
+
'post': {
|
|
296
|
+
'loans': 1.5,
|
|
297
|
+
'spot/orders': 1.5,
|
|
298
|
+
},
|
|
299
|
+
'delete': {
|
|
300
|
+
'spot/orders/{order_id}': 1.5,
|
|
301
|
+
},
|
|
302
|
+
'patch': {
|
|
303
|
+
'spot/orders/{order_id}': 1.5,
|
|
304
|
+
},
|
|
305
|
+
},
|
|
283
306
|
'spot': {
|
|
284
307
|
'get': {
|
|
285
308
|
'fee': 1,
|
|
@@ -473,6 +496,22 @@ export default class gate extends Exchange {
|
|
|
473
496
|
'uni/lends': 1.5,
|
|
474
497
|
},
|
|
475
498
|
},
|
|
499
|
+
'loan': {
|
|
500
|
+
'get': {
|
|
501
|
+
'collateral/orders': 1.5,
|
|
502
|
+
'collateral/orders/{order_id}': 1.5,
|
|
503
|
+
'collateral/repay_records': 1.5,
|
|
504
|
+
'collateral/collaterals': 1.5,
|
|
505
|
+
'collateral/total_amount': 1.5,
|
|
506
|
+
'collateral/ltv': 1.5,
|
|
507
|
+
'collateral/currencies': 1.5,
|
|
508
|
+
},
|
|
509
|
+
'post': {
|
|
510
|
+
'collateral/orders': 1.5,
|
|
511
|
+
'collateral/repay': 1.5,
|
|
512
|
+
'collateral/collaterals': 1.5,
|
|
513
|
+
},
|
|
514
|
+
},
|
|
476
515
|
'account': {
|
|
477
516
|
'get': {
|
|
478
517
|
'detail': 1.5,
|
|
@@ -483,6 +522,9 @@ export default class gate extends Exchange {
|
|
|
483
522
|
'stp_groups': 1.5,
|
|
484
523
|
'stp_groups/{stp_id}/users': 1.5,
|
|
485
524
|
},
|
|
525
|
+
'delete': {
|
|
526
|
+
'stp_groups/{stp_id}/users': 1.5,
|
|
527
|
+
},
|
|
486
528
|
},
|
|
487
529
|
'rebate': {
|
|
488
530
|
'get': {
|
|
@@ -2852,9 +2894,9 @@ export default class gate extends Exchange {
|
|
|
2852
2894
|
* @description fetches historical funding rate prices
|
|
2853
2895
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2854
2896
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
2855
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://
|
|
2897
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
|
|
2856
2898
|
* @param {object} [params] extra parameters specific to the gate api endpoint
|
|
2857
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://
|
|
2899
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
|
|
2858
2900
|
*/
|
|
2859
2901
|
if (symbol === undefined) {
|
|
2860
2902
|
throw new ArgumentsRequired(this.id + ' fetchFundingRateHistory() requires a symbol argument');
|
|
@@ -2947,7 +2989,7 @@ export default class gate extends Exchange {
|
|
|
2947
2989
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2948
2990
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
2949
2991
|
* @param {object} [params] extra parameters specific to the gate api endpoint
|
|
2950
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
2992
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
2951
2993
|
*/
|
|
2952
2994
|
await this.loadMarkets();
|
|
2953
2995
|
const market = this.market(symbol);
|
|
@@ -4904,7 +4946,7 @@ export default class gate extends Exchange {
|
|
|
4904
4946
|
* @see https://www.gate.io/docs/developers/apiv4/en/#get-specified-contract-position
|
|
4905
4947
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
4906
4948
|
* @param {object} [params] extra parameters specific to the gate api endpoint
|
|
4907
|
-
* @returns {object} a [position structure]{@link https://
|
|
4949
|
+
* @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
4908
4950
|
*/
|
|
4909
4951
|
await this.loadMarkets();
|
|
4910
4952
|
const market = this.market(symbol);
|
package/js/src/gemini.js
CHANGED
|
@@ -932,7 +932,7 @@ export default class gemini extends Exchange {
|
|
|
932
932
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
933
933
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
934
934
|
* @param {object} [params] extra parameters specific to the gemini api endpoint
|
|
935
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
935
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
936
936
|
*/
|
|
937
937
|
await this.loadMarkets();
|
|
938
938
|
const market = this.market(symbol);
|
|
@@ -1038,7 +1038,7 @@ export default class gemini extends Exchange {
|
|
|
1038
1038
|
* @name gemini#fetchBalance
|
|
1039
1039
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1040
1040
|
* @param {object} [params] extra parameters specific to the gemini api endpoint
|
|
1041
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1041
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1042
1042
|
*/
|
|
1043
1043
|
await this.loadMarkets();
|
|
1044
1044
|
const response = await this.privatePostV1Balances(params);
|
|
@@ -1632,7 +1632,7 @@ export default class gemini extends Exchange {
|
|
|
1632
1632
|
* @param {string} code unified currency code
|
|
1633
1633
|
* @param {object} [params] extra parameters specific to the endpoint
|
|
1634
1634
|
* @param {string} [params.network] *required* The chain of currency
|
|
1635
|
-
* @returns {object} an [address structure]{@link https://
|
|
1635
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1636
1636
|
*/
|
|
1637
1637
|
await this.loadMarkets();
|
|
1638
1638
|
const groupedByNetwork = await this.fetchDepositAddressesByNetwork(code, params);
|