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/js/src/bitbns.js
CHANGED
|
@@ -158,7 +158,7 @@ export default class bitbns extends Exchange {
|
|
|
158
158
|
* @method
|
|
159
159
|
* @name bitbns#fetchStatus
|
|
160
160
|
* @description the latest known information on the availability of the exchange API
|
|
161
|
-
* @param {object} [params] extra parameters specific to the
|
|
161
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
162
162
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
163
163
|
*/
|
|
164
164
|
const response = await this.v1GetPlatformStatus(params);
|
|
@@ -188,7 +188,7 @@ export default class bitbns extends Exchange {
|
|
|
188
188
|
* @method
|
|
189
189
|
* @name bitbns#fetchMarkets
|
|
190
190
|
* @description retrieves data on all markets for bitbns
|
|
191
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
191
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
192
192
|
* @returns {object[]} an array of objects representing market data
|
|
193
193
|
*/
|
|
194
194
|
const response = await this.wwwGetOrderFetchMarkets(params);
|
|
@@ -291,7 +291,7 @@ export default class bitbns extends Exchange {
|
|
|
291
291
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
292
292
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
293
293
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
294
|
-
* @param {object} [params] extra parameters specific to the
|
|
294
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
295
295
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
296
296
|
*/
|
|
297
297
|
await this.loadMarkets();
|
|
@@ -385,9 +385,9 @@ export default class bitbns extends Exchange {
|
|
|
385
385
|
/**
|
|
386
386
|
* @method
|
|
387
387
|
* @name bitbns#fetchTickers
|
|
388
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
388
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
389
389
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
390
|
-
* @param {object} [params] extra parameters specific to the
|
|
390
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
391
391
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
392
392
|
*/
|
|
393
393
|
await this.loadMarkets();
|
|
@@ -459,7 +459,7 @@ export default class bitbns extends Exchange {
|
|
|
459
459
|
* @method
|
|
460
460
|
* @name bitbns#fetchBalance
|
|
461
461
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
462
|
-
* @param {object} [params] extra parameters specific to the
|
|
462
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
463
463
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
464
464
|
*/
|
|
465
465
|
await this.loadMarkets();
|
|
@@ -590,7 +590,7 @@ export default class bitbns extends Exchange {
|
|
|
590
590
|
* @param {string} side 'buy' or 'sell'
|
|
591
591
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
592
592
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
593
|
-
* @param {object} [params] extra parameters specific to the
|
|
593
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
594
594
|
* @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
|
|
595
595
|
*
|
|
596
596
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
@@ -650,7 +650,7 @@ export default class bitbns extends Exchange {
|
|
|
650
650
|
* @see https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-1/cancel-stop-loss-orders
|
|
651
651
|
* @param {string} id order id
|
|
652
652
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
653
|
-
* @param {object} [params] extra parameters specific to the
|
|
653
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
654
654
|
* @param {boolean} [params.trigger] true if cancelling a trigger order
|
|
655
655
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
656
656
|
*/
|
|
@@ -681,7 +681,7 @@ export default class bitbns extends Exchange {
|
|
|
681
681
|
* @see https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-1/order-status
|
|
682
682
|
* @param {string} id order id
|
|
683
683
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
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} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
686
686
|
*/
|
|
687
687
|
if (symbol === undefined) {
|
|
@@ -737,7 +737,7 @@ export default class bitbns extends Exchange {
|
|
|
737
737
|
* @param {string} symbol unified market symbol
|
|
738
738
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
739
739
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
740
|
-
* @param {object} [params] extra parameters specific to the
|
|
740
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
741
741
|
* @param {boolean} [params.trigger] true if fetching trigger orders
|
|
742
742
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
743
743
|
*/
|
|
@@ -868,7 +868,7 @@ export default class bitbns extends Exchange {
|
|
|
868
868
|
* @param {string} symbol unified market symbol
|
|
869
869
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
870
870
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
871
|
-
* @param {object} [params] extra parameters specific to the
|
|
871
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
872
872
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
873
873
|
*/
|
|
874
874
|
if (symbol === undefined) {
|
|
@@ -936,7 +936,7 @@ export default class bitbns extends Exchange {
|
|
|
936
936
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
937
937
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
938
938
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
939
|
-
* @param {object} [params] extra parameters specific to the
|
|
939
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
940
940
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
941
941
|
*/
|
|
942
942
|
if (symbol === undefined) {
|
|
@@ -966,7 +966,7 @@ export default class bitbns extends Exchange {
|
|
|
966
966
|
* @param {string} code unified currency code
|
|
967
967
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
968
968
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
969
|
-
* @param {object} [params] extra parameters specific to the
|
|
969
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
970
970
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
971
971
|
*/
|
|
972
972
|
if (code === undefined) {
|
|
@@ -1013,7 +1013,7 @@ export default class bitbns extends Exchange {
|
|
|
1013
1013
|
* @param {string} code unified currency code
|
|
1014
1014
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1015
1015
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1016
|
-
* @param {object} [params] extra parameters specific to the
|
|
1016
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1017
1017
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1018
1018
|
*/
|
|
1019
1019
|
if (code === undefined) {
|
|
@@ -1125,7 +1125,7 @@ export default class bitbns extends Exchange {
|
|
|
1125
1125
|
* @name bitbns#fetchDepositAddress
|
|
1126
1126
|
* @description fetch the deposit address for a currency associated with this account
|
|
1127
1127
|
* @param {string} code unified currency code
|
|
1128
|
-
* @param {object} [params] extra parameters specific to the
|
|
1128
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1129
1129
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1130
1130
|
*/
|
|
1131
1131
|
await this.loadMarkets();
|
package/js/src/bitfinex.js
CHANGED
|
@@ -404,7 +404,7 @@ export default class bitfinex extends Exchange {
|
|
|
404
404
|
* @description please use fetchDepositWithdrawFees instead
|
|
405
405
|
* @see https://docs.bitfinex.com/v1/reference/rest-auth-fees
|
|
406
406
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
407
|
-
* @param {object} [params] extra parameters specific to the
|
|
407
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
408
408
|
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
409
409
|
*/
|
|
410
410
|
await this.loadMarkets();
|
|
@@ -440,7 +440,7 @@ export default class bitfinex extends Exchange {
|
|
|
440
440
|
* @description fetch deposit and withdraw fees
|
|
441
441
|
* @see https://docs.bitfinex.com/v1/reference/rest-auth-fees
|
|
442
442
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
443
|
-
* @param {object} [params] extra parameters specific to the
|
|
443
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
444
444
|
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
445
445
|
*/
|
|
446
446
|
await this.loadMarkets();
|
|
@@ -478,7 +478,7 @@ export default class bitfinex extends Exchange {
|
|
|
478
478
|
* @method
|
|
479
479
|
* @name bitfinex#fetchTradingFees
|
|
480
480
|
* @description fetch the trading fees for multiple markets
|
|
481
|
-
* @param {object} [params] extra parameters specific to the
|
|
481
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
482
482
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
483
483
|
*/
|
|
484
484
|
await this.loadMarkets();
|
|
@@ -560,7 +560,7 @@ export default class bitfinex extends Exchange {
|
|
|
560
560
|
* @method
|
|
561
561
|
* @name bitfinex#fetchMarkets
|
|
562
562
|
* @description retrieves data on all markets for bitfinex
|
|
563
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
563
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
564
564
|
* @returns {object[]} an array of objects representing market data
|
|
565
565
|
*/
|
|
566
566
|
const ids = await this.publicGetSymbols();
|
|
@@ -684,7 +684,7 @@ export default class bitfinex extends Exchange {
|
|
|
684
684
|
* @method
|
|
685
685
|
* @name bitfinex#fetchBalance
|
|
686
686
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
687
|
-
* @param {object} [params] extra parameters specific to the
|
|
687
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
688
688
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
689
689
|
*/
|
|
690
690
|
await this.loadMarkets();
|
|
@@ -745,7 +745,7 @@ export default class bitfinex extends Exchange {
|
|
|
745
745
|
* @param {float} amount amount to transfer
|
|
746
746
|
* @param {string} fromAccount account to transfer from
|
|
747
747
|
* @param {string} toAccount account to transfer to
|
|
748
|
-
* @param {object} [params] extra parameters specific to the
|
|
748
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
749
749
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
750
750
|
*/
|
|
751
751
|
// transferring between derivatives wallet and regular wallet is not documented in their API
|
|
@@ -829,7 +829,7 @@ export default class bitfinex extends Exchange {
|
|
|
829
829
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
830
830
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
831
831
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
832
|
-
* @param {object} [params] extra parameters specific to the
|
|
832
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
833
833
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
834
834
|
*/
|
|
835
835
|
await this.loadMarkets();
|
|
@@ -848,9 +848,9 @@ export default class bitfinex extends Exchange {
|
|
|
848
848
|
/**
|
|
849
849
|
* @method
|
|
850
850
|
* @name bitfinex#fetchTickers
|
|
851
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
851
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
852
852
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
853
|
-
* @param {object} [params] extra parameters specific to the
|
|
853
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
854
854
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
855
855
|
*/
|
|
856
856
|
await this.loadMarkets();
|
|
@@ -870,7 +870,7 @@ export default class bitfinex extends Exchange {
|
|
|
870
870
|
* @name bitfinex#fetchTicker
|
|
871
871
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
872
872
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
873
|
-
* @param {object} [params] extra parameters specific to the
|
|
873
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
874
874
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
875
875
|
*/
|
|
876
876
|
await this.loadMarkets();
|
|
@@ -988,7 +988,7 @@ export default class bitfinex extends Exchange {
|
|
|
988
988
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
989
989
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
990
990
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
991
|
-
* @param {object} [params] extra parameters specific to the
|
|
991
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
992
992
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
993
993
|
*/
|
|
994
994
|
await this.loadMarkets();
|
|
@@ -1023,7 +1023,7 @@ export default class bitfinex extends Exchange {
|
|
|
1023
1023
|
* @param {string} symbol unified market symbol
|
|
1024
1024
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1025
1025
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1026
|
-
* @param {object} [params] extra parameters specific to the
|
|
1026
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1027
1027
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1028
1028
|
*/
|
|
1029
1029
|
if (symbol === undefined) {
|
|
@@ -1053,7 +1053,7 @@ export default class bitfinex extends Exchange {
|
|
|
1053
1053
|
* @param {string} side 'buy' or 'sell'
|
|
1054
1054
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1055
1055
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1056
|
-
* @param {object} [params] extra parameters specific to the
|
|
1056
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1057
1057
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1058
1058
|
*/
|
|
1059
1059
|
await this.loadMarkets();
|
|
@@ -1117,7 +1117,7 @@ export default class bitfinex extends Exchange {
|
|
|
1117
1117
|
* @description cancels an open order
|
|
1118
1118
|
* @param {string} id order id
|
|
1119
1119
|
* @param {string} symbol not used by bitfinex cancelOrder ()
|
|
1120
|
-
* @param {object} [params] extra parameters specific to the
|
|
1120
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1121
1121
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1122
1122
|
*/
|
|
1123
1123
|
await this.loadMarkets();
|
|
@@ -1132,7 +1132,7 @@ export default class bitfinex extends Exchange {
|
|
|
1132
1132
|
* @name bitfinex#cancelAllOrders
|
|
1133
1133
|
* @description cancel all open orders
|
|
1134
1134
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1135
|
-
* @param {object} [params] extra parameters specific to the
|
|
1135
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1136
1136
|
* @returns {object} response from exchange
|
|
1137
1137
|
*/
|
|
1138
1138
|
return await this.privatePostOrderCancelAll(params);
|
|
@@ -1218,7 +1218,7 @@ export default class bitfinex extends Exchange {
|
|
|
1218
1218
|
* @param {string} symbol unified market symbol
|
|
1219
1219
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1220
1220
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1221
|
-
* @param {object} [params] extra parameters specific to the
|
|
1221
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1222
1222
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1223
1223
|
*/
|
|
1224
1224
|
await this.loadMarkets();
|
|
@@ -1242,7 +1242,7 @@ export default class bitfinex extends Exchange {
|
|
|
1242
1242
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1243
1243
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1244
1244
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1245
|
-
* @param {object} [params] extra parameters specific to the
|
|
1245
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1246
1246
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1247
1247
|
*/
|
|
1248
1248
|
await this.loadMarkets();
|
|
@@ -1265,7 +1265,7 @@ export default class bitfinex extends Exchange {
|
|
|
1265
1265
|
* @name bitfinex#fetchOrder
|
|
1266
1266
|
* @description fetches information on an order made by the user
|
|
1267
1267
|
* @param {string} symbol not used by bitfinex fetchOrder
|
|
1268
|
-
* @param {object} [params] extra parameters specific to the
|
|
1268
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1269
1269
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1270
1270
|
*/
|
|
1271
1271
|
await this.loadMarkets();
|
|
@@ -1304,7 +1304,7 @@ export default class bitfinex extends Exchange {
|
|
|
1304
1304
|
* @param {string} timeframe the length of time each candle represents
|
|
1305
1305
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1306
1306
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1307
|
-
* @param {object} [params] extra parameters specific to the
|
|
1307
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1308
1308
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1309
1309
|
*/
|
|
1310
1310
|
await this.loadMarkets();
|
|
@@ -1345,7 +1345,7 @@ export default class bitfinex extends Exchange {
|
|
|
1345
1345
|
* @name bitfinex#createDepositAddress
|
|
1346
1346
|
* @description create a currency deposit address
|
|
1347
1347
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1348
|
-
* @param {object} [params] extra parameters specific to the
|
|
1348
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1349
1349
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1350
1350
|
*/
|
|
1351
1351
|
await this.loadMarkets();
|
|
@@ -1360,7 +1360,7 @@ export default class bitfinex extends Exchange {
|
|
|
1360
1360
|
* @name bitfinex#fetchDepositAddress
|
|
1361
1361
|
* @description fetch the deposit address for a currency associated with this account
|
|
1362
1362
|
* @param {string} code unified currency code
|
|
1363
|
-
* @param {object} [params] extra parameters specific to the
|
|
1363
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1364
1364
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1365
1365
|
*/
|
|
1366
1366
|
await this.loadMarkets();
|
|
@@ -1395,7 +1395,7 @@ export default class bitfinex extends Exchange {
|
|
|
1395
1395
|
* @param {string} code unified currency code for the currency of the deposit/withdrawals
|
|
1396
1396
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1397
1397
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1398
|
-
* @param {object} [params] extra parameters specific to the
|
|
1398
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1399
1399
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1400
1400
|
*/
|
|
1401
1401
|
await this.loadMarkets();
|
|
@@ -1532,7 +1532,7 @@ export default class bitfinex extends Exchange {
|
|
|
1532
1532
|
* @param {float} amount the amount to withdraw
|
|
1533
1533
|
* @param {string} address the address to withdraw to
|
|
1534
1534
|
* @param {string} tag
|
|
1535
|
-
* @param {object} [params] extra parameters specific to the
|
|
1535
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1536
1536
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1537
1537
|
*/
|
|
1538
1538
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1579,7 +1579,7 @@ export default class bitfinex extends Exchange {
|
|
|
1579
1579
|
* @name bitfinex#fetchPositions
|
|
1580
1580
|
* @description fetch all open positions
|
|
1581
1581
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1582
|
-
* @param {object} [params] extra parameters specific to the
|
|
1582
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1583
1583
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
1584
1584
|
*/
|
|
1585
1585
|
await this.loadMarkets();
|
package/js/src/bitfinex2.js
CHANGED
|
@@ -436,7 +436,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
436
436
|
* @name bitfinex2#fetchStatus
|
|
437
437
|
* @description the latest known information on the availability of the exchange API
|
|
438
438
|
* @see https://docs.bitfinex.com/reference/rest-public-platform-status
|
|
439
|
-
* @param {object} [params] extra parameters specific to the
|
|
439
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
440
440
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
441
441
|
*/
|
|
442
442
|
//
|
|
@@ -459,7 +459,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
459
459
|
* @name bitfinex2#fetchMarkets
|
|
460
460
|
* @description retrieves data on all markets for bitfinex2
|
|
461
461
|
* @see https://docs.bitfinex.com/reference/rest-public-conf
|
|
462
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
462
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
463
463
|
* @returns {object[]} an array of objects representing market data
|
|
464
464
|
*/
|
|
465
465
|
let spotMarketsInfo = await this.publicGetConfPubInfoPair(params);
|
|
@@ -589,7 +589,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
589
589
|
* @name bitfinex2#fetchCurrencies
|
|
590
590
|
* @description fetches all available currencies on an exchange
|
|
591
591
|
* @see https://docs.bitfinex.com/reference/rest-public-conf
|
|
592
|
-
* @param {object} [params] extra parameters specific to the
|
|
592
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
593
593
|
* @returns {object} an associative dictionary of currencies
|
|
594
594
|
*/
|
|
595
595
|
const labels = [
|
|
@@ -800,7 +800,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
800
800
|
* @name bitfinex2#fetchBalance
|
|
801
801
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
802
802
|
* @see https://docs.bitfinex.com/reference/rest-auth-wallets
|
|
803
|
-
* @param {object} [params] extra parameters specific to the
|
|
803
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
804
804
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
805
805
|
*/
|
|
806
806
|
// this api call does not return the 'used' amount - use the v1 version instead (which also returns zero balances)
|
|
@@ -845,7 +845,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
845
845
|
* @param {float} amount amount to transfer
|
|
846
846
|
* @param {string} fromAccount account to transfer from
|
|
847
847
|
* @param {string} toAccount account to transfer to
|
|
848
|
-
* @param {object} [params] extra parameters specific to the
|
|
848
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
849
849
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
850
850
|
*/
|
|
851
851
|
// transferring between derivatives wallet and regular wallet is not documented in their API
|
|
@@ -989,7 +989,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
989
989
|
* @see https://docs.bitfinex.com/reference/rest-public-book
|
|
990
990
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
991
991
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
992
|
-
* @param {object} [params] extra parameters specific to the
|
|
992
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
993
993
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
994
994
|
*/
|
|
995
995
|
await this.loadMarkets();
|
|
@@ -1098,10 +1098,10 @@ export default class bitfinex2 extends Exchange {
|
|
|
1098
1098
|
/**
|
|
1099
1099
|
* @method
|
|
1100
1100
|
* @name bitfinex2#fetchTickers
|
|
1101
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1101
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1102
1102
|
* @see https://docs.bitfinex.com/reference/rest-public-tickers
|
|
1103
1103
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1104
|
-
* @param {object} [params] extra parameters specific to the
|
|
1104
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1105
1105
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1106
1106
|
*/
|
|
1107
1107
|
await this.loadMarkets();
|
|
@@ -1171,7 +1171,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1171
1171
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1172
1172
|
* @see https://docs.bitfinex.com/reference/rest-public-ticker
|
|
1173
1173
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1174
|
-
* @param {object} [params] extra parameters specific to the
|
|
1174
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1175
1175
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1176
1176
|
*/
|
|
1177
1177
|
await this.loadMarkets();
|
|
@@ -1274,7 +1274,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1274
1274
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1275
1275
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1276
1276
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1277
|
-
* @param {object} [params] extra parameters specific to the
|
|
1277
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1278
1278
|
* @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)
|
|
1279
1279
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1280
1280
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
@@ -1323,7 +1323,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1323
1323
|
* @param {string} timeframe the length of time each candle represents
|
|
1324
1324
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1325
1325
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1326
|
-
* @param {object} [params] extra parameters specific to the
|
|
1326
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1327
1327
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1328
1328
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
1329
1329
|
* @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)
|
|
@@ -1495,7 +1495,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1495
1495
|
* @param {string} side 'buy' or 'sell'
|
|
1496
1496
|
* @param {float} amount the amount of currency to trade
|
|
1497
1497
|
* @param {float} [price] price of order
|
|
1498
|
-
* @param {object} [params]
|
|
1498
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1499
1499
|
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
1500
1500
|
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
1501
1501
|
* @param {bool} params.postOnly
|
|
@@ -1656,7 +1656,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1656
1656
|
* @description cancel all open orders
|
|
1657
1657
|
* @see https://docs.bitfinex.com/reference/rest-auth-cancel-orders-multiple
|
|
1658
1658
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1659
|
-
* @param {object} [params] extra parameters specific to the
|
|
1659
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1660
1660
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1661
1661
|
*/
|
|
1662
1662
|
const request = {
|
|
@@ -1674,7 +1674,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1674
1674
|
* @see https://docs.bitfinex.com/reference/rest-auth-cancel-order
|
|
1675
1675
|
* @param {string} id order id
|
|
1676
1676
|
* @param {string} symbol Not used by bitfinex2 cancelOrder ()
|
|
1677
|
-
* @param {object} [params] extra parameters specific to the
|
|
1677
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1678
1678
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1679
1679
|
*/
|
|
1680
1680
|
const cid = this.safeValue2(params, 'cid', 'clientOrderId'); // client order id
|
|
@@ -1708,7 +1708,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1708
1708
|
* @see https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
|
|
1709
1709
|
* @param {string} id order id
|
|
1710
1710
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1711
|
-
* @param {object} [params] extra parameters specific to the
|
|
1711
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1712
1712
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1713
1713
|
*/
|
|
1714
1714
|
const request = {
|
|
@@ -1730,7 +1730,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1730
1730
|
* @see https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
|
|
1731
1731
|
* @param {string} id order id
|
|
1732
1732
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1733
|
-
* @param {object} [params] extra parameters specific to the
|
|
1733
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1734
1734
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1735
1735
|
*/
|
|
1736
1736
|
const request = {
|
|
@@ -1753,7 +1753,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1753
1753
|
* @param {string} symbol unified market symbol
|
|
1754
1754
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1755
1755
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1756
|
-
* @param {object} [params] extra parameters specific to the
|
|
1756
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1757
1757
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1758
1758
|
*/
|
|
1759
1759
|
await this.loadMarkets();
|
|
@@ -1818,7 +1818,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1818
1818
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1819
1819
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1820
1820
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1821
|
-
* @param {object} [params] extra parameters specific to the
|
|
1821
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1822
1822
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1823
1823
|
* @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)
|
|
1824
1824
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1898,7 +1898,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1898
1898
|
* @param {string} symbol unified market symbol
|
|
1899
1899
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1900
1900
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1901
|
-
* @param {object} [params] extra parameters specific to the
|
|
1901
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1902
1902
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1903
1903
|
*/
|
|
1904
1904
|
if (symbol === undefined) {
|
|
@@ -1925,7 +1925,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1925
1925
|
* @param {string} symbol unified market symbol
|
|
1926
1926
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1927
1927
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1928
|
-
* @param {object} [params] extra parameters specific to the
|
|
1928
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1929
1929
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1930
1930
|
*/
|
|
1931
1931
|
await this.loadMarkets();
|
|
@@ -1957,7 +1957,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1957
1957
|
* @description create a currency deposit address
|
|
1958
1958
|
* @see https://docs.bitfinex.com/reference/rest-auth-deposit-address
|
|
1959
1959
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1960
|
-
* @param {object} [params] extra parameters specific to the
|
|
1960
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1961
1961
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1962
1962
|
*/
|
|
1963
1963
|
await this.loadMarkets();
|
|
@@ -1973,7 +1973,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1973
1973
|
* @description fetch the deposit address for a currency associated with this account
|
|
1974
1974
|
* @see https://docs.bitfinex.com/reference/rest-auth-deposit-address
|
|
1975
1975
|
* @param {string} code unified currency code
|
|
1976
|
-
* @param {object} [params] extra parameters specific to the
|
|
1976
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1977
1977
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1978
1978
|
*/
|
|
1979
1979
|
await this.loadMarkets();
|
|
@@ -2188,7 +2188,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2188
2188
|
* @name bitfinex2#fetchTradingFees
|
|
2189
2189
|
* @description fetch the trading fees for multiple markets
|
|
2190
2190
|
* @see https://docs.bitfinex.com/reference/rest-auth-summary
|
|
2191
|
-
* @param {object} [params] extra parameters specific to the
|
|
2191
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2192
2192
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
2193
2193
|
*/
|
|
2194
2194
|
await this.loadMarkets();
|
|
@@ -2306,7 +2306,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2306
2306
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2307
2307
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2308
2308
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2309
|
-
* @param {object} [params] extra parameters specific to the
|
|
2309
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2310
2310
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2311
2311
|
*/
|
|
2312
2312
|
await this.loadMarkets();
|
|
@@ -2367,7 +2367,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2367
2367
|
* @param {float} amount the amount to withdraw
|
|
2368
2368
|
* @param {string} address the address to withdraw to
|
|
2369
2369
|
* @param {string} tag
|
|
2370
|
-
* @param {object} [params] extra parameters specific to the
|
|
2370
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2371
2371
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2372
2372
|
*/
|
|
2373
2373
|
this.checkAddress(address);
|
|
@@ -2454,7 +2454,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2454
2454
|
* @description fetch all open positions
|
|
2455
2455
|
* @see https://docs.bitfinex.com/reference/rest-auth-positions
|
|
2456
2456
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2457
|
-
* @param {object} [params] extra parameters specific to the
|
|
2457
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2458
2458
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
2459
2459
|
*/
|
|
2460
2460
|
await this.loadMarkets();
|
|
@@ -2709,7 +2709,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2709
2709
|
* @param {string} code unified currency code, default is undefined
|
|
2710
2710
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2711
2711
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
2712
|
-
* @param {object} [params] extra parameters specific to the
|
|
2712
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2713
2713
|
* @param {int} [params.until] timestamp in ms of the latest ledger entry
|
|
2714
2714
|
* @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)
|
|
2715
2715
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
@@ -2763,7 +2763,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2763
2763
|
* @description fetch the current funding rate
|
|
2764
2764
|
* @see https://docs.bitfinex.com/reference/rest-public-derivatives-status
|
|
2765
2765
|
* @param {string} symbol unified market symbol
|
|
2766
|
-
* @param {object} [params] extra parameters specific to the
|
|
2766
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2767
2767
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
2768
2768
|
*/
|
|
2769
2769
|
return this.fetchFundingRates([symbol], params);
|
|
@@ -2775,7 +2775,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2775
2775
|
* @description fetch the current funding rate
|
|
2776
2776
|
* @see https://docs.bitfinex.com/reference/rest-public-derivatives-status
|
|
2777
2777
|
* @param {string[]} symbols list of unified market symbols
|
|
2778
|
-
* @param {object} [params] extra parameters specific to the
|
|
2778
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2779
2779
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
2780
2780
|
*/
|
|
2781
2781
|
if (symbols === undefined) {
|
|
@@ -2826,7 +2826,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2826
2826
|
* @description fetches historical funding rate prices
|
|
2827
2827
|
* @see https://docs.bitfinex.com/reference/rest-public-derivatives-status-history
|
|
2828
2828
|
* @param {string} symbol unified market symbol
|
|
2829
|
-
* @param {object} [params] extra parameters specific to the
|
|
2829
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2830
2830
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
2831
2831
|
* @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)
|
|
2832
2832
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|