ccxt 4.1.64 → 4.1.65
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 +2558 -2534
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +1 -0
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +28 -28
- package/dist/cjs/src/krakenfutures.js +9 -9
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +32 -32
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +8 -8
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +21 -21
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +15 -15
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +1 -0
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +28 -28
- package/js/src/krakenfutures.js +9 -9
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +17 -17
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +32 -32
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +8 -8
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +21 -21
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +15 -15
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/js/src/bingx.js
CHANGED
|
@@ -356,7 +356,7 @@ export default class bingx extends Exchange {
|
|
|
356
356
|
* @name bingx#fetchTime
|
|
357
357
|
* @description fetches the current integer timestamp in milliseconds from the bingx server
|
|
358
358
|
* @see https://bingx-api.github.io/docs/#/swapV2/base-info.html#Get%20Server%20Time
|
|
359
|
-
* @param {object} [params] extra parameters specific to the
|
|
359
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
360
360
|
* @returns {int} the current integer timestamp in milliseconds from the bingx server
|
|
361
361
|
*/
|
|
362
362
|
const response = await this.swapV2PublicGetServerTime(params);
|
|
@@ -378,7 +378,7 @@ export default class bingx extends Exchange {
|
|
|
378
378
|
* @name bingx#fetchCurrencies
|
|
379
379
|
* @description fetches all available currencies on an exchange
|
|
380
380
|
* @see https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins
|
|
381
|
-
* @param {object} [params] extra parameters specific to the
|
|
381
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
382
382
|
* @returns {object} an associative dictionary of currencies
|
|
383
383
|
*/
|
|
384
384
|
if (!this.checkRequiredCredentials(false)) {
|
|
@@ -618,7 +618,7 @@ export default class bingx extends Exchange {
|
|
|
618
618
|
* @description retrieves data on all markets for bingx
|
|
619
619
|
* @see https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20Symbols
|
|
620
620
|
* @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Contract%20Information
|
|
621
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
621
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
622
622
|
* @returns {object[]} an array of objects representing market data
|
|
623
623
|
*/
|
|
624
624
|
const requests = [this.fetchSpotMarkets(params), this.fetchSwapMarkets(params)];
|
|
@@ -639,7 +639,7 @@ export default class bingx extends Exchange {
|
|
|
639
639
|
* @param {string} timeframe the length of time each candle represents
|
|
640
640
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
641
641
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
642
|
-
* @param {object} [params] extra parameters specific to the
|
|
642
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
643
643
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
644
644
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
645
645
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
@@ -747,7 +747,7 @@ export default class bingx extends Exchange {
|
|
|
747
747
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
748
748
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
749
749
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
750
|
-
* @param {object} [params] extra parameters specific to the
|
|
750
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
751
751
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
752
752
|
*/
|
|
753
753
|
await this.loadMarkets();
|
|
@@ -918,7 +918,7 @@ export default class bingx extends Exchange {
|
|
|
918
918
|
* @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Market%20Depth
|
|
919
919
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
920
920
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
921
|
-
* @param {object} [params] extra parameters specific to the
|
|
921
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
922
922
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
923
923
|
*/
|
|
924
924
|
await this.loadMarkets();
|
|
@@ -1006,7 +1006,7 @@ export default class bingx extends Exchange {
|
|
|
1006
1006
|
* @description fetch the current funding rate
|
|
1007
1007
|
* @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Current%20Funding%20Rate
|
|
1008
1008
|
* @param {string} symbol unified market symbol
|
|
1009
|
-
* @param {object} [params] extra parameters specific to the
|
|
1009
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1010
1010
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1011
1011
|
*/
|
|
1012
1012
|
await this.loadMarkets();
|
|
@@ -1075,7 +1075,7 @@ export default class bingx extends Exchange {
|
|
|
1075
1075
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
1076
1076
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
1077
1077
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
1078
|
-
* @param {object} [params] extra parameters specific to the
|
|
1078
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1079
1079
|
* @param {int} [params.until] timestamp in ms of the latest funding rate to fetch
|
|
1080
1080
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
1081
1081
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
@@ -1198,7 +1198,7 @@ export default class bingx extends Exchange {
|
|
|
1198
1198
|
* @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
|
|
1199
1199
|
* @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
|
|
1200
1200
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1201
|
-
* @param {object} [params] extra parameters specific to the
|
|
1201
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1202
1202
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1203
1203
|
*/
|
|
1204
1204
|
await this.loadMarkets();
|
|
@@ -1250,10 +1250,10 @@ export default class bingx extends Exchange {
|
|
|
1250
1250
|
/**
|
|
1251
1251
|
* @method
|
|
1252
1252
|
* @name bingx#fetchTickers
|
|
1253
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1253
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1254
1254
|
* @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
|
|
1255
1255
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1256
|
-
* @param {object} [params] extra parameters specific to the
|
|
1256
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1257
1257
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1258
1258
|
*/
|
|
1259
1259
|
await this.loadMarkets();
|
|
@@ -1403,7 +1403,7 @@ export default class bingx extends Exchange {
|
|
|
1403
1403
|
* @see https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Assets
|
|
1404
1404
|
* @see https://bingx-api.github.io/docs/#/swapV2/account-api.html#Get%20Perpetual%20Swap%20Account%20Asset%20Information
|
|
1405
1405
|
* @see https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
|
|
1406
|
-
* @param {object} [params] extra parameters specific to the
|
|
1406
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1407
1407
|
* @param {boolean} [params.standard] whether to fetch standard contract balances
|
|
1408
1408
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1409
1409
|
*/
|
|
@@ -1521,7 +1521,7 @@ export default class bingx extends Exchange {
|
|
|
1521
1521
|
* @see https://bingx-api.github.io/docs/#/swapV2/account-api.html#Perpetual%20Swap%20Positions
|
|
1522
1522
|
* @see https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
|
|
1523
1523
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1524
|
-
* @param {object} [params] extra parameters specific to the
|
|
1524
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1525
1525
|
* @param {boolean} [params.standard] whether to fetch standard contract positions
|
|
1526
1526
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
1527
1527
|
*/
|
|
@@ -1634,7 +1634,7 @@ export default class bingx extends Exchange {
|
|
|
1634
1634
|
* @param {string} side 'buy' or 'sell'
|
|
1635
1635
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
1636
1636
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1637
|
-
* @param {object} [params] extra parameters specific to the
|
|
1637
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1638
1638
|
* @returns {object} request to be sent to the exchange
|
|
1639
1639
|
*/
|
|
1640
1640
|
const market = this.market(symbol);
|
|
@@ -1759,7 +1759,7 @@ export default class bingx extends Exchange {
|
|
|
1759
1759
|
* @param {string} side 'buy' or 'sell'
|
|
1760
1760
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
1761
1761
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1762
|
-
* @param {object} [params] extra parameters specific to the
|
|
1762
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1763
1763
|
* @param {bool} [params.postOnly] true to place a post only order
|
|
1764
1764
|
* @param {string} [params.timeInForce] spot supports 'PO' and 'IOC', swap supports 'PO', 'GTC', 'IOC' and 'FOK'
|
|
1765
1765
|
* @param {bool} [params.reduceOnly] *swap only* true or false whether the order is reduce only
|
|
@@ -1828,7 +1828,7 @@ export default class bingx extends Exchange {
|
|
|
1828
1828
|
* @see https://bingx-api.github.io/docs/#/spot/trade-api.html#Batch%20Placing%20Orders
|
|
1829
1829
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Bulk%20order
|
|
1830
1830
|
* @param {array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
1831
|
-
* @param {object} [params] extra parameters specific to the
|
|
1831
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1832
1832
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1833
1833
|
*/
|
|
1834
1834
|
await this.loadMarkets();
|
|
@@ -2087,7 +2087,7 @@ export default class bingx extends Exchange {
|
|
|
2087
2087
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20an%20Order
|
|
2088
2088
|
* @param {string} id order id
|
|
2089
2089
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2090
|
-
* @param {object} [params] extra parameters specific to the
|
|
2090
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2091
2091
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2092
2092
|
*/
|
|
2093
2093
|
if (symbol === undefined) {
|
|
@@ -2164,7 +2164,7 @@ export default class bingx extends Exchange {
|
|
|
2164
2164
|
* @description cancel all open orders
|
|
2165
2165
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20All%20Orders
|
|
2166
2166
|
* @param {string} [symbol] unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2167
|
-
* @param {object} [params] extra parameters specific to the
|
|
2167
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2168
2168
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2169
2169
|
*/
|
|
2170
2170
|
if (symbol === undefined) {
|
|
@@ -2219,7 +2219,7 @@ export default class bingx extends Exchange {
|
|
|
2219
2219
|
* @see https://bingx-api.github.io/docs/#/spot/trade-api.html#Cancel%20a%20Batch%20of%20Orders
|
|
2220
2220
|
* @param {string[]} ids order ids
|
|
2221
2221
|
* @param {string} symbol unified market symbol, default is undefined
|
|
2222
|
-
* @param {object} [params] extra parameters specific to the
|
|
2222
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2223
2223
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2224
2224
|
*/
|
|
2225
2225
|
if (symbol === undefined) {
|
|
@@ -2284,7 +2284,7 @@ export default class bingx extends Exchange {
|
|
|
2284
2284
|
* @see https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Orders
|
|
2285
2285
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Order
|
|
2286
2286
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2287
|
-
* @param {object} [params] extra parameters specific to the
|
|
2287
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2288
2288
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2289
2289
|
*/
|
|
2290
2290
|
if (symbol === undefined) {
|
|
@@ -2369,7 +2369,7 @@ export default class bingx extends Exchange {
|
|
|
2369
2369
|
* @param {string} symbol unified market symbol
|
|
2370
2370
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2371
2371
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
2372
|
-
* @param {object} [params] extra parameters specific to the
|
|
2372
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2373
2373
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2374
2374
|
*/
|
|
2375
2375
|
if (symbol === undefined) {
|
|
@@ -2458,7 +2458,7 @@ export default class bingx extends Exchange {
|
|
|
2458
2458
|
* @param {string} [symbol] unified market symbol of the market orders were made in
|
|
2459
2459
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2460
2460
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2461
|
-
* @param {object} [params] extra parameters specific to the
|
|
2461
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2462
2462
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
2463
2463
|
* @param {boolean} [params.standard] whether to fetch standard contract orders
|
|
2464
2464
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2553,7 +2553,7 @@ export default class bingx extends Exchange {
|
|
|
2553
2553
|
* @param {float} amount amount to transfer
|
|
2554
2554
|
* @param {string} fromAccount account to transfer from
|
|
2555
2555
|
* @param {string} toAccount account to transfer to
|
|
2556
|
-
* @param {object} [params] extra parameters specific to the
|
|
2556
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2557
2557
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
2558
2558
|
*/
|
|
2559
2559
|
await this.loadMarkets();
|
|
@@ -2593,7 +2593,7 @@ export default class bingx extends Exchange {
|
|
|
2593
2593
|
* @param {string} [code] unified currency code of the currency transferred
|
|
2594
2594
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
2595
2595
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
2596
|
-
* @param {object} [params] extra parameters specific to the
|
|
2596
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2597
2597
|
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
2598
2598
|
*/
|
|
2599
2599
|
await this.loadMarkets();
|
|
@@ -2668,7 +2668,7 @@ export default class bingx extends Exchange {
|
|
|
2668
2668
|
* @description fetch the deposit address for a currency associated with this account
|
|
2669
2669
|
* @see https://bingx-api.github.io/docs/#/common/sub-account#Query%20Main%20Account%20Deposit%20Address
|
|
2670
2670
|
* @param {string} code unified currency code
|
|
2671
|
-
* @param {object} [params] extra parameters specific to the
|
|
2671
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2672
2672
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2673
2673
|
*/
|
|
2674
2674
|
await this.loadMarkets();
|
|
@@ -2738,7 +2738,7 @@ export default class bingx extends Exchange {
|
|
|
2738
2738
|
* @param {string} [code] unified currency code
|
|
2739
2739
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2740
2740
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2741
|
-
* @param {object} [params] extra parameters specific to the
|
|
2741
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2742
2742
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2743
2743
|
*/
|
|
2744
2744
|
await this.loadMarkets();
|
|
@@ -2783,7 +2783,7 @@ export default class bingx extends Exchange {
|
|
|
2783
2783
|
* @param {string} [code] unified currency code
|
|
2784
2784
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2785
2785
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2786
|
-
* @param {object} [params] extra parameters specific to the
|
|
2786
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2787
2787
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2788
2788
|
*/
|
|
2789
2789
|
await this.loadMarkets();
|
|
@@ -2928,7 +2928,7 @@ export default class bingx extends Exchange {
|
|
|
2928
2928
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Switch%20Margin%20Mode
|
|
2929
2929
|
* @param {string} marginMode 'cross' or 'isolated'
|
|
2930
2930
|
* @param {string} symbol unified market symbol
|
|
2931
|
-
* @param {object} [params] extra parameters specific to the
|
|
2931
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2932
2932
|
* @returns {object} response from the exchange
|
|
2933
2933
|
*/
|
|
2934
2934
|
if (symbol === undefined) {
|
|
@@ -2995,7 +2995,7 @@ export default class bingx extends Exchange {
|
|
|
2995
2995
|
* @description fetch the set leverage for a market
|
|
2996
2996
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Leverage
|
|
2997
2997
|
* @param {string} symbol unified market symbol
|
|
2998
|
-
* @param {object} [params] extra parameters specific to the
|
|
2998
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2999
2999
|
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
|
|
3000
3000
|
*/
|
|
3001
3001
|
await this.loadMarkets();
|
|
@@ -3024,7 +3024,7 @@ export default class bingx extends Exchange {
|
|
|
3024
3024
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Switch%20Leverage
|
|
3025
3025
|
* @param {float} leverage the rate of leverage
|
|
3026
3026
|
* @param {string} symbol unified market symbol
|
|
3027
|
-
* @param {object} [params] extra parameters specific to the
|
|
3027
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3028
3028
|
* @returns {object} response from the exchange
|
|
3029
3029
|
*/
|
|
3030
3030
|
if (symbol === undefined) {
|
|
@@ -3060,7 +3060,7 @@ export default class bingx extends Exchange {
|
|
|
3060
3060
|
* @param {string} [symbol] unified market symbol
|
|
3061
3061
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3062
3062
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
3063
|
-
* @param {object} [params] extra parameters specific to the
|
|
3063
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3064
3064
|
* @param {string} params.trandingUnit COIN (directly represent assets such as BTC and ETH) or CONT (represents the number of contract sheets)
|
|
3065
3065
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
3066
3066
|
*/
|
|
@@ -3177,7 +3177,7 @@ export default class bingx extends Exchange {
|
|
|
3177
3177
|
* @description fetch deposit and withdraw fees
|
|
3178
3178
|
* @see https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins'%20Information
|
|
3179
3179
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
3180
|
-
* @param {object} [params] extra parameters specific to the
|
|
3180
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3181
3181
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
3182
3182
|
*/
|
|
3183
3183
|
await this.loadMarkets();
|
|
@@ -3195,7 +3195,7 @@ export default class bingx extends Exchange {
|
|
|
3195
3195
|
* @param {float} amount the amount to withdraw
|
|
3196
3196
|
* @param {string} address the address to withdraw to
|
|
3197
3197
|
* @param {string} [tag]
|
|
3198
|
-
* @param {object} [params] extra parameters specific to the
|
|
3198
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3199
3199
|
* @param {int} [params.walletType] 1 fund account, 2 standard account, 3 perpetual account
|
|
3200
3200
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
3201
3201
|
*/
|
package/js/src/bit2c.js
CHANGED
|
@@ -208,7 +208,7 @@ export default class bit2c extends Exchange {
|
|
|
208
208
|
* @method
|
|
209
209
|
* @name bit2c#fetchBalance
|
|
210
210
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
211
|
-
* @param {object} [params] extra parameters specific to the
|
|
211
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
212
212
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
213
213
|
*/
|
|
214
214
|
await this.loadMarkets();
|
|
@@ -264,7 +264,7 @@ export default class bit2c extends Exchange {
|
|
|
264
264
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
265
265
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
266
266
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
267
|
-
* @param {object} [params] extra parameters specific to the
|
|
267
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
268
268
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
269
269
|
*/
|
|
270
270
|
await this.loadMarkets();
|
|
@@ -310,7 +310,7 @@ export default class bit2c extends Exchange {
|
|
|
310
310
|
* @name bit2c#fetchTicker
|
|
311
311
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
312
312
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
313
|
-
* @param {object} [params] extra parameters specific to the
|
|
313
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
314
314
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
315
315
|
*/
|
|
316
316
|
await this.loadMarkets();
|
|
@@ -329,7 +329,7 @@ export default class bit2c extends Exchange {
|
|
|
329
329
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
330
330
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
331
331
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
332
|
-
* @param {object} [params] extra parameters specific to the
|
|
332
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
333
333
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
334
334
|
*/
|
|
335
335
|
await this.loadMarkets();
|
|
@@ -362,7 +362,7 @@ export default class bit2c extends Exchange {
|
|
|
362
362
|
* @method
|
|
363
363
|
* @name bit2c#fetchTradingFees
|
|
364
364
|
* @description fetch the trading fees for multiple markets
|
|
365
|
-
* @param {object} [params] extra parameters specific to the
|
|
365
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
366
366
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
367
367
|
*/
|
|
368
368
|
await this.loadMarkets();
|
|
@@ -415,7 +415,7 @@ export default class bit2c extends Exchange {
|
|
|
415
415
|
* @param {string} side 'buy' or 'sell'
|
|
416
416
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
417
417
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
418
|
-
* @param {object} [params] extra parameters specific to the
|
|
418
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
419
419
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
420
420
|
*/
|
|
421
421
|
await this.loadMarkets();
|
|
@@ -445,7 +445,7 @@ export default class bit2c extends Exchange {
|
|
|
445
445
|
* @description cancels an open order
|
|
446
446
|
* @param {string} id order id
|
|
447
447
|
* @param {string} symbol Not used by bit2c cancelOrder ()
|
|
448
|
-
* @param {object} [params] extra parameters specific to the
|
|
448
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
449
449
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
450
450
|
*/
|
|
451
451
|
const request = {
|
|
@@ -461,7 +461,7 @@ export default class bit2c extends Exchange {
|
|
|
461
461
|
* @param {string} symbol unified market symbol
|
|
462
462
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
463
463
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
464
|
-
* @param {object} [params] extra parameters specific to the
|
|
464
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
465
465
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
466
466
|
*/
|
|
467
467
|
if (symbol === undefined) {
|
|
@@ -484,7 +484,7 @@ export default class bit2c extends Exchange {
|
|
|
484
484
|
* @name bit2c#fetchOrder
|
|
485
485
|
* @description fetches information on an order made by the user
|
|
486
486
|
* @param {string} symbol unified market symbol
|
|
487
|
-
* @param {object} [params] extra parameters specific to the
|
|
487
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
488
488
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
489
489
|
*/
|
|
490
490
|
await this.loadMarkets();
|
|
@@ -638,7 +638,7 @@ export default class bit2c extends Exchange {
|
|
|
638
638
|
* @param {string} symbol unified market symbol
|
|
639
639
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
640
640
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
641
|
-
* @param {object} [params] extra parameters specific to the
|
|
641
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
642
642
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
643
643
|
*/
|
|
644
644
|
await this.loadMarkets();
|
|
@@ -816,7 +816,7 @@ export default class bit2c extends Exchange {
|
|
|
816
816
|
* @name bit2c#fetchDepositAddress
|
|
817
817
|
* @description fetch the deposit address for a currency associated with this account
|
|
818
818
|
* @param {string} code unified currency code
|
|
819
|
-
* @param {object} [params] extra parameters specific to the
|
|
819
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
820
820
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
821
821
|
*/
|
|
822
822
|
await this.loadMarkets();
|
package/js/src/bitbank.js
CHANGED
|
@@ -162,7 +162,7 @@ export default class bitbank extends Exchange {
|
|
|
162
162
|
* @name bitbank#fetchMarkets
|
|
163
163
|
* @description retrieves data on all markets for bitbank
|
|
164
164
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-all-pairs-info
|
|
165
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
165
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
166
166
|
* @returns {object[]} an array of objects representing market data
|
|
167
167
|
*/
|
|
168
168
|
const response = await this.marketsGetSpotPairs(params);
|
|
@@ -289,7 +289,7 @@ export default class bitbank extends Exchange {
|
|
|
289
289
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
290
290
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#ticker
|
|
291
291
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
292
|
-
* @param {object} [params] extra parameters specific to the
|
|
292
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
293
293
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
294
294
|
*/
|
|
295
295
|
await this.loadMarkets();
|
|
@@ -309,7 +309,7 @@ export default class bitbank extends Exchange {
|
|
|
309
309
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#depth
|
|
310
310
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
311
311
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
312
|
-
* @param {object} [params] extra parameters specific to the
|
|
312
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
313
313
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
314
314
|
*/
|
|
315
315
|
await this.loadMarkets();
|
|
@@ -376,7 +376,7 @@ export default class bitbank extends Exchange {
|
|
|
376
376
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
377
377
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
378
378
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
379
|
-
* @param {object} [params] extra parameters specific to the
|
|
379
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
380
380
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
381
381
|
*/
|
|
382
382
|
await this.loadMarkets();
|
|
@@ -395,7 +395,7 @@ export default class bitbank extends Exchange {
|
|
|
395
395
|
* @name bitbank#fetchTradingFees
|
|
396
396
|
* @description fetch the trading fees for multiple markets
|
|
397
397
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-all-pairs-info
|
|
398
|
-
* @param {object} [params] extra parameters specific to the
|
|
398
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
399
399
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
400
400
|
*/
|
|
401
401
|
await this.loadMarkets();
|
|
@@ -477,7 +477,7 @@ export default class bitbank extends Exchange {
|
|
|
477
477
|
* @param {string} timeframe the length of time each candle represents
|
|
478
478
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
479
479
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
480
|
-
* @param {object} [params] extra parameters specific to the
|
|
480
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
481
481
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
482
482
|
*/
|
|
483
483
|
if (since === undefined) {
|
|
@@ -545,7 +545,7 @@ export default class bitbank extends Exchange {
|
|
|
545
545
|
* @name bitbank#fetchBalance
|
|
546
546
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
547
547
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#assets
|
|
548
|
-
* @param {object} [params] extra parameters specific to the
|
|
548
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
549
549
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
550
550
|
*/
|
|
551
551
|
await this.loadMarkets();
|
|
@@ -644,7 +644,7 @@ export default class bitbank extends Exchange {
|
|
|
644
644
|
* @param {string} side 'buy' or 'sell'
|
|
645
645
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
646
646
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
647
|
-
* @param {object} [params] extra parameters specific to the
|
|
647
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
648
648
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
649
649
|
*/
|
|
650
650
|
await this.loadMarkets();
|
|
@@ -670,7 +670,7 @@ export default class bitbank extends Exchange {
|
|
|
670
670
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#cancel-order
|
|
671
671
|
* @param {string} id order id
|
|
672
672
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
673
|
-
* @param {object} [params] extra parameters specific to the
|
|
673
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
674
674
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
675
675
|
*/
|
|
676
676
|
await this.loadMarkets();
|
|
@@ -690,7 +690,7 @@ export default class bitbank extends Exchange {
|
|
|
690
690
|
* @description fetches information on an order made by the user
|
|
691
691
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-order-information
|
|
692
692
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
693
|
-
* @param {object} [params] extra parameters specific to the
|
|
693
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
694
694
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
695
695
|
*/
|
|
696
696
|
await this.loadMarkets();
|
|
@@ -712,7 +712,7 @@ export default class bitbank extends Exchange {
|
|
|
712
712
|
* @param {string} symbol unified market symbol
|
|
713
713
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
714
714
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
715
|
-
* @param {object} [params] extra parameters specific to the
|
|
715
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
716
716
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
717
717
|
*/
|
|
718
718
|
await this.loadMarkets();
|
|
@@ -740,7 +740,7 @@ export default class bitbank extends Exchange {
|
|
|
740
740
|
* @param {string} symbol unified market symbol
|
|
741
741
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
742
742
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
743
|
-
* @param {object} [params] extra parameters specific to the
|
|
743
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
744
744
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
745
745
|
*/
|
|
746
746
|
await this.loadMarkets();
|
|
@@ -768,7 +768,7 @@ export default class bitbank extends Exchange {
|
|
|
768
768
|
* @description fetch the deposit address for a currency associated with this account
|
|
769
769
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-withdrawal-accounts
|
|
770
770
|
* @param {string} code unified currency code
|
|
771
|
-
* @param {object} [params] extra parameters specific to the
|
|
771
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
772
772
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
773
773
|
*/
|
|
774
774
|
await this.loadMarkets();
|
|
@@ -800,7 +800,7 @@ export default class bitbank extends Exchange {
|
|
|
800
800
|
* @param {float} amount the amount to withdraw
|
|
801
801
|
* @param {string} address the address to withdraw to
|
|
802
802
|
* @param {string} tag
|
|
803
|
-
* @param {object} [params] extra parameters specific to the
|
|
803
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
804
804
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
805
805
|
*/
|
|
806
806
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|