ccxt 4.1.63 → 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 +4 -4
- package/dist/ccxt.browser.js +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- 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 +33 -3
- 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 +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- 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 +27 -28
- 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 +162 -123
- 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 +12 -9
- 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 +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- 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/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- 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 +33 -3
- 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 +48 -30
- package/js/src/krakenfutures.js +16 -16
- 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 +27 -28
- 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 +162 -123
- 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 +12 -9
- 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/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- 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
|
@@ -42,10 +42,40 @@ class binanceus extends binance {
|
|
|
42
42
|
'has': {
|
|
43
43
|
'CORS': undefined,
|
|
44
44
|
'spot': true,
|
|
45
|
-
'margin':
|
|
46
|
-
'swap':
|
|
45
|
+
'margin': false,
|
|
46
|
+
'swap': false,
|
|
47
47
|
'future': undefined,
|
|
48
|
-
'option':
|
|
48
|
+
'option': false,
|
|
49
|
+
'addMargin': false,
|
|
50
|
+
'borrowMargin': false,
|
|
51
|
+
'createReduceOnlyOrder': false,
|
|
52
|
+
'fetchBorrowInterest': false,
|
|
53
|
+
'fetchBorrowRate': false,
|
|
54
|
+
'fetchBorrowRateHistories': false,
|
|
55
|
+
'fetchBorrowRateHistory': false,
|
|
56
|
+
'fetchBorrowRates': false,
|
|
57
|
+
'fetchBorrowRatesPerSymbol': false,
|
|
58
|
+
'fetchFundingHistory': false,
|
|
59
|
+
'fetchFundingRate': false,
|
|
60
|
+
'fetchFundingRateHistory': false,
|
|
61
|
+
'fetchFundingRates': false,
|
|
62
|
+
'fetchIndexOHLCV': false,
|
|
63
|
+
'fetchIsolatedPositions': false,
|
|
64
|
+
'fetchLeverage': false,
|
|
65
|
+
'fetchLeverageTiers': false,
|
|
66
|
+
'fetchMarketLeverageTiers': false,
|
|
67
|
+
'fetchMarkOHLCV': false,
|
|
68
|
+
'fetchOpenInterestHistory': false,
|
|
69
|
+
'fetchPosition': false,
|
|
70
|
+
'fetchPositions': false,
|
|
71
|
+
'fetchPositionsRisk': false,
|
|
72
|
+
'fetchPremiumIndexOHLCV': false,
|
|
73
|
+
'reduceMargin': false,
|
|
74
|
+
'repayMargin': false,
|
|
75
|
+
'setLeverage': false,
|
|
76
|
+
'setMargin': false,
|
|
77
|
+
'setMarginMode': false,
|
|
78
|
+
'setPositionMode': false,
|
|
49
79
|
},
|
|
50
80
|
});
|
|
51
81
|
}
|
package/dist/cjs/src/bingx.js
CHANGED
|
@@ -353,7 +353,7 @@ class bingx extends bingx$1 {
|
|
|
353
353
|
* @name bingx#fetchTime
|
|
354
354
|
* @description fetches the current integer timestamp in milliseconds from the bingx server
|
|
355
355
|
* @see https://bingx-api.github.io/docs/#/swapV2/base-info.html#Get%20Server%20Time
|
|
356
|
-
* @param {object} [params] extra parameters specific to the
|
|
356
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
357
357
|
* @returns {int} the current integer timestamp in milliseconds from the bingx server
|
|
358
358
|
*/
|
|
359
359
|
const response = await this.swapV2PublicGetServerTime(params);
|
|
@@ -375,7 +375,7 @@ class bingx extends bingx$1 {
|
|
|
375
375
|
* @name bingx#fetchCurrencies
|
|
376
376
|
* @description fetches all available currencies on an exchange
|
|
377
377
|
* @see https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins
|
|
378
|
-
* @param {object} [params] extra parameters specific to the
|
|
378
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
379
379
|
* @returns {object} an associative dictionary of currencies
|
|
380
380
|
*/
|
|
381
381
|
if (!this.checkRequiredCredentials(false)) {
|
|
@@ -615,7 +615,7 @@ class bingx extends bingx$1 {
|
|
|
615
615
|
* @description retrieves data on all markets for bingx
|
|
616
616
|
* @see https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20Symbols
|
|
617
617
|
* @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Contract%20Information
|
|
618
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
618
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
619
619
|
* @returns {object[]} an array of objects representing market data
|
|
620
620
|
*/
|
|
621
621
|
const requests = [this.fetchSpotMarkets(params), this.fetchSwapMarkets(params)];
|
|
@@ -636,7 +636,7 @@ class bingx extends bingx$1 {
|
|
|
636
636
|
* @param {string} timeframe the length of time each candle represents
|
|
637
637
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
638
638
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
639
|
-
* @param {object} [params] extra parameters specific to the
|
|
639
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
640
640
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
641
641
|
* @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)
|
|
642
642
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
@@ -744,7 +744,7 @@ class bingx extends bingx$1 {
|
|
|
744
744
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
745
745
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
746
746
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
747
|
-
* @param {object} [params] extra parameters specific to the
|
|
747
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
748
748
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
749
749
|
*/
|
|
750
750
|
await this.loadMarkets();
|
|
@@ -915,7 +915,7 @@ class bingx extends bingx$1 {
|
|
|
915
915
|
* @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Market%20Depth
|
|
916
916
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
917
917
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
918
|
-
* @param {object} [params] extra parameters specific to the
|
|
918
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
919
919
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
920
920
|
*/
|
|
921
921
|
await this.loadMarkets();
|
|
@@ -1003,7 +1003,7 @@ class bingx extends bingx$1 {
|
|
|
1003
1003
|
* @description fetch the current funding rate
|
|
1004
1004
|
* @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Current%20Funding%20Rate
|
|
1005
1005
|
* @param {string} symbol unified market symbol
|
|
1006
|
-
* @param {object} [params] extra parameters specific to the
|
|
1006
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1007
1007
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1008
1008
|
*/
|
|
1009
1009
|
await this.loadMarkets();
|
|
@@ -1072,7 +1072,7 @@ class bingx extends bingx$1 {
|
|
|
1072
1072
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
1073
1073
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
1074
1074
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
1075
|
-
* @param {object} [params] extra parameters specific to the
|
|
1075
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1076
1076
|
* @param {int} [params.until] timestamp in ms of the latest funding rate to fetch
|
|
1077
1077
|
* @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)
|
|
1078
1078
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
@@ -1195,7 +1195,7 @@ class bingx extends bingx$1 {
|
|
|
1195
1195
|
* @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
|
|
1196
1196
|
* @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
|
|
1197
1197
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1198
|
-
* @param {object} [params] extra parameters specific to the
|
|
1198
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1199
1199
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1200
1200
|
*/
|
|
1201
1201
|
await this.loadMarkets();
|
|
@@ -1247,10 +1247,10 @@ class bingx extends bingx$1 {
|
|
|
1247
1247
|
/**
|
|
1248
1248
|
* @method
|
|
1249
1249
|
* @name bingx#fetchTickers
|
|
1250
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1250
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1251
1251
|
* @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
|
|
1252
1252
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1253
|
-
* @param {object} [params] extra parameters specific to the
|
|
1253
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1254
1254
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1255
1255
|
*/
|
|
1256
1256
|
await this.loadMarkets();
|
|
@@ -1400,7 +1400,7 @@ class bingx extends bingx$1 {
|
|
|
1400
1400
|
* @see https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Assets
|
|
1401
1401
|
* @see https://bingx-api.github.io/docs/#/swapV2/account-api.html#Get%20Perpetual%20Swap%20Account%20Asset%20Information
|
|
1402
1402
|
* @see https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
|
|
1403
|
-
* @param {object} [params] extra parameters specific to the
|
|
1403
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1404
1404
|
* @param {boolean} [params.standard] whether to fetch standard contract balances
|
|
1405
1405
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1406
1406
|
*/
|
|
@@ -1518,7 +1518,7 @@ class bingx extends bingx$1 {
|
|
|
1518
1518
|
* @see https://bingx-api.github.io/docs/#/swapV2/account-api.html#Perpetual%20Swap%20Positions
|
|
1519
1519
|
* @see https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
|
|
1520
1520
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1521
|
-
* @param {object} [params] extra parameters specific to the
|
|
1521
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1522
1522
|
* @param {boolean} [params.standard] whether to fetch standard contract positions
|
|
1523
1523
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
1524
1524
|
*/
|
|
@@ -1631,7 +1631,7 @@ class bingx extends bingx$1 {
|
|
|
1631
1631
|
* @param {string} side 'buy' or 'sell'
|
|
1632
1632
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
1633
1633
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1634
|
-
* @param {object} [params] extra parameters specific to the
|
|
1634
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1635
1635
|
* @returns {object} request to be sent to the exchange
|
|
1636
1636
|
*/
|
|
1637
1637
|
const market = this.market(symbol);
|
|
@@ -1756,7 +1756,7 @@ class bingx extends bingx$1 {
|
|
|
1756
1756
|
* @param {string} side 'buy' or 'sell'
|
|
1757
1757
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
1758
1758
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1759
|
-
* @param {object} [params] extra parameters specific to the
|
|
1759
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1760
1760
|
* @param {bool} [params.postOnly] true to place a post only order
|
|
1761
1761
|
* @param {string} [params.timeInForce] spot supports 'PO' and 'IOC', swap supports 'PO', 'GTC', 'IOC' and 'FOK'
|
|
1762
1762
|
* @param {bool} [params.reduceOnly] *swap only* true or false whether the order is reduce only
|
|
@@ -1825,7 +1825,7 @@ class bingx extends bingx$1 {
|
|
|
1825
1825
|
* @see https://bingx-api.github.io/docs/#/spot/trade-api.html#Batch%20Placing%20Orders
|
|
1826
1826
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Bulk%20order
|
|
1827
1827
|
* @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
|
|
1828
|
-
* @param {object} [params] extra parameters specific to the
|
|
1828
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1829
1829
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1830
1830
|
*/
|
|
1831
1831
|
await this.loadMarkets();
|
|
@@ -2084,7 +2084,7 @@ class bingx extends bingx$1 {
|
|
|
2084
2084
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20an%20Order
|
|
2085
2085
|
* @param {string} id order id
|
|
2086
2086
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2087
|
-
* @param {object} [params] extra parameters specific to the
|
|
2087
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2088
2088
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2089
2089
|
*/
|
|
2090
2090
|
if (symbol === undefined) {
|
|
@@ -2161,7 +2161,7 @@ class bingx extends bingx$1 {
|
|
|
2161
2161
|
* @description cancel all open orders
|
|
2162
2162
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20All%20Orders
|
|
2163
2163
|
* @param {string} [symbol] unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2164
|
-
* @param {object} [params] extra parameters specific to the
|
|
2164
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2165
2165
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2166
2166
|
*/
|
|
2167
2167
|
if (symbol === undefined) {
|
|
@@ -2216,7 +2216,7 @@ class bingx extends bingx$1 {
|
|
|
2216
2216
|
* @see https://bingx-api.github.io/docs/#/spot/trade-api.html#Cancel%20a%20Batch%20of%20Orders
|
|
2217
2217
|
* @param {string[]} ids order ids
|
|
2218
2218
|
* @param {string} symbol unified market symbol, default is undefined
|
|
2219
|
-
* @param {object} [params] extra parameters specific to the
|
|
2219
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2220
2220
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2221
2221
|
*/
|
|
2222
2222
|
if (symbol === undefined) {
|
|
@@ -2281,7 +2281,7 @@ class bingx extends bingx$1 {
|
|
|
2281
2281
|
* @see https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Orders
|
|
2282
2282
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Order
|
|
2283
2283
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2284
|
-
* @param {object} [params] extra parameters specific to the
|
|
2284
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2285
2285
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2286
2286
|
*/
|
|
2287
2287
|
if (symbol === undefined) {
|
|
@@ -2366,7 +2366,7 @@ class bingx extends bingx$1 {
|
|
|
2366
2366
|
* @param {string} symbol unified market symbol
|
|
2367
2367
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2368
2368
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
2369
|
-
* @param {object} [params] extra parameters specific to the
|
|
2369
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2370
2370
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2371
2371
|
*/
|
|
2372
2372
|
if (symbol === undefined) {
|
|
@@ -2455,7 +2455,7 @@ class bingx extends bingx$1 {
|
|
|
2455
2455
|
* @param {string} [symbol] unified market symbol of the market orders were made in
|
|
2456
2456
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2457
2457
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2458
|
-
* @param {object} [params] extra parameters specific to the
|
|
2458
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2459
2459
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
2460
2460
|
* @param {boolean} [params.standard] whether to fetch standard contract orders
|
|
2461
2461
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2550,7 +2550,7 @@ class bingx extends bingx$1 {
|
|
|
2550
2550
|
* @param {float} amount amount to transfer
|
|
2551
2551
|
* @param {string} fromAccount account to transfer from
|
|
2552
2552
|
* @param {string} toAccount account to transfer to
|
|
2553
|
-
* @param {object} [params] extra parameters specific to the
|
|
2553
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2554
2554
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
2555
2555
|
*/
|
|
2556
2556
|
await this.loadMarkets();
|
|
@@ -2590,7 +2590,7 @@ class bingx extends bingx$1 {
|
|
|
2590
2590
|
* @param {string} [code] unified currency code of the currency transferred
|
|
2591
2591
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
2592
2592
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
2593
|
-
* @param {object} [params] extra parameters specific to the
|
|
2593
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2594
2594
|
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
2595
2595
|
*/
|
|
2596
2596
|
await this.loadMarkets();
|
|
@@ -2665,7 +2665,7 @@ class bingx extends bingx$1 {
|
|
|
2665
2665
|
* @description fetch the deposit address for a currency associated with this account
|
|
2666
2666
|
* @see https://bingx-api.github.io/docs/#/common/sub-account#Query%20Main%20Account%20Deposit%20Address
|
|
2667
2667
|
* @param {string} code unified currency code
|
|
2668
|
-
* @param {object} [params] extra parameters specific to the
|
|
2668
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2669
2669
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2670
2670
|
*/
|
|
2671
2671
|
await this.loadMarkets();
|
|
@@ -2735,7 +2735,7 @@ class bingx extends bingx$1 {
|
|
|
2735
2735
|
* @param {string} [code] unified currency code
|
|
2736
2736
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2737
2737
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2738
|
-
* @param {object} [params] extra parameters specific to the
|
|
2738
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2739
2739
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2740
2740
|
*/
|
|
2741
2741
|
await this.loadMarkets();
|
|
@@ -2780,7 +2780,7 @@ class bingx extends bingx$1 {
|
|
|
2780
2780
|
* @param {string} [code] unified currency code
|
|
2781
2781
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2782
2782
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2783
|
-
* @param {object} [params] extra parameters specific to the
|
|
2783
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2784
2784
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2785
2785
|
*/
|
|
2786
2786
|
await this.loadMarkets();
|
|
@@ -2925,7 +2925,7 @@ class bingx extends bingx$1 {
|
|
|
2925
2925
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Switch%20Margin%20Mode
|
|
2926
2926
|
* @param {string} marginMode 'cross' or 'isolated'
|
|
2927
2927
|
* @param {string} symbol unified market symbol
|
|
2928
|
-
* @param {object} [params] extra parameters specific to the
|
|
2928
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2929
2929
|
* @returns {object} response from the exchange
|
|
2930
2930
|
*/
|
|
2931
2931
|
if (symbol === undefined) {
|
|
@@ -2992,7 +2992,7 @@ class bingx extends bingx$1 {
|
|
|
2992
2992
|
* @description fetch the set leverage for a market
|
|
2993
2993
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Leverage
|
|
2994
2994
|
* @param {string} symbol unified market symbol
|
|
2995
|
-
* @param {object} [params] extra parameters specific to the
|
|
2995
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2996
2996
|
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
|
|
2997
2997
|
*/
|
|
2998
2998
|
await this.loadMarkets();
|
|
@@ -3021,7 +3021,7 @@ class bingx extends bingx$1 {
|
|
|
3021
3021
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Switch%20Leverage
|
|
3022
3022
|
* @param {float} leverage the rate of leverage
|
|
3023
3023
|
* @param {string} symbol unified market symbol
|
|
3024
|
-
* @param {object} [params] extra parameters specific to the
|
|
3024
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3025
3025
|
* @returns {object} response from the exchange
|
|
3026
3026
|
*/
|
|
3027
3027
|
if (symbol === undefined) {
|
|
@@ -3057,7 +3057,7 @@ class bingx extends bingx$1 {
|
|
|
3057
3057
|
* @param {string} [symbol] unified market symbol
|
|
3058
3058
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3059
3059
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
3060
|
-
* @param {object} [params] extra parameters specific to the
|
|
3060
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3061
3061
|
* @param {string} params.trandingUnit COIN (directly represent assets such as BTC and ETH) or CONT (represents the number of contract sheets)
|
|
3062
3062
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
3063
3063
|
*/
|
|
@@ -3174,7 +3174,7 @@ class bingx extends bingx$1 {
|
|
|
3174
3174
|
* @description fetch deposit and withdraw fees
|
|
3175
3175
|
* @see https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins'%20Information
|
|
3176
3176
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
3177
|
-
* @param {object} [params] extra parameters specific to the
|
|
3177
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3178
3178
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
3179
3179
|
*/
|
|
3180
3180
|
await this.loadMarkets();
|
|
@@ -3192,7 +3192,7 @@ class bingx extends bingx$1 {
|
|
|
3192
3192
|
* @param {float} amount the amount to withdraw
|
|
3193
3193
|
* @param {string} address the address to withdraw to
|
|
3194
3194
|
* @param {string} [tag]
|
|
3195
|
-
* @param {object} [params] extra parameters specific to the
|
|
3195
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3196
3196
|
* @param {int} [params.walletType] 1 fund account, 2 standard account, 3 perpetual account
|
|
3197
3197
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
3198
3198
|
*/
|
package/dist/cjs/src/bit2c.js
CHANGED
|
@@ -205,7 +205,7 @@ class bit2c extends bit2c$1 {
|
|
|
205
205
|
* @method
|
|
206
206
|
* @name bit2c#fetchBalance
|
|
207
207
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
208
|
-
* @param {object} [params] extra parameters specific to the
|
|
208
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
209
209
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
210
210
|
*/
|
|
211
211
|
await this.loadMarkets();
|
|
@@ -261,7 +261,7 @@ class bit2c extends bit2c$1 {
|
|
|
261
261
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
262
262
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
263
263
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
264
|
-
* @param {object} [params] extra parameters specific to the
|
|
264
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
265
265
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
266
266
|
*/
|
|
267
267
|
await this.loadMarkets();
|
|
@@ -307,7 +307,7 @@ class bit2c extends bit2c$1 {
|
|
|
307
307
|
* @name bit2c#fetchTicker
|
|
308
308
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
309
309
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
310
|
-
* @param {object} [params] extra parameters specific to the
|
|
310
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
311
311
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
312
312
|
*/
|
|
313
313
|
await this.loadMarkets();
|
|
@@ -326,7 +326,7 @@ class bit2c extends bit2c$1 {
|
|
|
326
326
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
327
327
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
328
328
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
329
|
-
* @param {object} [params] extra parameters specific to the
|
|
329
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
330
330
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
331
331
|
*/
|
|
332
332
|
await this.loadMarkets();
|
|
@@ -359,7 +359,7 @@ class bit2c extends bit2c$1 {
|
|
|
359
359
|
* @method
|
|
360
360
|
* @name bit2c#fetchTradingFees
|
|
361
361
|
* @description fetch the trading fees for multiple markets
|
|
362
|
-
* @param {object} [params] extra parameters specific to the
|
|
362
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
363
363
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
364
364
|
*/
|
|
365
365
|
await this.loadMarkets();
|
|
@@ -412,7 +412,7 @@ class bit2c extends bit2c$1 {
|
|
|
412
412
|
* @param {string} side 'buy' or 'sell'
|
|
413
413
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
414
414
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
415
|
-
* @param {object} [params] extra parameters specific to the
|
|
415
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
416
416
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
417
417
|
*/
|
|
418
418
|
await this.loadMarkets();
|
|
@@ -442,7 +442,7 @@ class bit2c extends bit2c$1 {
|
|
|
442
442
|
* @description cancels an open order
|
|
443
443
|
* @param {string} id order id
|
|
444
444
|
* @param {string} symbol Not used by bit2c cancelOrder ()
|
|
445
|
-
* @param {object} [params] extra parameters specific to the
|
|
445
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
446
446
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
447
447
|
*/
|
|
448
448
|
const request = {
|
|
@@ -458,7 +458,7 @@ class bit2c extends bit2c$1 {
|
|
|
458
458
|
* @param {string} symbol unified market symbol
|
|
459
459
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
460
460
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
461
|
-
* @param {object} [params] extra parameters specific to the
|
|
461
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
462
462
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
463
463
|
*/
|
|
464
464
|
if (symbol === undefined) {
|
|
@@ -481,7 +481,7 @@ class bit2c extends bit2c$1 {
|
|
|
481
481
|
* @name bit2c#fetchOrder
|
|
482
482
|
* @description fetches information on an order made by the user
|
|
483
483
|
* @param {string} symbol unified market symbol
|
|
484
|
-
* @param {object} [params] extra parameters specific to the
|
|
484
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
485
485
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
486
486
|
*/
|
|
487
487
|
await this.loadMarkets();
|
|
@@ -635,7 +635,7 @@ class bit2c extends bit2c$1 {
|
|
|
635
635
|
* @param {string} symbol unified market symbol
|
|
636
636
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
637
637
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
638
|
-
* @param {object} [params] extra parameters specific to the
|
|
638
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
639
639
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
640
640
|
*/
|
|
641
641
|
await this.loadMarkets();
|
|
@@ -813,7 +813,7 @@ class bit2c extends bit2c$1 {
|
|
|
813
813
|
* @name bit2c#fetchDepositAddress
|
|
814
814
|
* @description fetch the deposit address for a currency associated with this account
|
|
815
815
|
* @param {string} code unified currency code
|
|
816
|
-
* @param {object} [params] extra parameters specific to the
|
|
816
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
817
817
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
818
818
|
*/
|
|
819
819
|
await this.loadMarkets();
|
package/dist/cjs/src/bitbank.js
CHANGED
|
@@ -159,7 +159,7 @@ class bitbank extends bitbank$1 {
|
|
|
159
159
|
* @name bitbank#fetchMarkets
|
|
160
160
|
* @description retrieves data on all markets for bitbank
|
|
161
161
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-all-pairs-info
|
|
162
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
162
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
163
163
|
* @returns {object[]} an array of objects representing market data
|
|
164
164
|
*/
|
|
165
165
|
const response = await this.marketsGetSpotPairs(params);
|
|
@@ -286,7 +286,7 @@ class bitbank extends bitbank$1 {
|
|
|
286
286
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
287
287
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#ticker
|
|
288
288
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
289
|
-
* @param {object} [params] extra parameters specific to the
|
|
289
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
290
290
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
291
291
|
*/
|
|
292
292
|
await this.loadMarkets();
|
|
@@ -306,7 +306,7 @@ class bitbank extends bitbank$1 {
|
|
|
306
306
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#depth
|
|
307
307
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
308
308
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
309
|
-
* @param {object} [params] extra parameters specific to the
|
|
309
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
310
310
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
311
311
|
*/
|
|
312
312
|
await this.loadMarkets();
|
|
@@ -373,7 +373,7 @@ class bitbank extends bitbank$1 {
|
|
|
373
373
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
374
374
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
375
375
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
376
|
-
* @param {object} [params] extra parameters specific to the
|
|
376
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
377
377
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
378
378
|
*/
|
|
379
379
|
await this.loadMarkets();
|
|
@@ -392,7 +392,7 @@ class bitbank extends bitbank$1 {
|
|
|
392
392
|
* @name bitbank#fetchTradingFees
|
|
393
393
|
* @description fetch the trading fees for multiple markets
|
|
394
394
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-all-pairs-info
|
|
395
|
-
* @param {object} [params] extra parameters specific to the
|
|
395
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
396
396
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
397
397
|
*/
|
|
398
398
|
await this.loadMarkets();
|
|
@@ -474,7 +474,7 @@ class bitbank extends bitbank$1 {
|
|
|
474
474
|
* @param {string} timeframe the length of time each candle represents
|
|
475
475
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
476
476
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
477
|
-
* @param {object} [params] extra parameters specific to the
|
|
477
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
478
478
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
479
479
|
*/
|
|
480
480
|
if (since === undefined) {
|
|
@@ -542,7 +542,7 @@ class bitbank extends bitbank$1 {
|
|
|
542
542
|
* @name bitbank#fetchBalance
|
|
543
543
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
544
544
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#assets
|
|
545
|
-
* @param {object} [params] extra parameters specific to the
|
|
545
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
546
546
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
547
547
|
*/
|
|
548
548
|
await this.loadMarkets();
|
|
@@ -641,7 +641,7 @@ class bitbank extends bitbank$1 {
|
|
|
641
641
|
* @param {string} side 'buy' or 'sell'
|
|
642
642
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
643
643
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
644
|
-
* @param {object} [params] extra parameters specific to the
|
|
644
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
645
645
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
646
646
|
*/
|
|
647
647
|
await this.loadMarkets();
|
|
@@ -667,7 +667,7 @@ class bitbank extends bitbank$1 {
|
|
|
667
667
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#cancel-order
|
|
668
668
|
* @param {string} id order id
|
|
669
669
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
670
|
-
* @param {object} [params] extra parameters specific to the
|
|
670
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
671
671
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
672
672
|
*/
|
|
673
673
|
await this.loadMarkets();
|
|
@@ -687,7 +687,7 @@ class bitbank extends bitbank$1 {
|
|
|
687
687
|
* @description fetches information on an order made by the user
|
|
688
688
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-order-information
|
|
689
689
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
690
|
-
* @param {object} [params] extra parameters specific to the
|
|
690
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
691
691
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
692
692
|
*/
|
|
693
693
|
await this.loadMarkets();
|
|
@@ -709,7 +709,7 @@ class bitbank extends bitbank$1 {
|
|
|
709
709
|
* @param {string} symbol unified market symbol
|
|
710
710
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
711
711
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
712
|
-
* @param {object} [params] extra parameters specific to the
|
|
712
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
713
713
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
714
714
|
*/
|
|
715
715
|
await this.loadMarkets();
|
|
@@ -737,7 +737,7 @@ class bitbank extends bitbank$1 {
|
|
|
737
737
|
* @param {string} symbol unified market symbol
|
|
738
738
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
739
739
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
740
|
-
* @param {object} [params] extra parameters specific to the
|
|
740
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
741
741
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
742
742
|
*/
|
|
743
743
|
await this.loadMarkets();
|
|
@@ -765,7 +765,7 @@ class bitbank extends bitbank$1 {
|
|
|
765
765
|
* @description fetch the deposit address for a currency associated with this account
|
|
766
766
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-withdrawal-accounts
|
|
767
767
|
* @param {string} code unified currency code
|
|
768
|
-
* @param {object} [params] extra parameters specific to the
|
|
768
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
769
769
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
770
770
|
*/
|
|
771
771
|
await this.loadMarkets();
|
|
@@ -797,7 +797,7 @@ class bitbank extends bitbank$1 {
|
|
|
797
797
|
* @param {float} amount the amount to withdraw
|
|
798
798
|
* @param {string} address the address to withdraw to
|
|
799
799
|
* @param {string} tag
|
|
800
|
-
* @param {object} [params] extra parameters specific to the
|
|
800
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
801
801
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
802
802
|
*/
|
|
803
803
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|