ccxt 4.1.64 → 4.1.65
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 +3 -3
- package/dist/ccxt.browser.js +2558 -2534
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +1 -0
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +28 -28
- package/dist/cjs/src/krakenfutures.js +9 -9
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +32 -32
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- 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 +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +8 -8
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- 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 +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +21 -21
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +15 -15
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +1 -0
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +28 -28
- package/js/src/krakenfutures.js +9 -9
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +17 -17
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +32 -32
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +8 -8
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- 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 +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +21 -21
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +15 -15
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/dist/cjs/src/bitbns.js
CHANGED
|
@@ -155,7 +155,7 @@ class bitbns extends bitbns$1 {
|
|
|
155
155
|
* @method
|
|
156
156
|
* @name bitbns#fetchStatus
|
|
157
157
|
* @description the latest known information on the availability of the exchange API
|
|
158
|
-
* @param {object} [params] extra parameters specific to the
|
|
158
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
159
159
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
160
160
|
*/
|
|
161
161
|
const response = await this.v1GetPlatformStatus(params);
|
|
@@ -185,7 +185,7 @@ class bitbns extends bitbns$1 {
|
|
|
185
185
|
* @method
|
|
186
186
|
* @name bitbns#fetchMarkets
|
|
187
187
|
* @description retrieves data on all markets for bitbns
|
|
188
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
188
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
189
189
|
* @returns {object[]} an array of objects representing market data
|
|
190
190
|
*/
|
|
191
191
|
const response = await this.wwwGetOrderFetchMarkets(params);
|
|
@@ -288,7 +288,7 @@ class bitbns extends bitbns$1 {
|
|
|
288
288
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
289
289
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
290
290
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
291
|
-
* @param {object} [params] extra parameters specific to the
|
|
291
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
292
292
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
293
293
|
*/
|
|
294
294
|
await this.loadMarkets();
|
|
@@ -382,9 +382,9 @@ class bitbns extends bitbns$1 {
|
|
|
382
382
|
/**
|
|
383
383
|
* @method
|
|
384
384
|
* @name bitbns#fetchTickers
|
|
385
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
385
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
386
386
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
387
|
-
* @param {object} [params] extra parameters specific to the
|
|
387
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
388
388
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
389
389
|
*/
|
|
390
390
|
await this.loadMarkets();
|
|
@@ -456,7 +456,7 @@ class bitbns extends bitbns$1 {
|
|
|
456
456
|
* @method
|
|
457
457
|
* @name bitbns#fetchBalance
|
|
458
458
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
459
|
-
* @param {object} [params] extra parameters specific to the
|
|
459
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
460
460
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
461
461
|
*/
|
|
462
462
|
await this.loadMarkets();
|
|
@@ -587,7 +587,7 @@ class bitbns extends bitbns$1 {
|
|
|
587
587
|
* @param {string} side 'buy' or 'sell'
|
|
588
588
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
589
589
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
590
|
-
* @param {object} [params] extra parameters specific to the
|
|
590
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
591
591
|
* @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
|
|
592
592
|
*
|
|
593
593
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
@@ -647,7 +647,7 @@ class bitbns extends bitbns$1 {
|
|
|
647
647
|
* @see https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-1/cancel-stop-loss-orders
|
|
648
648
|
* @param {string} id order id
|
|
649
649
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
650
|
-
* @param {object} [params] extra parameters specific to the
|
|
650
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
651
651
|
* @param {boolean} [params.trigger] true if cancelling a trigger order
|
|
652
652
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
653
653
|
*/
|
|
@@ -678,7 +678,7 @@ class bitbns extends bitbns$1 {
|
|
|
678
678
|
* @see https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-1/order-status
|
|
679
679
|
* @param {string} id order id
|
|
680
680
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
681
|
-
* @param {object} [params] extra parameters specific to the
|
|
681
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
682
682
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
683
683
|
*/
|
|
684
684
|
if (symbol === undefined) {
|
|
@@ -734,7 +734,7 @@ class bitbns extends bitbns$1 {
|
|
|
734
734
|
* @param {string} symbol unified market symbol
|
|
735
735
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
736
736
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
737
|
-
* @param {object} [params] extra parameters specific to the
|
|
737
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
738
738
|
* @param {boolean} [params.trigger] true if fetching trigger orders
|
|
739
739
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
740
740
|
*/
|
|
@@ -865,7 +865,7 @@ class bitbns extends bitbns$1 {
|
|
|
865
865
|
* @param {string} symbol unified market symbol
|
|
866
866
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
867
867
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
868
|
-
* @param {object} [params] extra parameters specific to the
|
|
868
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
869
869
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
870
870
|
*/
|
|
871
871
|
if (symbol === undefined) {
|
|
@@ -933,7 +933,7 @@ class bitbns extends bitbns$1 {
|
|
|
933
933
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
934
934
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
935
935
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
936
|
-
* @param {object} [params] extra parameters specific to the
|
|
936
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
937
937
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
938
938
|
*/
|
|
939
939
|
if (symbol === undefined) {
|
|
@@ -963,7 +963,7 @@ class bitbns extends bitbns$1 {
|
|
|
963
963
|
* @param {string} code unified currency code
|
|
964
964
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
965
965
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
966
|
-
* @param {object} [params] extra parameters specific to the
|
|
966
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
967
967
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
968
968
|
*/
|
|
969
969
|
if (code === undefined) {
|
|
@@ -1010,7 +1010,7 @@ class bitbns extends bitbns$1 {
|
|
|
1010
1010
|
* @param {string} code unified currency code
|
|
1011
1011
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1012
1012
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1013
|
-
* @param {object} [params] extra parameters specific to the
|
|
1013
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1014
1014
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1015
1015
|
*/
|
|
1016
1016
|
if (code === undefined) {
|
|
@@ -1122,7 +1122,7 @@ class bitbns extends bitbns$1 {
|
|
|
1122
1122
|
* @name bitbns#fetchDepositAddress
|
|
1123
1123
|
* @description fetch the deposit address for a currency associated with this account
|
|
1124
1124
|
* @param {string} code unified currency code
|
|
1125
|
-
* @param {object} [params] extra parameters specific to the
|
|
1125
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1126
1126
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1127
1127
|
*/
|
|
1128
1128
|
await this.loadMarkets();
|
package/dist/cjs/src/bitfinex.js
CHANGED
|
@@ -401,7 +401,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
401
401
|
* @description please use fetchDepositWithdrawFees instead
|
|
402
402
|
* @see https://docs.bitfinex.com/v1/reference/rest-auth-fees
|
|
403
403
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
404
|
-
* @param {object} [params] extra parameters specific to the
|
|
404
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
405
405
|
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
406
406
|
*/
|
|
407
407
|
await this.loadMarkets();
|
|
@@ -437,7 +437,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
437
437
|
* @description fetch deposit and withdraw fees
|
|
438
438
|
* @see https://docs.bitfinex.com/v1/reference/rest-auth-fees
|
|
439
439
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
440
|
-
* @param {object} [params] extra parameters specific to the
|
|
440
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
441
441
|
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
442
442
|
*/
|
|
443
443
|
await this.loadMarkets();
|
|
@@ -475,7 +475,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
475
475
|
* @method
|
|
476
476
|
* @name bitfinex#fetchTradingFees
|
|
477
477
|
* @description fetch the trading fees for multiple markets
|
|
478
|
-
* @param {object} [params] extra parameters specific to the
|
|
478
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
479
479
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
480
480
|
*/
|
|
481
481
|
await this.loadMarkets();
|
|
@@ -557,7 +557,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
557
557
|
* @method
|
|
558
558
|
* @name bitfinex#fetchMarkets
|
|
559
559
|
* @description retrieves data on all markets for bitfinex
|
|
560
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
560
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
561
561
|
* @returns {object[]} an array of objects representing market data
|
|
562
562
|
*/
|
|
563
563
|
const ids = await this.publicGetSymbols();
|
|
@@ -681,7 +681,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
681
681
|
* @method
|
|
682
682
|
* @name bitfinex#fetchBalance
|
|
683
683
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
684
|
-
* @param {object} [params] extra parameters specific to the
|
|
684
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
685
685
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
686
686
|
*/
|
|
687
687
|
await this.loadMarkets();
|
|
@@ -742,7 +742,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
742
742
|
* @param {float} amount amount to transfer
|
|
743
743
|
* @param {string} fromAccount account to transfer from
|
|
744
744
|
* @param {string} toAccount account to transfer to
|
|
745
|
-
* @param {object} [params] extra parameters specific to the
|
|
745
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
746
746
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
747
747
|
*/
|
|
748
748
|
// transferring between derivatives wallet and regular wallet is not documented in their API
|
|
@@ -826,7 +826,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
826
826
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
827
827
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
828
828
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
829
|
-
* @param {object} [params] extra parameters specific to the
|
|
829
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
830
830
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
831
831
|
*/
|
|
832
832
|
await this.loadMarkets();
|
|
@@ -845,9 +845,9 @@ class bitfinex extends bitfinex$1 {
|
|
|
845
845
|
/**
|
|
846
846
|
* @method
|
|
847
847
|
* @name bitfinex#fetchTickers
|
|
848
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
848
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
849
849
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
850
|
-
* @param {object} [params] extra parameters specific to the
|
|
850
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
851
851
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
852
852
|
*/
|
|
853
853
|
await this.loadMarkets();
|
|
@@ -867,7 +867,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
867
867
|
* @name bitfinex#fetchTicker
|
|
868
868
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
869
869
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
870
|
-
* @param {object} [params] extra parameters specific to the
|
|
870
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
871
871
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
872
872
|
*/
|
|
873
873
|
await this.loadMarkets();
|
|
@@ -985,7 +985,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
985
985
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
986
986
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
987
987
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
988
|
-
* @param {object} [params] extra parameters specific to the
|
|
988
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
989
989
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
990
990
|
*/
|
|
991
991
|
await this.loadMarkets();
|
|
@@ -1020,7 +1020,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1020
1020
|
* @param {string} symbol unified market symbol
|
|
1021
1021
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1022
1022
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1023
|
-
* @param {object} [params] extra parameters specific to the
|
|
1023
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1024
1024
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1025
1025
|
*/
|
|
1026
1026
|
if (symbol === undefined) {
|
|
@@ -1050,7 +1050,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1050
1050
|
* @param {string} side 'buy' or 'sell'
|
|
1051
1051
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1052
1052
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1053
|
-
* @param {object} [params] extra parameters specific to the
|
|
1053
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1054
1054
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1055
1055
|
*/
|
|
1056
1056
|
await this.loadMarkets();
|
|
@@ -1114,7 +1114,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1114
1114
|
* @description cancels an open order
|
|
1115
1115
|
* @param {string} id order id
|
|
1116
1116
|
* @param {string} symbol not used by bitfinex cancelOrder ()
|
|
1117
|
-
* @param {object} [params] extra parameters specific to the
|
|
1117
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1118
1118
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1119
1119
|
*/
|
|
1120
1120
|
await this.loadMarkets();
|
|
@@ -1129,7 +1129,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1129
1129
|
* @name bitfinex#cancelAllOrders
|
|
1130
1130
|
* @description cancel all open orders
|
|
1131
1131
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1132
|
-
* @param {object} [params] extra parameters specific to the
|
|
1132
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1133
1133
|
* @returns {object} response from exchange
|
|
1134
1134
|
*/
|
|
1135
1135
|
return await this.privatePostOrderCancelAll(params);
|
|
@@ -1215,7 +1215,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1215
1215
|
* @param {string} symbol unified market symbol
|
|
1216
1216
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1217
1217
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1218
|
-
* @param {object} [params] extra parameters specific to the
|
|
1218
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1219
1219
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1220
1220
|
*/
|
|
1221
1221
|
await this.loadMarkets();
|
|
@@ -1239,7 +1239,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1239
1239
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1240
1240
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1241
1241
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1242
|
-
* @param {object} [params] extra parameters specific to the
|
|
1242
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1243
1243
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1244
1244
|
*/
|
|
1245
1245
|
await this.loadMarkets();
|
|
@@ -1262,7 +1262,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1262
1262
|
* @name bitfinex#fetchOrder
|
|
1263
1263
|
* @description fetches information on an order made by the user
|
|
1264
1264
|
* @param {string} symbol not used by bitfinex fetchOrder
|
|
1265
|
-
* @param {object} [params] extra parameters specific to the
|
|
1265
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1266
1266
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1267
1267
|
*/
|
|
1268
1268
|
await this.loadMarkets();
|
|
@@ -1301,7 +1301,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1301
1301
|
* @param {string} timeframe the length of time each candle represents
|
|
1302
1302
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1303
1303
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1304
|
-
* @param {object} [params] extra parameters specific to the
|
|
1304
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1305
1305
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1306
1306
|
*/
|
|
1307
1307
|
await this.loadMarkets();
|
|
@@ -1342,7 +1342,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1342
1342
|
* @name bitfinex#createDepositAddress
|
|
1343
1343
|
* @description create a currency deposit address
|
|
1344
1344
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1345
|
-
* @param {object} [params] extra parameters specific to the
|
|
1345
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1346
1346
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1347
1347
|
*/
|
|
1348
1348
|
await this.loadMarkets();
|
|
@@ -1357,7 +1357,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1357
1357
|
* @name bitfinex#fetchDepositAddress
|
|
1358
1358
|
* @description fetch the deposit address for a currency associated with this account
|
|
1359
1359
|
* @param {string} code unified currency code
|
|
1360
|
-
* @param {object} [params] extra parameters specific to the
|
|
1360
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1361
1361
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1362
1362
|
*/
|
|
1363
1363
|
await this.loadMarkets();
|
|
@@ -1392,7 +1392,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1392
1392
|
* @param {string} code unified currency code for the currency of the deposit/withdrawals
|
|
1393
1393
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1394
1394
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1395
|
-
* @param {object} [params] extra parameters specific to the
|
|
1395
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1396
1396
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1397
1397
|
*/
|
|
1398
1398
|
await this.loadMarkets();
|
|
@@ -1529,7 +1529,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1529
1529
|
* @param {float} amount the amount to withdraw
|
|
1530
1530
|
* @param {string} address the address to withdraw to
|
|
1531
1531
|
* @param {string} tag
|
|
1532
|
-
* @param {object} [params] extra parameters specific to the
|
|
1532
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1533
1533
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1534
1534
|
*/
|
|
1535
1535
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1576,7 +1576,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1576
1576
|
* @name bitfinex#fetchPositions
|
|
1577
1577
|
* @description fetch all open positions
|
|
1578
1578
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1579
|
-
* @param {object} [params] extra parameters specific to the
|
|
1579
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1580
1580
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
1581
1581
|
*/
|
|
1582
1582
|
await this.loadMarkets();
|
|
@@ -433,7 +433,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
433
433
|
* @name bitfinex2#fetchStatus
|
|
434
434
|
* @description the latest known information on the availability of the exchange API
|
|
435
435
|
* @see https://docs.bitfinex.com/reference/rest-public-platform-status
|
|
436
|
-
* @param {object} [params] extra parameters specific to the
|
|
436
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
437
437
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
438
438
|
*/
|
|
439
439
|
//
|
|
@@ -456,7 +456,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
456
456
|
* @name bitfinex2#fetchMarkets
|
|
457
457
|
* @description retrieves data on all markets for bitfinex2
|
|
458
458
|
* @see https://docs.bitfinex.com/reference/rest-public-conf
|
|
459
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
459
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
460
460
|
* @returns {object[]} an array of objects representing market data
|
|
461
461
|
*/
|
|
462
462
|
let spotMarketsInfo = await this.publicGetConfPubInfoPair(params);
|
|
@@ -586,7 +586,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
586
586
|
* @name bitfinex2#fetchCurrencies
|
|
587
587
|
* @description fetches all available currencies on an exchange
|
|
588
588
|
* @see https://docs.bitfinex.com/reference/rest-public-conf
|
|
589
|
-
* @param {object} [params] extra parameters specific to the
|
|
589
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
590
590
|
* @returns {object} an associative dictionary of currencies
|
|
591
591
|
*/
|
|
592
592
|
const labels = [
|
|
@@ -797,7 +797,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
797
797
|
* @name bitfinex2#fetchBalance
|
|
798
798
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
799
799
|
* @see https://docs.bitfinex.com/reference/rest-auth-wallets
|
|
800
|
-
* @param {object} [params] extra parameters specific to the
|
|
800
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
801
801
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
802
802
|
*/
|
|
803
803
|
// this api call does not return the 'used' amount - use the v1 version instead (which also returns zero balances)
|
|
@@ -842,7 +842,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
842
842
|
* @param {float} amount amount to transfer
|
|
843
843
|
* @param {string} fromAccount account to transfer from
|
|
844
844
|
* @param {string} toAccount account to transfer to
|
|
845
|
-
* @param {object} [params] extra parameters specific to the
|
|
845
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
846
846
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
847
847
|
*/
|
|
848
848
|
// transferring between derivatives wallet and regular wallet is not documented in their API
|
|
@@ -986,7 +986,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
986
986
|
* @see https://docs.bitfinex.com/reference/rest-public-book
|
|
987
987
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
988
988
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
989
|
-
* @param {object} [params] extra parameters specific to the
|
|
989
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
990
990
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
991
991
|
*/
|
|
992
992
|
await this.loadMarkets();
|
|
@@ -1095,10 +1095,10 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1095
1095
|
/**
|
|
1096
1096
|
* @method
|
|
1097
1097
|
* @name bitfinex2#fetchTickers
|
|
1098
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1098
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1099
1099
|
* @see https://docs.bitfinex.com/reference/rest-public-tickers
|
|
1100
1100
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1101
|
-
* @param {object} [params] extra parameters specific to the
|
|
1101
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1102
1102
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1103
1103
|
*/
|
|
1104
1104
|
await this.loadMarkets();
|
|
@@ -1168,7 +1168,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1168
1168
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1169
1169
|
* @see https://docs.bitfinex.com/reference/rest-public-ticker
|
|
1170
1170
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1171
|
-
* @param {object} [params] extra parameters specific to the
|
|
1171
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1172
1172
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1173
1173
|
*/
|
|
1174
1174
|
await this.loadMarkets();
|
|
@@ -1271,7 +1271,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1271
1271
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1272
1272
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1273
1273
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1274
|
-
* @param {object} [params] extra parameters specific to the
|
|
1274
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1275
1275
|
* @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)
|
|
1276
1276
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1277
1277
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
@@ -1320,7 +1320,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1320
1320
|
* @param {string} timeframe the length of time each candle represents
|
|
1321
1321
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1322
1322
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1323
|
-
* @param {object} [params] extra parameters specific to the
|
|
1323
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1324
1324
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1325
1325
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
1326
1326
|
* @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)
|
|
@@ -1492,7 +1492,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1492
1492
|
* @param {string} side 'buy' or 'sell'
|
|
1493
1493
|
* @param {float} amount the amount of currency to trade
|
|
1494
1494
|
* @param {float} [price] price of order
|
|
1495
|
-
* @param {object} [params]
|
|
1495
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1496
1496
|
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
1497
1497
|
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
1498
1498
|
* @param {bool} params.postOnly
|
|
@@ -1653,7 +1653,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1653
1653
|
* @description cancel all open orders
|
|
1654
1654
|
* @see https://docs.bitfinex.com/reference/rest-auth-cancel-orders-multiple
|
|
1655
1655
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1656
|
-
* @param {object} [params] extra parameters specific to the
|
|
1656
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1657
1657
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1658
1658
|
*/
|
|
1659
1659
|
const request = {
|
|
@@ -1671,7 +1671,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1671
1671
|
* @see https://docs.bitfinex.com/reference/rest-auth-cancel-order
|
|
1672
1672
|
* @param {string} id order id
|
|
1673
1673
|
* @param {string} symbol Not used by bitfinex2 cancelOrder ()
|
|
1674
|
-
* @param {object} [params] extra parameters specific to the
|
|
1674
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1675
1675
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1676
1676
|
*/
|
|
1677
1677
|
const cid = this.safeValue2(params, 'cid', 'clientOrderId'); // client order id
|
|
@@ -1705,7 +1705,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1705
1705
|
* @see https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
|
|
1706
1706
|
* @param {string} id order id
|
|
1707
1707
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1708
|
-
* @param {object} [params] extra parameters specific to the
|
|
1708
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1709
1709
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1710
1710
|
*/
|
|
1711
1711
|
const request = {
|
|
@@ -1727,7 +1727,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1727
1727
|
* @see https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
|
|
1728
1728
|
* @param {string} id order id
|
|
1729
1729
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1730
|
-
* @param {object} [params] extra parameters specific to the
|
|
1730
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1731
1731
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1732
1732
|
*/
|
|
1733
1733
|
const request = {
|
|
@@ -1750,7 +1750,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1750
1750
|
* @param {string} symbol unified market symbol
|
|
1751
1751
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1752
1752
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1753
|
-
* @param {object} [params] extra parameters specific to the
|
|
1753
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1754
1754
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1755
1755
|
*/
|
|
1756
1756
|
await this.loadMarkets();
|
|
@@ -1815,7 +1815,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1815
1815
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1816
1816
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1817
1817
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1818
|
-
* @param {object} [params] extra parameters specific to the
|
|
1818
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1819
1819
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1820
1820
|
* @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)
|
|
1821
1821
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1895,7 +1895,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1895
1895
|
* @param {string} symbol unified market symbol
|
|
1896
1896
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1897
1897
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1898
|
-
* @param {object} [params] extra parameters specific to the
|
|
1898
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1899
1899
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1900
1900
|
*/
|
|
1901
1901
|
if (symbol === undefined) {
|
|
@@ -1922,7 +1922,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1922
1922
|
* @param {string} symbol unified market symbol
|
|
1923
1923
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1924
1924
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1925
|
-
* @param {object} [params] extra parameters specific to the
|
|
1925
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1926
1926
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1927
1927
|
*/
|
|
1928
1928
|
await this.loadMarkets();
|
|
@@ -1954,7 +1954,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1954
1954
|
* @description create a currency deposit address
|
|
1955
1955
|
* @see https://docs.bitfinex.com/reference/rest-auth-deposit-address
|
|
1956
1956
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1957
|
-
* @param {object} [params] extra parameters specific to the
|
|
1957
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1958
1958
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1959
1959
|
*/
|
|
1960
1960
|
await this.loadMarkets();
|
|
@@ -1970,7 +1970,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1970
1970
|
* @description fetch the deposit address for a currency associated with this account
|
|
1971
1971
|
* @see https://docs.bitfinex.com/reference/rest-auth-deposit-address
|
|
1972
1972
|
* @param {string} code unified currency code
|
|
1973
|
-
* @param {object} [params] extra parameters specific to the
|
|
1973
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1974
1974
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1975
1975
|
*/
|
|
1976
1976
|
await this.loadMarkets();
|
|
@@ -2185,7 +2185,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
2185
2185
|
* @name bitfinex2#fetchTradingFees
|
|
2186
2186
|
* @description fetch the trading fees for multiple markets
|
|
2187
2187
|
* @see https://docs.bitfinex.com/reference/rest-auth-summary
|
|
2188
|
-
* @param {object} [params] extra parameters specific to the
|
|
2188
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2189
2189
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
2190
2190
|
*/
|
|
2191
2191
|
await this.loadMarkets();
|
|
@@ -2303,7 +2303,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
2303
2303
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2304
2304
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2305
2305
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2306
|
-
* @param {object} [params] extra parameters specific to the
|
|
2306
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2307
2307
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2308
2308
|
*/
|
|
2309
2309
|
await this.loadMarkets();
|
|
@@ -2364,7 +2364,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
2364
2364
|
* @param {float} amount the amount to withdraw
|
|
2365
2365
|
* @param {string} address the address to withdraw to
|
|
2366
2366
|
* @param {string} tag
|
|
2367
|
-
* @param {object} [params] extra parameters specific to the
|
|
2367
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2368
2368
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2369
2369
|
*/
|
|
2370
2370
|
this.checkAddress(address);
|
|
@@ -2451,7 +2451,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
2451
2451
|
* @description fetch all open positions
|
|
2452
2452
|
* @see https://docs.bitfinex.com/reference/rest-auth-positions
|
|
2453
2453
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2454
|
-
* @param {object} [params] extra parameters specific to the
|
|
2454
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2455
2455
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
2456
2456
|
*/
|
|
2457
2457
|
await this.loadMarkets();
|
|
@@ -2706,7 +2706,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
2706
2706
|
* @param {string} code unified currency code, default is undefined
|
|
2707
2707
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2708
2708
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
2709
|
-
* @param {object} [params] extra parameters specific to the
|
|
2709
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2710
2710
|
* @param {int} [params.until] timestamp in ms of the latest ledger entry
|
|
2711
2711
|
* @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)
|
|
2712
2712
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
@@ -2760,7 +2760,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
2760
2760
|
* @description fetch the current funding rate
|
|
2761
2761
|
* @see https://docs.bitfinex.com/reference/rest-public-derivatives-status
|
|
2762
2762
|
* @param {string} symbol unified market symbol
|
|
2763
|
-
* @param {object} [params] extra parameters specific to the
|
|
2763
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2764
2764
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
2765
2765
|
*/
|
|
2766
2766
|
return this.fetchFundingRates([symbol], params);
|
|
@@ -2772,7 +2772,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
2772
2772
|
* @description fetch the current funding rate
|
|
2773
2773
|
* @see https://docs.bitfinex.com/reference/rest-public-derivatives-status
|
|
2774
2774
|
* @param {string[]} symbols list of unified market symbols
|
|
2775
|
-
* @param {object} [params] extra parameters specific to the
|
|
2775
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2776
2776
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
2777
2777
|
*/
|
|
2778
2778
|
if (symbols === undefined) {
|
|
@@ -2823,7 +2823,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
2823
2823
|
* @description fetches historical funding rate prices
|
|
2824
2824
|
* @see https://docs.bitfinex.com/reference/rest-public-derivatives-status-history
|
|
2825
2825
|
* @param {string} symbol unified market symbol
|
|
2826
|
-
* @param {object} [params] extra parameters specific to the
|
|
2826
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2827
2827
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
2828
2828
|
* @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)
|
|
2829
2829
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|