ccxt 4.0.74 → 4.0.76
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 +2635 -2383
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +11 -11
- package/dist/cjs/src/alpaca.js +7 -7
- package/dist/cjs/src/ascendex.js +25 -25
- package/dist/cjs/src/base/Exchange.js +4 -4
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +56 -56
- package/dist/cjs/src/bingx.js +85 -40
- package/dist/cjs/src/bit2c.js +12 -12
- package/dist/cjs/src/bitbank.js +13 -13
- package/dist/cjs/src/bitbns.js +14 -14
- package/dist/cjs/src/bitfinex.js +21 -21
- package/dist/cjs/src/bitfinex2.js +29 -29
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +11 -11
- package/dist/cjs/src/bitget.js +39 -39
- package/dist/cjs/src/bithumb.js +11 -11
- package/dist/cjs/src/bitmart.js +44 -31
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +21 -21
- package/dist/cjs/src/bitpanda.js +21 -21
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +21 -21
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bitstamp1.js +8 -8
- package/dist/cjs/src/bittrex.js +27 -27
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/bkex.js +21 -21
- package/dist/cjs/src/bl3p.js +8 -8
- package/dist/cjs/src/blockchaincom.js +21 -21
- package/dist/cjs/src/btcalpha.js +15 -15
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +17 -17
- package/dist/cjs/src/btctradeua.js +8 -8
- package/dist/cjs/src/btcturk.js +11 -11
- package/dist/cjs/src/bybit.js +153 -121
- package/dist/cjs/src/cex.js +14 -14
- package/dist/cjs/src/coinbase.js +23 -23
- package/dist/cjs/src/coinbasepro.js +24 -24
- package/dist/cjs/src/coincheck.js +12 -12
- package/dist/cjs/src/coinex.js +87 -41
- package/dist/cjs/src/coinfalcon.js +16 -16
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +12 -12
- package/dist/cjs/src/coinsph.js +27 -22
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +29 -29
- package/dist/cjs/src/currencycom.js +20 -20
- package/dist/cjs/src/delta.js +25 -25
- package/dist/cjs/src/deribit.js +30 -30
- package/dist/cjs/src/digifinex.js +31 -31
- package/dist/cjs/src/exmo.js +26 -26
- package/dist/cjs/src/gate.js +38 -38
- package/dist/cjs/src/gemini.js +17 -17
- package/dist/cjs/src/hitbtc.js +34 -34
- package/dist/cjs/src/hollaex.js +23 -23
- package/dist/cjs/src/huobi.js +45 -45
- package/dist/cjs/src/huobijp.js +20 -20
- package/dist/cjs/src/idex.js +19 -19
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +27 -27
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +33 -33
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +12 -12
- package/dist/cjs/src/latoken.js +17 -17
- package/dist/cjs/src/lbank.js +12 -12
- package/dist/cjs/src/lbank2.js +23 -23
- package/dist/cjs/src/luno.js +16 -16
- package/dist/cjs/src/lykke.js +16 -16
- package/dist/cjs/src/mercado.js +12 -12
- package/dist/cjs/src/mexc.js +44 -42
- package/dist/cjs/src/ndax.js +20 -20
- package/dist/cjs/src/novadax.js +20 -20
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okcoin.js +21 -21
- package/dist/cjs/src/okx.js +52 -52
- package/dist/cjs/src/paymium.js +11 -11
- package/dist/cjs/src/phemex.js +26 -26
- package/dist/cjs/src/poloniex.js +237 -136
- package/dist/cjs/src/poloniexfutures.js +18 -18
- 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/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +6 -6
- package/dist/cjs/src/pro/bitget.js +6 -6
- package/dist/cjs/src/pro/bitmart.js +4 -4
- 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 +3 -3
- package/dist/cjs/src/pro/bittrex.js +6 -6
- package/dist/cjs/src/pro/bitvavo.js +5 -5
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/bybit.js +6 -6
- package/dist/cjs/src/pro/cex.js +7 -7
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +6 -6
- package/dist/cjs/src/pro/coinex.js +5 -5
- package/dist/cjs/src/pro/cryptocom.js +10 -10
- 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 +5 -5
- 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 +3 -3
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/huobi.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 +12 -12
- package/dist/cjs/src/pro/krakenfutures.js +7 -7
- package/dist/cjs/src/pro/kucoin.js +6 -6
- package/dist/cjs/src/pro/kucoinfutures.js +6 -5
- 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 +19 -18
- 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 +6 -6
- package/dist/cjs/src/pro/whitebit.js +6 -6
- package/dist/cjs/src/probit.js +19 -19
- package/dist/cjs/src/tidex.js +13 -13
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +18 -18
- package/dist/cjs/src/upbit.js +20 -20
- package/dist/cjs/src/wavesexchange.js +16 -16
- package/dist/cjs/src/wazirx.js +12 -12
- package/dist/cjs/src/whitebit.js +24 -24
- package/dist/cjs/src/woo.js +30 -24
- package/dist/cjs/src/yobit.js +16 -16
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +15 -15
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bingx.d.ts +2 -0
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/coinsph.d.ts +5 -0
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +11 -11
- package/js/src/alpaca.js +7 -7
- package/js/src/ascendex.js +25 -25
- package/js/src/base/Exchange.js +4 -4
- package/js/src/bigone.js +19 -19
- package/js/src/binance.js +56 -56
- package/js/src/bingx.d.ts +1 -0
- package/js/src/bingx.js +85 -40
- package/js/src/bit2c.js +12 -12
- package/js/src/bitbank.js +13 -13
- package/js/src/bitbns.js +14 -14
- package/js/src/bitfinex.js +21 -21
- package/js/src/bitfinex2.js +29 -29
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +11 -11
- package/js/src/bitget.js +39 -39
- package/js/src/bithumb.js +11 -11
- package/js/src/bitmart.js +44 -31
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.js +21 -21
- package/js/src/bitpanda.js +21 -21
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.js +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bitstamp1.js +8 -8
- package/js/src/bittrex.js +27 -27
- package/js/src/bitvavo.js +19 -19
- package/js/src/bkex.js +21 -21
- package/js/src/bl3p.js +8 -8
- package/js/src/blockchaincom.js +21 -21
- package/js/src/btcalpha.js +15 -15
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.js +17 -17
- package/js/src/btctradeua.js +8 -8
- package/js/src/btcturk.js +11 -11
- package/js/src/bybit.js +153 -121
- package/js/src/cex.js +14 -14
- package/js/src/coinbase.js +23 -23
- package/js/src/coinbasepro.js +24 -24
- package/js/src/coincheck.js +12 -12
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +87 -41
- package/js/src/coinfalcon.js +16 -16
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +12 -12
- package/js/src/coinsph.js +27 -22
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.js +29 -29
- package/js/src/currencycom.js +20 -20
- package/js/src/delta.js +25 -25
- package/js/src/deribit.js +30 -30
- package/js/src/digifinex.js +31 -31
- package/js/src/exmo.js +26 -26
- package/js/src/gate.js +38 -38
- package/js/src/gemini.js +17 -17
- package/js/src/hitbtc.js +34 -34
- package/js/src/hollaex.js +23 -23
- package/js/src/huobi.js +45 -45
- package/js/src/huobijp.js +20 -20
- package/js/src/idex.js +19 -19
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.js +27 -27
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +33 -33
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +12 -12
- package/js/src/latoken.js +17 -17
- package/js/src/lbank.js +12 -12
- package/js/src/lbank2.js +23 -23
- package/js/src/luno.js +16 -16
- package/js/src/lykke.js +16 -16
- package/js/src/mercado.js +12 -12
- package/js/src/mexc.js +45 -43
- package/js/src/ndax.js +20 -20
- package/js/src/novadax.js +20 -20
- package/js/src/oceanex.js +16 -16
- package/js/src/okcoin.js +21 -21
- package/js/src/okx.js +52 -52
- package/js/src/paymium.js +11 -11
- package/js/src/phemex.js +26 -26
- package/js/src/poloniex.d.ts +1 -1
- package/js/src/poloniex.js +237 -136
- package/js/src/poloniexfutures.js +18 -18
- 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/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +6 -6
- package/js/src/pro/bitmart.js +4 -4
- 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 +3 -3
- package/js/src/pro/bittrex.js +6 -6
- package/js/src/pro/bitvavo.js +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/bybit.js +6 -6
- package/js/src/pro/cex.js +7 -7
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +6 -6
- package/js/src/pro/coinex.js +5 -5
- package/js/src/pro/cryptocom.js +10 -10
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.js +3 -3
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/huobi.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 +12 -12
- package/js/src/pro/krakenfutures.js +7 -7
- package/js/src/pro/kucoin.js +6 -6
- package/js/src/pro/kucoinfutures.js +6 -5
- 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.d.ts +1 -1
- package/js/src/pro/okx.js +19 -18
- 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 +6 -6
- package/js/src/pro/whitebit.js +6 -6
- package/js/src/probit.js +19 -19
- package/js/src/tidex.js +13 -13
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.js +18 -18
- package/js/src/upbit.js +20 -20
- package/js/src/wavesexchange.js +16 -16
- package/js/src/wazirx.js +12 -12
- package/js/src/whitebit.js +24 -24
- package/js/src/woo.js +30 -24
- package/js/src/yobit.js +16 -16
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +15 -15
- package/package.json +1 -1
- package/skip-tests.json +2 -0
package/dist/cjs/src/bitbns.js
CHANGED
|
@@ -156,7 +156,7 @@ class bitbns extends bitbns$1 {
|
|
|
156
156
|
* @name bitbns#fetchStatus
|
|
157
157
|
* @description the latest known information on the availability of the exchange API
|
|
158
158
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
159
|
-
* @returns {object} a [status structure]{@link https://
|
|
159
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
160
160
|
*/
|
|
161
161
|
const response = await this.v1GetPlatformStatus(params);
|
|
162
162
|
//
|
|
@@ -288,7 +288,7 @@ class bitbns extends bitbns$1 {
|
|
|
288
288
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
289
289
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
290
290
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
291
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
291
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
292
292
|
*/
|
|
293
293
|
await this.loadMarkets();
|
|
294
294
|
const market = this.market(symbol);
|
|
@@ -384,7 +384,7 @@ class bitbns extends bitbns$1 {
|
|
|
384
384
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
385
385
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
386
386
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
387
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
387
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
388
388
|
*/
|
|
389
389
|
await this.loadMarkets();
|
|
390
390
|
const response = await this.wwwGetOrderFetchTickers(params);
|
|
@@ -456,7 +456,7 @@ class bitbns extends bitbns$1 {
|
|
|
456
456
|
* @name bitbns#fetchBalance
|
|
457
457
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
458
458
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
459
|
-
* @returns {object} a [balance structure]{@link https://
|
|
459
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
460
460
|
*/
|
|
461
461
|
await this.loadMarkets();
|
|
462
462
|
const response = await this.v1PostCurrentCoinBalanceEVERYTHING(params);
|
|
@@ -592,9 +592,9 @@ class bitbns extends bitbns$1 {
|
|
|
592
592
|
* @param {string} type 'market' or 'limit'
|
|
593
593
|
* @param {string} side 'buy' or 'sell'
|
|
594
594
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
595
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
595
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
596
596
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
597
|
-
* @returns {object} an [order structure]{@link https://
|
|
597
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
598
598
|
*/
|
|
599
599
|
if (type !== 'limit' && type !== 'market') {
|
|
600
600
|
throw new errors.ExchangeError(this.id + ' allows limit and market orders only');
|
|
@@ -643,7 +643,7 @@ class bitbns extends bitbns$1 {
|
|
|
643
643
|
* @param {string} id order id
|
|
644
644
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
645
645
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
646
|
-
* @returns {object} An [order structure]{@link https://
|
|
646
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
647
647
|
*/
|
|
648
648
|
if (symbol === undefined) {
|
|
649
649
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -666,7 +666,7 @@ class bitbns extends bitbns$1 {
|
|
|
666
666
|
* @description fetches information on an order made by the user
|
|
667
667
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
668
668
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
669
|
-
* @returns {object} An [order structure]{@link https://
|
|
669
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
670
670
|
*/
|
|
671
671
|
if (symbol === undefined) {
|
|
672
672
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -716,7 +716,7 @@ class bitbns extends bitbns$1 {
|
|
|
716
716
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
717
717
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
718
718
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
719
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
719
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
720
720
|
*/
|
|
721
721
|
if (symbol === undefined) {
|
|
722
722
|
throw new errors.ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -841,7 +841,7 @@ class bitbns extends bitbns$1 {
|
|
|
841
841
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
842
842
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
843
843
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
844
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
844
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
845
845
|
*/
|
|
846
846
|
if (symbol === undefined) {
|
|
847
847
|
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -909,7 +909,7 @@ class bitbns extends bitbns$1 {
|
|
|
909
909
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
910
910
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
911
911
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
912
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
912
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
913
913
|
*/
|
|
914
914
|
if (symbol === undefined) {
|
|
915
915
|
throw new errors.ArgumentsRequired(this.id + ' fetchTrades() requires a symbol argument');
|
|
@@ -939,7 +939,7 @@ class bitbns extends bitbns$1 {
|
|
|
939
939
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
940
940
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
941
941
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
942
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
942
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
943
943
|
*/
|
|
944
944
|
if (code === undefined) {
|
|
945
945
|
throw new errors.ArgumentsRequired(this.id + ' fetchDeposits() requires a currency code argument');
|
|
@@ -986,7 +986,7 @@ class bitbns extends bitbns$1 {
|
|
|
986
986
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
987
987
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
988
988
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
989
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
989
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
990
990
|
*/
|
|
991
991
|
if (code === undefined) {
|
|
992
992
|
throw new errors.ArgumentsRequired(this.id + ' fetchWithdrawals() requires a currency code argument');
|
|
@@ -1097,7 +1097,7 @@ class bitbns extends bitbns$1 {
|
|
|
1097
1097
|
* @description fetch the deposit address for a currency associated with this account
|
|
1098
1098
|
* @param {string} code unified currency code
|
|
1099
1099
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
1100
|
-
* @returns {object} an [address structure]{@link https://
|
|
1100
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1101
1101
|
*/
|
|
1102
1102
|
await this.loadMarkets();
|
|
1103
1103
|
const currency = this.currency(code);
|
package/dist/cjs/src/bitfinex.js
CHANGED
|
@@ -402,7 +402,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
402
402
|
* @see https://docs.bitfinex.com/v1/reference/rest-auth-fees
|
|
403
403
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
404
404
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
405
|
-
* @returns {object[]} a list of [fees structures]{@link https://
|
|
405
|
+
* @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
406
406
|
*/
|
|
407
407
|
await this.loadMarkets();
|
|
408
408
|
const result = {};
|
|
@@ -438,7 +438,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
438
438
|
* @see https://docs.bitfinex.com/v1/reference/rest-auth-fees
|
|
439
439
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
440
440
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
441
|
-
* @returns {object[]} a list of [fees structures]{@link https://
|
|
441
|
+
* @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
442
442
|
*/
|
|
443
443
|
await this.loadMarkets();
|
|
444
444
|
const response = await this.privatePostAccountFees(params);
|
|
@@ -476,7 +476,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
476
476
|
* @name bitfinex#fetchTradingFees
|
|
477
477
|
* @description fetch the trading fees for multiple markets
|
|
478
478
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
479
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
479
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
480
480
|
*/
|
|
481
481
|
await this.loadMarkets();
|
|
482
482
|
const response = await this.privatePostSummary(params);
|
|
@@ -681,7 +681,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
681
681
|
* @name bitfinex#fetchBalance
|
|
682
682
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
683
683
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
684
|
-
* @returns {object} a [balance structure]{@link https://
|
|
684
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
685
685
|
*/
|
|
686
686
|
await this.loadMarkets();
|
|
687
687
|
const accountsByType = this.safeValue(this.options, 'accountsByType', {});
|
|
@@ -742,7 +742,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
742
742
|
* @param {string} fromAccount account to transfer from
|
|
743
743
|
* @param {string} toAccount account to transfer to
|
|
744
744
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
745
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
745
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
746
746
|
*/
|
|
747
747
|
// transferring between derivatives wallet and regular wallet is not documented in their API
|
|
748
748
|
// however we support it in CCXT (from just looking at web inspector)
|
|
@@ -826,7 +826,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
826
826
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
827
827
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
828
828
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
829
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
829
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
830
830
|
*/
|
|
831
831
|
await this.loadMarkets();
|
|
832
832
|
const market = this.market(symbol);
|
|
@@ -847,7 +847,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
847
847
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
848
848
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
849
849
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
850
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
850
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
851
851
|
*/
|
|
852
852
|
await this.loadMarkets();
|
|
853
853
|
symbols = this.marketSymbols(symbols);
|
|
@@ -867,7 +867,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
867
867
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
868
868
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
869
869
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
870
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
870
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
871
871
|
*/
|
|
872
872
|
await this.loadMarkets();
|
|
873
873
|
const market = this.market(symbol);
|
|
@@ -993,7 +993,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
993
993
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
994
994
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
995
995
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
996
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
996
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
997
997
|
*/
|
|
998
998
|
await this.loadMarkets();
|
|
999
999
|
const market = this.market(symbol);
|
|
@@ -1016,7 +1016,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1016
1016
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1017
1017
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1018
1018
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1019
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1019
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1020
1020
|
*/
|
|
1021
1021
|
if (symbol === undefined) {
|
|
1022
1022
|
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a `symbol` argument');
|
|
@@ -1044,9 +1044,9 @@ class bitfinex extends bitfinex$1 {
|
|
|
1044
1044
|
* @param {string} type 'market' or 'limit'
|
|
1045
1045
|
* @param {string} side 'buy' or 'sell'
|
|
1046
1046
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1047
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1047
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1048
1048
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1049
|
-
* @returns {object} an [order structure]{@link https://
|
|
1049
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1050
1050
|
*/
|
|
1051
1051
|
await this.loadMarkets();
|
|
1052
1052
|
const market = this.market(symbol);
|
|
@@ -1110,7 +1110,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1110
1110
|
* @param {string} id order id
|
|
1111
1111
|
* @param {string} symbol not used by bitfinex cancelOrder ()
|
|
1112
1112
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1113
|
-
* @returns {object} An [order structure]{@link https://
|
|
1113
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1114
1114
|
*/
|
|
1115
1115
|
await this.loadMarkets();
|
|
1116
1116
|
const request = {
|
|
@@ -1211,7 +1211,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1211
1211
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1212
1212
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1213
1213
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1214
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1214
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1215
1215
|
*/
|
|
1216
1216
|
await this.loadMarkets();
|
|
1217
1217
|
if (symbol !== undefined) {
|
|
@@ -1235,7 +1235,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1235
1235
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1236
1236
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1237
1237
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1238
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1238
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1239
1239
|
*/
|
|
1240
1240
|
await this.loadMarkets();
|
|
1241
1241
|
symbol = this.symbol(symbol);
|
|
@@ -1258,7 +1258,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1258
1258
|
* @description fetches information on an order made by the user
|
|
1259
1259
|
* @param {string} symbol not used by bitfinex fetchOrder
|
|
1260
1260
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1261
|
-
* @returns {object} An [order structure]{@link https://
|
|
1261
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1262
1262
|
*/
|
|
1263
1263
|
await this.loadMarkets();
|
|
1264
1264
|
const request = {
|
|
@@ -1338,7 +1338,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1338
1338
|
* @description create a currency deposit address
|
|
1339
1339
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1340
1340
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1341
|
-
* @returns {object} an [address structure]{@link https://
|
|
1341
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1342
1342
|
*/
|
|
1343
1343
|
await this.loadMarkets();
|
|
1344
1344
|
const request = {
|
|
@@ -1353,7 +1353,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1353
1353
|
* @description fetch the deposit address for a currency associated with this account
|
|
1354
1354
|
* @param {string} code unified currency code
|
|
1355
1355
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1356
|
-
* @returns {object} an [address structure]{@link https://
|
|
1356
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1357
1357
|
*/
|
|
1358
1358
|
await this.loadMarkets();
|
|
1359
1359
|
// todo rewrite for https://api-pub.bitfinex.com//v2/conf/pub:map:tx:method
|
|
@@ -1388,7 +1388,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1388
1388
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1389
1389
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1390
1390
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1391
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1391
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1392
1392
|
*/
|
|
1393
1393
|
await this.loadMarkets();
|
|
1394
1394
|
let currencyId = this.safeString(params, 'currency');
|
|
@@ -1524,7 +1524,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1524
1524
|
* @param {string} address the address to withdraw to
|
|
1525
1525
|
* @param {string} tag
|
|
1526
1526
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1527
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1527
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1528
1528
|
*/
|
|
1529
1529
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1530
1530
|
this.checkAddress(address);
|
|
@@ -1571,7 +1571,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1571
1571
|
* @description fetch all open positions
|
|
1572
1572
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1573
1573
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1574
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
1574
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
1575
1575
|
*/
|
|
1576
1576
|
await this.loadMarkets();
|
|
1577
1577
|
const response = await this.privatePostPositions(params);
|
|
@@ -432,7 +432,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
432
432
|
* @name bitfinex2#fetchStatus
|
|
433
433
|
* @description the latest known information on the availability of the exchange API
|
|
434
434
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
435
|
-
* @returns {object} a [status structure]{@link https://
|
|
435
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
436
436
|
*/
|
|
437
437
|
//
|
|
438
438
|
// [1] // operative
|
|
@@ -791,7 +791,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
791
791
|
* @name bitfinex2#fetchBalance
|
|
792
792
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
793
793
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
794
|
-
* @returns {object} a [balance structure]{@link https://
|
|
794
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
795
795
|
*/
|
|
796
796
|
// this api call does not return the 'used' amount - use the v1 version instead (which also returns zero balances)
|
|
797
797
|
// there is a difference between this and the v1 api, namely trading wallet is called margin in v2
|
|
@@ -835,7 +835,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
835
835
|
* @param {string} fromAccount account to transfer from
|
|
836
836
|
* @param {string} toAccount account to transfer to
|
|
837
837
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
838
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
838
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
839
839
|
*/
|
|
840
840
|
// transferring between derivatives wallet and regular wallet is not documented in their API
|
|
841
841
|
// however we support it in CCXT (from just looking at web inspector)
|
|
@@ -978,7 +978,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
978
978
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
979
979
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
980
980
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
981
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
981
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
982
982
|
*/
|
|
983
983
|
await this.loadMarkets();
|
|
984
984
|
const precision = this.safeValue(this.options, 'precision', 'R0');
|
|
@@ -1066,9 +1066,9 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1066
1066
|
'high': this.safeString(ticker, length - 2),
|
|
1067
1067
|
'low': this.safeString(ticker, length - 1),
|
|
1068
1068
|
'bid': this.safeString(ticker, length - 10),
|
|
1069
|
-
'bidVolume':
|
|
1069
|
+
'bidVolume': this.safeString(ticker, length - 9),
|
|
1070
1070
|
'ask': this.safeString(ticker, length - 8),
|
|
1071
|
-
'askVolume':
|
|
1071
|
+
'askVolume': this.safeString(ticker, length - 7),
|
|
1072
1072
|
'vwap': undefined,
|
|
1073
1073
|
'open': undefined,
|
|
1074
1074
|
'close': last,
|
|
@@ -1089,7 +1089,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1089
1089
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1090
1090
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1091
1091
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1092
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1092
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1093
1093
|
*/
|
|
1094
1094
|
await this.loadMarkets();
|
|
1095
1095
|
symbols = this.marketSymbols(symbols);
|
|
@@ -1158,7 +1158,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1158
1158
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1159
1159
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1160
1160
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1161
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
1161
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1162
1162
|
*/
|
|
1163
1163
|
await this.loadMarkets();
|
|
1164
1164
|
const market = this.market(symbol);
|
|
@@ -1260,7 +1260,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1260
1260
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1261
1261
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1262
1262
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1263
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1263
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
1264
1264
|
*/
|
|
1265
1265
|
await this.loadMarkets();
|
|
1266
1266
|
const market = this.market(symbol);
|
|
@@ -1465,7 +1465,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1465
1465
|
* @param {string} type 'limit' or 'market'
|
|
1466
1466
|
* @param {string} side 'buy' or 'sell'
|
|
1467
1467
|
* @param {float} amount the amount of currency to trade
|
|
1468
|
-
* @param {float} price price of order
|
|
1468
|
+
* @param {float} [price] price of order
|
|
1469
1469
|
* @param {object} [params] Extra parameters specific to the exchange API endpoint
|
|
1470
1470
|
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
1471
1471
|
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
@@ -1476,7 +1476,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1476
1476
|
* @param {string} [params.price_traling] The trailing price for a trailing stop order
|
|
1477
1477
|
* @param {string} [params.price_aux_limit] Order price for stop limit orders
|
|
1478
1478
|
* @param {string} [params.price_oco_stop] OCO stop price
|
|
1479
|
-
* @returns {object} an [order structure]{@link https://
|
|
1479
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1480
1480
|
*/
|
|
1481
1481
|
await this.loadMarkets();
|
|
1482
1482
|
const market = this.market(symbol);
|
|
@@ -1627,7 +1627,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1627
1627
|
* @description cancel all open orders
|
|
1628
1628
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1629
1629
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1630
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1630
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1631
1631
|
*/
|
|
1632
1632
|
const request = {
|
|
1633
1633
|
'all': 1,
|
|
@@ -1644,7 +1644,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1644
1644
|
* @param {string} id order id
|
|
1645
1645
|
* @param {string} symbol Not used by bitfinex2 cancelOrder ()
|
|
1646
1646
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1647
|
-
* @returns {object} An [order structure]{@link https://
|
|
1647
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1648
1648
|
*/
|
|
1649
1649
|
const cid = this.safeValue2(params, 'cid', 'clientOrderId'); // client order id
|
|
1650
1650
|
let request = undefined;
|
|
@@ -1676,7 +1676,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1676
1676
|
* @param {string} id order id
|
|
1677
1677
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1678
1678
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1679
|
-
* @returns {object} an [order structure]{@link https://
|
|
1679
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1680
1680
|
*/
|
|
1681
1681
|
const request = {
|
|
1682
1682
|
'id': [parseInt(id)],
|
|
@@ -1696,7 +1696,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1696
1696
|
* @param {string} id order id
|
|
1697
1697
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1698
1698
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1699
|
-
* @returns {object} an [order structure]{@link https://
|
|
1699
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1700
1700
|
*/
|
|
1701
1701
|
const request = {
|
|
1702
1702
|
'id': [parseInt(id)],
|
|
@@ -1717,7 +1717,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1717
1717
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1718
1718
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1719
1719
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1720
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1720
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1721
1721
|
*/
|
|
1722
1722
|
await this.loadMarkets();
|
|
1723
1723
|
const request = {};
|
|
@@ -1780,7 +1780,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1780
1780
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1781
1781
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1782
1782
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1783
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1783
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1784
1784
|
*/
|
|
1785
1785
|
// returns the most recent closed or canceled orders up to circa two weeks ago
|
|
1786
1786
|
await this.loadMarkets();
|
|
@@ -1851,7 +1851,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1851
1851
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1852
1852
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1853
1853
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1854
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1854
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1855
1855
|
*/
|
|
1856
1856
|
if (symbol === undefined) {
|
|
1857
1857
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrderTrades() requires a symbol argument');
|
|
@@ -1876,7 +1876,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1876
1876
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1877
1877
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1878
1878
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1879
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1879
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1880
1880
|
*/
|
|
1881
1881
|
await this.loadMarkets();
|
|
1882
1882
|
let market = undefined;
|
|
@@ -1905,7 +1905,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1905
1905
|
* @description create a currency deposit address
|
|
1906
1906
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1907
1907
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1908
|
-
* @returns {object} an [address structure]{@link https://
|
|
1908
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1909
1909
|
*/
|
|
1910
1910
|
await this.loadMarkets();
|
|
1911
1911
|
const request = {
|
|
@@ -1920,7 +1920,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1920
1920
|
* @description fetch the deposit address for a currency associated with this account
|
|
1921
1921
|
* @param {string} code unified currency code
|
|
1922
1922
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1923
|
-
* @returns {object} an [address structure]{@link https://
|
|
1923
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1924
1924
|
*/
|
|
1925
1925
|
await this.loadMarkets();
|
|
1926
1926
|
const currency = this.currency(code);
|
|
@@ -2133,7 +2133,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
2133
2133
|
* @name bitfinex2#fetchTradingFees
|
|
2134
2134
|
* @description fetch the trading fees for multiple markets
|
|
2135
2135
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
2136
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
2136
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
2137
2137
|
*/
|
|
2138
2138
|
await this.loadMarkets();
|
|
2139
2139
|
const response = await this.privatePostAuthRSummary(params);
|
|
@@ -2249,7 +2249,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
2249
2249
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2250
2250
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2251
2251
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
2252
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
2252
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2253
2253
|
*/
|
|
2254
2254
|
await this.loadMarkets();
|
|
2255
2255
|
let currency = undefined;
|
|
@@ -2307,7 +2307,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
2307
2307
|
* @param {string} address the address to withdraw to
|
|
2308
2308
|
* @param {string} tag
|
|
2309
2309
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
2310
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2310
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2311
2311
|
*/
|
|
2312
2312
|
this.checkAddress(address);
|
|
2313
2313
|
await this.loadMarkets();
|
|
@@ -2394,7 +2394,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
2394
2394
|
* @see https://docs.bitfinex.com/reference/rest-auth-positions
|
|
2395
2395
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2396
2396
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
2397
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
2397
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
2398
2398
|
*/
|
|
2399
2399
|
await this.loadMarkets();
|
|
2400
2400
|
symbols = this.marketSymbols(symbols);
|
|
@@ -2644,7 +2644,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
2644
2644
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2645
2645
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
2646
2646
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
2647
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
2647
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
2648
2648
|
*/
|
|
2649
2649
|
await this.loadMarkets();
|
|
2650
2650
|
await this.loadMarkets();
|
|
@@ -2688,7 +2688,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
2688
2688
|
* @see https://docs.bitfinex.com/reference/rest-public-derivatives-status
|
|
2689
2689
|
* @param {string} symbol unified market symbol
|
|
2690
2690
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
2691
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
2691
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
2692
2692
|
*/
|
|
2693
2693
|
return this.fetchFundingRates([symbol], params);
|
|
2694
2694
|
}
|
|
@@ -2700,7 +2700,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
2700
2700
|
* @see https://docs.bitfinex.com/reference/rest-public-derivatives-status
|
|
2701
2701
|
* @param {string[]} symbols list of unified market symbols
|
|
2702
2702
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
2703
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
2703
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
2704
2704
|
*/
|
|
2705
2705
|
if (symbols === undefined) {
|
|
2706
2706
|
throw new errors.ArgumentsRequired(this.id + ' fetchFundingRates() requires a symbols argument');
|
|
@@ -2751,7 +2751,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
2751
2751
|
* @see https://docs.bitfinex.com/reference/rest-public-derivatives-status-history
|
|
2752
2752
|
* @param {string} symbol unified market symbol
|
|
2753
2753
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
2754
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
2754
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
2755
2755
|
*/
|
|
2756
2756
|
await this.loadMarkets();
|
|
2757
2757
|
this.checkRequiredSymbol('fetchFundingRateHistory', symbol);
|