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/dist/cjs/ccxt.js
CHANGED
|
@@ -180,7 +180,7 @@ var woo$1 = require('./src/pro/woo.js');
|
|
|
180
180
|
|
|
181
181
|
//-----------------------------------------------------------------------------
|
|
182
182
|
// this is updated by vss.js when building
|
|
183
|
-
const version = '4.0.
|
|
183
|
+
const version = '4.0.77';
|
|
184
184
|
Exchange["default"].ccxtVersion = version;
|
|
185
185
|
const exchanges = {
|
|
186
186
|
'ace': ace,
|
package/dist/cjs/src/ace.js
CHANGED
|
@@ -893,7 +893,7 @@ class ace extends ace$1 {
|
|
|
893
893
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
894
894
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
895
895
|
* @param {object} [params] extra parameters specific to the ace api endpoint
|
|
896
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
896
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
897
897
|
*/
|
|
898
898
|
await this.loadMarkets();
|
|
899
899
|
const market = this.safeMarket(symbol);
|
|
@@ -978,7 +978,7 @@ class ace extends ace$1 {
|
|
|
978
978
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
979
979
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---account-balance
|
|
980
980
|
* @param {object} [params] extra parameters specific to the ace api endpoint
|
|
981
|
-
* @returns {object} a [balance structure]{@link https://
|
|
981
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
982
982
|
*/
|
|
983
983
|
await this.loadMarkets();
|
|
984
984
|
const response = await this.privatePostV2CoinCustomerAccount(params);
|
package/dist/cjs/src/alpaca.js
CHANGED
|
@@ -320,7 +320,7 @@ class alpaca extends alpaca$1 {
|
|
|
320
320
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
321
321
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
322
322
|
* @param {object} [params] extra parameters specific to the alpaca api endpoint
|
|
323
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
323
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
324
324
|
*/
|
|
325
325
|
await this.loadMarkets();
|
|
326
326
|
const market = this.market(symbol);
|
package/dist/cjs/src/ascendex.js
CHANGED
|
@@ -799,7 +799,7 @@ class ascendex extends ascendex$1 {
|
|
|
799
799
|
* @name ascendex#fetchBalance
|
|
800
800
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
801
801
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
802
|
-
* @returns {object} a [balance structure]{@link https://
|
|
802
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
803
803
|
*/
|
|
804
804
|
await this.loadMarkets();
|
|
805
805
|
await this.loadAccounts();
|
|
@@ -1189,7 +1189,7 @@ class ascendex extends ascendex$1 {
|
|
|
1189
1189
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1190
1190
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1191
1191
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
1192
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1192
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
1193
1193
|
*/
|
|
1194
1194
|
await this.loadMarkets();
|
|
1195
1195
|
const market = this.market(symbol);
|
|
@@ -2967,7 +2967,7 @@ class ascendex extends ascendex$1 {
|
|
|
2967
2967
|
* @see https://ascendex.github.io/ascendex-pro-api/#list-all-assets
|
|
2968
2968
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2969
2969
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
2970
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
2970
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
2971
2971
|
*/
|
|
2972
2972
|
await this.loadMarkets();
|
|
2973
2973
|
const response = await this.v2PublicGetAssets(params);
|
|
@@ -3222,7 +3222,7 @@ class Exchange {
|
|
|
3222
3222
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
3223
3223
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
3224
3224
|
* @param {object} [params] extra parameters specific to the exchange api endpoint
|
|
3225
|
-
* @returns {object} a list of [transaction structures]{@link https://
|
|
3225
|
+
* @returns {object} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
3226
3226
|
*/
|
|
3227
3227
|
throw new errors.NotSupported(this.id + ' fetchDepositsWithdrawals() is not supported yet');
|
|
3228
3228
|
}
|
|
@@ -3990,7 +3990,7 @@ class Exchange {
|
|
|
3990
3990
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
3991
3991
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
3992
3992
|
* @param {object} [params] extra parameters specific to the exchange api endpoint
|
|
3993
|
-
* @returns {object} a list of [transaction structures]{@link https://
|
|
3993
|
+
* @returns {object} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
3994
3994
|
*/
|
|
3995
3995
|
if (this.has['fetchDepositsWithdrawals']) {
|
|
3996
3996
|
return await this.fetchDepositsWithdrawals(code, since, limit, params);
|
package/dist/cjs/src/bigone.js
CHANGED
|
@@ -932,7 +932,7 @@ class bigone extends bigone$1 {
|
|
|
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 bigone 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);
|
|
@@ -1063,7 +1063,7 @@ class bigone extends bigone$1 {
|
|
|
1063
1063
|
* @name bigone#fetchBalance
|
|
1064
1064
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1065
1065
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
1066
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1066
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1067
1067
|
*/
|
|
1068
1068
|
await this.loadMarkets();
|
|
1069
1069
|
const type = this.safeString(params, 'type', '');
|
package/dist/cjs/src/binance.js
CHANGED
|
@@ -2500,7 +2500,7 @@ class binance extends binance$1 {
|
|
|
2500
2500
|
* @param {string} [params.type] 'future', 'delivery', 'savings', 'funding', or 'spot'
|
|
2501
2501
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null
|
|
2502
2502
|
* @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
|
|
2503
|
-
* @returns {object} a [balance structure]{@link https://
|
|
2503
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
2504
2504
|
*/
|
|
2505
2505
|
await this.loadMarkets();
|
|
2506
2506
|
const defaultType = this.safeString2(this.options, 'fetchBalance', 'defaultType', 'spot');
|
|
@@ -3606,7 +3606,7 @@ class binance extends binance$1 {
|
|
|
3606
3606
|
*
|
|
3607
3607
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
3608
3608
|
* @param {int} [params.fromId] trade id to fetch from, default gets most recent trades, not used when fetchTradesMethod is 'publicGetTrades', 'fapiPublicGetTrades', 'dapiPublicGetTrades', or 'eapiPublicGetTrades'
|
|
3609
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
3609
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
3610
3610
|
*/
|
|
3611
3611
|
await this.loadMarkets();
|
|
3612
3612
|
const market = this.market(symbol);
|
|
@@ -6516,10 +6516,10 @@ class binance extends binance$1 {
|
|
|
6516
6516
|
* @description fetches historical funding rate prices
|
|
6517
6517
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
6518
6518
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
6519
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://
|
|
6519
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
|
|
6520
6520
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
6521
6521
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
6522
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://
|
|
6522
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
|
|
6523
6523
|
*/
|
|
6524
6524
|
await this.loadMarkets();
|
|
6525
6525
|
const request = {};
|
|
@@ -7220,7 +7220,7 @@ class binance extends binance$1 {
|
|
|
7220
7220
|
* @description fetch data on an open position
|
|
7221
7221
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
7222
7222
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
7223
|
-
* @returns {object} a [position structure]{@link https://
|
|
7223
|
+
* @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
7224
7224
|
*/
|
|
7225
7225
|
await this.loadMarkets();
|
|
7226
7226
|
const market = this.market(symbol);
|
package/dist/cjs/src/bingx.js
CHANGED
|
@@ -98,11 +98,13 @@ class bingx extends bingx$1 {
|
|
|
98
98
|
'trade/openOrders': 3,
|
|
99
99
|
'trade/historyOrders': 3,
|
|
100
100
|
'account/balance': 3,
|
|
101
|
+
'ticker/24hr': 1,
|
|
101
102
|
},
|
|
102
103
|
'post': {
|
|
103
104
|
'trade/order': 3,
|
|
104
105
|
'trade/cancel': 3,
|
|
105
106
|
'trade/batchOrders': 3,
|
|
107
|
+
'trade/cancelOrders': 3,
|
|
106
108
|
},
|
|
107
109
|
},
|
|
108
110
|
},
|
|
@@ -682,7 +684,7 @@ class bingx extends bingx$1 {
|
|
|
682
684
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
683
685
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
684
686
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
685
|
-
* @returns {[object]} a list of [trade structures]{@link https://
|
|
687
|
+
* @returns {[object]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
686
688
|
*/
|
|
687
689
|
await this.loadMarkets();
|
|
688
690
|
const market = this.market(symbol);
|
|
@@ -977,9 +979,9 @@ class bingx extends bingx$1 {
|
|
|
977
979
|
* @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Funding%20Rate%20History
|
|
978
980
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
979
981
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
980
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://
|
|
982
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
|
|
981
983
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
982
|
-
* @returns {[object]} a list of [funding rate structures]{@link https://
|
|
984
|
+
* @returns {[object]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
|
|
983
985
|
*/
|
|
984
986
|
this.checkRequiredSymbol('fetchFundingRateHistory', symbol);
|
|
985
987
|
await this.loadMarkets();
|
|
@@ -1083,19 +1085,23 @@ class bingx extends bingx$1 {
|
|
|
1083
1085
|
* @name bingx#fetchTicker
|
|
1084
1086
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1085
1087
|
* @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
|
|
1088
|
+
* @see https://bingx-api.github.io/docs/#/spot/market-api.html#24%E5%B0%8F%E6%97%B6%E4%BB%B7%E6%A0%BC%E5%8F%98%E5%8A%A8%E6%83%85%E5%86%B5
|
|
1086
1089
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1087
1090
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
1088
1091
|
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1089
1092
|
*/
|
|
1090
1093
|
await this.loadMarkets();
|
|
1091
1094
|
const market = this.market(symbol);
|
|
1092
|
-
if (!market['swap']) {
|
|
1093
|
-
throw new errors.BadRequest(this.id + ' fetchTicker is only supported for swap markets.');
|
|
1094
|
-
}
|
|
1095
1095
|
const request = {
|
|
1096
1096
|
'symbol': market['id'],
|
|
1097
1097
|
};
|
|
1098
|
-
|
|
1098
|
+
let response = undefined;
|
|
1099
|
+
if (market['spot']) {
|
|
1100
|
+
response = await this.spotV1PrivateGetTicker24hr(this.extend(request, params));
|
|
1101
|
+
}
|
|
1102
|
+
else {
|
|
1103
|
+
response = await this.swapV2PublicGetQuoteTicker(this.extend(request, params));
|
|
1104
|
+
}
|
|
1099
1105
|
//
|
|
1100
1106
|
// {
|
|
1101
1107
|
// "code": 0,
|
|
@@ -1117,7 +1123,8 @@ class bingx extends bingx$1 {
|
|
|
1117
1123
|
// }
|
|
1118
1124
|
//
|
|
1119
1125
|
const data = this.safeValue(response, 'data');
|
|
1120
|
-
|
|
1126
|
+
const ticker = this.safeValue(data, 0, data);
|
|
1127
|
+
return this.parseTicker(ticker, market);
|
|
1121
1128
|
}
|
|
1122
1129
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
1123
1130
|
/**
|
|
@@ -1165,6 +1172,20 @@ class bingx extends bingx$1 {
|
|
|
1165
1172
|
return this.parseTickers(tickers, symbols);
|
|
1166
1173
|
}
|
|
1167
1174
|
parseTicker(ticker, market = undefined) {
|
|
1175
|
+
//
|
|
1176
|
+
// spot
|
|
1177
|
+
// {
|
|
1178
|
+
// symbol: 'BTC-USDT',
|
|
1179
|
+
// openPrice: '26032.08',
|
|
1180
|
+
// highPrice: '26178.86',
|
|
1181
|
+
// lowPrice: '25968.18',
|
|
1182
|
+
// lastPrice: '26113.60',
|
|
1183
|
+
// volume: '1161.79',
|
|
1184
|
+
// quoteVolume: '30288466.44',
|
|
1185
|
+
// openTime: '1693081020762',
|
|
1186
|
+
// closeTime: '1693167420762'
|
|
1187
|
+
// }
|
|
1188
|
+
// swap
|
|
1168
1189
|
//
|
|
1169
1190
|
// {
|
|
1170
1191
|
// "symbol": "BTC-USDT",
|
|
@@ -1182,20 +1203,22 @@ class bingx extends bingx$1 {
|
|
|
1182
1203
|
// }
|
|
1183
1204
|
//
|
|
1184
1205
|
const marketId = this.safeString(ticker, 'symbol');
|
|
1185
|
-
const
|
|
1186
|
-
const
|
|
1206
|
+
const change = this.safeString(ticker, 'priceChange');
|
|
1207
|
+
const type = (change === undefined) ? 'spot' : 'swap';
|
|
1208
|
+
const symbol = this.safeSymbol(marketId, market, undefined, type);
|
|
1187
1209
|
const open = this.safeString(ticker, 'openPrice');
|
|
1188
1210
|
const high = this.safeString(ticker, 'highPrice');
|
|
1189
1211
|
const low = this.safeString(ticker, 'lowPrice');
|
|
1190
1212
|
const close = this.safeString(ticker, 'lastPrice');
|
|
1191
1213
|
const quoteVolume = this.safeString(ticker, 'quoteVolume');
|
|
1192
1214
|
const baseVolume = this.safeString(ticker, 'volume');
|
|
1193
|
-
const change = this.safeString(ticker, 'chapriceChangenge');
|
|
1194
1215
|
const percentage = this.safeString(ticker, 'priceChangePercent');
|
|
1216
|
+
const ts = this.safeInteger(ticker, 'closeTime');
|
|
1217
|
+
const datetime = this.iso8601(ts);
|
|
1195
1218
|
return this.safeTicker({
|
|
1196
1219
|
'symbol': symbol,
|
|
1197
|
-
'timestamp':
|
|
1198
|
-
'datetime':
|
|
1220
|
+
'timestamp': ts,
|
|
1221
|
+
'datetime': datetime,
|
|
1199
1222
|
'high': high,
|
|
1200
1223
|
'low': low,
|
|
1201
1224
|
'bid': undefined,
|
|
@@ -1225,7 +1248,7 @@ class bingx extends bingx$1 {
|
|
|
1225
1248
|
* @see https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
|
|
1226
1249
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1227
1250
|
* @param {boolean} [params.standard] whether to fetch standard contract balances
|
|
1228
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1251
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1229
1252
|
*/
|
|
1230
1253
|
await this.loadMarkets();
|
|
1231
1254
|
let response = undefined;
|
|
@@ -1875,6 +1898,7 @@ class bingx extends bingx$1 {
|
|
|
1875
1898
|
* @name bingx#cancelOrders
|
|
1876
1899
|
* @description cancel multiple orders
|
|
1877
1900
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20a%20Batch%20of%20Orders
|
|
1901
|
+
* @see https://bingx-api.github.io/docs/#/spot/trade-api.html#Cancel%20a%20Batch%20of%20Orders
|
|
1878
1902
|
* @param {[string]} ids order ids
|
|
1879
1903
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1880
1904
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
@@ -1883,14 +1907,24 @@ class bingx extends bingx$1 {
|
|
|
1883
1907
|
this.checkRequiredSymbol('cancelOrders', symbol);
|
|
1884
1908
|
await this.loadMarkets();
|
|
1885
1909
|
const market = this.market(symbol);
|
|
1886
|
-
if (market['type'] !== 'swap') {
|
|
1887
|
-
throw new errors.BadRequest(this.id + ' cancelOrders is only supported for swap markets.');
|
|
1888
|
-
}
|
|
1889
1910
|
const request = {
|
|
1890
1911
|
'symbol': market['id'],
|
|
1891
|
-
'ids': ids,
|
|
1892
1912
|
};
|
|
1893
|
-
const
|
|
1913
|
+
const parsedIds = [];
|
|
1914
|
+
for (let i = 0; i < ids.length; i++) {
|
|
1915
|
+
const id = ids[i];
|
|
1916
|
+
const stringId = id.toString();
|
|
1917
|
+
parsedIds.push(stringId);
|
|
1918
|
+
}
|
|
1919
|
+
let response = undefined;
|
|
1920
|
+
if (market['spot']) {
|
|
1921
|
+
request['orderIds'] = parsedIds.join(',');
|
|
1922
|
+
response = await this.spotV1PrivatePostTradeCancelOrders(this.extend(request, params));
|
|
1923
|
+
}
|
|
1924
|
+
else {
|
|
1925
|
+
request['orderIdList'] = parsedIds;
|
|
1926
|
+
response = await this.swapV2PrivateDeleteTradeBatchOrders(this.extend(request, params));
|
|
1927
|
+
}
|
|
1894
1928
|
//
|
|
1895
1929
|
// {
|
|
1896
1930
|
// "code": 0,
|
|
@@ -2739,7 +2773,7 @@ class bingx extends bingx$1 {
|
|
|
2739
2773
|
* @see https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins'%20Information
|
|
2740
2774
|
* @param {[string]|undefined} codes list of unified currency codes
|
|
2741
2775
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
2742
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
2776
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
2743
2777
|
*/
|
|
2744
2778
|
await this.loadMarkets();
|
|
2745
2779
|
const response = await this.walletsV1PrivateGetCapitalConfigGetall(params);
|
|
@@ -2791,6 +2825,33 @@ class bingx extends bingx$1 {
|
|
|
2791
2825
|
// }
|
|
2792
2826
|
this.parseTransaction(data);
|
|
2793
2827
|
}
|
|
2828
|
+
parseParams(params) {
|
|
2829
|
+
let result = '';
|
|
2830
|
+
const sortedParams = this.keysort(params);
|
|
2831
|
+
const keys = Object.keys(sortedParams);
|
|
2832
|
+
for (let i = 0; i < keys.length; i++) {
|
|
2833
|
+
const key = keys[i];
|
|
2834
|
+
if (i > 0) {
|
|
2835
|
+
result += '&';
|
|
2836
|
+
}
|
|
2837
|
+
const value = sortedParams[key];
|
|
2838
|
+
if (Array.isArray(value)) {
|
|
2839
|
+
result += key + '=[';
|
|
2840
|
+
for (let j = 0; j < value.length; j++) {
|
|
2841
|
+
const arrayElement = value[j];
|
|
2842
|
+
if (j > 0) {
|
|
2843
|
+
result += ',';
|
|
2844
|
+
}
|
|
2845
|
+
result += arrayElement.toString();
|
|
2846
|
+
}
|
|
2847
|
+
result += ']';
|
|
2848
|
+
}
|
|
2849
|
+
else {
|
|
2850
|
+
result += key + '=' + value.toString();
|
|
2851
|
+
}
|
|
2852
|
+
}
|
|
2853
|
+
return result;
|
|
2854
|
+
}
|
|
2794
2855
|
sign(path, section = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
|
|
2795
2856
|
const type = section[0];
|
|
2796
2857
|
const version = section[1];
|
|
@@ -2815,9 +2876,8 @@ class bingx extends bingx$1 {
|
|
|
2815
2876
|
else if (access === 'private') {
|
|
2816
2877
|
this.checkRequiredCredentials();
|
|
2817
2878
|
params['timestamp'] = this.nonce();
|
|
2818
|
-
let query = this.
|
|
2819
|
-
const
|
|
2820
|
-
const signature = this.hmac(this.encode(rawQuery), this.encode(this.secret), sha256.sha256);
|
|
2879
|
+
let query = this.parseParams(params);
|
|
2880
|
+
const signature = this.hmac(this.encode(query), this.encode(this.secret), sha256.sha256);
|
|
2821
2881
|
if (Object.keys(params).length) {
|
|
2822
2882
|
query = '?' + query + '&';
|
|
2823
2883
|
}
|
package/dist/cjs/src/bit2c.js
CHANGED
|
@@ -205,7 +205,7 @@ class bit2c extends bit2c$1 {
|
|
|
205
205
|
* @name bit2c#fetchBalance
|
|
206
206
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
207
207
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
208
|
-
* @returns {object} a [balance structure]{@link https://
|
|
208
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
209
209
|
*/
|
|
210
210
|
await this.loadMarkets();
|
|
211
211
|
const response = await this.privateGetAccountBalanceV2(params);
|
|
@@ -326,7 +326,7 @@ class bit2c extends bit2c$1 {
|
|
|
326
326
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
327
327
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
328
328
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
329
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
329
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
330
330
|
*/
|
|
331
331
|
await this.loadMarkets();
|
|
332
332
|
const market = this.market(symbol);
|
package/dist/cjs/src/bitbank.js
CHANGED
|
@@ -358,7 +358,7 @@ class bitbank extends bitbank$1 {
|
|
|
358
358
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
359
359
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
360
360
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
361
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
361
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
362
362
|
*/
|
|
363
363
|
await this.loadMarkets();
|
|
364
364
|
const market = this.market(symbol);
|
|
@@ -524,7 +524,7 @@ class bitbank extends bitbank$1 {
|
|
|
524
524
|
* @name bitbank#fetchBalance
|
|
525
525
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
526
526
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
527
|
-
* @returns {object} a [balance structure]{@link https://
|
|
527
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
528
528
|
*/
|
|
529
529
|
await this.loadMarkets();
|
|
530
530
|
const response = await this.privateGetUserAssets(params);
|
package/dist/cjs/src/bitbns.js
CHANGED
|
@@ -456,7 +456,7 @@ class bitbns extends bitbns$1 {
|
|
|
456
456
|
* @name bitbns#fetchBalance
|
|
457
457
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
458
458
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
459
|
-
* @returns {object} a [balance structure]{@link https://
|
|
459
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
460
460
|
*/
|
|
461
461
|
await this.loadMarkets();
|
|
462
462
|
const response = await this.v1PostCurrentCoinBalanceEVERYTHING(params);
|
|
@@ -909,7 +909,7 @@ class bitbns extends bitbns$1 {
|
|
|
909
909
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
910
910
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
911
911
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
912
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
912
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
913
913
|
*/
|
|
914
914
|
if (symbol === undefined) {
|
|
915
915
|
throw new errors.ArgumentsRequired(this.id + ' fetchTrades() requires a symbol argument');
|
package/dist/cjs/src/bitfinex.js
CHANGED
|
@@ -681,7 +681,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
681
681
|
* @name bitfinex#fetchBalance
|
|
682
682
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
683
683
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
684
|
-
* @returns {object} a [balance structure]{@link https://
|
|
684
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
685
685
|
*/
|
|
686
686
|
await this.loadMarkets();
|
|
687
687
|
const accountsByType = this.safeValue(this.options, 'accountsByType', {});
|
|
@@ -993,7 +993,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
993
993
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
994
994
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
995
995
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
996
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
996
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
997
997
|
*/
|
|
998
998
|
await this.loadMarkets();
|
|
999
999
|
const market = this.market(symbol);
|
|
@@ -791,7 +791,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
791
791
|
* @name bitfinex2#fetchBalance
|
|
792
792
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
793
793
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
794
|
-
* @returns {object} a [balance structure]{@link https://
|
|
794
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
795
795
|
*/
|
|
796
796
|
// this api call does not return the 'used' amount - use the v1 version instead (which also returns zero balances)
|
|
797
797
|
// there is a difference between this and the v1 api, namely trading wallet is called margin in v2
|
|
@@ -1066,9 +1066,9 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1066
1066
|
'high': this.safeString(ticker, length - 2),
|
|
1067
1067
|
'low': this.safeString(ticker, length - 1),
|
|
1068
1068
|
'bid': this.safeString(ticker, length - 10),
|
|
1069
|
-
'bidVolume':
|
|
1069
|
+
'bidVolume': this.safeString(ticker, length - 9),
|
|
1070
1070
|
'ask': this.safeString(ticker, length - 8),
|
|
1071
|
-
'askVolume':
|
|
1071
|
+
'askVolume': this.safeString(ticker, length - 7),
|
|
1072
1072
|
'vwap': undefined,
|
|
1073
1073
|
'open': undefined,
|
|
1074
1074
|
'close': last,
|
|
@@ -1260,7 +1260,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1260
1260
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1261
1261
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1262
1262
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1263
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1263
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
1264
1264
|
*/
|
|
1265
1265
|
await this.loadMarkets();
|
|
1266
1266
|
const market = this.market(symbol);
|
package/dist/cjs/src/bitflyer.js
CHANGED
|
@@ -315,7 +315,7 @@ class bitflyer extends bitflyer$1 {
|
|
|
315
315
|
* @name bitflyer#fetchBalance
|
|
316
316
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
317
317
|
* @param {object} [params] extra parameters specific to the bitflyer api endpoint
|
|
318
|
-
* @returns {object} a [balance structure]{@link https://
|
|
318
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
319
319
|
*/
|
|
320
320
|
await this.loadMarkets();
|
|
321
321
|
const response = await this.privateGetGetbalance(params);
|
|
@@ -473,7 +473,7 @@ class bitflyer extends bitflyer$1 {
|
|
|
473
473
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
474
474
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
475
475
|
* @param {object} [params] extra parameters specific to the bitflyer api endpoint
|
|
476
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
476
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
477
477
|
*/
|
|
478
478
|
await this.loadMarkets();
|
|
479
479
|
const market = this.market(symbol);
|
package/dist/cjs/src/bitforex.js
CHANGED
|
@@ -323,7 +323,7 @@ class bitforex extends bitforex$1 {
|
|
|
323
323
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
324
324
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
325
325
|
* @param {object} [params] extra parameters specific to the bitforex api endpoint
|
|
326
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
326
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
327
327
|
*/
|
|
328
328
|
await this.loadMarkets();
|
|
329
329
|
const request = {
|
|
@@ -432,7 +432,7 @@ class bitforex extends bitforex$1 {
|
|
|
432
432
|
* @name bitforex#fetchBalance
|
|
433
433
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
434
434
|
* @param {object} [params] extra parameters specific to the bitforex api endpoint
|
|
435
|
-
* @returns {object} a [balance structure]{@link https://
|
|
435
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
436
436
|
*/
|
|
437
437
|
await this.loadMarkets();
|
|
438
438
|
const response = await this.privatePostApiV1FundAllAccount(params);
|
package/dist/cjs/src/bitget.js
CHANGED
|
@@ -2235,7 +2235,7 @@ class bitget extends bitget$1 {
|
|
|
2235
2235
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
2236
2236
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
2237
2237
|
* @param {int} [params.until] the latest time in ms to fetch deposits for
|
|
2238
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
2238
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
2239
2239
|
*/
|
|
2240
2240
|
await this.loadMarkets();
|
|
2241
2241
|
const market = this.market(symbol);
|
|
@@ -2564,7 +2564,7 @@ class bitget extends bitget$1 {
|
|
|
2564
2564
|
* @name bitget#fetchBalance
|
|
2565
2565
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
2566
2566
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
2567
|
-
* @returns {object} a [balance structure]{@link https://
|
|
2567
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
2568
2568
|
*/
|
|
2569
2569
|
const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
|
|
2570
2570
|
await this.loadMarkets();
|
|
@@ -4250,9 +4250,9 @@ class bitget extends bitget$1 {
|
|
|
4250
4250
|
* @description fetches historical funding rate prices
|
|
4251
4251
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
4252
4252
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
4253
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://
|
|
4253
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
|
|
4254
4254
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
4255
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://
|
|
4255
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
|
|
4256
4256
|
*/
|
|
4257
4257
|
this.checkRequiredSymbol('fetchFundingRateHistory', symbol);
|
|
4258
4258
|
await this.loadMarkets();
|
|
@@ -4928,7 +4928,7 @@ class bitget extends bitget$1 {
|
|
|
4928
4928
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-coin-list
|
|
4929
4929
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
4930
4930
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
4931
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
4931
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
4932
4932
|
*/
|
|
4933
4933
|
await this.loadMarkets();
|
|
4934
4934
|
const response = await this.publicSpotGetPublicCurrencies(params);
|
package/dist/cjs/src/bithumb.js
CHANGED
|
@@ -285,7 +285,7 @@ class bithumb extends bithumb$1 {
|
|
|
285
285
|
* @name bithumb#fetchBalance
|
|
286
286
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
287
287
|
* @param {object} [params] extra parameters specific to the bithumb api endpoint
|
|
288
|
-
* @returns {object} a [balance structure]{@link https://
|
|
288
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
289
289
|
*/
|
|
290
290
|
await this.loadMarkets();
|
|
291
291
|
const request = {
|
|
@@ -628,7 +628,7 @@ class bithumb extends bithumb$1 {
|
|
|
628
628
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
629
629
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
630
630
|
* @param {object} [params] extra parameters specific to the bithumb api endpoint
|
|
631
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
631
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
632
632
|
*/
|
|
633
633
|
await this.loadMarkets();
|
|
634
634
|
const market = this.market(symbol);
|
package/dist/cjs/src/bitmart.js
CHANGED
|
@@ -1331,7 +1331,7 @@ class bitmart extends bitmart$1 {
|
|
|
1331
1331
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1332
1332
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1333
1333
|
* @param {object} [params] extra parameters specific to the bitmart api endpoint
|
|
1334
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1334
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
1335
1335
|
*/
|
|
1336
1336
|
await this.loadMarkets();
|
|
1337
1337
|
const market = this.market(symbol);
|
|
@@ -1700,7 +1700,7 @@ class bitmart extends bitmart$1 {
|
|
|
1700
1700
|
* @see https://developer-pro.bitmart.com/en/spot/#get-account-balance
|
|
1701
1701
|
* @see https://developer-pro.bitmart.com/en/spot/#get-margin-account-details-isolated
|
|
1702
1702
|
* @param {object} [params] extra parameters specific to the bitmart api endpoint
|
|
1703
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1703
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1704
1704
|
*/
|
|
1705
1705
|
await this.loadMarkets();
|
|
1706
1706
|
let marketType = undefined;
|