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/js/src/bitstamp1.js
CHANGED
|
@@ -134,7 +134,7 @@ export default class bitstamp1 extends Exchange {
|
|
|
134
134
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
135
135
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
136
136
|
* @param {object} [params] extra parameters specific to the bitstamp1 api endpoint
|
|
137
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
137
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
138
138
|
*/
|
|
139
139
|
if (symbol !== 'BTC/USD') {
|
|
140
140
|
throw new ExchangeError(this.id + ' ' + this.version + " fetchOrderBook doesn't support " + symbol + ', use it for BTC/USD only');
|
|
@@ -194,7 +194,7 @@ export default class bitstamp1 extends Exchange {
|
|
|
194
194
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
195
195
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
196
196
|
* @param {object} [params] extra parameters specific to the bitstamp1 api endpoint
|
|
197
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
197
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
198
198
|
*/
|
|
199
199
|
if (symbol !== 'BTC/USD') {
|
|
200
200
|
throw new ExchangeError(this.id + ' ' + this.version + " fetchTicker doesn't support " + symbol + ', use it for BTC/USD only');
|
|
@@ -299,9 +299,9 @@ export default class bitstamp1 extends Exchange {
|
|
|
299
299
|
* @param {string} type 'market' or 'limit'
|
|
300
300
|
* @param {string} side 'buy' or 'sell'
|
|
301
301
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
302
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
302
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
303
303
|
* @param {object} [params] extra parameters specific to the bitstamp1 api endpoint
|
|
304
|
-
* @returns {object} an [order structure]{@link https://
|
|
304
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
305
305
|
*/
|
|
306
306
|
if (type !== 'limit') {
|
|
307
307
|
throw new ExchangeError(this.id + ' ' + this.version + ' accepts limit orders only');
|
|
@@ -330,7 +330,7 @@ export default class bitstamp1 extends Exchange {
|
|
|
330
330
|
* @param {string} id order id
|
|
331
331
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
332
332
|
* @param {object} [params] extra parameters specific to the bitstamp1 api endpoint
|
|
333
|
-
* @returns {object} An [order structure]{@link https://
|
|
333
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
334
334
|
*/
|
|
335
335
|
return await this.privatePostCancelOrder({ 'id': id });
|
|
336
336
|
}
|
|
@@ -360,7 +360,7 @@ export default class bitstamp1 extends Exchange {
|
|
|
360
360
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
361
361
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
362
362
|
* @param {object} [params] extra parameters specific to the bitstamp1 api endpoint
|
|
363
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
363
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
364
364
|
*/
|
|
365
365
|
await this.loadMarkets();
|
|
366
366
|
let market = undefined;
|
package/js/src/bittrex.js
CHANGED
|
@@ -409,7 +409,7 @@ export default class bittrex extends Exchange {
|
|
|
409
409
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
410
410
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
411
411
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
412
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
412
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
413
413
|
*/
|
|
414
414
|
await this.loadMarkets();
|
|
415
415
|
const market = this.market(symbol);
|
|
@@ -560,7 +560,7 @@ export default class bittrex extends Exchange {
|
|
|
560
560
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
561
561
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
562
562
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
563
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
563
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
564
564
|
*/
|
|
565
565
|
await this.loadMarkets();
|
|
566
566
|
symbols = this.marketSymbols(symbols);
|
|
@@ -609,7 +609,7 @@ export default class bittrex extends Exchange {
|
|
|
609
609
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
610
610
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
611
611
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
612
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
612
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
613
613
|
*/
|
|
614
614
|
await this.loadMarkets();
|
|
615
615
|
const market = this.market(symbol);
|
|
@@ -653,7 +653,7 @@ export default class bittrex extends Exchange {
|
|
|
653
653
|
* @description fetches the bid and ask price and volume for multiple markets
|
|
654
654
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
655
655
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
656
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
656
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
657
657
|
*/
|
|
658
658
|
await this.loadMarkets();
|
|
659
659
|
const response = await this.publicGetMarketsTickers(params);
|
|
@@ -804,7 +804,7 @@ export default class bittrex extends Exchange {
|
|
|
804
804
|
* @description fetch the trading fees for a market
|
|
805
805
|
* @param {string} symbol unified market symbol
|
|
806
806
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
807
|
-
* @returns {object} a [fee structure]{@link https://
|
|
807
|
+
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
808
808
|
*/
|
|
809
809
|
await this.loadMarkets();
|
|
810
810
|
const market = this.market(symbol);
|
|
@@ -827,7 +827,7 @@ export default class bittrex extends Exchange {
|
|
|
827
827
|
* @name bittrex#fetchTradingFees
|
|
828
828
|
* @description fetch the trading fees for multiple markets
|
|
829
829
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
830
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
830
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
831
831
|
*/
|
|
832
832
|
await this.loadMarkets();
|
|
833
833
|
const response = await this.privateGetAccountFeesTrading(params);
|
|
@@ -958,7 +958,7 @@ export default class bittrex extends Exchange {
|
|
|
958
958
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
959
959
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
960
960
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
961
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
961
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
962
962
|
*/
|
|
963
963
|
await this.loadMarkets();
|
|
964
964
|
const request = {};
|
|
@@ -1029,7 +1029,7 @@ export default class bittrex extends Exchange {
|
|
|
1029
1029
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1030
1030
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1031
1031
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1032
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1032
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1033
1033
|
*/
|
|
1034
1034
|
await this.loadMarkets();
|
|
1035
1035
|
const request = {
|
|
@@ -1051,9 +1051,9 @@ export default class bittrex extends Exchange {
|
|
|
1051
1051
|
* @param {string} type 'market' or 'limit'
|
|
1052
1052
|
* @param {string} side 'buy' or 'sell'
|
|
1053
1053
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1054
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1054
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1055
1055
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1056
|
-
* @returns {object} an [order structure]{@link https://
|
|
1056
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1057
1057
|
*/
|
|
1058
1058
|
// A ceiling order is a market or limit order that allows you to specify
|
|
1059
1059
|
// the amount of quote currency you want to spend (or receive, if selling)
|
|
@@ -1243,7 +1243,7 @@ export default class bittrex extends Exchange {
|
|
|
1243
1243
|
* @param {string} id order id
|
|
1244
1244
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1245
1245
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1246
|
-
* @returns {object} An [order structure]{@link https://
|
|
1246
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1247
1247
|
*/
|
|
1248
1248
|
await this.loadMarkets();
|
|
1249
1249
|
const stop = this.safeValue(params, 'stop');
|
|
@@ -1324,7 +1324,7 @@ export default class bittrex extends Exchange {
|
|
|
1324
1324
|
* @description cancel all open orders
|
|
1325
1325
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1326
1326
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1327
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1327
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1328
1328
|
*/
|
|
1329
1329
|
await this.loadMarkets();
|
|
1330
1330
|
const request = {};
|
|
@@ -1373,7 +1373,7 @@ export default class bittrex extends Exchange {
|
|
|
1373
1373
|
* @param {string} id deposit id
|
|
1374
1374
|
* @param {string} code filter by currency code
|
|
1375
1375
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1376
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1376
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1377
1377
|
*/
|
|
1378
1378
|
await this.loadMarkets();
|
|
1379
1379
|
const request = {
|
|
@@ -1399,7 +1399,7 @@ export default class bittrex extends Exchange {
|
|
|
1399
1399
|
* @param {int} [params.endDate] Filters out result after this timestamp. Uses ISO-8602 format.
|
|
1400
1400
|
* @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.
|
|
1401
1401
|
* @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.
|
|
1402
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1402
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1403
1403
|
*/
|
|
1404
1404
|
await this.loadMarkets();
|
|
1405
1405
|
// https://support.bittrex.com/hc/en-us/articles/115003723911
|
|
@@ -1445,7 +1445,7 @@ export default class bittrex extends Exchange {
|
|
|
1445
1445
|
* @param {int} [params.endDate] Filters out result after this timestamp. Uses ISO-8602 format.
|
|
1446
1446
|
* @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.
|
|
1447
1447
|
* @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.
|
|
1448
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1448
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1449
1449
|
*/
|
|
1450
1450
|
await this.loadMarkets();
|
|
1451
1451
|
return this.fetchDeposits(code, since, limit, this.extend(params, { 'status': 'pending' }));
|
|
@@ -1458,7 +1458,7 @@ export default class bittrex extends Exchange {
|
|
|
1458
1458
|
* @param {string} id withdrawal id
|
|
1459
1459
|
* @param {string} code filter by currency code
|
|
1460
1460
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1461
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1461
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1462
1462
|
*/
|
|
1463
1463
|
await this.loadMarkets();
|
|
1464
1464
|
const request = {
|
|
@@ -1484,7 +1484,7 @@ export default class bittrex extends Exchange {
|
|
|
1484
1484
|
* @param {int} [params.endDate] Filters out result after this timestamp. Uses ISO-8602 format.
|
|
1485
1485
|
* @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.
|
|
1486
1486
|
* @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.
|
|
1487
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1487
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1488
1488
|
*/
|
|
1489
1489
|
await this.loadMarkets();
|
|
1490
1490
|
// https://support.bittrex.com/hc/en-us/articles/115003723911
|
|
@@ -1527,7 +1527,7 @@ export default class bittrex extends Exchange {
|
|
|
1527
1527
|
* @param {int} [params.endDate] Filters out result after this timestamp. Uses ISO-8602 format.
|
|
1528
1528
|
* @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.
|
|
1529
1529
|
* @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.
|
|
1530
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1530
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1531
1531
|
*/
|
|
1532
1532
|
await this.loadMarkets();
|
|
1533
1533
|
return this.fetchWithdrawals(code, since, limit, this.extend(params, { 'status': 'pending' }));
|
|
@@ -1823,7 +1823,7 @@ export default class bittrex extends Exchange {
|
|
|
1823
1823
|
* @description fetches information on an order made by the user
|
|
1824
1824
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1825
1825
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1826
|
-
* @returns {object} An [order structure]{@link https://
|
|
1826
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1827
1827
|
*/
|
|
1828
1828
|
await this.loadMarkets();
|
|
1829
1829
|
const stop = this.safeValue(params, 'stop');
|
|
@@ -1866,7 +1866,7 @@ export default class bittrex extends Exchange {
|
|
|
1866
1866
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1867
1867
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1868
1868
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1869
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1869
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1870
1870
|
*/
|
|
1871
1871
|
await this.loadMarkets();
|
|
1872
1872
|
const request = {};
|
|
@@ -1895,7 +1895,7 @@ export default class bittrex extends Exchange {
|
|
|
1895
1895
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1896
1896
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1897
1897
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1898
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1898
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1899
1899
|
*/
|
|
1900
1900
|
await this.loadMarkets();
|
|
1901
1901
|
const stop = this.safeValue(params, 'stop');
|
|
@@ -1976,7 +1976,7 @@ export default class bittrex extends Exchange {
|
|
|
1976
1976
|
* @description create a currency deposit address
|
|
1977
1977
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1978
1978
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1979
|
-
* @returns {object} an [address structure]{@link https://
|
|
1979
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1980
1980
|
*/
|
|
1981
1981
|
await this.loadMarkets();
|
|
1982
1982
|
const currency = this.currency(code);
|
|
@@ -2013,7 +2013,7 @@ export default class bittrex extends Exchange {
|
|
|
2013
2013
|
* @description fetch the deposit address for a currency associated with this account
|
|
2014
2014
|
* @param {string} code unified currency code
|
|
2015
2015
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
2016
|
-
* @returns {object} an [address structure]{@link https://
|
|
2016
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
2017
2017
|
*/
|
|
2018
2018
|
await this.loadMarkets();
|
|
2019
2019
|
const currency = this.currency(code);
|
|
@@ -2122,7 +2122,7 @@ export default class bittrex extends Exchange {
|
|
|
2122
2122
|
* @param {string} address the address to withdraw to
|
|
2123
2123
|
* @param {string} tag
|
|
2124
2124
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
2125
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2125
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2126
2126
|
*/
|
|
2127
2127
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
2128
2128
|
this.checkAddress(address);
|
package/js/src/bitvavo.js
CHANGED
|
@@ -506,7 +506,7 @@ export default class bitvavo extends Exchange {
|
|
|
506
506
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
507
507
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
508
508
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
509
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
509
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
510
510
|
*/
|
|
511
511
|
await this.loadMarkets();
|
|
512
512
|
const market = this.market(symbol);
|
|
@@ -588,7 +588,7 @@ export default class bitvavo extends Exchange {
|
|
|
588
588
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
589
589
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
590
590
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
591
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
591
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
592
592
|
*/
|
|
593
593
|
await this.loadMarkets();
|
|
594
594
|
const response = await this.publicGetTicker24h(params);
|
|
@@ -755,7 +755,7 @@ export default class bitvavo extends Exchange {
|
|
|
755
755
|
* @name bitvavo#fetchTradingFees
|
|
756
756
|
* @description fetch the trading fees for multiple markets
|
|
757
757
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
758
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
758
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
759
759
|
*/
|
|
760
760
|
await this.loadMarkets();
|
|
761
761
|
const response = await this.privateGetAccount(params);
|
|
@@ -793,7 +793,7 @@ export default class bitvavo extends Exchange {
|
|
|
793
793
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
794
794
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
795
795
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
796
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
796
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
797
797
|
*/
|
|
798
798
|
await this.loadMarkets();
|
|
799
799
|
const market = this.market(symbol);
|
|
@@ -932,7 +932,7 @@ export default class bitvavo extends Exchange {
|
|
|
932
932
|
* @description fetch the deposit address for a currency associated with this account
|
|
933
933
|
* @param {string} code unified currency code
|
|
934
934
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
935
|
-
* @returns {object} an [address structure]{@link https://
|
|
935
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
936
936
|
*/
|
|
937
937
|
await this.loadMarkets();
|
|
938
938
|
const currency = this.currency(code);
|
|
@@ -967,7 +967,7 @@ export default class bitvavo extends Exchange {
|
|
|
967
967
|
* @param {string} type 'market' or 'limit'
|
|
968
968
|
* @param {string} side 'buy' or 'sell'
|
|
969
969
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
970
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
970
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
971
971
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
972
972
|
* @param {string} [params.timeInForce] "GTC", "IOC", or "PO"
|
|
973
973
|
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
@@ -980,7 +980,7 @@ export default class bitvavo extends Exchange {
|
|
|
980
980
|
* @param {string} [params.selfTradePrevention] "decrementAndCancel", "cancelOldest", "cancelNewest", "cancelBoth"
|
|
981
981
|
* @param {bool} [params.disableMarketProtection] don't cancel if the next fill price is 10% worse than the best fill price
|
|
982
982
|
* @param {bool} [params.responseRequired] Set this to 'false' when only an acknowledgement of success or failure is required, this is faster.
|
|
983
|
-
* @returns {object} an [order structure]{@link https://
|
|
983
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
984
984
|
*/
|
|
985
985
|
await this.loadMarkets();
|
|
986
986
|
const market = this.market(symbol);
|
|
@@ -1123,7 +1123,7 @@ export default class bitvavo extends Exchange {
|
|
|
1123
1123
|
* @param {string} id order id
|
|
1124
1124
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1125
1125
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1126
|
-
* @returns {object} An [order structure]{@link https://
|
|
1126
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1127
1127
|
*/
|
|
1128
1128
|
if (symbol === undefined) {
|
|
1129
1129
|
throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -1149,7 +1149,7 @@ export default class bitvavo extends Exchange {
|
|
|
1149
1149
|
* @description cancel all open orders
|
|
1150
1150
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1151
1151
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1152
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1152
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1153
1153
|
*/
|
|
1154
1154
|
await this.loadMarkets();
|
|
1155
1155
|
const request = {};
|
|
@@ -1175,7 +1175,7 @@ export default class bitvavo extends Exchange {
|
|
|
1175
1175
|
* @description fetches information on an order made by the user
|
|
1176
1176
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1177
1177
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1178
|
-
* @returns {object} An [order structure]{@link https://
|
|
1178
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1179
1179
|
*/
|
|
1180
1180
|
if (symbol === undefined) {
|
|
1181
1181
|
throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -1232,7 +1232,7 @@ export default class bitvavo extends Exchange {
|
|
|
1232
1232
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1233
1233
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1234
1234
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1235
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1235
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1236
1236
|
*/
|
|
1237
1237
|
if (symbol === undefined) {
|
|
1238
1238
|
throw new ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
@@ -1301,7 +1301,7 @@ export default class bitvavo extends Exchange {
|
|
|
1301
1301
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1302
1302
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1303
1303
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1304
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1304
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1305
1305
|
*/
|
|
1306
1306
|
await this.loadMarkets();
|
|
1307
1307
|
const request = {
|
|
@@ -1482,7 +1482,7 @@ export default class bitvavo extends Exchange {
|
|
|
1482
1482
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1483
1483
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1484
1484
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1485
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1485
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1486
1486
|
*/
|
|
1487
1487
|
if (symbol === undefined) {
|
|
1488
1488
|
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -1533,7 +1533,7 @@ export default class bitvavo extends Exchange {
|
|
|
1533
1533
|
* @param {string} address the address to withdraw to
|
|
1534
1534
|
* @param {string} tag
|
|
1535
1535
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1536
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1536
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1537
1537
|
*/
|
|
1538
1538
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1539
1539
|
this.checkAddress(address);
|
|
@@ -1568,7 +1568,7 @@ export default class bitvavo extends Exchange {
|
|
|
1568
1568
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1569
1569
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1570
1570
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1571
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1571
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1572
1572
|
*/
|
|
1573
1573
|
await this.loadMarkets();
|
|
1574
1574
|
const request = {
|
|
@@ -1614,7 +1614,7 @@ export default class bitvavo extends Exchange {
|
|
|
1614
1614
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1615
1615
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1616
1616
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1617
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1617
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1618
1618
|
*/
|
|
1619
1619
|
await this.loadMarkets();
|
|
1620
1620
|
const request = {
|
package/js/src/bkex.js
CHANGED
|
@@ -480,7 +480,7 @@ export default class bkex extends Exchange {
|
|
|
480
480
|
* @name bkex#fetchStatus
|
|
481
481
|
* @description the latest known information on the availability of the exchange API
|
|
482
482
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
483
|
-
* @returns {object} a [status structure]{@link https://
|
|
483
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
484
484
|
*/
|
|
485
485
|
const response = await this.publicSpotGetCommonTimestamp(params);
|
|
486
486
|
//
|
|
@@ -618,7 +618,7 @@ export default class bkex extends Exchange {
|
|
|
618
618
|
* @see https://bkexapi.github.io/docs/api_en.htm?shell#contract-ticker-data
|
|
619
619
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
620
620
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
621
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
621
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
622
622
|
*/
|
|
623
623
|
await this.loadMarkets();
|
|
624
624
|
const market = this.market(symbol);
|
|
@@ -685,7 +685,7 @@ export default class bkex extends Exchange {
|
|
|
685
685
|
* @see https://bkexapi.github.io/docs/api_en.htm?shell#contract-ticker-data
|
|
686
686
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
687
687
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
688
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
688
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
689
689
|
*/
|
|
690
690
|
await this.loadMarkets();
|
|
691
691
|
const request = {};
|
|
@@ -834,7 +834,7 @@ export default class bkex extends Exchange {
|
|
|
834
834
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
835
835
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
836
836
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
837
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
837
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
838
838
|
*/
|
|
839
839
|
await this.loadMarkets();
|
|
840
840
|
const market = this.market(symbol);
|
|
@@ -1076,7 +1076,7 @@ export default class bkex extends Exchange {
|
|
|
1076
1076
|
* @description fetch the deposit address for a currency associated with this account
|
|
1077
1077
|
* @param {string} code unified currency code
|
|
1078
1078
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1079
|
-
* @returns {object} an [address structure]{@link https://
|
|
1079
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1080
1080
|
*/
|
|
1081
1081
|
await this.loadMarkets();
|
|
1082
1082
|
const currency = this.currency(code);
|
|
@@ -1125,7 +1125,7 @@ export default class bkex extends Exchange {
|
|
|
1125
1125
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1126
1126
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1127
1127
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1128
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1128
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1129
1129
|
*/
|
|
1130
1130
|
if (code === undefined) {
|
|
1131
1131
|
throw new ArgumentsRequired(this.id + ' fetchDeposits() requires code argument');
|
|
@@ -1182,7 +1182,7 @@ export default class bkex extends Exchange {
|
|
|
1182
1182
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1183
1183
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1184
1184
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1185
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1185
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1186
1186
|
*/
|
|
1187
1187
|
if (code === undefined) {
|
|
1188
1188
|
throw new ArgumentsRequired(this.id + ' fetchWithdrawals() requires code argument');
|
|
@@ -1290,9 +1290,9 @@ export default class bkex extends Exchange {
|
|
|
1290
1290
|
* @param {string} type 'market' or 'limit'
|
|
1291
1291
|
* @param {string} side 'buy' or 'sell'
|
|
1292
1292
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1293
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1293
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1294
1294
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1295
|
-
* @returns {object} an [order structure]{@link https://
|
|
1295
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1296
1296
|
*/
|
|
1297
1297
|
await this.loadMarkets();
|
|
1298
1298
|
const market = this.market(symbol);
|
|
@@ -1325,7 +1325,7 @@ export default class bkex extends Exchange {
|
|
|
1325
1325
|
* @param {string} id order id
|
|
1326
1326
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1327
1327
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1328
|
-
* @returns {object} An [order structure]{@link https://
|
|
1328
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1329
1329
|
*/
|
|
1330
1330
|
await this.loadMarkets();
|
|
1331
1331
|
const market = (symbol !== undefined) ? this.market(symbol) : undefined;
|
|
@@ -1350,7 +1350,7 @@ export default class bkex extends Exchange {
|
|
|
1350
1350
|
* @param {string[]} ids order ids
|
|
1351
1351
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1352
1352
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1353
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
1353
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1354
1354
|
*/
|
|
1355
1355
|
if (!Array.isArray(ids)) {
|
|
1356
1356
|
throw new ArgumentsRequired(this.id + ' cancelOrders() ids argument should be an array');
|
|
@@ -1383,7 +1383,7 @@ export default class bkex extends Exchange {
|
|
|
1383
1383
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1384
1384
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1385
1385
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1386
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1386
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1387
1387
|
*/
|
|
1388
1388
|
if (symbol === undefined) {
|
|
1389
1389
|
throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -1440,7 +1440,7 @@ export default class bkex extends Exchange {
|
|
|
1440
1440
|
* @param {string} id order id
|
|
1441
1441
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1442
1442
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1443
|
-
* @returns {object} an [order structure]{@link https://
|
|
1443
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1444
1444
|
*/
|
|
1445
1445
|
const request = {
|
|
1446
1446
|
'orderId': id,
|
|
@@ -1481,7 +1481,7 @@ export default class bkex extends Exchange {
|
|
|
1481
1481
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1482
1482
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1483
1483
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1484
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1484
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1485
1485
|
*/
|
|
1486
1486
|
if (symbol === undefined) {
|
|
1487
1487
|
throw new ArgumentsRequired(this.id + ' fetchClosedOrders() requires a symbol argument');
|
|
@@ -1639,7 +1639,7 @@ export default class bkex extends Exchange {
|
|
|
1639
1639
|
* @see https://bkexapi.github.io/docs/api_en.htm?shell#basicInformation-2
|
|
1640
1640
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1641
1641
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1642
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
1642
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1643
1643
|
*/
|
|
1644
1644
|
await this.loadMarkets();
|
|
1645
1645
|
const response = await this.publicSpotGetCommonCurrencys(params);
|
|
@@ -1714,7 +1714,7 @@ export default class bkex extends Exchange {
|
|
|
1714
1714
|
* @see https://bkexapi.github.io/docs/api_en.htm?shell#basicInformation-2
|
|
1715
1715
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1716
1716
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1717
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
1717
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1718
1718
|
*/
|
|
1719
1719
|
await this.loadMarkets();
|
|
1720
1720
|
const response = await this.publicSpotGetCommonCurrencys(params);
|
|
@@ -1826,7 +1826,7 @@ export default class bkex extends Exchange {
|
|
|
1826
1826
|
* @description retrieve information on the maximum leverage, for different trade sizes for a single market
|
|
1827
1827
|
* @param {string} symbol unified market symbol
|
|
1828
1828
|
* @param {object} [params] extra parameters specific to the bkex api endpoint
|
|
1829
|
-
* @returns {object} a [leverage tiers structure]{@link https://
|
|
1829
|
+
* @returns {object} a [leverage tiers structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}
|
|
1830
1830
|
*/
|
|
1831
1831
|
await this.loadMarkets();
|
|
1832
1832
|
const market = this.market(symbol);
|
package/js/src/bl3p.js
CHANGED
|
@@ -159,7 +159,7 @@ export default class bl3p extends Exchange {
|
|
|
159
159
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
160
160
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
161
161
|
* @param {object} [params] extra parameters specific to the bl3p api endpoint
|
|
162
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
162
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
163
163
|
*/
|
|
164
164
|
const market = this.market(symbol);
|
|
165
165
|
const request = {
|
|
@@ -219,7 +219,7 @@ export default class bl3p extends Exchange {
|
|
|
219
219
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
220
220
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
221
221
|
* @param {object} [params] extra parameters specific to the bl3p api endpoint
|
|
222
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
222
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
223
223
|
*/
|
|
224
224
|
const market = this.market(symbol);
|
|
225
225
|
const request = {
|
|
@@ -289,7 +289,7 @@ export default class bl3p extends Exchange {
|
|
|
289
289
|
* @name bl3p#fetchTradingFees
|
|
290
290
|
* @description fetch the trading fees for multiple markets
|
|
291
291
|
* @param {object} [params] extra parameters specific to the bl3p api endpoint
|
|
292
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
292
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
293
293
|
*/
|
|
294
294
|
await this.loadMarkets();
|
|
295
295
|
const response = await this.privatePostGENMKTMoneyInfo(params);
|
|
@@ -347,9 +347,9 @@ export default class bl3p extends Exchange {
|
|
|
347
347
|
* @param {string} type 'market' or 'limit'
|
|
348
348
|
* @param {string} side 'buy' or 'sell'
|
|
349
349
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
350
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
350
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
351
351
|
* @param {object} [params] extra parameters specific to the bl3p api endpoint
|
|
352
|
-
* @returns {object} an [order structure]{@link https://
|
|
352
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
353
353
|
*/
|
|
354
354
|
const market = this.market(symbol);
|
|
355
355
|
const amountString = this.numberToString(amount);
|
|
@@ -378,7 +378,7 @@ export default class bl3p extends Exchange {
|
|
|
378
378
|
* @param {string} id order id
|
|
379
379
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
380
380
|
* @param {object} [params] extra parameters specific to the bl3p api endpoint
|
|
381
|
-
* @returns {object} An [order structure]{@link https://
|
|
381
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
382
382
|
*/
|
|
383
383
|
const request = {
|
|
384
384
|
'order_id': id,
|