ccxt 4.1.56 → 4.1.57
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/.git-templates/hooks/pre-push +2 -2
- package/README.md +3 -3
- package/build.sh +30 -18
- package/dist/ccxt.browser.js +3872 -3202
- package/dist/ccxt.browser.min.js +10 -10
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +17 -13
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +35 -29
- package/dist/cjs/src/base/Exchange.js +39 -26
- package/dist/cjs/src/base/Precise.js +1 -3
- package/dist/cjs/src/bigone.js +24 -20
- package/dist/cjs/src/binance.js +97 -76
- package/dist/cjs/src/bingx.js +63 -44
- package/dist/cjs/src/bit2c.js +18 -15
- package/dist/cjs/src/bitbank.js +16 -15
- package/dist/cjs/src/bitbns.js +28 -18
- package/dist/cjs/src/bitfinex.js +23 -21
- package/dist/cjs/src/bitfinex2.js +32 -28
- package/dist/cjs/src/bitflyer.js +28 -20
- package/dist/cjs/src/bitforex.js +25 -18
- package/dist/cjs/src/bitget.js +184 -147
- package/dist/cjs/src/bithumb.js +23 -16
- package/dist/cjs/src/bitmart.js +106 -85
- package/dist/cjs/src/bitmex.js +104 -64
- package/dist/cjs/src/bitopro.js +38 -26
- package/dist/cjs/src/bitpanda.js +24 -23
- package/dist/cjs/src/bitrue.js +33 -24
- package/dist/cjs/src/bitso.js +24 -23
- package/dist/cjs/src/bitstamp.js +24 -23
- package/dist/cjs/src/bittrex.js +30 -29
- package/dist/cjs/src/bitvavo.js +38 -30
- package/dist/cjs/src/bl3p.js +11 -10
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +18 -17
- package/dist/cjs/src/btcbox.js +13 -12
- package/dist/cjs/src/btcmarkets.js +20 -19
- package/dist/cjs/src/btcturk.js +14 -13
- package/dist/cjs/src/bybit.js +84 -54
- package/dist/cjs/src/cex.js +16 -14
- package/dist/cjs/src/coinbase.js +29 -27
- package/dist/cjs/src/coinbasepro.js +27 -25
- package/dist/cjs/src/coincheck.js +15 -14
- package/dist/cjs/src/coinex.js +100 -77
- package/dist/cjs/src/coinlist.js +28 -27
- package/dist/cjs/src/coinmate.js +20 -17
- package/dist/cjs/src/coinone.js +21 -16
- package/dist/cjs/src/coinsph.js +37 -28
- package/dist/cjs/src/coinspot.js +12 -11
- package/dist/cjs/src/cryptocom.js +40 -202
- package/dist/cjs/src/currencycom.js +32 -25
- package/dist/cjs/src/delta.js +34 -28
- package/dist/cjs/src/deribit.js +39 -36
- package/dist/cjs/src/digifinex.js +64 -44
- package/dist/cjs/src/exmo.js +29 -27
- package/dist/cjs/src/gate.js +67 -53
- package/dist/cjs/src/gemini.js +23 -20
- package/dist/cjs/src/hitbtc.js +65 -56
- package/dist/cjs/src/hollaex.js +30 -27
- package/dist/cjs/src/htx.js +132 -143
- package/dist/cjs/src/huobijp.js +22 -20
- package/dist/cjs/src/idex.js +22 -21
- package/dist/cjs/src/independentreserve.js +15 -14
- package/dist/cjs/src/indodax.js +30 -26
- package/dist/cjs/src/kraken.js +29 -27
- package/dist/cjs/src/krakenfutures.js +29 -22
- package/dist/cjs/src/kucoin.js +48 -43
- package/dist/cjs/src/kucoinfutures.js +33 -28
- package/dist/cjs/src/kuna.js +25 -24
- package/dist/cjs/src/latoken.js +24 -22
- package/dist/cjs/src/lbank.js +45 -30
- package/dist/cjs/src/luno.js +22 -19
- package/dist/cjs/src/lykke.js +19 -17
- package/dist/cjs/src/mercado.js +30 -19
- package/dist/cjs/src/mexc.js +60 -49
- package/dist/cjs/src/ndax.js +23 -22
- package/dist/cjs/src/novadax.js +23 -22
- package/dist/cjs/src/oceanex.js +22 -19
- package/dist/cjs/src/okcoin.js +29 -23
- package/dist/cjs/src/okx.js +87 -82
- package/dist/cjs/src/p2b.js +79 -82
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +63 -40
- package/dist/cjs/src/poloniex.js +22 -22
- package/dist/cjs/src/poloniexfutures.js +23 -19
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +4 -4
- package/dist/cjs/src/pro/binance.js +16 -16
- package/dist/cjs/src/pro/bingx.js +1 -1
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +6 -6
- package/dist/cjs/src/pro/bitget.js +7 -7
- package/dist/cjs/src/pro/bitmart.js +7 -5
- package/dist/cjs/src/pro/bitmex.js +6 -6
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +6 -6
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +6 -4
- package/dist/cjs/src/pro/bittrex.js +6 -6
- package/dist/cjs/src/pro/bitvavo.js +11 -7
- package/dist/cjs/src/pro/blockchaincom.js +8 -8
- package/dist/cjs/src/pro/bybit.js +7 -7
- package/dist/cjs/src/pro/cex.js +13 -9
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +11 -10
- package/dist/cjs/src/pro/coinex.js +7 -9
- package/dist/cjs/src/pro/cryptocom.js +9 -9
- package/dist/cjs/src/pro/currencycom.js +4 -4
- package/dist/cjs/src/pro/deribit.js +6 -6
- package/dist/cjs/src/pro/exmo.js +12 -14
- package/dist/cjs/src/pro/gate.js +7 -7
- package/dist/cjs/src/pro/gemini.js +3 -3
- package/dist/cjs/src/pro/hitbtc.js +263 -4
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +6 -6
- package/dist/cjs/src/pro/huobijp.js +3 -3
- package/dist/cjs/src/pro/idex.js +4 -4
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +10 -10
- package/dist/cjs/src/pro/krakenfutures.js +41 -17
- package/dist/cjs/src/pro/kucoin.js +7 -7
- package/dist/cjs/src/pro/kucoinfutures.js +8 -6
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +6 -6
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okcoin.js +5 -5
- package/dist/cjs/src/pro/okx.js +12 -12
- package/dist/cjs/src/pro/phemex.js +6 -6
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +8 -8
- package/dist/cjs/src/pro/whitebit.js +12 -8
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +28 -23
- package/dist/cjs/src/tidex.js +16 -15
- package/dist/cjs/src/timex.js +19 -18
- package/dist/cjs/src/tokocrypto.js +27 -22
- package/dist/cjs/src/upbit.js +19 -19
- package/dist/cjs/src/wavesexchange.js +22 -19
- package/dist/cjs/src/wazirx.js +24 -17
- package/dist/cjs/src/whitebit.js +33 -27
- package/dist/cjs/src/woo.js +44 -34
- package/dist/cjs/src/yobit.js +25 -20
- package/dist/cjs/src/zaif.js +9 -9
- package/dist/cjs/src/zonda.js +18 -17
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bybit.d.ts +1 -0
- package/js/src/abstract/cryptocom.d.ts +0 -20
- package/js/src/ace.js +18 -14
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +35 -29
- package/js/src/base/Exchange.d.ts +37 -34
- package/js/src/base/Exchange.js +39 -26
- package/js/src/base/Precise.d.ts +4 -4
- package/js/src/base/Precise.js +1 -3
- package/js/src/base/functions/type.d.ts +25 -25
- package/js/src/base/types.d.ts +21 -14
- package/js/src/bigone.js +25 -21
- package/js/src/binance.d.ts +2 -2
- package/js/src/binance.js +97 -76
- package/js/src/bingx.js +63 -44
- package/js/src/bit2c.js +19 -16
- package/js/src/bitbank.js +16 -15
- package/js/src/bitbns.js +28 -18
- package/js/src/bitfinex.js +23 -21
- package/js/src/bitfinex2.js +32 -28
- package/js/src/bitflyer.js +28 -20
- package/js/src/bitforex.js +26 -19
- package/js/src/bitget.d.ts +25 -3
- package/js/src/bitget.js +184 -147
- package/js/src/bithumb.js +23 -16
- package/js/src/bitmart.d.ts +1 -1
- package/js/src/bitmart.js +106 -85
- package/js/src/bitmex.d.ts +2 -2
- package/js/src/bitmex.js +104 -64
- package/js/src/bitopro.js +38 -26
- package/js/src/bitpanda.js +24 -23
- package/js/src/bitrue.js +33 -24
- package/js/src/bitso.js +24 -23
- package/js/src/bitstamp.d.ts +2 -2
- package/js/src/bitstamp.js +24 -23
- package/js/src/bittrex.js +30 -29
- package/js/src/bitvavo.js +38 -30
- package/js/src/bl3p.js +11 -10
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +18 -17
- package/js/src/btcbox.js +13 -12
- package/js/src/btcmarkets.js +20 -19
- package/js/src/btcturk.js +14 -13
- package/js/src/bybit.d.ts +1 -1
- package/js/src/bybit.js +84 -54
- package/js/src/cex.js +16 -14
- package/js/src/coinbase.js +29 -27
- package/js/src/coinbasepro.js +27 -25
- package/js/src/coincheck.js +15 -14
- package/js/src/coinex.d.ts +1 -1
- package/js/src/coinex.js +100 -77
- package/js/src/coinlist.js +28 -27
- package/js/src/coinmate.js +21 -18
- package/js/src/coinone.js +21 -16
- package/js/src/coinsph.js +37 -28
- package/js/src/coinspot.js +12 -11
- package/js/src/cryptocom.d.ts +0 -23
- package/js/src/cryptocom.js +40 -202
- package/js/src/currencycom.js +32 -25
- package/js/src/delta.js +35 -29
- package/js/src/deribit.js +39 -36
- package/js/src/digifinex.d.ts +2 -2
- package/js/src/digifinex.js +65 -45
- package/js/src/exmo.js +29 -27
- package/js/src/gate.d.ts +1 -1
- package/js/src/gate.js +67 -53
- package/js/src/gemini.js +23 -20
- package/js/src/hitbtc.d.ts +1 -0
- package/js/src/hitbtc.js +65 -56
- package/js/src/hollaex.js +30 -27
- package/js/src/htx.d.ts +11 -3
- package/js/src/htx.js +132 -143
- package/js/src/huobijp.js +23 -21
- package/js/src/idex.js +22 -21
- package/js/src/independentreserve.js +15 -14
- package/js/src/indodax.js +30 -26
- package/js/src/kraken.js +29 -27
- package/js/src/krakenfutures.js +29 -22
- package/js/src/kucoin.d.ts +1 -1
- package/js/src/kucoin.js +48 -43
- package/js/src/kucoinfutures.js +33 -28
- package/js/src/kuna.js +25 -24
- package/js/src/latoken.js +25 -23
- package/js/src/lbank.js +46 -31
- package/js/src/luno.js +22 -19
- package/js/src/lykke.js +19 -17
- package/js/src/mercado.js +30 -19
- package/js/src/mexc.d.ts +1 -1
- package/js/src/mexc.js +60 -49
- package/js/src/ndax.js +23 -22
- package/js/src/novadax.js +23 -22
- package/js/src/oceanex.js +22 -19
- package/js/src/okcoin.js +29 -23
- package/js/src/okx.d.ts +2 -2
- package/js/src/okx.js +87 -82
- package/js/src/p2b.d.ts +8 -7
- package/js/src/p2b.js +79 -81
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +63 -40
- package/js/src/poloniex.js +22 -22
- package/js/src/poloniexfutures.js +23 -19
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +4 -4
- package/js/src/pro/binance.js +16 -16
- package/js/src/pro/bingx.js +1 -1
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.d.ts +1 -1
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +7 -7
- package/js/src/pro/bitmart.js +7 -5
- package/js/src/pro/bitmex.js +6 -6
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +6 -6
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +7 -5
- package/js/src/pro/bittrex.js +6 -6
- package/js/src/pro/bitvavo.js +12 -8
- package/js/src/pro/blockchaincom.js +8 -8
- package/js/src/pro/bybit.js +7 -7
- package/js/src/pro/cex.js +14 -10
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +12 -11
- package/js/src/pro/coinex.js +7 -9
- package/js/src/pro/cryptocom.js +9 -9
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +12 -14
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.d.ts +8 -1
- package/js/src/pro/hitbtc.js +264 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +6 -6
- package/js/src/pro/huobijp.js +3 -3
- package/js/src/pro/idex.js +4 -4
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +10 -10
- package/js/src/pro/krakenfutures.d.ts +1 -0
- package/js/src/pro/krakenfutures.js +42 -18
- package/js/src/pro/kucoin.js +7 -7
- package/js/src/pro/kucoinfutures.js +8 -6
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.js +6 -6
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okcoin.js +5 -5
- package/js/src/pro/okx.js +12 -12
- package/js/src/pro/phemex.js +6 -6
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +8 -8
- package/js/src/pro/whitebit.js +13 -9
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +29 -24
- package/js/src/tidex.js +16 -15
- package/js/src/timex.js +19 -18
- package/js/src/tokocrypto.js +28 -23
- package/js/src/upbit.js +19 -19
- package/js/src/wavesexchange.js +23 -20
- package/js/src/wazirx.js +25 -18
- package/js/src/whitebit.js +33 -27
- package/js/src/woo.js +45 -35
- package/js/src/yobit.js +25 -20
- package/js/src/zaif.js +9 -9
- package/js/src/zonda.js +18 -17
- package/package.json +1 -1
package/js/src/bittrex.js
CHANGED
|
@@ -44,12 +44,11 @@ export default class bittrex extends Exchange {
|
|
|
44
44
|
'createStopOrder': true,
|
|
45
45
|
'fetchBalance': true,
|
|
46
46
|
'fetchBidsAsks': true,
|
|
47
|
-
'fetchBorrowRate': false,
|
|
48
47
|
'fetchBorrowRateHistories': false,
|
|
49
48
|
'fetchBorrowRateHistory': false,
|
|
50
|
-
'fetchBorrowRates': false,
|
|
51
|
-
'fetchBorrowRatesPerSymbol': false,
|
|
52
49
|
'fetchClosedOrders': true,
|
|
50
|
+
'fetchCrossBorrowRate': false,
|
|
51
|
+
'fetchCrossBorrowRates': false,
|
|
53
52
|
'fetchCurrencies': true,
|
|
54
53
|
'fetchDeposit': true,
|
|
55
54
|
'fetchDepositAddress': true,
|
|
@@ -61,6 +60,8 @@ export default class bittrex extends Exchange {
|
|
|
61
60
|
'fetchFundingRateHistory': false,
|
|
62
61
|
'fetchFundingRates': false,
|
|
63
62
|
'fetchIndexOHLCV': false,
|
|
63
|
+
'fetchIsolatedBorrowRate': false,
|
|
64
|
+
'fetchIsolatedBorrowRates': false,
|
|
64
65
|
'fetchLeverage': false,
|
|
65
66
|
'fetchLeverageTiers': false,
|
|
66
67
|
'fetchMarginMode': false,
|
|
@@ -394,7 +395,7 @@ export default class bittrex extends Exchange {
|
|
|
394
395
|
* @name bittrex#fetchBalance
|
|
395
396
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
396
397
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
397
|
-
* @returns {object} a [balance structure]{@link https://
|
|
398
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
398
399
|
*/
|
|
399
400
|
await this.loadMarkets();
|
|
400
401
|
const response = await this.privateGetBalances(params);
|
|
@@ -408,7 +409,7 @@ export default class bittrex extends Exchange {
|
|
|
408
409
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
409
410
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
410
411
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
411
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
412
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
412
413
|
*/
|
|
413
414
|
await this.loadMarkets();
|
|
414
415
|
const market = this.market(symbol);
|
|
@@ -573,7 +574,7 @@ export default class bittrex extends Exchange {
|
|
|
573
574
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
574
575
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
575
576
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
576
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
577
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
577
578
|
*/
|
|
578
579
|
await this.loadMarkets();
|
|
579
580
|
symbols = this.marketSymbols(symbols);
|
|
@@ -622,7 +623,7 @@ export default class bittrex extends Exchange {
|
|
|
622
623
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
623
624
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
624
625
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
625
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
626
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
626
627
|
*/
|
|
627
628
|
await this.loadMarkets();
|
|
628
629
|
const market = this.market(symbol);
|
|
@@ -666,7 +667,7 @@ export default class bittrex extends Exchange {
|
|
|
666
667
|
* @description fetches the bid and ask price and volume for multiple markets
|
|
667
668
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
668
669
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
669
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
670
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
670
671
|
*/
|
|
671
672
|
await this.loadMarkets();
|
|
672
673
|
const response = await this.publicGetMarketsTickers(params);
|
|
@@ -789,7 +790,7 @@ export default class bittrex extends Exchange {
|
|
|
789
790
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
790
791
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
791
792
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
792
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
793
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
793
794
|
*/
|
|
794
795
|
await this.loadMarkets();
|
|
795
796
|
const market = this.market(symbol);
|
|
@@ -817,7 +818,7 @@ export default class bittrex extends Exchange {
|
|
|
817
818
|
* @description fetch the trading fees for a market
|
|
818
819
|
* @param {string} symbol unified market symbol
|
|
819
820
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
820
|
-
* @returns {object} a [fee structure]{@link https://
|
|
821
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
821
822
|
*/
|
|
822
823
|
await this.loadMarkets();
|
|
823
824
|
const market = this.market(symbol);
|
|
@@ -840,7 +841,7 @@ export default class bittrex extends Exchange {
|
|
|
840
841
|
* @name bittrex#fetchTradingFees
|
|
841
842
|
* @description fetch the trading fees for multiple markets
|
|
842
843
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
843
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
844
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
844
845
|
*/
|
|
845
846
|
await this.loadMarkets();
|
|
846
847
|
const response = await this.privateGetAccountFeesTrading(params);
|
|
@@ -977,7 +978,7 @@ export default class bittrex extends Exchange {
|
|
|
977
978
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
978
979
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
979
980
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
980
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
981
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
981
982
|
*/
|
|
982
983
|
await this.loadMarkets();
|
|
983
984
|
const request = {};
|
|
@@ -1048,7 +1049,7 @@ export default class bittrex extends Exchange {
|
|
|
1048
1049
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1049
1050
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1050
1051
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1051
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1052
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1052
1053
|
*/
|
|
1053
1054
|
await this.loadMarkets();
|
|
1054
1055
|
const request = {
|
|
@@ -1072,7 +1073,7 @@ export default class bittrex extends Exchange {
|
|
|
1072
1073
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1073
1074
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1074
1075
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1075
|
-
* @returns {object} an [order structure]{@link https://
|
|
1076
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1076
1077
|
*/
|
|
1077
1078
|
// A ceiling order is a market or limit order that allows you to specify
|
|
1078
1079
|
// the amount of quote currency you want to spend (or receive, if selling)
|
|
@@ -1262,7 +1263,7 @@ export default class bittrex extends Exchange {
|
|
|
1262
1263
|
* @param {string} id order id
|
|
1263
1264
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1264
1265
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1265
|
-
* @returns {object} An [order structure]{@link https://
|
|
1266
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1266
1267
|
*/
|
|
1267
1268
|
await this.loadMarkets();
|
|
1268
1269
|
const stop = this.safeValue(params, 'stop');
|
|
@@ -1343,7 +1344,7 @@ export default class bittrex extends Exchange {
|
|
|
1343
1344
|
* @description cancel all open orders
|
|
1344
1345
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1345
1346
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1346
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1347
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1347
1348
|
*/
|
|
1348
1349
|
await this.loadMarkets();
|
|
1349
1350
|
const request = {};
|
|
@@ -1392,7 +1393,7 @@ export default class bittrex extends Exchange {
|
|
|
1392
1393
|
* @param {string} id deposit id
|
|
1393
1394
|
* @param {string} code filter by currency code
|
|
1394
1395
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1395
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1396
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1396
1397
|
*/
|
|
1397
1398
|
await this.loadMarkets();
|
|
1398
1399
|
const request = {
|
|
@@ -1418,7 +1419,7 @@ export default class bittrex extends Exchange {
|
|
|
1418
1419
|
* @param {int} [params.endDate] Filters out result after this timestamp. Uses ISO-8602 format.
|
|
1419
1420
|
* @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.
|
|
1420
1421
|
* @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.
|
|
1421
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1422
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1422
1423
|
*/
|
|
1423
1424
|
await this.loadMarkets();
|
|
1424
1425
|
// https://support.bittrex.com/hc/en-us/articles/115003723911
|
|
@@ -1464,7 +1465,7 @@ export default class bittrex extends Exchange {
|
|
|
1464
1465
|
* @param {int} [params.endDate] Filters out result after this timestamp. Uses ISO-8602 format.
|
|
1465
1466
|
* @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.
|
|
1466
1467
|
* @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.
|
|
1467
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1468
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1468
1469
|
*/
|
|
1469
1470
|
await this.loadMarkets();
|
|
1470
1471
|
return this.fetchDeposits(code, since, limit, this.extend(params, { 'status': 'pending' }));
|
|
@@ -1477,7 +1478,7 @@ export default class bittrex extends Exchange {
|
|
|
1477
1478
|
* @param {string} id withdrawal id
|
|
1478
1479
|
* @param {string} code filter by currency code
|
|
1479
1480
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1480
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1481
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1481
1482
|
*/
|
|
1482
1483
|
await this.loadMarkets();
|
|
1483
1484
|
const request = {
|
|
@@ -1503,7 +1504,7 @@ export default class bittrex extends Exchange {
|
|
|
1503
1504
|
* @param {int} [params.endDate] Filters out result after this timestamp. Uses ISO-8602 format.
|
|
1504
1505
|
* @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.
|
|
1505
1506
|
* @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.
|
|
1506
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1507
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1507
1508
|
*/
|
|
1508
1509
|
await this.loadMarkets();
|
|
1509
1510
|
// https://support.bittrex.com/hc/en-us/articles/115003723911
|
|
@@ -1546,7 +1547,7 @@ export default class bittrex extends Exchange {
|
|
|
1546
1547
|
* @param {int} [params.endDate] Filters out result after this timestamp. Uses ISO-8602 format.
|
|
1547
1548
|
* @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.
|
|
1548
1549
|
* @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.
|
|
1549
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1550
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1550
1551
|
*/
|
|
1551
1552
|
await this.loadMarkets();
|
|
1552
1553
|
return this.fetchWithdrawals(code, since, limit, this.extend(params, { 'status': 'pending' }));
|
|
@@ -1844,7 +1845,7 @@ export default class bittrex extends Exchange {
|
|
|
1844
1845
|
* @description fetches information on an order made by the user
|
|
1845
1846
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1846
1847
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1847
|
-
* @returns {object} An [order structure]{@link https://
|
|
1848
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1848
1849
|
*/
|
|
1849
1850
|
await this.loadMarkets();
|
|
1850
1851
|
const stop = this.safeValue(params, 'stop');
|
|
@@ -1887,7 +1888,7 @@ export default class bittrex extends Exchange {
|
|
|
1887
1888
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1888
1889
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1889
1890
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1890
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1891
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1891
1892
|
*/
|
|
1892
1893
|
await this.loadMarkets();
|
|
1893
1894
|
const request = {};
|
|
@@ -1914,7 +1915,7 @@ export default class bittrex extends Exchange {
|
|
|
1914
1915
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1915
1916
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1916
1917
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1917
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1918
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1918
1919
|
*/
|
|
1919
1920
|
await this.loadMarkets();
|
|
1920
1921
|
const stop = this.safeValue(params, 'stop');
|
|
@@ -1995,7 +1996,7 @@ export default class bittrex extends Exchange {
|
|
|
1995
1996
|
* @description create a currency deposit address
|
|
1996
1997
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1997
1998
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
1998
|
-
* @returns {object} an [address structure]{@link https://
|
|
1999
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1999
2000
|
*/
|
|
2000
2001
|
await this.loadMarkets();
|
|
2001
2002
|
const currency = this.currency(code);
|
|
@@ -2032,7 +2033,7 @@ export default class bittrex extends Exchange {
|
|
|
2032
2033
|
* @description fetch the deposit address for a currency associated with this account
|
|
2033
2034
|
* @param {string} code unified currency code
|
|
2034
2035
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
2035
|
-
* @returns {object} an [address structure]{@link https://
|
|
2036
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2036
2037
|
*/
|
|
2037
2038
|
await this.loadMarkets();
|
|
2038
2039
|
const currency = this.currency(code);
|
|
@@ -2103,7 +2104,7 @@ export default class bittrex extends Exchange {
|
|
|
2103
2104
|
* @description fetch deposit and withdraw fees
|
|
2104
2105
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2105
2106
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
2106
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
2107
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2107
2108
|
*/
|
|
2108
2109
|
await this.loadMarkets();
|
|
2109
2110
|
const response = await this.publicGetCurrencies(params);
|
|
@@ -2141,7 +2142,7 @@ export default class bittrex extends Exchange {
|
|
|
2141
2142
|
* @param {string} address the address to withdraw to
|
|
2142
2143
|
* @param {string} tag
|
|
2143
2144
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
2144
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2145
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2145
2146
|
*/
|
|
2146
2147
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
2147
2148
|
this.checkAddress(address);
|
package/js/src/bitvavo.js
CHANGED
|
@@ -42,11 +42,10 @@ export default class bitvavo extends Exchange {
|
|
|
42
42
|
'createStopOrder': true,
|
|
43
43
|
'editOrder': true,
|
|
44
44
|
'fetchBalance': true,
|
|
45
|
-
'fetchBorrowRate': false,
|
|
46
45
|
'fetchBorrowRateHistories': false,
|
|
47
46
|
'fetchBorrowRateHistory': false,
|
|
48
|
-
'
|
|
49
|
-
'
|
|
47
|
+
'fetchCrossBorrowRate': false,
|
|
48
|
+
'fetchCrossBorrowRates': false,
|
|
50
49
|
'fetchCurrencies': true,
|
|
51
50
|
'fetchDepositAddress': true,
|
|
52
51
|
'fetchDeposits': true,
|
|
@@ -57,6 +56,8 @@ export default class bitvavo extends Exchange {
|
|
|
57
56
|
'fetchFundingRateHistory': false,
|
|
58
57
|
'fetchFundingRates': false,
|
|
59
58
|
'fetchIndexOHLCV': false,
|
|
59
|
+
'fetchIsolatedBorrowRate': false,
|
|
60
|
+
'fetchIsolatedBorrowRates': false,
|
|
60
61
|
'fetchLeverage': false,
|
|
61
62
|
'fetchLeverageTiers': false,
|
|
62
63
|
'fetchMarginMode': false,
|
|
@@ -315,11 +316,6 @@ export default class bitvavo extends Exchange {
|
|
|
315
316
|
* @returns {object[]} an array of objects representing market data
|
|
316
317
|
*/
|
|
317
318
|
const response = await this.publicGetMarkets(params);
|
|
318
|
-
let currencies = this.currencies;
|
|
319
|
-
if (this.currencies === undefined) {
|
|
320
|
-
currencies = await this.fetchCurrencies();
|
|
321
|
-
}
|
|
322
|
-
const currenciesById = this.indexBy(currencies, 'id');
|
|
323
319
|
//
|
|
324
320
|
// [
|
|
325
321
|
// {
|
|
@@ -334,6 +330,8 @@ export default class bitvavo extends Exchange {
|
|
|
334
330
|
// }
|
|
335
331
|
// ]
|
|
336
332
|
//
|
|
333
|
+
const currencies = this.currencies;
|
|
334
|
+
const currenciesById = this.indexBy(currencies, 'id');
|
|
337
335
|
const result = [];
|
|
338
336
|
const fees = this.fees;
|
|
339
337
|
for (let i = 0; i < response.length; i++) {
|
|
@@ -505,6 +503,8 @@ export default class bitvavo extends Exchange {
|
|
|
505
503
|
},
|
|
506
504
|
};
|
|
507
505
|
}
|
|
506
|
+
// set currencies here to avoid calling publicGetAssets twice
|
|
507
|
+
this.currencies = this.deepExtend(this.currencies, result);
|
|
508
508
|
return result;
|
|
509
509
|
}
|
|
510
510
|
async fetchTicker(symbol, params = {}) {
|
|
@@ -515,7 +515,7 @@ export default class bitvavo extends Exchange {
|
|
|
515
515
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
516
516
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
517
517
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
518
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
518
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
519
519
|
*/
|
|
520
520
|
await this.loadMarkets();
|
|
521
521
|
const market = this.market(symbol);
|
|
@@ -597,7 +597,7 @@ export default class bitvavo extends Exchange {
|
|
|
597
597
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
598
598
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
599
599
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
600
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
600
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
601
601
|
*/
|
|
602
602
|
await this.loadMarkets();
|
|
603
603
|
const response = await this.publicGetTicker24h(params);
|
|
@@ -633,7 +633,7 @@ export default class bitvavo extends Exchange {
|
|
|
633
633
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
634
634
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
635
635
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
636
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
636
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
637
637
|
*/
|
|
638
638
|
await this.loadMarkets();
|
|
639
639
|
const market = this.market(symbol);
|
|
@@ -773,7 +773,7 @@ export default class bitvavo extends Exchange {
|
|
|
773
773
|
* @name bitvavo#fetchTradingFees
|
|
774
774
|
* @description fetch the trading fees for multiple markets
|
|
775
775
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
776
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
776
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
777
777
|
*/
|
|
778
778
|
await this.loadMarkets();
|
|
779
779
|
const response = await this.privateGetAccount(params);
|
|
@@ -812,7 +812,7 @@ export default class bitvavo extends Exchange {
|
|
|
812
812
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
813
813
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
814
814
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
815
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
815
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
816
816
|
*/
|
|
817
817
|
await this.loadMarkets();
|
|
818
818
|
const market = this.market(symbol);
|
|
@@ -938,7 +938,7 @@ export default class bitvavo extends Exchange {
|
|
|
938
938
|
* @name bitvavo#fetchBalance
|
|
939
939
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
940
940
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
941
|
-
* @returns {object} a [balance structure]{@link https://
|
|
941
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
942
942
|
*/
|
|
943
943
|
await this.loadMarkets();
|
|
944
944
|
const response = await this.privateGetBalance(params);
|
|
@@ -960,7 +960,7 @@ export default class bitvavo extends Exchange {
|
|
|
960
960
|
* @description fetch the deposit address for a currency associated with this account
|
|
961
961
|
* @param {string} code unified currency code
|
|
962
962
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
963
|
-
* @returns {object} an [address structure]{@link https://
|
|
963
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
964
964
|
*/
|
|
965
965
|
await this.loadMarkets();
|
|
966
966
|
const currency = this.currency(code);
|
|
@@ -1008,7 +1008,7 @@ export default class bitvavo extends Exchange {
|
|
|
1008
1008
|
* @param {string} [params.selfTradePrevention] "decrementAndCancel", "cancelOldest", "cancelNewest", "cancelBoth"
|
|
1009
1009
|
* @param {bool} [params.disableMarketProtection] don't cancel if the next fill price is 10% worse than the best fill price
|
|
1010
1010
|
* @param {bool} [params.responseRequired] Set this to 'false' when only an acknowledgement of success or failure is required, this is faster.
|
|
1011
|
-
* @returns {object} an [order structure]{@link https://
|
|
1011
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1012
1012
|
*/
|
|
1013
1013
|
await this.loadMarkets();
|
|
1014
1014
|
const market = this.market(symbol);
|
|
@@ -1151,9 +1151,11 @@ export default class bitvavo extends Exchange {
|
|
|
1151
1151
|
* @param {string} id order id
|
|
1152
1152
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1153
1153
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1154
|
-
* @returns {object} An [order structure]{@link https://
|
|
1154
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1155
1155
|
*/
|
|
1156
|
-
|
|
1156
|
+
if (symbol === undefined) {
|
|
1157
|
+
throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
1158
|
+
}
|
|
1157
1159
|
await this.loadMarkets();
|
|
1158
1160
|
const market = this.market(symbol);
|
|
1159
1161
|
const request = {
|
|
@@ -1175,7 +1177,7 @@ export default class bitvavo extends Exchange {
|
|
|
1175
1177
|
* @description cancel all open orders
|
|
1176
1178
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1177
1179
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1178
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1180
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1179
1181
|
*/
|
|
1180
1182
|
await this.loadMarkets();
|
|
1181
1183
|
const request = {};
|
|
@@ -1201,9 +1203,11 @@ export default class bitvavo extends Exchange {
|
|
|
1201
1203
|
* @description fetches information on an order made by the user
|
|
1202
1204
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1203
1205
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1204
|
-
* @returns {object} An [order structure]{@link https://
|
|
1206
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1205
1207
|
*/
|
|
1206
|
-
|
|
1208
|
+
if (symbol === undefined) {
|
|
1209
|
+
throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
1210
|
+
}
|
|
1207
1211
|
await this.loadMarkets();
|
|
1208
1212
|
const market = this.market(symbol);
|
|
1209
1213
|
const request = {
|
|
@@ -1259,9 +1263,11 @@ export default class bitvavo extends Exchange {
|
|
|
1259
1263
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1260
1264
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
1261
1265
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1262
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1266
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1263
1267
|
*/
|
|
1264
|
-
|
|
1268
|
+
if (symbol === undefined) {
|
|
1269
|
+
throw new ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
1270
|
+
}
|
|
1265
1271
|
await this.loadMarkets();
|
|
1266
1272
|
let paginate = false;
|
|
1267
1273
|
[paginate, params] = this.handleOptionAndParams(params, 'fetchOrders', 'paginate');
|
|
@@ -1332,7 +1338,7 @@ export default class bitvavo extends Exchange {
|
|
|
1332
1338
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1333
1339
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1334
1340
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1335
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1341
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1336
1342
|
*/
|
|
1337
1343
|
await this.loadMarkets();
|
|
1338
1344
|
const request = {
|
|
@@ -1516,9 +1522,11 @@ export default class bitvavo extends Exchange {
|
|
|
1516
1522
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1517
1523
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1518
1524
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
1519
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1525
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1520
1526
|
*/
|
|
1521
|
-
|
|
1527
|
+
if (symbol === undefined) {
|
|
1528
|
+
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
1529
|
+
}
|
|
1522
1530
|
await this.loadMarkets();
|
|
1523
1531
|
let paginate = false;
|
|
1524
1532
|
[paginate, params] = this.handleOptionAndParams(params, 'fetchMyTrades', 'paginate');
|
|
@@ -1571,7 +1579,7 @@ export default class bitvavo extends Exchange {
|
|
|
1571
1579
|
* @param {string} address the address to withdraw to
|
|
1572
1580
|
* @param {string} tag
|
|
1573
1581
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1574
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1582
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1575
1583
|
*/
|
|
1576
1584
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1577
1585
|
this.checkAddress(address);
|
|
@@ -1606,7 +1614,7 @@ export default class bitvavo extends Exchange {
|
|
|
1606
1614
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1607
1615
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1608
1616
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1609
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1617
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1610
1618
|
*/
|
|
1611
1619
|
await this.loadMarkets();
|
|
1612
1620
|
const request = {
|
|
@@ -1652,7 +1660,7 @@ export default class bitvavo extends Exchange {
|
|
|
1652
1660
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1653
1661
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1654
1662
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1655
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1663
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1656
1664
|
*/
|
|
1657
1665
|
await this.loadMarkets();
|
|
1658
1666
|
const request = {
|
|
@@ -1833,7 +1841,7 @@ export default class bitvavo extends Exchange {
|
|
|
1833
1841
|
* @see https://docs.bitvavo.com/#tag/General/paths/~1assets/get
|
|
1834
1842
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1835
1843
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1836
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
1844
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1837
1845
|
*/
|
|
1838
1846
|
await this.loadMarkets();
|
|
1839
1847
|
const response = await this.publicGetAssets(params);
|
package/js/src/bl3p.js
CHANGED
|
@@ -39,16 +39,17 @@ export default class bl3p extends Exchange {
|
|
|
39
39
|
'createStopMarketOrder': false,
|
|
40
40
|
'createStopOrder': false,
|
|
41
41
|
'fetchBalance': true,
|
|
42
|
-
'fetchBorrowRate': false,
|
|
43
42
|
'fetchBorrowRateHistories': false,
|
|
44
43
|
'fetchBorrowRateHistory': false,
|
|
45
|
-
'
|
|
46
|
-
'
|
|
44
|
+
'fetchCrossBorrowRate': false,
|
|
45
|
+
'fetchCrossBorrowRates': false,
|
|
47
46
|
'fetchFundingHistory': false,
|
|
48
47
|
'fetchFundingRate': false,
|
|
49
48
|
'fetchFundingRateHistory': false,
|
|
50
49
|
'fetchFundingRates': false,
|
|
51
50
|
'fetchIndexOHLCV': false,
|
|
51
|
+
'fetchIsolatedBorrowRate': false,
|
|
52
|
+
'fetchIsolatedBorrowRates': false,
|
|
52
53
|
'fetchLeverage': false,
|
|
53
54
|
'fetchMarginMode': false,
|
|
54
55
|
'fetchMarkOHLCV': false,
|
|
@@ -140,7 +141,7 @@ export default class bl3p extends Exchange {
|
|
|
140
141
|
* @name bl3p#fetchBalance
|
|
141
142
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
142
143
|
* @param {object} [params] extra parameters specific to the bl3p api endpoint
|
|
143
|
-
* @returns {object} a [balance structure]{@link https://
|
|
144
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
144
145
|
*/
|
|
145
146
|
await this.loadMarkets();
|
|
146
147
|
const response = await this.privatePostGENMKTMoneyInfo(params);
|
|
@@ -162,7 +163,7 @@ export default class bl3p extends Exchange {
|
|
|
162
163
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
163
164
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
164
165
|
* @param {object} [params] extra parameters specific to the bl3p api endpoint
|
|
165
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
166
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
166
167
|
*/
|
|
167
168
|
const market = this.market(symbol);
|
|
168
169
|
const request = {
|
|
@@ -222,7 +223,7 @@ export default class bl3p extends Exchange {
|
|
|
222
223
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
223
224
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
224
225
|
* @param {object} [params] extra parameters specific to the bl3p api endpoint
|
|
225
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
226
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
226
227
|
*/
|
|
227
228
|
const market = this.market(symbol);
|
|
228
229
|
const request = {
|
|
@@ -287,7 +288,7 @@ export default class bl3p extends Exchange {
|
|
|
287
288
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
288
289
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
289
290
|
* @param {object} [params] extra parameters specific to the bl3p api endpoint
|
|
290
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
291
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
291
292
|
*/
|
|
292
293
|
const market = this.market(symbol);
|
|
293
294
|
const response = await this.publicGetMarketTrades(this.extend({
|
|
@@ -316,7 +317,7 @@ export default class bl3p extends Exchange {
|
|
|
316
317
|
* @name bl3p#fetchTradingFees
|
|
317
318
|
* @description fetch the trading fees for multiple markets
|
|
318
319
|
* @param {object} [params] extra parameters specific to the bl3p api endpoint
|
|
319
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
320
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
320
321
|
*/
|
|
321
322
|
await this.loadMarkets();
|
|
322
323
|
const response = await this.privatePostGENMKTMoneyInfo(params);
|
|
@@ -381,7 +382,7 @@ export default class bl3p extends Exchange {
|
|
|
381
382
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
382
383
|
* @param {int} [params.amount_funds] maximal EUR amount to spend (*1e5)
|
|
383
384
|
* @param {string} [params.fee_currency] 'EUR' or 'BTC'
|
|
384
|
-
* @returns {object} an [order structure]{@link https://
|
|
385
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
385
386
|
*/
|
|
386
387
|
const market = this.market(symbol);
|
|
387
388
|
const amountString = this.numberToString(amount);
|
|
@@ -410,7 +411,7 @@ export default class bl3p extends Exchange {
|
|
|
410
411
|
* @param {string} id order id
|
|
411
412
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
412
413
|
* @param {object} [params] extra parameters specific to the bl3p api endpoint
|
|
413
|
-
* @returns {object} An [order structure]{@link https://
|
|
414
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
414
415
|
*/
|
|
415
416
|
const request = {
|
|
416
417
|
'order_id': id,
|