ccxt 4.0.74 → 4.0.75
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 +2047 -1932
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +9 -9
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +22 -22
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +17 -17
- package/dist/cjs/src/binance.js +51 -51
- package/dist/cjs/src/bingx.js +21 -21
- package/dist/cjs/src/bit2c.js +10 -10
- package/dist/cjs/src/bitbank.js +11 -11
- package/dist/cjs/src/bitbns.js +12 -12
- package/dist/cjs/src/bitfinex.js +19 -19
- package/dist/cjs/src/bitfinex2.js +25 -25
- package/dist/cjs/src/bitflyer.js +15 -15
- package/dist/cjs/src/bitforex.js +9 -9
- package/dist/cjs/src/bitget.js +34 -34
- package/dist/cjs/src/bithumb.js +9 -9
- package/dist/cjs/src/bitmart.js +42 -29
- package/dist/cjs/src/bitmex.js +19 -19
- package/dist/cjs/src/bitopro.js +18 -18
- package/dist/cjs/src/bitpanda.js +19 -19
- package/dist/cjs/src/bitrue.js +15 -15
- package/dist/cjs/src/bitso.js +19 -19
- package/dist/cjs/src/bitstamp.js +19 -19
- package/dist/cjs/src/bitstamp1.js +6 -6
- package/dist/cjs/src/bittrex.js +24 -24
- package/dist/cjs/src/bitvavo.js +16 -16
- package/dist/cjs/src/bkex.js +17 -17
- package/dist/cjs/src/bl3p.js +6 -6
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +13 -13
- package/dist/cjs/src/btcbox.js +8 -8
- package/dist/cjs/src/btcmarkets.js +15 -15
- package/dist/cjs/src/btctradeua.js +6 -6
- package/dist/cjs/src/btcturk.js +9 -9
- package/dist/cjs/src/bybit.js +148 -116
- package/dist/cjs/src/cex.js +12 -12
- package/dist/cjs/src/coinbase.js +20 -20
- package/dist/cjs/src/coinbasepro.js +22 -22
- package/dist/cjs/src/coincheck.js +10 -10
- package/dist/cjs/src/coinex.js +81 -35
- package/dist/cjs/src/coinfalcon.js +14 -14
- package/dist/cjs/src/coinmate.js +12 -12
- package/dist/cjs/src/coinone.js +10 -10
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +6 -6
- package/dist/cjs/src/cryptocom.js +24 -24
- package/dist/cjs/src/currencycom.js +18 -18
- package/dist/cjs/src/delta.js +23 -23
- package/dist/cjs/src/deribit.js +27 -27
- package/dist/cjs/src/digifinex.js +27 -27
- package/dist/cjs/src/exmo.js +24 -24
- package/dist/cjs/src/gate.js +34 -34
- package/dist/cjs/src/gemini.js +14 -14
- package/dist/cjs/src/hitbtc.js +30 -30
- package/dist/cjs/src/hollaex.js +20 -20
- package/dist/cjs/src/huobi.js +40 -40
- package/dist/cjs/src/huobijp.js +18 -18
- package/dist/cjs/src/idex.js +17 -17
- package/dist/cjs/src/independentreserve.js +10 -10
- package/dist/cjs/src/indodax.js +12 -12
- package/dist/cjs/src/kraken.js +25 -25
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +29 -29
- package/dist/cjs/src/kucoinfutures.js +19 -19
- package/dist/cjs/src/kuna.js +10 -10
- package/dist/cjs/src/latoken.js +15 -15
- package/dist/cjs/src/lbank.js +10 -10
- package/dist/cjs/src/lbank2.js +21 -21
- package/dist/cjs/src/luno.js +14 -14
- package/dist/cjs/src/lykke.js +14 -14
- package/dist/cjs/src/mercado.js +10 -10
- package/dist/cjs/src/mexc.js +38 -38
- package/dist/cjs/src/ndax.js +18 -18
- package/dist/cjs/src/novadax.js +18 -18
- package/dist/cjs/src/oceanex.js +14 -14
- package/dist/cjs/src/okcoin.js +19 -19
- package/dist/cjs/src/okx.js +48 -48
- package/dist/cjs/src/paymium.js +9 -9
- package/dist/cjs/src/phemex.js +24 -24
- package/dist/cjs/src/poloniex.js +77 -60
- package/dist/cjs/src/poloniexfutures.js +16 -16
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +10 -10
- package/dist/cjs/src/pro/bitfinex.js +3 -3
- package/dist/cjs/src/pro/bitfinex2.js +4 -4
- package/dist/cjs/src/pro/bitget.js +4 -4
- package/dist/cjs/src/pro/bitmart.js +3 -3
- package/dist/cjs/src/pro/bitmex.js +4 -4
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +2 -2
- package/dist/cjs/src/pro/bittrex.js +4 -4
- package/dist/cjs/src/pro/bitvavo.js +4 -4
- package/dist/cjs/src/pro/bybit.js +5 -5
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbasepro.js +5 -5
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +7 -7
- package/dist/cjs/src/pro/currencycom.js +2 -2
- package/dist/cjs/src/pro/deribit.js +3 -3
- package/dist/cjs/src/pro/exmo.js +2 -2
- package/dist/cjs/src/pro/gate.js +5 -5
- package/dist/cjs/src/pro/gemini.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +2 -2
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/huobi.js +4 -4
- package/dist/cjs/src/pro/huobijp.js +2 -2
- package/dist/cjs/src/pro/idex.js +3 -3
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +6 -6
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +4 -4
- package/dist/cjs/src/pro/kucoinfutures.js +3 -3
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/ndax.js +2 -2
- package/dist/cjs/src/pro/okcoin.js +3 -3
- package/dist/cjs/src/pro/okx.js +12 -11
- package/dist/cjs/src/pro/phemex.js +4 -4
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/upbit.js +2 -2
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +4 -4
- package/dist/cjs/src/probit.js +17 -17
- package/dist/cjs/src/tidex.js +11 -11
- package/dist/cjs/src/timex.js +14 -14
- package/dist/cjs/src/tokocrypto.js +16 -16
- package/dist/cjs/src/upbit.js +18 -18
- package/dist/cjs/src/wavesexchange.js +13 -13
- package/dist/cjs/src/wazirx.js +10 -10
- package/dist/cjs/src/whitebit.js +21 -21
- package/dist/cjs/src/woo.js +28 -22
- package/dist/cjs/src/yobit.js +14 -14
- package/dist/cjs/src/zaif.js +8 -8
- package/dist/cjs/src/zonda.js +13 -13
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +9 -9
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +22 -22
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +17 -17
- package/js/src/binance.js +51 -51
- package/js/src/bingx.js +21 -21
- package/js/src/bit2c.js +10 -10
- package/js/src/bitbank.js +11 -11
- package/js/src/bitbns.js +12 -12
- package/js/src/bitfinex.js +19 -19
- package/js/src/bitfinex2.js +25 -25
- package/js/src/bitflyer.js +15 -15
- package/js/src/bitforex.js +9 -9
- package/js/src/bitget.js +34 -34
- package/js/src/bithumb.js +9 -9
- package/js/src/bitmart.js +42 -29
- package/js/src/bitmex.js +19 -19
- package/js/src/bitopro.js +18 -18
- package/js/src/bitpanda.js +19 -19
- package/js/src/bitrue.js +15 -15
- package/js/src/bitso.js +19 -19
- package/js/src/bitstamp.js +19 -19
- package/js/src/bitstamp1.js +6 -6
- package/js/src/bittrex.js +24 -24
- package/js/src/bitvavo.js +16 -16
- package/js/src/bkex.js +17 -17
- package/js/src/bl3p.js +6 -6
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +13 -13
- package/js/src/btcbox.js +8 -8
- package/js/src/btcmarkets.js +15 -15
- package/js/src/btctradeua.js +6 -6
- package/js/src/btcturk.js +9 -9
- package/js/src/bybit.js +148 -116
- package/js/src/cex.js +12 -12
- package/js/src/coinbase.js +20 -20
- package/js/src/coinbasepro.js +22 -22
- package/js/src/coincheck.js +10 -10
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +81 -35
- package/js/src/coinfalcon.js +14 -14
- package/js/src/coinmate.js +12 -12
- package/js/src/coinone.js +10 -10
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.js +6 -6
- package/js/src/cryptocom.js +24 -24
- package/js/src/currencycom.js +18 -18
- package/js/src/delta.js +23 -23
- package/js/src/deribit.js +27 -27
- package/js/src/digifinex.js +27 -27
- package/js/src/exmo.js +24 -24
- package/js/src/gate.js +34 -34
- package/js/src/gemini.js +14 -14
- package/js/src/hitbtc.js +30 -30
- package/js/src/hollaex.js +20 -20
- package/js/src/huobi.js +40 -40
- package/js/src/huobijp.js +18 -18
- package/js/src/idex.js +17 -17
- package/js/src/independentreserve.js +10 -10
- package/js/src/indodax.js +12 -12
- package/js/src/kraken.js +25 -25
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +29 -29
- package/js/src/kucoinfutures.js +19 -19
- package/js/src/kuna.js +10 -10
- package/js/src/latoken.js +15 -15
- package/js/src/lbank.js +10 -10
- package/js/src/lbank2.js +21 -21
- package/js/src/luno.js +14 -14
- package/js/src/lykke.js +14 -14
- package/js/src/mercado.js +10 -10
- package/js/src/mexc.js +38 -38
- package/js/src/ndax.js +18 -18
- package/js/src/novadax.js +18 -18
- package/js/src/oceanex.js +14 -14
- package/js/src/okcoin.js +19 -19
- package/js/src/okx.js +48 -48
- package/js/src/paymium.js +9 -9
- package/js/src/phemex.js +24 -24
- package/js/src/poloniex.js +77 -60
- package/js/src/poloniexfutures.js +16 -16
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +10 -10
- package/js/src/pro/bitfinex.js +3 -3
- package/js/src/pro/bitfinex2.js +4 -4
- package/js/src/pro/bitget.js +4 -4
- package/js/src/pro/bitmart.js +3 -3
- package/js/src/pro/bitmex.js +4 -4
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +2 -2
- package/js/src/pro/bittrex.js +4 -4
- package/js/src/pro/bitvavo.js +4 -4
- package/js/src/pro/bybit.js +5 -5
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbasepro.js +5 -5
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/cryptocom.js +7 -7
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +2 -2
- package/js/src/pro/gate.js +5 -5
- package/js/src/pro/gemini.js +2 -2
- package/js/src/pro/hitbtc.js +2 -2
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/huobi.js +4 -4
- package/js/src/pro/huobijp.js +2 -2
- package/js/src/pro/idex.js +3 -3
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/kucoin.js +4 -4
- package/js/src/pro/kucoinfutures.js +3 -3
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/ndax.js +2 -2
- package/js/src/pro/okcoin.js +3 -3
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +12 -11
- package/js/src/pro/phemex.js +4 -4
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/upbit.js +2 -2
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +4 -4
- package/js/src/probit.js +17 -17
- package/js/src/tidex.js +11 -11
- package/js/src/timex.js +14 -14
- package/js/src/tokocrypto.js +16 -16
- package/js/src/upbit.js +18 -18
- package/js/src/wavesexchange.js +13 -13
- package/js/src/wazirx.js +10 -10
- package/js/src/whitebit.js +21 -21
- package/js/src/woo.js +28 -22
- package/js/src/yobit.js +14 -14
- package/js/src/zaif.js +8 -8
- package/js/src/zonda.js +13 -13
- package/package.json +1 -1
package/dist/cjs/src/bitpanda.js
CHANGED
|
@@ -441,7 +441,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
441
441
|
* @name bitpanda#fetchTradingFees
|
|
442
442
|
* @description fetch the trading fees for multiple markets
|
|
443
443
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
444
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
444
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
445
445
|
*/
|
|
446
446
|
let method = this.safeString(params, 'method');
|
|
447
447
|
params = this.omit(params, 'method');
|
|
@@ -615,7 +615,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
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
617
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
618
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
618
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
619
619
|
*/
|
|
620
620
|
await this.loadMarkets();
|
|
621
621
|
const market = this.market(symbol);
|
|
@@ -650,7 +650,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
650
650
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours 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
652
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
653
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
653
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
654
654
|
*/
|
|
655
655
|
await this.loadMarkets();
|
|
656
656
|
symbols = this.marketSymbols(symbols);
|
|
@@ -691,7 +691,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
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
693
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
694
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
694
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
695
695
|
*/
|
|
696
696
|
await this.loadMarkets();
|
|
697
697
|
const market = this.market(symbol);
|
|
@@ -1042,7 +1042,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1042
1042
|
* @description create a currency deposit address
|
|
1043
1043
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1044
1044
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1045
|
-
* @returns {object} an [address structure]{@link https://
|
|
1045
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1046
1046
|
*/
|
|
1047
1047
|
await this.loadMarkets();
|
|
1048
1048
|
const currency = this.currency(code);
|
|
@@ -1067,7 +1067,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1067
1067
|
* @description fetch the deposit address for a currency associated with this account
|
|
1068
1068
|
* @param {string} code unified currency code
|
|
1069
1069
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1070
|
-
* @returns {object} an [address structure]{@link https://
|
|
1070
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1071
1071
|
*/
|
|
1072
1072
|
await this.loadMarkets();
|
|
1073
1073
|
const currency = this.currency(code);
|
|
@@ -1095,7 +1095,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
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
1097
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1098
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1098
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1099
1099
|
*/
|
|
1100
1100
|
await this.loadMarkets();
|
|
1101
1101
|
const request = {
|
|
@@ -1159,7 +1159,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
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
1161
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1162
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1162
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1163
1163
|
*/
|
|
1164
1164
|
await this.loadMarkets();
|
|
1165
1165
|
const request = {
|
|
@@ -1225,7 +1225,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1225
1225
|
* @param {string} address the address to withdraw to
|
|
1226
1226
|
* @param {string} tag
|
|
1227
1227
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1228
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1228
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1229
1229
|
*/
|
|
1230
1230
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1231
1231
|
this.checkAddress(address);
|
|
@@ -1494,10 +1494,10 @@ class bitpanda extends bitpanda$1 {
|
|
|
1494
1494
|
* @param {string} type 'market' or 'limit'
|
|
1495
1495
|
* @param {string} side 'buy' or 'sell'
|
|
1496
1496
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1497
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1497
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1498
1498
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1499
1499
|
* @param {float} [params.triggerPrice] bitpanda only does stop limit orders and does not do stop market
|
|
1500
|
-
* @returns {object} an [order structure]{@link https://
|
|
1500
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1501
1501
|
*/
|
|
1502
1502
|
await this.loadMarkets();
|
|
1503
1503
|
const market = this.market(symbol);
|
|
@@ -1564,7 +1564,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1564
1564
|
* @param {string} id order id
|
|
1565
1565
|
* @param {string} symbol not used by bitmex cancelOrder ()
|
|
1566
1566
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1567
|
-
* @returns {object} An [order structure]{@link https://
|
|
1567
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1568
1568
|
*/
|
|
1569
1569
|
await this.loadMarkets();
|
|
1570
1570
|
const clientOrderId = this.safeString2(params, 'clientOrderId', 'client_id');
|
|
@@ -1591,7 +1591,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1591
1591
|
* @description cancel all open orders
|
|
1592
1592
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1593
1593
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1594
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1594
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1595
1595
|
*/
|
|
1596
1596
|
await this.loadMarkets();
|
|
1597
1597
|
const request = {};
|
|
@@ -1615,7 +1615,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1615
1615
|
* @param {string[]} ids order ids
|
|
1616
1616
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1617
1617
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1618
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
1618
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1619
1619
|
*/
|
|
1620
1620
|
await this.loadMarkets();
|
|
1621
1621
|
const request = {
|
|
@@ -1636,7 +1636,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1636
1636
|
* @description fetches information on an order made by the user
|
|
1637
1637
|
* @param {string} symbol not used by bitpanda fetchOrder
|
|
1638
1638
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1639
|
-
* @returns {object} An [order structure]{@link https://
|
|
1639
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1640
1640
|
*/
|
|
1641
1641
|
await this.loadMarkets();
|
|
1642
1642
|
const request = {
|
|
@@ -1695,7 +1695,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1695
1695
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1696
1696
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1697
1697
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1698
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1698
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1699
1699
|
*/
|
|
1700
1700
|
await this.loadMarkets();
|
|
1701
1701
|
const request = {
|
|
@@ -1815,7 +1815,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1815
1815
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1816
1816
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1817
1817
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1818
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1818
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1819
1819
|
*/
|
|
1820
1820
|
const request = {
|
|
1821
1821
|
'with_cancelled_and_rejected': true, // default is false, orders which have been cancelled by the user before being filled or rejected by the system as invalid, additionally, all inactive filled orders which would return with "with_just_filled_inactive"
|
|
@@ -1832,7 +1832,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1832
1832
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1833
1833
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1834
1834
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1835
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1835
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1836
1836
|
*/
|
|
1837
1837
|
await this.loadMarkets();
|
|
1838
1838
|
const request = {
|
|
@@ -1890,7 +1890,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1890
1890
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1891
1891
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1892
1892
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1893
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1893
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1894
1894
|
*/
|
|
1895
1895
|
await this.loadMarkets();
|
|
1896
1896
|
const request = {
|
package/dist/cjs/src/bitrue.js
CHANGED
|
@@ -347,7 +347,7 @@ class bitrue extends bitrue$1 {
|
|
|
347
347
|
* @name bitrue#fetchStatus
|
|
348
348
|
* @description the latest known information on the availability of the exchange API
|
|
349
349
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
350
|
-
* @returns {object} a [status structure]{@link https://
|
|
350
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
351
351
|
*/
|
|
352
352
|
const response = await this.v1PublicGetPing(params);
|
|
353
353
|
//
|
|
@@ -764,7 +764,7 @@ class bitrue extends bitrue$1 {
|
|
|
764
764
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
765
765
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
766
766
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
767
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
767
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
768
768
|
*/
|
|
769
769
|
await this.loadMarkets();
|
|
770
770
|
const market = this.market(symbol);
|
|
@@ -843,7 +843,7 @@ class bitrue extends bitrue$1 {
|
|
|
843
843
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
844
844
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
845
845
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
846
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
846
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
847
847
|
*/
|
|
848
848
|
await this.loadMarkets();
|
|
849
849
|
const market = this.market(symbol);
|
|
@@ -952,7 +952,7 @@ class bitrue extends bitrue$1 {
|
|
|
952
952
|
* @description fetches the bid and ask price and volume for multiple markets
|
|
953
953
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
954
954
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
955
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
955
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
956
956
|
*/
|
|
957
957
|
await this.loadMarkets();
|
|
958
958
|
const defaultType = this.safeString2(this.options, 'fetchBidsAsks', 'defaultType', 'spot');
|
|
@@ -978,7 +978,7 @@ class bitrue extends bitrue$1 {
|
|
|
978
978
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
979
979
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
980
980
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
981
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
981
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
982
982
|
*/
|
|
983
983
|
await this.loadMarkets();
|
|
984
984
|
const request = {
|
|
@@ -1288,9 +1288,9 @@ class bitrue extends bitrue$1 {
|
|
|
1288
1288
|
* @param {string} type 'market' or 'limit'
|
|
1289
1289
|
* @param {string} side 'buy' or 'sell'
|
|
1290
1290
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1291
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1291
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1292
1292
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1293
|
-
* @returns {object} an [order structure]{@link https://
|
|
1293
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1294
1294
|
*/
|
|
1295
1295
|
await this.loadMarkets();
|
|
1296
1296
|
const market = this.market(symbol);
|
|
@@ -1344,7 +1344,7 @@ class bitrue extends bitrue$1 {
|
|
|
1344
1344
|
* @description fetches information on an order made by the user
|
|
1345
1345
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1346
1346
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1347
|
-
* @returns {object} An [order structure]{@link https://
|
|
1347
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1348
1348
|
*/
|
|
1349
1349
|
if (symbol === undefined) {
|
|
1350
1350
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -1374,7 +1374,7 @@ class bitrue extends bitrue$1 {
|
|
|
1374
1374
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1375
1375
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1376
1376
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1377
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1377
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1378
1378
|
*/
|
|
1379
1379
|
if (symbol === undefined) {
|
|
1380
1380
|
throw new errors.ArgumentsRequired(this.id + ' fetchClosedOrders() requires a symbol argument');
|
|
@@ -1428,7 +1428,7 @@ class bitrue extends bitrue$1 {
|
|
|
1428
1428
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1429
1429
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1430
1430
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1431
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1431
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1432
1432
|
*/
|
|
1433
1433
|
if (symbol === undefined) {
|
|
1434
1434
|
throw new errors.ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -1471,7 +1471,7 @@ class bitrue extends bitrue$1 {
|
|
|
1471
1471
|
* @param {string} id order id
|
|
1472
1472
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1473
1473
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1474
|
-
* @returns {object} An [order structure]{@link https://
|
|
1474
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1475
1475
|
*/
|
|
1476
1476
|
if (symbol === undefined) {
|
|
1477
1477
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -1512,7 +1512,7 @@ class bitrue extends bitrue$1 {
|
|
|
1512
1512
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1513
1513
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1514
1514
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1515
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1515
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1516
1516
|
*/
|
|
1517
1517
|
const method = this.safeString(this.options, 'fetchMyTradesMethod', 'v2PrivateGetMyTrades');
|
|
1518
1518
|
if ((symbol === undefined) && (method === 'v2PrivateGetMyTrades')) {
|
|
@@ -1567,7 +1567,7 @@ class bitrue extends bitrue$1 {
|
|
|
1567
1567
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1568
1568
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1569
1569
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1570
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1570
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1571
1571
|
*/
|
|
1572
1572
|
if (code === undefined) {
|
|
1573
1573
|
throw new errors.ArgumentsRequired(this.id + ' fetchDeposits() requires a code argument');
|
|
@@ -1638,7 +1638,7 @@ class bitrue extends bitrue$1 {
|
|
|
1638
1638
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1639
1639
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1640
1640
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1641
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1641
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1642
1642
|
*/
|
|
1643
1643
|
if (code === undefined) {
|
|
1644
1644
|
throw new errors.ArgumentsRequired(this.id + ' fetchWithdrawals() requires a code argument');
|
|
@@ -1828,7 +1828,7 @@ class bitrue extends bitrue$1 {
|
|
|
1828
1828
|
* @param {string} address the address to withdraw to
|
|
1829
1829
|
* @param {string} tag
|
|
1830
1830
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1831
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1831
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1832
1832
|
*/
|
|
1833
1833
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1834
1834
|
this.checkAddress(address);
|
package/dist/cjs/src/bitso.js
CHANGED
|
@@ -187,7 +187,7 @@ class bitso extends bitso$1 {
|
|
|
187
187
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
188
188
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
189
189
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
190
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
190
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
191
191
|
*/
|
|
192
192
|
const request = {};
|
|
193
193
|
if (limit !== undefined) {
|
|
@@ -538,7 +538,7 @@ class bitso extends bitso$1 {
|
|
|
538
538
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
539
539
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
540
540
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
541
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
541
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
542
542
|
*/
|
|
543
543
|
await this.loadMarkets();
|
|
544
544
|
const market = this.market(symbol);
|
|
@@ -601,7 +601,7 @@ class bitso extends bitso$1 {
|
|
|
601
601
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
602
602
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
603
603
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
604
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
604
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
605
605
|
*/
|
|
606
606
|
await this.loadMarkets();
|
|
607
607
|
const market = this.market(symbol);
|
|
@@ -829,7 +829,7 @@ class bitso extends bitso$1 {
|
|
|
829
829
|
* @name bitso#fetchTradingFees
|
|
830
830
|
* @description fetch the trading fees for multiple markets
|
|
831
831
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
832
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
832
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
833
833
|
*/
|
|
834
834
|
await this.loadMarkets();
|
|
835
835
|
const response = await this.privateGetFees(params);
|
|
@@ -903,7 +903,7 @@ class bitso extends bitso$1 {
|
|
|
903
903
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
904
904
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
905
905
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
906
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
906
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
907
907
|
*/
|
|
908
908
|
await this.loadMarkets();
|
|
909
909
|
const market = this.market(symbol);
|
|
@@ -940,9 +940,9 @@ class bitso extends bitso$1 {
|
|
|
940
940
|
* @param {string} type 'market' or 'limit'
|
|
941
941
|
* @param {string} side 'buy' or 'sell'
|
|
942
942
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
943
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
943
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
944
944
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
945
|
-
* @returns {object} an [order structure]{@link https://
|
|
945
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
946
946
|
*/
|
|
947
947
|
await this.loadMarkets();
|
|
948
948
|
const market = this.market(symbol);
|
|
@@ -970,7 +970,7 @@ class bitso extends bitso$1 {
|
|
|
970
970
|
* @param {string} id order id
|
|
971
971
|
* @param {string} symbol not used by bitso cancelOrder ()
|
|
972
972
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
973
|
-
* @returns {object} An [order structure]{@link https://
|
|
973
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
974
974
|
*/
|
|
975
975
|
await this.loadMarkets();
|
|
976
976
|
const request = {
|
|
@@ -986,7 +986,7 @@ class bitso extends bitso$1 {
|
|
|
986
986
|
* @param {string[]} ids order ids
|
|
987
987
|
* @param {string} symbol unified market symbol
|
|
988
988
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
989
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
989
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
990
990
|
*/
|
|
991
991
|
if (!Array.isArray(ids)) {
|
|
992
992
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrders() ids argument should be an array');
|
|
@@ -1021,7 +1021,7 @@ class bitso extends bitso$1 {
|
|
|
1021
1021
|
* @description cancel all open orders
|
|
1022
1022
|
* @param {undefined} symbol bitso does not support canceling orders for only a specific market
|
|
1023
1023
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1024
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1024
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1025
1025
|
*/
|
|
1026
1026
|
if (symbol !== undefined) {
|
|
1027
1027
|
throw new errors.NotSupported(this.id + ' cancelAllOrders() deletes all orders for user, it does not support filtering by symbol.');
|
|
@@ -1107,7 +1107,7 @@ class bitso extends bitso$1 {
|
|
|
1107
1107
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1108
1108
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1109
1109
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1110
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1110
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1111
1111
|
*/
|
|
1112
1112
|
await this.loadMarkets();
|
|
1113
1113
|
const market = this.market(symbol);
|
|
@@ -1143,7 +1143,7 @@ class bitso extends bitso$1 {
|
|
|
1143
1143
|
* @description fetches information on an order made by the user
|
|
1144
1144
|
* @param {string} symbol not used by bitso fetchOrder
|
|
1145
1145
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1146
|
-
* @returns {object} An [order structure]{@link https://
|
|
1146
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1147
1147
|
*/
|
|
1148
1148
|
await this.loadMarkets();
|
|
1149
1149
|
const response = await this.privateGetOrdersOid({
|
|
@@ -1168,7 +1168,7 @@ class bitso extends bitso$1 {
|
|
|
1168
1168
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1169
1169
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1170
1170
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1171
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1171
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1172
1172
|
*/
|
|
1173
1173
|
await this.loadMarkets();
|
|
1174
1174
|
const market = this.market(symbol);
|
|
@@ -1186,7 +1186,7 @@ class bitso extends bitso$1 {
|
|
|
1186
1186
|
* @param {string} id deposit id
|
|
1187
1187
|
* @param {string} code bitso does not support filtering by currency code and will ignore this argument
|
|
1188
1188
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1189
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1189
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1190
1190
|
*/
|
|
1191
1191
|
await this.loadMarkets();
|
|
1192
1192
|
const request = {
|
|
@@ -1229,7 +1229,7 @@ class bitso extends bitso$1 {
|
|
|
1229
1229
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1230
1230
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1231
1231
|
* @param {object} [params] extra parameters specific to the exmo api endpoint
|
|
1232
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1232
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1233
1233
|
*/
|
|
1234
1234
|
await this.loadMarkets();
|
|
1235
1235
|
let currency = undefined;
|
|
@@ -1270,7 +1270,7 @@ class bitso extends bitso$1 {
|
|
|
1270
1270
|
* @description fetch the deposit address for a currency associated with this account
|
|
1271
1271
|
* @param {string} code unified currency code
|
|
1272
1272
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1273
|
-
* @returns {object} an [address structure]{@link https://
|
|
1273
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1274
1274
|
*/
|
|
1275
1275
|
await this.loadMarkets();
|
|
1276
1276
|
const currency = this.currency(code);
|
|
@@ -1303,7 +1303,7 @@ class bitso extends bitso$1 {
|
|
|
1303
1303
|
* @see https://bitso.com/api_info#fees
|
|
1304
1304
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1305
1305
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1306
|
-
* @returns {object[]} a list of [fee structures]{@link https://
|
|
1306
|
+
* @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1307
1307
|
*/
|
|
1308
1308
|
await this.loadMarkets();
|
|
1309
1309
|
const response = await this.privateGetFees(params);
|
|
@@ -1396,7 +1396,7 @@ class bitso extends bitso$1 {
|
|
|
1396
1396
|
* @see https://bitso.com/api_info#fees
|
|
1397
1397
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1398
1398
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1399
|
-
* @returns {object[]} a list of [fee structures]{@link https://
|
|
1399
|
+
* @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1400
1400
|
*/
|
|
1401
1401
|
await this.loadMarkets();
|
|
1402
1402
|
const response = await this.privateGetFees(params);
|
|
@@ -1535,7 +1535,7 @@ class bitso extends bitso$1 {
|
|
|
1535
1535
|
* @param {string} address the address to withdraw to
|
|
1536
1536
|
* @param {string} tag
|
|
1537
1537
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1538
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1538
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1539
1539
|
*/
|
|
1540
1540
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1541
1541
|
this.checkAddress(address);
|
package/dist/cjs/src/bitstamp.js
CHANGED
|
@@ -621,7 +621,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
621
621
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
622
622
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
623
623
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
624
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
624
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
625
625
|
*/
|
|
626
626
|
await this.loadMarkets();
|
|
627
627
|
const market = this.market(symbol);
|
|
@@ -705,7 +705,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
705
705
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
706
706
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
707
707
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
708
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
708
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
709
709
|
*/
|
|
710
710
|
await this.loadMarkets();
|
|
711
711
|
const market = this.market(symbol);
|
|
@@ -738,7 +738,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
738
738
|
* @see https://www.bitstamp.net/api/#all-tickers
|
|
739
739
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
740
740
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
741
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
741
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
742
742
|
*/
|
|
743
743
|
await this.loadMarkets();
|
|
744
744
|
const response = await this.publicGetTicker(params);
|
|
@@ -1130,7 +1130,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1130
1130
|
* @description fetch the trading fees for a market
|
|
1131
1131
|
* @param {string} symbol unified market symbol
|
|
1132
1132
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1133
|
-
* @returns {object} a [fee structure]{@link https://
|
|
1133
|
+
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1134
1134
|
*/
|
|
1135
1135
|
await this.loadMarkets();
|
|
1136
1136
|
const market = this.market(symbol);
|
|
@@ -1169,7 +1169,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1169
1169
|
* @name bitstamp#fetchTradingFees
|
|
1170
1170
|
* @description fetch the trading fees for multiple markets
|
|
1171
1171
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1172
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
1172
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
1173
1173
|
*/
|
|
1174
1174
|
await this.loadMarkets();
|
|
1175
1175
|
const response = await this.privatePostBalance(params);
|
|
@@ -1184,7 +1184,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1184
1184
|
* @see https://www.bitstamp.net/api/#balance
|
|
1185
1185
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1186
1186
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1187
|
-
* @returns {object[]} a list of [fee structures]{@link https://
|
|
1187
|
+
* @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1188
1188
|
*/
|
|
1189
1189
|
await this.loadMarkets();
|
|
1190
1190
|
const balance = await this.privatePostBalance(params);
|
|
@@ -1246,7 +1246,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1246
1246
|
* @see https://www.bitstamp.net/api/#balance
|
|
1247
1247
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1248
1248
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1249
|
-
* @returns {object[]} a list of [fee structures]{@link https://
|
|
1249
|
+
* @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1250
1250
|
*/
|
|
1251
1251
|
await this.loadMarkets();
|
|
1252
1252
|
const response = await this.privatePostBalance(params);
|
|
@@ -1319,9 +1319,9 @@ class bitstamp extends bitstamp$1 {
|
|
|
1319
1319
|
* @param {string} type 'market' or 'limit'
|
|
1320
1320
|
* @param {string} side 'buy' or 'sell'
|
|
1321
1321
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1322
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1322
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1323
1323
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1324
|
-
* @returns {object} an [order structure]{@link https://
|
|
1324
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1325
1325
|
*/
|
|
1326
1326
|
await this.loadMarkets();
|
|
1327
1327
|
const market = this.market(symbol);
|
|
@@ -1359,7 +1359,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1359
1359
|
* @param {string} id order id
|
|
1360
1360
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1361
1361
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1362
|
-
* @returns {object} An [order structure]{@link https://
|
|
1362
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1363
1363
|
*/
|
|
1364
1364
|
await this.loadMarkets();
|
|
1365
1365
|
const request = {
|
|
@@ -1374,7 +1374,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1374
1374
|
* @description cancel all open orders
|
|
1375
1375
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1376
1376
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1377
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1377
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1378
1378
|
*/
|
|
1379
1379
|
await this.loadMarkets();
|
|
1380
1380
|
let market = undefined;
|
|
@@ -1417,7 +1417,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1417
1417
|
* @description fetches information on an order made by the user
|
|
1418
1418
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1419
1419
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1420
|
-
* @returns {object} An [order structure]{@link https://
|
|
1420
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1421
1421
|
*/
|
|
1422
1422
|
await this.loadMarkets();
|
|
1423
1423
|
let market = undefined;
|
|
@@ -1463,7 +1463,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1463
1463
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1464
1464
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1465
1465
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1466
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1466
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1467
1467
|
*/
|
|
1468
1468
|
await this.loadMarkets();
|
|
1469
1469
|
const request = {};
|
|
@@ -1490,7 +1490,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1490
1490
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1491
1491
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1492
1492
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1493
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1493
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1494
1494
|
*/
|
|
1495
1495
|
await this.loadMarkets();
|
|
1496
1496
|
const request = {};
|
|
@@ -1540,7 +1540,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1540
1540
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1541
1541
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1542
1542
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1543
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1543
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1544
1544
|
*/
|
|
1545
1545
|
await this.loadMarkets();
|
|
1546
1546
|
const request = {};
|
|
@@ -1907,7 +1907,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1907
1907
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1908
1908
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
1909
1909
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1910
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
1910
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
1911
1911
|
*/
|
|
1912
1912
|
await this.loadMarkets();
|
|
1913
1913
|
const request = {};
|
|
@@ -1930,7 +1930,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1930
1930
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1931
1931
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1932
1932
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1933
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1933
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1934
1934
|
*/
|
|
1935
1935
|
let market = undefined;
|
|
1936
1936
|
await this.loadMarkets();
|
|
@@ -1975,7 +1975,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1975
1975
|
* @description fetch the deposit address for a currency associated with this account
|
|
1976
1976
|
* @param {string} code unified currency code
|
|
1977
1977
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1978
|
-
* @returns {object} an [address structure]{@link https://
|
|
1978
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1979
1979
|
*/
|
|
1980
1980
|
if (this.isFiat(code)) {
|
|
1981
1981
|
throw new errors.NotSupported(this.id + ' fiat fetchDepositAddress() for ' + code + ' is not supported!');
|
|
@@ -2004,7 +2004,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
2004
2004
|
* @param {string} address the address to withdraw to
|
|
2005
2005
|
* @param {string} tag
|
|
2006
2006
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
2007
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2007
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2008
2008
|
*/
|
|
2009
2009
|
// For fiat withdrawals please provide all required additional parameters in the 'params'
|
|
2010
2010
|
// Check https://www.bitstamp.net/api/ under 'Open bank withdrawal' for list and description.
|