ccxt 4.1.64 → 4.1.66
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 +2790 -2607
- 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 +232 -80
- 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 +46 -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.d.ts +20 -1
- package/js/src/base/Exchange.js +232 -80
- 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 +46 -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/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 +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/skip-tests.json +14 -7
package/dist/cjs/src/bitpanda.js
CHANGED
|
@@ -300,7 +300,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
300
300
|
* @method
|
|
301
301
|
* @name bitpanda#fetchTime
|
|
302
302
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
303
|
-
* @param {object} [params] extra parameters specific to the
|
|
303
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
304
304
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
305
305
|
*/
|
|
306
306
|
const response = await this.publicGetTime(params);
|
|
@@ -317,7 +317,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
317
317
|
* @method
|
|
318
318
|
* @name bitpanda#fetchCurrencies
|
|
319
319
|
* @description fetches all available currencies on an exchange
|
|
320
|
-
* @param {object} [params] extra parameters specific to the
|
|
320
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
321
321
|
* @returns {object} an associative dictionary of currencies
|
|
322
322
|
*/
|
|
323
323
|
const response = await this.publicGetCurrencies(params);
|
|
@@ -358,7 +358,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
358
358
|
* @method
|
|
359
359
|
* @name bitpanda#fetchMarkets
|
|
360
360
|
* @description retrieves data on all markets for bitpanda
|
|
361
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
361
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
362
362
|
* @returns {object[]} an array of objects representing market data
|
|
363
363
|
*/
|
|
364
364
|
const response = await this.publicGetInstruments(params);
|
|
@@ -440,7 +440,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
440
440
|
* @method
|
|
441
441
|
* @name bitpanda#fetchTradingFees
|
|
442
442
|
* @description fetch the trading fees for multiple markets
|
|
443
|
-
* @param {object} [params] extra parameters specific to the
|
|
443
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
444
444
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
445
445
|
*/
|
|
446
446
|
let method = this.safeString(params, 'method');
|
|
@@ -614,7 +614,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
614
614
|
* @name bitpanda#fetchTicker
|
|
615
615
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
616
616
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
617
|
-
* @param {object} [params] extra parameters specific to the
|
|
617
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
618
618
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
619
619
|
*/
|
|
620
620
|
await this.loadMarkets();
|
|
@@ -647,9 +647,9 @@ class bitpanda extends bitpanda$1 {
|
|
|
647
647
|
/**
|
|
648
648
|
* @method
|
|
649
649
|
* @name bitpanda#fetchTickers
|
|
650
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
650
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
651
651
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
652
|
-
* @param {object} [params] extra parameters specific to the
|
|
652
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
653
653
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
654
654
|
*/
|
|
655
655
|
await this.loadMarkets();
|
|
@@ -690,7 +690,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
690
690
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
691
691
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
692
692
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
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} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
695
695
|
*/
|
|
696
696
|
await this.loadMarkets();
|
|
@@ -817,7 +817,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
817
817
|
* @param {string} timeframe the length of time each candle represents
|
|
818
818
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
819
819
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
820
|
-
* @param {object} [params] extra parameters specific to the
|
|
820
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
821
821
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
822
822
|
*/
|
|
823
823
|
await this.loadMarkets();
|
|
@@ -944,7 +944,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
944
944
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
945
945
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
946
946
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
947
|
-
* @param {object} [params] extra parameters specific to the
|
|
947
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
948
948
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
949
949
|
*/
|
|
950
950
|
await this.loadMarkets();
|
|
@@ -996,7 +996,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
996
996
|
* @method
|
|
997
997
|
* @name bitpanda#fetchBalance
|
|
998
998
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
999
|
-
* @param {object} [params] extra parameters specific to the
|
|
999
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1000
1000
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1001
1001
|
*/
|
|
1002
1002
|
await this.loadMarkets();
|
|
@@ -1041,7 +1041,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1041
1041
|
* @name bitpanda#createDepositAddress
|
|
1042
1042
|
* @description create a currency deposit address
|
|
1043
1043
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1044
|
-
* @param {object} [params] extra parameters specific to the
|
|
1044
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1045
1045
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1046
1046
|
*/
|
|
1047
1047
|
await this.loadMarkets();
|
|
@@ -1066,7 +1066,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1066
1066
|
* @name bitpanda#fetchDepositAddress
|
|
1067
1067
|
* @description fetch the deposit address for a currency associated with this account
|
|
1068
1068
|
* @param {string} code unified currency code
|
|
1069
|
-
* @param {object} [params] extra parameters specific to the
|
|
1069
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1070
1070
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1071
1071
|
*/
|
|
1072
1072
|
await this.loadMarkets();
|
|
@@ -1094,7 +1094,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1094
1094
|
* @param {string} code unified currency code
|
|
1095
1095
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1096
1096
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1097
|
-
* @param {object} [params] extra parameters specific to the
|
|
1097
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1098
1098
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1099
1099
|
*/
|
|
1100
1100
|
await this.loadMarkets();
|
|
@@ -1158,7 +1158,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1158
1158
|
* @param {string} code unified currency code
|
|
1159
1159
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1160
1160
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1161
|
-
* @param {object} [params] extra parameters specific to the
|
|
1161
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1162
1162
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1163
1163
|
*/
|
|
1164
1164
|
await this.loadMarkets();
|
|
@@ -1224,7 +1224,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1224
1224
|
* @param {float} amount the amount to withdraw
|
|
1225
1225
|
* @param {string} address the address to withdraw to
|
|
1226
1226
|
* @param {string} tag
|
|
1227
|
-
* @param {object} [params] extra parameters specific to the
|
|
1227
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1228
1228
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1229
1229
|
*/
|
|
1230
1230
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1497,7 +1497,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1497
1497
|
* @param {string} side 'buy' or 'sell'
|
|
1498
1498
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1499
1499
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1500
|
-
* @param {object} [params] extra parameters specific to the
|
|
1500
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1501
1501
|
* @param {float} [params.triggerPrice] bitpanda only does stop limit orders and does not do stop market
|
|
1502
1502
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1503
1503
|
*/
|
|
@@ -1565,7 +1565,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1565
1565
|
* @description cancels an open order
|
|
1566
1566
|
* @param {string} id order id
|
|
1567
1567
|
* @param {string} symbol not used by bitmex cancelOrder ()
|
|
1568
|
-
* @param {object} [params] extra parameters specific to the
|
|
1568
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1569
1569
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1570
1570
|
*/
|
|
1571
1571
|
await this.loadMarkets();
|
|
@@ -1592,7 +1592,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1592
1592
|
* @name bitpanda#cancelAllOrders
|
|
1593
1593
|
* @description cancel all open orders
|
|
1594
1594
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1595
|
-
* @param {object} [params] extra parameters specific to the
|
|
1595
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1596
1596
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1597
1597
|
*/
|
|
1598
1598
|
await this.loadMarkets();
|
|
@@ -1616,7 +1616,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1616
1616
|
* @description cancel multiple orders
|
|
1617
1617
|
* @param {string[]} ids order ids
|
|
1618
1618
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1619
|
-
* @param {object} [params] extra parameters specific to the
|
|
1619
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1620
1620
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1621
1621
|
*/
|
|
1622
1622
|
await this.loadMarkets();
|
|
@@ -1637,7 +1637,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1637
1637
|
* @name bitpanda#fetchOrder
|
|
1638
1638
|
* @description fetches information on an order made by the user
|
|
1639
1639
|
* @param {string} symbol not used by bitpanda fetchOrder
|
|
1640
|
-
* @param {object} [params] extra parameters specific to the
|
|
1640
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1641
1641
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1642
1642
|
*/
|
|
1643
1643
|
await this.loadMarkets();
|
|
@@ -1696,7 +1696,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1696
1696
|
* @param {string} symbol unified market symbol
|
|
1697
1697
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1698
1698
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1699
|
-
* @param {object} [params] extra parameters specific to the
|
|
1699
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1700
1700
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1701
1701
|
*/
|
|
1702
1702
|
await this.loadMarkets();
|
|
@@ -1816,7 +1816,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1816
1816
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1817
1817
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1818
1818
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1819
|
-
* @param {object} [params] extra parameters specific to the
|
|
1819
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1820
1820
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1821
1821
|
*/
|
|
1822
1822
|
const request = {
|
|
@@ -1833,7 +1833,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1833
1833
|
* @param {string} symbol unified market symbol
|
|
1834
1834
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1835
1835
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1836
|
-
* @param {object} [params] extra parameters specific to the
|
|
1836
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1837
1837
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1838
1838
|
*/
|
|
1839
1839
|
await this.loadMarkets();
|
|
@@ -1891,7 +1891,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1891
1891
|
* @param {string} symbol unified market symbol
|
|
1892
1892
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1893
1893
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1894
|
-
* @param {object} [params] extra parameters specific to the
|
|
1894
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1895
1895
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1896
1896
|
*/
|
|
1897
1897
|
await this.loadMarkets();
|
package/dist/cjs/src/bitrue.js
CHANGED
|
@@ -466,7 +466,7 @@ class bitrue extends bitrue$1 {
|
|
|
466
466
|
* @name bitrue#fetchStatus
|
|
467
467
|
* @description the latest known information on the availability of the exchange API
|
|
468
468
|
* @see https://github.com/Bitrue-exchange/Spot-official-api-docs#test-connectivity
|
|
469
|
-
* @param {object} [params] extra parameters specific to the
|
|
469
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
470
470
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
471
471
|
*/
|
|
472
472
|
const response = await this.spotV1PublicGetPing(params);
|
|
@@ -492,7 +492,7 @@ class bitrue extends bitrue$1 {
|
|
|
492
492
|
* @name bitrue#fetchTime
|
|
493
493
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
494
494
|
* @see https://github.com/Bitrue-exchange/Spot-official-api-docs#check-server-time
|
|
495
|
-
* @param {object} [params] extra parameters specific to the
|
|
495
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
496
496
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
497
497
|
*/
|
|
498
498
|
const response = await this.spotV1PublicGetTime(params);
|
|
@@ -579,7 +579,7 @@ class bitrue extends bitrue$1 {
|
|
|
579
579
|
* @method
|
|
580
580
|
* @name bitrue#fetchCurrencies
|
|
581
581
|
* @description fetches all available currencies on an exchange
|
|
582
|
-
* @param {object} [params] extra parameters specific to the
|
|
582
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
583
583
|
* @returns {object} an associative dictionary of currencies
|
|
584
584
|
*/
|
|
585
585
|
const response = await this.spotV1PublicGetExchangeInfo(params);
|
|
@@ -986,7 +986,7 @@ class bitrue extends bitrue$1 {
|
|
|
986
986
|
* @see https://github.com/Bitrue-exchange/Spot-official-api-docs#account-information-user_data
|
|
987
987
|
* @see https://www.bitrue.com/api-docs#account-information-v2-user_data-hmac-sha256
|
|
988
988
|
* @see https://www.bitrue.com/api_docs_includes_file/delivery.html#account-information-v2-user_data-hmac-sha256
|
|
989
|
-
* @param {object} [params] extra parameters specific to the
|
|
989
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
990
990
|
* @param {string} [params.type] 'future', 'delivery', 'spot', 'swap'
|
|
991
991
|
* @param {string} [params.subType] 'linear', 'inverse'
|
|
992
992
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
@@ -1101,7 +1101,7 @@ class bitrue extends bitrue$1 {
|
|
|
1101
1101
|
* @see https://www.bitrue.com/api_docs_includes_file/delivery.html#order-book
|
|
1102
1102
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1103
1103
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1104
|
-
* @param {object} [params] extra parameters specific to the
|
|
1104
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1105
1105
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1106
1106
|
*/
|
|
1107
1107
|
await this.loadMarkets();
|
|
@@ -1247,7 +1247,7 @@ class bitrue extends bitrue$1 {
|
|
|
1247
1247
|
* @see https://www.bitrue.com/api-docs#ticker
|
|
1248
1248
|
* @see https://www.bitrue.com/api_docs_includes_file/delivery.html#ticker
|
|
1249
1249
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1250
|
-
* @param {object} [params] extra parameters specific to the
|
|
1250
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1251
1251
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1252
1252
|
*/
|
|
1253
1253
|
await this.loadMarkets();
|
|
@@ -1328,7 +1328,7 @@ class bitrue extends bitrue$1 {
|
|
|
1328
1328
|
* @param {string} timeframe the length of time each candle represents
|
|
1329
1329
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1330
1330
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1331
|
-
* @param {object} [params] extra parameters specific to the
|
|
1331
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1332
1332
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1333
1333
|
*/
|
|
1334
1334
|
await this.loadMarkets();
|
|
@@ -1460,7 +1460,7 @@ class bitrue extends bitrue$1 {
|
|
|
1460
1460
|
* @see https://www.bitrue.com/api-docs#ticker
|
|
1461
1461
|
* @see https://www.bitrue.com/api_docs_includes_file/delivery.html#ticker
|
|
1462
1462
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
1463
|
-
* @param {object} [params] extra parameters specific to the
|
|
1463
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1464
1464
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1465
1465
|
*/
|
|
1466
1466
|
await this.loadMarkets();
|
|
@@ -1520,12 +1520,12 @@ class bitrue extends bitrue$1 {
|
|
|
1520
1520
|
/**
|
|
1521
1521
|
* @method
|
|
1522
1522
|
* @name bitrue#fetchTickers
|
|
1523
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1523
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1524
1524
|
* @see https://github.com/Bitrue-exchange/Spot-official-api-docs#24hr-ticker-price-change-statistics
|
|
1525
1525
|
* @see https://www.bitrue.com/api-docs#ticker
|
|
1526
1526
|
* @see https://www.bitrue.com/api_docs_includes_file/delivery.html#ticker
|
|
1527
1527
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1528
|
-
* @param {object} [params] extra parameters specific to the
|
|
1528
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1529
1529
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1530
1530
|
*/
|
|
1531
1531
|
await this.loadMarkets();
|
|
@@ -1716,7 +1716,7 @@ class bitrue extends bitrue$1 {
|
|
|
1716
1716
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1717
1717
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1718
1718
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1719
|
-
* @param {object} [params] extra parameters specific to the
|
|
1719
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1720
1720
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1721
1721
|
*/
|
|
1722
1722
|
await this.loadMarkets();
|
|
@@ -1899,7 +1899,7 @@ class bitrue extends bitrue$1 {
|
|
|
1899
1899
|
* @param {string} side 'buy' or 'sell'
|
|
1900
1900
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1901
1901
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1902
|
-
* @param {object} [params] extra parameters specific to the
|
|
1902
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1903
1903
|
* @param {float} [params.triggerPrice] *spot only* the price at which a trigger order is triggered at
|
|
1904
1904
|
* @param {string} [params.clientOrderId] a unique id for the order, automatically generated if not sent
|
|
1905
1905
|
* @param {decimal} [params.leverage] in future order, the leverage value of the order should consistent with the user contract configuration, default is 1
|
|
@@ -2033,7 +2033,7 @@ class bitrue extends bitrue$1 {
|
|
|
2033
2033
|
* @see https://www.bitrue.com/api-docs#query-order-user_data-hmac-sha256
|
|
2034
2034
|
* @see https://www.bitrue.com/api_docs_includes_file/delivery.html#query-order-user_data-hmac-sha256
|
|
2035
2035
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2036
|
-
* @param {object} [params] extra parameters specific to the
|
|
2036
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2037
2037
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2038
2038
|
*/
|
|
2039
2039
|
if (symbol === undefined) {
|
|
@@ -2130,7 +2130,7 @@ class bitrue extends bitrue$1 {
|
|
|
2130
2130
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2131
2131
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2132
2132
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2133
|
-
* @param {object} [params] extra parameters specific to the
|
|
2133
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2134
2134
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2135
2135
|
*/
|
|
2136
2136
|
if (symbol === undefined) {
|
|
@@ -2190,7 +2190,7 @@ class bitrue extends bitrue$1 {
|
|
|
2190
2190
|
* @param {string} symbol unified market symbol
|
|
2191
2191
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2192
2192
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
2193
|
-
* @param {object} [params] extra parameters specific to the
|
|
2193
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2194
2194
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2195
2195
|
*/
|
|
2196
2196
|
if (symbol === undefined) {
|
|
@@ -2277,7 +2277,7 @@ class bitrue extends bitrue$1 {
|
|
|
2277
2277
|
* @see https://www.bitrue.com/api_docs_includes_file/delivery.html#cancel-order-trade-hmac-sha256
|
|
2278
2278
|
* @param {string} id order id
|
|
2279
2279
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2280
|
-
* @param {object} [params] extra parameters specific to the
|
|
2280
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2281
2281
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2282
2282
|
*/
|
|
2283
2283
|
if (symbol === undefined) {
|
|
@@ -2349,7 +2349,7 @@ class bitrue extends bitrue$1 {
|
|
|
2349
2349
|
* @see https://www.bitrue.com/api-docs#cancel-all-open-orders-trade-hmac-sha256
|
|
2350
2350
|
* @see https://www.bitrue.com/api_docs_includes_file/delivery.html#cancel-all-open-orders-trade-hmac-sha256
|
|
2351
2351
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
2352
|
-
* @param {object} [params] extra parameters specific to the
|
|
2352
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2353
2353
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
|
|
2354
2354
|
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2355
2355
|
*/
|
|
@@ -2394,7 +2394,7 @@ class bitrue extends bitrue$1 {
|
|
|
2394
2394
|
* @param {string} symbol unified market symbol
|
|
2395
2395
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2396
2396
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2397
|
-
* @param {object} [params] extra parameters specific to the
|
|
2397
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2398
2398
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
2399
2399
|
*/
|
|
2400
2400
|
await this.loadMarkets();
|
|
@@ -2488,7 +2488,7 @@ class bitrue extends bitrue$1 {
|
|
|
2488
2488
|
* @param {string} code unified currency code
|
|
2489
2489
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2490
2490
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2491
|
-
* @param {object} [params] extra parameters specific to the
|
|
2491
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2492
2492
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2493
2493
|
*/
|
|
2494
2494
|
if (code === undefined) {
|
|
@@ -2560,7 +2560,7 @@ class bitrue extends bitrue$1 {
|
|
|
2560
2560
|
* @param {string} code unified currency code
|
|
2561
2561
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2562
2562
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2563
|
-
* @param {object} [params] extra parameters specific to the
|
|
2563
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2564
2564
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2565
2565
|
*/
|
|
2566
2566
|
if (code === undefined) {
|
|
@@ -2752,7 +2752,7 @@ class bitrue extends bitrue$1 {
|
|
|
2752
2752
|
* @param {float} amount the amount to withdraw
|
|
2753
2753
|
* @param {string} address the address to withdraw to
|
|
2754
2754
|
* @param {string} tag
|
|
2755
|
-
* @param {object} [params] extra parameters specific to the
|
|
2755
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2756
2756
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2757
2757
|
*/
|
|
2758
2758
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -2851,7 +2851,7 @@ class bitrue extends bitrue$1 {
|
|
|
2851
2851
|
* @description fetch deposit and withdraw fees
|
|
2852
2852
|
* @see https://github.com/Bitrue-exchange/Spot-official-api-docs#exchangeInfo_endpoint
|
|
2853
2853
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2854
|
-
* @param {object} [params] extra parameters specific to the
|
|
2854
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2855
2855
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2856
2856
|
*/
|
|
2857
2857
|
await this.loadMarkets();
|
|
@@ -2906,7 +2906,7 @@ class bitrue extends bitrue$1 {
|
|
|
2906
2906
|
* @param {string} code unified currency code of the currency transferred
|
|
2907
2907
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
2908
2908
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
2909
|
-
* @param {object} [params] extra parameters specific to the
|
|
2909
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2910
2910
|
* @param {int} [params.until] the latest time in ms to fetch transfers for
|
|
2911
2911
|
* @param {string} [params.type] transfer type wallet_to_contract or contract_to_wallet
|
|
2912
2912
|
* @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
@@ -2963,7 +2963,7 @@ class bitrue extends bitrue$1 {
|
|
|
2963
2963
|
* @param {float} amount amount to transfer
|
|
2964
2964
|
* @param {string} fromAccount account to transfer from
|
|
2965
2965
|
* @param {string} toAccount account to transfer to
|
|
2966
|
-
* @param {object} [params] extra parameters specific to the
|
|
2966
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2967
2967
|
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
2968
2968
|
*/
|
|
2969
2969
|
await this.loadMarkets();
|
|
@@ -2996,7 +2996,7 @@ class bitrue extends bitrue$1 {
|
|
|
2996
2996
|
* @see https://www.bitrue.com/api_docs_includes_file/delivery.html#change-initial-leverage-trade-hmac-sha256
|
|
2997
2997
|
* @param {float} leverage the rate of leverage
|
|
2998
2998
|
* @param {string} symbol unified market symbol
|
|
2999
|
-
* @param {object} [params] extra parameters specific to the
|
|
2999
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3000
3000
|
* @returns {object} response from the exchange
|
|
3001
3001
|
*/
|
|
3002
3002
|
if (symbol === undefined) {
|
|
@@ -3042,7 +3042,7 @@ class bitrue extends bitrue$1 {
|
|
|
3042
3042
|
* @see https://www.bitrue.com/api_docs_includes_file/delivery.html#modify-isolated-position-margin-trade-hmac-sha256
|
|
3043
3043
|
* @param {string} symbol unified market symbol of the market to set margin in
|
|
3044
3044
|
* @param {float} amount the amount to set the margin to
|
|
3045
|
-
* @param {object} [params] parameters specific to the
|
|
3045
|
+
* @param {object} [params] parameters specific to the exchange API endpoint
|
|
3046
3046
|
* @returns {object} A [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
|
|
3047
3047
|
*/
|
|
3048
3048
|
await this.loadMarkets();
|
package/dist/cjs/src/bitso.js
CHANGED
|
@@ -187,7 +187,7 @@ class bitso extends bitso$1 {
|
|
|
187
187
|
* @param {string} code unified currency code, default is undefined
|
|
188
188
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
189
189
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
190
|
-
* @param {object} [params] extra parameters specific to the
|
|
190
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
191
191
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
192
192
|
*/
|
|
193
193
|
const request = {};
|
|
@@ -341,7 +341,7 @@ class bitso extends bitso$1 {
|
|
|
341
341
|
* @method
|
|
342
342
|
* @name bitso#fetchMarkets
|
|
343
343
|
* @description retrieves data on all markets for bitso
|
|
344
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
344
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
345
345
|
* @returns {object[]} an array of objects representing market data
|
|
346
346
|
*/
|
|
347
347
|
const response = await this.publicGetAvailableBooks(params);
|
|
@@ -500,7 +500,7 @@ class bitso extends bitso$1 {
|
|
|
500
500
|
* @method
|
|
501
501
|
* @name bitso#fetchBalance
|
|
502
502
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
503
|
-
* @param {object} [params] extra parameters specific to the
|
|
503
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
504
504
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
505
505
|
*/
|
|
506
506
|
await this.loadMarkets();
|
|
@@ -539,7 +539,7 @@ class bitso extends bitso$1 {
|
|
|
539
539
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
540
540
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
541
541
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
542
|
-
* @param {object} [params] extra parameters specific to the
|
|
542
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
543
543
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
544
544
|
*/
|
|
545
545
|
await this.loadMarkets();
|
|
@@ -602,7 +602,7 @@ class bitso extends bitso$1 {
|
|
|
602
602
|
* @name bitso#fetchTicker
|
|
603
603
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
604
604
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
605
|
-
* @param {object} [params] extra parameters specific to the
|
|
605
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
606
606
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
607
607
|
*/
|
|
608
608
|
await this.loadMarkets();
|
|
@@ -640,7 +640,7 @@ class bitso extends bitso$1 {
|
|
|
640
640
|
* @param {string} timeframe the length of time each candle represents
|
|
641
641
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
642
642
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
643
|
-
* @param {object} [params] extra parameters specific to the
|
|
643
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
644
644
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
645
645
|
*/
|
|
646
646
|
await this.loadMarkets();
|
|
@@ -824,7 +824,7 @@ class bitso extends bitso$1 {
|
|
|
824
824
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
825
825
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
826
826
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
827
|
-
* @param {object} [params] extra parameters specific to the
|
|
827
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
828
828
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
829
829
|
*/
|
|
830
830
|
await this.loadMarkets();
|
|
@@ -840,7 +840,7 @@ class bitso extends bitso$1 {
|
|
|
840
840
|
* @method
|
|
841
841
|
* @name bitso#fetchTradingFees
|
|
842
842
|
* @description fetch the trading fees for multiple markets
|
|
843
|
-
* @param {object} [params] extra parameters specific to the
|
|
843
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
844
844
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
845
845
|
*/
|
|
846
846
|
await this.loadMarkets();
|
|
@@ -914,7 +914,7 @@ class bitso extends bitso$1 {
|
|
|
914
914
|
* @param {string} symbol unified market symbol
|
|
915
915
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
916
916
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
917
|
-
* @param {object} [params] extra parameters specific to the
|
|
917
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
918
918
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
919
919
|
*/
|
|
920
920
|
await this.loadMarkets();
|
|
@@ -953,7 +953,7 @@ class bitso extends bitso$1 {
|
|
|
953
953
|
* @param {string} side 'buy' or 'sell'
|
|
954
954
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
955
955
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
956
|
-
* @param {object} [params] extra parameters specific to the
|
|
956
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
957
957
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
958
958
|
*/
|
|
959
959
|
await this.loadMarkets();
|
|
@@ -981,7 +981,7 @@ class bitso extends bitso$1 {
|
|
|
981
981
|
* @description cancels an open order
|
|
982
982
|
* @param {string} id order id
|
|
983
983
|
* @param {string} symbol not used by bitso cancelOrder ()
|
|
984
|
-
* @param {object} [params] extra parameters specific to the
|
|
984
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
985
985
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
986
986
|
*/
|
|
987
987
|
await this.loadMarkets();
|
|
@@ -997,7 +997,7 @@ class bitso extends bitso$1 {
|
|
|
997
997
|
* @description cancel multiple orders
|
|
998
998
|
* @param {string[]} ids order ids
|
|
999
999
|
* @param {string} symbol unified market symbol
|
|
1000
|
-
* @param {object} [params] extra parameters specific to the
|
|
1000
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1001
1001
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1002
1002
|
*/
|
|
1003
1003
|
if (!Array.isArray(ids)) {
|
|
@@ -1032,7 +1032,7 @@ class bitso extends bitso$1 {
|
|
|
1032
1032
|
* @name bitso#cancelAllOrders
|
|
1033
1033
|
* @description cancel all open orders
|
|
1034
1034
|
* @param {undefined} symbol bitso does not support canceling orders for only a specific market
|
|
1035
|
-
* @param {object} [params] extra parameters specific to the
|
|
1035
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1036
1036
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1037
1037
|
*/
|
|
1038
1038
|
if (symbol !== undefined) {
|
|
@@ -1118,7 +1118,7 @@ class bitso extends bitso$1 {
|
|
|
1118
1118
|
* @param {string} symbol unified market symbol
|
|
1119
1119
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1120
1120
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1121
|
-
* @param {object} [params] extra parameters specific to the
|
|
1121
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1122
1122
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1123
1123
|
*/
|
|
1124
1124
|
await this.loadMarkets();
|
|
@@ -1154,7 +1154,7 @@ class bitso extends bitso$1 {
|
|
|
1154
1154
|
* @name bitso#fetchOrder
|
|
1155
1155
|
* @description fetches information on an order made by the user
|
|
1156
1156
|
* @param {string} symbol not used by bitso fetchOrder
|
|
1157
|
-
* @param {object} [params] extra parameters specific to the
|
|
1157
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1158
1158
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1159
1159
|
*/
|
|
1160
1160
|
await this.loadMarkets();
|
|
@@ -1179,7 +1179,7 @@ class bitso extends bitso$1 {
|
|
|
1179
1179
|
* @param {string} symbol unified market symbol
|
|
1180
1180
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1181
1181
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1182
|
-
* @param {object} [params] extra parameters specific to the
|
|
1182
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1183
1183
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1184
1184
|
*/
|
|
1185
1185
|
await this.loadMarkets();
|
|
@@ -1197,7 +1197,7 @@ class bitso extends bitso$1 {
|
|
|
1197
1197
|
* @description fetch information on a deposit
|
|
1198
1198
|
* @param {string} id deposit id
|
|
1199
1199
|
* @param {string} code bitso does not support filtering by currency code and will ignore this argument
|
|
1200
|
-
* @param {object} [params] extra parameters specific to the
|
|
1200
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1201
1201
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1202
1202
|
*/
|
|
1203
1203
|
await this.loadMarkets();
|
|
@@ -1240,7 +1240,7 @@ class bitso extends bitso$1 {
|
|
|
1240
1240
|
* @param {string} code unified currency code
|
|
1241
1241
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1242
1242
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1243
|
-
* @param {object} [params] extra parameters specific to the
|
|
1243
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1244
1244
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1245
1245
|
*/
|
|
1246
1246
|
await this.loadMarkets();
|
|
@@ -1281,7 +1281,7 @@ class bitso extends bitso$1 {
|
|
|
1281
1281
|
* @name bitso#fetchDepositAddress
|
|
1282
1282
|
* @description fetch the deposit address for a currency associated with this account
|
|
1283
1283
|
* @param {string} code unified currency code
|
|
1284
|
-
* @param {object} [params] extra parameters specific to the
|
|
1284
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1285
1285
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1286
1286
|
*/
|
|
1287
1287
|
await this.loadMarkets();
|
|
@@ -1314,7 +1314,7 @@ class bitso extends bitso$1 {
|
|
|
1314
1314
|
* @description please use fetchDepositWithdrawFees instead
|
|
1315
1315
|
* @see https://bitso.com/api_info#fees
|
|
1316
1316
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1317
|
-
* @param {object} [params] extra parameters specific to the
|
|
1317
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1318
1318
|
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1319
1319
|
*/
|
|
1320
1320
|
await this.loadMarkets();
|
|
@@ -1407,7 +1407,7 @@ class bitso extends bitso$1 {
|
|
|
1407
1407
|
* @description fetch deposit and withdraw fees
|
|
1408
1408
|
* @see https://bitso.com/api_info#fees
|
|
1409
1409
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1410
|
-
* @param {object} [params] extra parameters specific to the
|
|
1410
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1411
1411
|
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1412
1412
|
*/
|
|
1413
1413
|
await this.loadMarkets();
|
|
@@ -1546,7 +1546,7 @@ class bitso extends bitso$1 {
|
|
|
1546
1546
|
* @param {float} amount the amount to withdraw
|
|
1547
1547
|
* @param {string} address the address to withdraw to
|
|
1548
1548
|
* @param {string} tag
|
|
1549
|
-
* @param {object} [params] extra parameters specific to the
|
|
1549
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1550
1550
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1551
1551
|
*/
|
|
1552
1552
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|