ccxt 4.0.73 → 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 +11 -11
- package/dist/ccxt.browser.js +2058 -1943
- 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 +25 -26
- 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 +12 -11
- 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 +25 -26
- 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.d.ts +1 -1
- package/js/src/pro/bybit.js +12 -11
- 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
|
@@ -131,7 +131,7 @@ class bitstamp1 extends bitstamp1$1 {
|
|
|
131
131
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
132
132
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
133
133
|
* @param {object} [params] extra parameters specific to the bitstamp1 api endpoint
|
|
134
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
134
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
135
135
|
*/
|
|
136
136
|
if (symbol !== 'BTC/USD') {
|
|
137
137
|
throw new errors.ExchangeError(this.id + ' ' + this.version + " fetchOrderBook doesn't support " + symbol + ', use it for BTC/USD only');
|
|
@@ -191,7 +191,7 @@ class bitstamp1 extends bitstamp1$1 {
|
|
|
191
191
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
192
192
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
193
193
|
* @param {object} [params] extra parameters specific to the bitstamp1 api endpoint
|
|
194
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
194
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
195
195
|
*/
|
|
196
196
|
if (symbol !== 'BTC/USD') {
|
|
197
197
|
throw new errors.ExchangeError(this.id + ' ' + this.version + " fetchTicker doesn't support " + symbol + ', use it for BTC/USD only');
|
|
@@ -296,9 +296,9 @@ class bitstamp1 extends bitstamp1$1 {
|
|
|
296
296
|
* @param {string} type 'market' or 'limit'
|
|
297
297
|
* @param {string} side 'buy' or 'sell'
|
|
298
298
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
299
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
299
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
300
300
|
* @param {object} [params] extra parameters specific to the bitstamp1 api endpoint
|
|
301
|
-
* @returns {object} an [order structure]{@link https://
|
|
301
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
302
302
|
*/
|
|
303
303
|
if (type !== 'limit') {
|
|
304
304
|
throw new errors.ExchangeError(this.id + ' ' + this.version + ' accepts limit orders only');
|
|
@@ -327,7 +327,7 @@ class bitstamp1 extends bitstamp1$1 {
|
|
|
327
327
|
* @param {string} id order id
|
|
328
328
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
329
329
|
* @param {object} [params] extra parameters specific to the bitstamp1 api endpoint
|
|
330
|
-
* @returns {object} An [order structure]{@link https://
|
|
330
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
331
331
|
*/
|
|
332
332
|
return await this.privatePostCancelOrder({ 'id': id });
|
|
333
333
|
}
|
|
@@ -357,7 +357,7 @@ class bitstamp1 extends bitstamp1$1 {
|
|
|
357
357
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
358
358
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
359
359
|
* @param {object} [params] extra parameters specific to the bitstamp1 api endpoint
|
|
360
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
360
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
361
361
|
*/
|
|
362
362
|
await this.loadMarkets();
|
|
363
363
|
let market = undefined;
|
package/dist/cjs/src/bittrex.js
CHANGED
|
@@ -406,7 +406,7 @@ class bittrex extends bittrex$1 {
|
|
|
406
406
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
407
407
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
408
408
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
409
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
409
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
410
410
|
*/
|
|
411
411
|
await this.loadMarkets();
|
|
412
412
|
const market = this.market(symbol);
|
|
@@ -557,7 +557,7 @@ class bittrex extends bittrex$1 {
|
|
|
557
557
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
558
558
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
559
559
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
560
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
560
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
561
561
|
*/
|
|
562
562
|
await this.loadMarkets();
|
|
563
563
|
symbols = this.marketSymbols(symbols);
|
|
@@ -606,7 +606,7 @@ class bittrex extends bittrex$1 {
|
|
|
606
606
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
607
607
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
608
608
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
609
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
609
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
610
610
|
*/
|
|
611
611
|
await this.loadMarkets();
|
|
612
612
|
const market = this.market(symbol);
|
|
@@ -650,7 +650,7 @@ class bittrex extends bittrex$1 {
|
|
|
650
650
|
* @description fetches the bid and ask price and volume for multiple markets
|
|
651
651
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
652
652
|
* @param {object} [params] extra parameters specific to the binance 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
|
const response = await this.publicGetMarketsTickers(params);
|
|
@@ -801,7 +801,7 @@ class bittrex extends bittrex$1 {
|
|
|
801
801
|
* @description fetch the trading fees for a market
|
|
802
802
|
* @param {string} symbol unified market symbol
|
|
803
803
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
804
|
-
* @returns {object} a [fee structure]{@link https://
|
|
804
|
+
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
805
805
|
*/
|
|
806
806
|
await this.loadMarkets();
|
|
807
807
|
const market = this.market(symbol);
|
|
@@ -824,7 +824,7 @@ class bittrex extends bittrex$1 {
|
|
|
824
824
|
* @name bittrex#fetchTradingFees
|
|
825
825
|
* @description fetch the trading fees for multiple markets
|
|
826
826
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
827
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
827
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
828
828
|
*/
|
|
829
829
|
await this.loadMarkets();
|
|
830
830
|
const response = await this.privateGetAccountFeesTrading(params);
|
|
@@ -955,7 +955,7 @@ class bittrex extends bittrex$1 {
|
|
|
955
955
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
956
956
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
957
957
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
958
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
958
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
959
959
|
*/
|
|
960
960
|
await this.loadMarkets();
|
|
961
961
|
const request = {};
|
|
@@ -1026,7 +1026,7 @@ class bittrex extends bittrex$1 {
|
|
|
1026
1026
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1027
1027
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1028
1028
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1029
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1029
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1030
1030
|
*/
|
|
1031
1031
|
await this.loadMarkets();
|
|
1032
1032
|
const request = {
|
|
@@ -1048,9 +1048,9 @@ class bittrex extends bittrex$1 {
|
|
|
1048
1048
|
* @param {string} type 'market' or 'limit'
|
|
1049
1049
|
* @param {string} side 'buy' or 'sell'
|
|
1050
1050
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1051
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1051
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1052
1052
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1053
|
-
* @returns {object} an [order structure]{@link https://
|
|
1053
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1054
1054
|
*/
|
|
1055
1055
|
// A ceiling order is a market or limit order that allows you to specify
|
|
1056
1056
|
// the amount of quote currency you want to spend (or receive, if selling)
|
|
@@ -1240,7 +1240,7 @@ class bittrex extends bittrex$1 {
|
|
|
1240
1240
|
* @param {string} id order id
|
|
1241
1241
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1242
1242
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1243
|
-
* @returns {object} An [order structure]{@link https://
|
|
1243
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1244
1244
|
*/
|
|
1245
1245
|
await this.loadMarkets();
|
|
1246
1246
|
const stop = this.safeValue(params, 'stop');
|
|
@@ -1321,7 +1321,7 @@ class bittrex extends bittrex$1 {
|
|
|
1321
1321
|
* @description cancel all open orders
|
|
1322
1322
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1323
1323
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1324
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1324
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1325
1325
|
*/
|
|
1326
1326
|
await this.loadMarkets();
|
|
1327
1327
|
const request = {};
|
|
@@ -1370,7 +1370,7 @@ class bittrex extends bittrex$1 {
|
|
|
1370
1370
|
* @param {string} id deposit id
|
|
1371
1371
|
* @param {string} code filter by currency code
|
|
1372
1372
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1373
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1373
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1374
1374
|
*/
|
|
1375
1375
|
await this.loadMarkets();
|
|
1376
1376
|
const request = {
|
|
@@ -1396,7 +1396,7 @@ class bittrex extends bittrex$1 {
|
|
|
1396
1396
|
* @param {int} [params.endDate] Filters out result after this timestamp. Uses ISO-8602 format.
|
|
1397
1397
|
* @param {string} [params.nextPageToken] The unique identifier of the item that the resulting query result should start after, in the sort order of the given endpoint. Used for traversing a paginated set in the forward direction.
|
|
1398
1398
|
* @param {string} [params.previousPageToken] The unique identifier of the item that the resulting query result should end before, in the sort order of the given endpoint. Used for traversing a paginated set in the reverse direction.
|
|
1399
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1399
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1400
1400
|
*/
|
|
1401
1401
|
await this.loadMarkets();
|
|
1402
1402
|
// https://support.bittrex.com/hc/en-us/articles/115003723911
|
|
@@ -1442,7 +1442,7 @@ class bittrex extends bittrex$1 {
|
|
|
1442
1442
|
* @param {int} [params.endDate] Filters out result after this timestamp. Uses ISO-8602 format.
|
|
1443
1443
|
* @param {string} [params.nextPageToken] The unique identifier of the item that the resulting query result should start after, in the sort order of the given endpoint. Used for traversing a paginated set in the forward direction.
|
|
1444
1444
|
* @param {string} [params.previousPageToken] The unique identifier of the item that the resulting query result should end before, in the sort order of the given endpoint. Used for traversing a paginated set in the reverse direction.
|
|
1445
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1445
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1446
1446
|
*/
|
|
1447
1447
|
await this.loadMarkets();
|
|
1448
1448
|
return this.fetchDeposits(code, since, limit, this.extend(params, { 'status': 'pending' }));
|
|
@@ -1455,7 +1455,7 @@ class bittrex extends bittrex$1 {
|
|
|
1455
1455
|
* @param {string} id withdrawal id
|
|
1456
1456
|
* @param {string} code filter by currency code
|
|
1457
1457
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1458
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1458
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1459
1459
|
*/
|
|
1460
1460
|
await this.loadMarkets();
|
|
1461
1461
|
const request = {
|
|
@@ -1481,7 +1481,7 @@ class bittrex extends bittrex$1 {
|
|
|
1481
1481
|
* @param {int} [params.endDate] Filters out result after this timestamp. Uses ISO-8602 format.
|
|
1482
1482
|
* @param {string} [params.nextPageToken] The unique identifier of the item that the resulting query result should start after, in the sort order of the given endpoint. Used for traversing a paginated set in the forward direction.
|
|
1483
1483
|
* @param {string} [params.previousPageToken] The unique identifier of the item that the resulting query result should end before, in the sort order of the given endpoint. Used for traversing a paginated set in the reverse direction.
|
|
1484
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1484
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1485
1485
|
*/
|
|
1486
1486
|
await this.loadMarkets();
|
|
1487
1487
|
// https://support.bittrex.com/hc/en-us/articles/115003723911
|
|
@@ -1524,7 +1524,7 @@ class bittrex extends bittrex$1 {
|
|
|
1524
1524
|
* @param {int} [params.endDate] Filters out result after this timestamp. Uses ISO-8602 format.
|
|
1525
1525
|
* @param {string} [params.nextPageToken] The unique identifier of the item that the resulting query result should start after, in the sort order of the given endpoint. Used for traversing a paginated set in the forward direction.
|
|
1526
1526
|
* @param {string} [params.previousPageToken] The unique identifier of the item that the resulting query result should end before, in the sort order of the given endpoint. Used for traversing a paginated set in the reverse direction.
|
|
1527
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1527
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1528
1528
|
*/
|
|
1529
1529
|
await this.loadMarkets();
|
|
1530
1530
|
return this.fetchWithdrawals(code, since, limit, this.extend(params, { 'status': 'pending' }));
|
|
@@ -1820,7 +1820,7 @@ class bittrex extends bittrex$1 {
|
|
|
1820
1820
|
* @description fetches information on an order made by the user
|
|
1821
1821
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1822
1822
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1823
|
-
* @returns {object} An [order structure]{@link https://
|
|
1823
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1824
1824
|
*/
|
|
1825
1825
|
await this.loadMarkets();
|
|
1826
1826
|
const stop = this.safeValue(params, 'stop');
|
|
@@ -1863,7 +1863,7 @@ class bittrex extends bittrex$1 {
|
|
|
1863
1863
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1864
1864
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1865
1865
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1866
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1866
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1867
1867
|
*/
|
|
1868
1868
|
await this.loadMarkets();
|
|
1869
1869
|
const request = {};
|
|
@@ -1892,7 +1892,7 @@ class bittrex extends bittrex$1 {
|
|
|
1892
1892
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1893
1893
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1894
1894
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1895
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1895
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1896
1896
|
*/
|
|
1897
1897
|
await this.loadMarkets();
|
|
1898
1898
|
const stop = this.safeValue(params, 'stop');
|
|
@@ -1973,7 +1973,7 @@ class bittrex extends bittrex$1 {
|
|
|
1973
1973
|
* @description create a currency deposit address
|
|
1974
1974
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1975
1975
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1976
|
-
* @returns {object} an [address structure]{@link https://
|
|
1976
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1977
1977
|
*/
|
|
1978
1978
|
await this.loadMarkets();
|
|
1979
1979
|
const currency = this.currency(code);
|
|
@@ -2010,7 +2010,7 @@ class bittrex extends bittrex$1 {
|
|
|
2010
2010
|
* @description fetch the deposit address for a currency associated with this account
|
|
2011
2011
|
* @param {string} code unified currency code
|
|
2012
2012
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
2013
|
-
* @returns {object} an [address structure]{@link https://
|
|
2013
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
2014
2014
|
*/
|
|
2015
2015
|
await this.loadMarkets();
|
|
2016
2016
|
const currency = this.currency(code);
|
|
@@ -2119,7 +2119,7 @@ class bittrex extends bittrex$1 {
|
|
|
2119
2119
|
* @param {string} address the address to withdraw to
|
|
2120
2120
|
* @param {string} tag
|
|
2121
2121
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
2122
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2122
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2123
2123
|
*/
|
|
2124
2124
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
2125
2125
|
this.checkAddress(address);
|
package/dist/cjs/src/bitvavo.js
CHANGED
|
@@ -503,7 +503,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
503
503
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
504
504
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
505
505
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
506
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
506
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
507
507
|
*/
|
|
508
508
|
await this.loadMarkets();
|
|
509
509
|
const market = this.market(symbol);
|
|
@@ -585,7 +585,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
585
585
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
586
586
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
587
587
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
588
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
588
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
589
589
|
*/
|
|
590
590
|
await this.loadMarkets();
|
|
591
591
|
const response = await this.publicGetTicker24h(params);
|
|
@@ -752,7 +752,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
752
752
|
* @name bitvavo#fetchTradingFees
|
|
753
753
|
* @description fetch the trading fees for multiple markets
|
|
754
754
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
755
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
755
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
756
756
|
*/
|
|
757
757
|
await this.loadMarkets();
|
|
758
758
|
const response = await this.privateGetAccount(params);
|
|
@@ -790,7 +790,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
790
790
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
791
791
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
792
792
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
793
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
793
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
794
794
|
*/
|
|
795
795
|
await this.loadMarkets();
|
|
796
796
|
const market = this.market(symbol);
|
|
@@ -929,7 +929,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
929
929
|
* @description fetch the deposit address for a currency associated with this account
|
|
930
930
|
* @param {string} code unified currency code
|
|
931
931
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
932
|
-
* @returns {object} an [address structure]{@link https://
|
|
932
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
933
933
|
*/
|
|
934
934
|
await this.loadMarkets();
|
|
935
935
|
const currency = this.currency(code);
|
|
@@ -964,7 +964,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
964
964
|
* @param {string} type 'market' or 'limit'
|
|
965
965
|
* @param {string} side 'buy' or 'sell'
|
|
966
966
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
967
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
967
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
968
968
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
969
969
|
* @param {string} [params.timeInForce] "GTC", "IOC", or "PO"
|
|
970
970
|
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
@@ -977,7 +977,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
977
977
|
* @param {string} [params.selfTradePrevention] "decrementAndCancel", "cancelOldest", "cancelNewest", "cancelBoth"
|
|
978
978
|
* @param {bool} [params.disableMarketProtection] don't cancel if the next fill price is 10% worse than the best fill price
|
|
979
979
|
* @param {bool} [params.responseRequired] Set this to 'false' when only an acknowledgement of success or failure is required, this is faster.
|
|
980
|
-
* @returns {object} an [order structure]{@link https://
|
|
980
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
981
981
|
*/
|
|
982
982
|
await this.loadMarkets();
|
|
983
983
|
const market = this.market(symbol);
|
|
@@ -1120,7 +1120,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
1120
1120
|
* @param {string} id order id
|
|
1121
1121
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1122
1122
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1123
|
-
* @returns {object} An [order structure]{@link https://
|
|
1123
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1124
1124
|
*/
|
|
1125
1125
|
if (symbol === undefined) {
|
|
1126
1126
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -1146,7 +1146,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
1146
1146
|
* @description cancel all open orders
|
|
1147
1147
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1148
1148
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1149
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1149
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1150
1150
|
*/
|
|
1151
1151
|
await this.loadMarkets();
|
|
1152
1152
|
const request = {};
|
|
@@ -1172,7 +1172,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
1172
1172
|
* @description fetches information on an order made by the user
|
|
1173
1173
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1174
1174
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1175
|
-
* @returns {object} An [order structure]{@link https://
|
|
1175
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1176
1176
|
*/
|
|
1177
1177
|
if (symbol === undefined) {
|
|
1178
1178
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -1229,7 +1229,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
1229
1229
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1230
1230
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1231
1231
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1232
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1232
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1233
1233
|
*/
|
|
1234
1234
|
if (symbol === undefined) {
|
|
1235
1235
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
@@ -1298,7 +1298,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
1298
1298
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1299
1299
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1300
1300
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1301
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1301
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1302
1302
|
*/
|
|
1303
1303
|
await this.loadMarkets();
|
|
1304
1304
|
const request = {
|
|
@@ -1479,7 +1479,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
1479
1479
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1480
1480
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1481
1481
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1482
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1482
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1483
1483
|
*/
|
|
1484
1484
|
if (symbol === undefined) {
|
|
1485
1485
|
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -1530,7 +1530,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
1530
1530
|
* @param {string} address the address to withdraw to
|
|
1531
1531
|
* @param {string} tag
|
|
1532
1532
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1533
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1533
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1534
1534
|
*/
|
|
1535
1535
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1536
1536
|
this.checkAddress(address);
|
|
@@ -1565,7 +1565,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
1565
1565
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1566
1566
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1567
1567
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1568
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1568
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1569
1569
|
*/
|
|
1570
1570
|
await this.loadMarkets();
|
|
1571
1571
|
const request = {
|
|
@@ -1611,7 +1611,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
1611
1611
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1612
1612
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1613
1613
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1614
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1614
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1615
1615
|
*/
|
|
1616
1616
|
await this.loadMarkets();
|
|
1617
1617
|
const request = {
|
package/dist/cjs/src/bkex.js
CHANGED
|
@@ -477,7 +477,7 @@ class bkex extends bkex$1 {
|
|
|
477
477
|
* @name bkex#fetchStatus
|
|
478
478
|
* @description the latest known information on the availability of the exchange API
|
|
479
479
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
480
|
-
* @returns {object} a [status structure]{@link https://
|
|
480
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
481
481
|
*/
|
|
482
482
|
const response = await this.publicSpotGetCommonTimestamp(params);
|
|
483
483
|
//
|
|
@@ -615,7 +615,7 @@ class bkex extends bkex$1 {
|
|
|
615
615
|
* @see https://bkexapi.github.io/docs/api_en.htm?shell#contract-ticker-data
|
|
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 bkex 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);
|
|
@@ -682,7 +682,7 @@ class bkex extends bkex$1 {
|
|
|
682
682
|
* @see https://bkexapi.github.io/docs/api_en.htm?shell#contract-ticker-data
|
|
683
683
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
684
684
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
685
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
685
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
686
686
|
*/
|
|
687
687
|
await this.loadMarkets();
|
|
688
688
|
const request = {};
|
|
@@ -831,7 +831,7 @@ class bkex extends bkex$1 {
|
|
|
831
831
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
832
832
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
833
833
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
834
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
834
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
835
835
|
*/
|
|
836
836
|
await this.loadMarkets();
|
|
837
837
|
const market = this.market(symbol);
|
|
@@ -1073,7 +1073,7 @@ class bkex extends bkex$1 {
|
|
|
1073
1073
|
* @description fetch the deposit address for a currency associated with this account
|
|
1074
1074
|
* @param {string} code unified currency code
|
|
1075
1075
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1076
|
-
* @returns {object} an [address structure]{@link https://
|
|
1076
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1077
1077
|
*/
|
|
1078
1078
|
await this.loadMarkets();
|
|
1079
1079
|
const currency = this.currency(code);
|
|
@@ -1122,7 +1122,7 @@ class bkex extends bkex$1 {
|
|
|
1122
1122
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1123
1123
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1124
1124
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1125
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1125
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1126
1126
|
*/
|
|
1127
1127
|
if (code === undefined) {
|
|
1128
1128
|
throw new errors.ArgumentsRequired(this.id + ' fetchDeposits() requires code argument');
|
|
@@ -1179,7 +1179,7 @@ class bkex extends bkex$1 {
|
|
|
1179
1179
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1180
1180
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1181
1181
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1182
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1182
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1183
1183
|
*/
|
|
1184
1184
|
if (code === undefined) {
|
|
1185
1185
|
throw new errors.ArgumentsRequired(this.id + ' fetchWithdrawals() requires code argument');
|
|
@@ -1287,9 +1287,9 @@ class bkex extends bkex$1 {
|
|
|
1287
1287
|
* @param {string} type 'market' or 'limit'
|
|
1288
1288
|
* @param {string} side 'buy' or 'sell'
|
|
1289
1289
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1290
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1290
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1291
1291
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1292
|
-
* @returns {object} an [order structure]{@link https://
|
|
1292
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1293
1293
|
*/
|
|
1294
1294
|
await this.loadMarkets();
|
|
1295
1295
|
const market = this.market(symbol);
|
|
@@ -1322,7 +1322,7 @@ class bkex extends bkex$1 {
|
|
|
1322
1322
|
* @param {string} id order id
|
|
1323
1323
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1324
1324
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1325
|
-
* @returns {object} An [order structure]{@link https://
|
|
1325
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1326
1326
|
*/
|
|
1327
1327
|
await this.loadMarkets();
|
|
1328
1328
|
const market = (symbol !== undefined) ? this.market(symbol) : undefined;
|
|
@@ -1347,7 +1347,7 @@ class bkex extends bkex$1 {
|
|
|
1347
1347
|
* @param {string[]} ids order ids
|
|
1348
1348
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1349
1349
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1350
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
1350
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1351
1351
|
*/
|
|
1352
1352
|
if (!Array.isArray(ids)) {
|
|
1353
1353
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrders() ids argument should be an array');
|
|
@@ -1380,7 +1380,7 @@ class bkex extends bkex$1 {
|
|
|
1380
1380
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1381
1381
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1382
1382
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1383
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1383
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1384
1384
|
*/
|
|
1385
1385
|
if (symbol === undefined) {
|
|
1386
1386
|
throw new errors.ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -1437,7 +1437,7 @@ class bkex extends bkex$1 {
|
|
|
1437
1437
|
* @param {string} id order id
|
|
1438
1438
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1439
1439
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1440
|
-
* @returns {object} an [order structure]{@link https://
|
|
1440
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1441
1441
|
*/
|
|
1442
1442
|
const request = {
|
|
1443
1443
|
'orderId': id,
|
|
@@ -1478,7 +1478,7 @@ class bkex extends bkex$1 {
|
|
|
1478
1478
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1479
1479
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1480
1480
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1481
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1481
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1482
1482
|
*/
|
|
1483
1483
|
if (symbol === undefined) {
|
|
1484
1484
|
throw new errors.ArgumentsRequired(this.id + ' fetchClosedOrders() requires a symbol argument');
|
|
@@ -1636,7 +1636,7 @@ class bkex extends bkex$1 {
|
|
|
1636
1636
|
* @see https://bkexapi.github.io/docs/api_en.htm?shell#basicInformation-2
|
|
1637
1637
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1638
1638
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1639
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
1639
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1640
1640
|
*/
|
|
1641
1641
|
await this.loadMarkets();
|
|
1642
1642
|
const response = await this.publicSpotGetCommonCurrencys(params);
|
|
@@ -1711,7 +1711,7 @@ class bkex extends bkex$1 {
|
|
|
1711
1711
|
* @see https://bkexapi.github.io/docs/api_en.htm?shell#basicInformation-2
|
|
1712
1712
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1713
1713
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1714
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
1714
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1715
1715
|
*/
|
|
1716
1716
|
await this.loadMarkets();
|
|
1717
1717
|
const response = await this.publicSpotGetCommonCurrencys(params);
|
|
@@ -1823,7 +1823,7 @@ class bkex extends bkex$1 {
|
|
|
1823
1823
|
* @description retrieve information on the maximum leverage, for different trade sizes for a single market
|
|
1824
1824
|
* @param {string} symbol unified market symbol
|
|
1825
1825
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1826
|
-
* @returns {object} a [leverage tiers structure]{@link https://
|
|
1826
|
+
* @returns {object} a [leverage tiers structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}
|
|
1827
1827
|
*/
|
|
1828
1828
|
await this.loadMarkets();
|
|
1829
1829
|
const market = this.market(symbol);
|
package/dist/cjs/src/bl3p.js
CHANGED
|
@@ -156,7 +156,7 @@ class bl3p extends bl3p$1 {
|
|
|
156
156
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
157
157
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
158
158
|
* @param {object} [params] extra parameters specific to the bl3p api endpoint
|
|
159
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
159
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
160
160
|
*/
|
|
161
161
|
const market = this.market(symbol);
|
|
162
162
|
const request = {
|
|
@@ -216,7 +216,7 @@ class bl3p extends bl3p$1 {
|
|
|
216
216
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
217
217
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
218
218
|
* @param {object} [params] extra parameters specific to the bl3p api endpoint
|
|
219
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
219
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
220
220
|
*/
|
|
221
221
|
const market = this.market(symbol);
|
|
222
222
|
const request = {
|
|
@@ -286,7 +286,7 @@ class bl3p extends bl3p$1 {
|
|
|
286
286
|
* @name bl3p#fetchTradingFees
|
|
287
287
|
* @description fetch the trading fees for multiple markets
|
|
288
288
|
* @param {object} [params] extra parameters specific to the bl3p api endpoint
|
|
289
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
289
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
290
290
|
*/
|
|
291
291
|
await this.loadMarkets();
|
|
292
292
|
const response = await this.privatePostGENMKTMoneyInfo(params);
|
|
@@ -344,9 +344,9 @@ class bl3p extends bl3p$1 {
|
|
|
344
344
|
* @param {string} type 'market' or 'limit'
|
|
345
345
|
* @param {string} side 'buy' or 'sell'
|
|
346
346
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
347
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
347
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
348
348
|
* @param {object} [params] extra parameters specific to the bl3p api endpoint
|
|
349
|
-
* @returns {object} an [order structure]{@link https://
|
|
349
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
350
350
|
*/
|
|
351
351
|
const market = this.market(symbol);
|
|
352
352
|
const amountString = this.numberToString(amount);
|
|
@@ -375,7 +375,7 @@ class bl3p extends bl3p$1 {
|
|
|
375
375
|
* @param {string} id order id
|
|
376
376
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
377
377
|
* @param {object} [params] extra parameters specific to the bl3p api endpoint
|
|
378
|
-
* @returns {object} An [order structure]{@link https://
|
|
378
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
379
379
|
*/
|
|
380
380
|
const request = {
|
|
381
381
|
'order_id': id,
|