ccxt 4.0.74 → 4.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.js +2635 -2383
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +11 -11
- package/dist/cjs/src/alpaca.js +7 -7
- package/dist/cjs/src/ascendex.js +25 -25
- package/dist/cjs/src/base/Exchange.js +4 -4
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +56 -56
- package/dist/cjs/src/bingx.js +85 -40
- package/dist/cjs/src/bit2c.js +12 -12
- package/dist/cjs/src/bitbank.js +13 -13
- package/dist/cjs/src/bitbns.js +14 -14
- package/dist/cjs/src/bitfinex.js +21 -21
- package/dist/cjs/src/bitfinex2.js +29 -29
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +11 -11
- package/dist/cjs/src/bitget.js +39 -39
- package/dist/cjs/src/bithumb.js +11 -11
- package/dist/cjs/src/bitmart.js +44 -31
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +21 -21
- package/dist/cjs/src/bitpanda.js +21 -21
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +21 -21
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bitstamp1.js +8 -8
- package/dist/cjs/src/bittrex.js +27 -27
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/bkex.js +21 -21
- package/dist/cjs/src/bl3p.js +8 -8
- package/dist/cjs/src/blockchaincom.js +21 -21
- package/dist/cjs/src/btcalpha.js +15 -15
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +17 -17
- package/dist/cjs/src/btctradeua.js +8 -8
- package/dist/cjs/src/btcturk.js +11 -11
- package/dist/cjs/src/bybit.js +153 -121
- package/dist/cjs/src/cex.js +14 -14
- package/dist/cjs/src/coinbase.js +23 -23
- package/dist/cjs/src/coinbasepro.js +24 -24
- package/dist/cjs/src/coincheck.js +12 -12
- package/dist/cjs/src/coinex.js +87 -41
- package/dist/cjs/src/coinfalcon.js +16 -16
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +12 -12
- package/dist/cjs/src/coinsph.js +27 -22
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +29 -29
- package/dist/cjs/src/currencycom.js +20 -20
- package/dist/cjs/src/delta.js +25 -25
- package/dist/cjs/src/deribit.js +30 -30
- package/dist/cjs/src/digifinex.js +31 -31
- package/dist/cjs/src/exmo.js +26 -26
- package/dist/cjs/src/gate.js +38 -38
- package/dist/cjs/src/gemini.js +17 -17
- package/dist/cjs/src/hitbtc.js +34 -34
- package/dist/cjs/src/hollaex.js +23 -23
- package/dist/cjs/src/huobi.js +45 -45
- package/dist/cjs/src/huobijp.js +20 -20
- package/dist/cjs/src/idex.js +19 -19
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +27 -27
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +33 -33
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +12 -12
- package/dist/cjs/src/latoken.js +17 -17
- package/dist/cjs/src/lbank.js +12 -12
- package/dist/cjs/src/lbank2.js +23 -23
- package/dist/cjs/src/luno.js +16 -16
- package/dist/cjs/src/lykke.js +16 -16
- package/dist/cjs/src/mercado.js +12 -12
- package/dist/cjs/src/mexc.js +44 -42
- package/dist/cjs/src/ndax.js +20 -20
- package/dist/cjs/src/novadax.js +20 -20
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okcoin.js +21 -21
- package/dist/cjs/src/okx.js +52 -52
- package/dist/cjs/src/paymium.js +11 -11
- package/dist/cjs/src/phemex.js +26 -26
- package/dist/cjs/src/poloniex.js +237 -136
- package/dist/cjs/src/poloniexfutures.js +18 -18
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +4 -4
- package/dist/cjs/src/pro/binance.js +16 -16
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +6 -6
- package/dist/cjs/src/pro/bitget.js +6 -6
- package/dist/cjs/src/pro/bitmart.js +4 -4
- package/dist/cjs/src/pro/bitmex.js +6 -6
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +6 -6
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +6 -6
- package/dist/cjs/src/pro/bitvavo.js +5 -5
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/bybit.js +6 -6
- package/dist/cjs/src/pro/cex.js +7 -7
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +6 -6
- package/dist/cjs/src/pro/coinex.js +5 -5
- package/dist/cjs/src/pro/cryptocom.js +10 -10
- package/dist/cjs/src/pro/currencycom.js +4 -4
- package/dist/cjs/src/pro/deribit.js +6 -6
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +7 -7
- package/dist/cjs/src/pro/gemini.js +3 -3
- package/dist/cjs/src/pro/hitbtc.js +3 -3
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/huobi.js +6 -6
- package/dist/cjs/src/pro/huobijp.js +3 -3
- package/dist/cjs/src/pro/idex.js +4 -4
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +12 -12
- package/dist/cjs/src/pro/krakenfutures.js +7 -7
- package/dist/cjs/src/pro/kucoin.js +6 -6
- package/dist/cjs/src/pro/kucoinfutures.js +6 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +6 -6
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okcoin.js +5 -5
- package/dist/cjs/src/pro/okx.js +19 -18
- package/dist/cjs/src/pro/phemex.js +6 -6
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +6 -6
- package/dist/cjs/src/pro/whitebit.js +6 -6
- package/dist/cjs/src/probit.js +19 -19
- package/dist/cjs/src/tidex.js +13 -13
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +18 -18
- package/dist/cjs/src/upbit.js +20 -20
- package/dist/cjs/src/wavesexchange.js +16 -16
- package/dist/cjs/src/wazirx.js +12 -12
- package/dist/cjs/src/whitebit.js +24 -24
- package/dist/cjs/src/woo.js +30 -24
- package/dist/cjs/src/yobit.js +16 -16
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +15 -15
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bingx.d.ts +2 -0
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/coinsph.d.ts +5 -0
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +11 -11
- package/js/src/alpaca.js +7 -7
- package/js/src/ascendex.js +25 -25
- package/js/src/base/Exchange.js +4 -4
- package/js/src/bigone.js +19 -19
- package/js/src/binance.js +56 -56
- package/js/src/bingx.d.ts +1 -0
- package/js/src/bingx.js +85 -40
- package/js/src/bit2c.js +12 -12
- package/js/src/bitbank.js +13 -13
- package/js/src/bitbns.js +14 -14
- package/js/src/bitfinex.js +21 -21
- package/js/src/bitfinex2.js +29 -29
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +11 -11
- package/js/src/bitget.js +39 -39
- package/js/src/bithumb.js +11 -11
- package/js/src/bitmart.js +44 -31
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.js +21 -21
- package/js/src/bitpanda.js +21 -21
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.js +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bitstamp1.js +8 -8
- package/js/src/bittrex.js +27 -27
- package/js/src/bitvavo.js +19 -19
- package/js/src/bkex.js +21 -21
- package/js/src/bl3p.js +8 -8
- package/js/src/blockchaincom.js +21 -21
- package/js/src/btcalpha.js +15 -15
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.js +17 -17
- package/js/src/btctradeua.js +8 -8
- package/js/src/btcturk.js +11 -11
- package/js/src/bybit.js +153 -121
- package/js/src/cex.js +14 -14
- package/js/src/coinbase.js +23 -23
- package/js/src/coinbasepro.js +24 -24
- package/js/src/coincheck.js +12 -12
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +87 -41
- package/js/src/coinfalcon.js +16 -16
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +12 -12
- package/js/src/coinsph.js +27 -22
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.js +29 -29
- package/js/src/currencycom.js +20 -20
- package/js/src/delta.js +25 -25
- package/js/src/deribit.js +30 -30
- package/js/src/digifinex.js +31 -31
- package/js/src/exmo.js +26 -26
- package/js/src/gate.js +38 -38
- package/js/src/gemini.js +17 -17
- package/js/src/hitbtc.js +34 -34
- package/js/src/hollaex.js +23 -23
- package/js/src/huobi.js +45 -45
- package/js/src/huobijp.js +20 -20
- package/js/src/idex.js +19 -19
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.js +27 -27
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +33 -33
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +12 -12
- package/js/src/latoken.js +17 -17
- package/js/src/lbank.js +12 -12
- package/js/src/lbank2.js +23 -23
- package/js/src/luno.js +16 -16
- package/js/src/lykke.js +16 -16
- package/js/src/mercado.js +12 -12
- package/js/src/mexc.js +45 -43
- package/js/src/ndax.js +20 -20
- package/js/src/novadax.js +20 -20
- package/js/src/oceanex.js +16 -16
- package/js/src/okcoin.js +21 -21
- package/js/src/okx.js +52 -52
- package/js/src/paymium.js +11 -11
- package/js/src/phemex.js +26 -26
- package/js/src/poloniex.d.ts +1 -1
- package/js/src/poloniex.js +237 -136
- package/js/src/poloniexfutures.js +18 -18
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +4 -4
- package/js/src/pro/binance.js +16 -16
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +6 -6
- package/js/src/pro/bitmart.js +4 -4
- package/js/src/pro/bitmex.js +6 -6
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +6 -6
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +6 -6
- package/js/src/pro/bitvavo.js +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/bybit.js +6 -6
- package/js/src/pro/cex.js +7 -7
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +6 -6
- package/js/src/pro/coinex.js +5 -5
- package/js/src/pro/cryptocom.js +10 -10
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.js +3 -3
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/huobi.js +6 -6
- package/js/src/pro/huobijp.js +3 -3
- package/js/src/pro/idex.js +4 -4
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +12 -12
- package/js/src/pro/krakenfutures.js +7 -7
- package/js/src/pro/kucoin.js +6 -6
- package/js/src/pro/kucoinfutures.js +6 -5
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.js +6 -6
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okcoin.js +5 -5
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +19 -18
- package/js/src/pro/phemex.js +6 -6
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +6 -6
- package/js/src/pro/whitebit.js +6 -6
- package/js/src/probit.js +19 -19
- package/js/src/tidex.js +13 -13
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.js +18 -18
- package/js/src/upbit.js +20 -20
- package/js/src/wavesexchange.js +16 -16
- package/js/src/wazirx.js +12 -12
- package/js/src/whitebit.js +24 -24
- package/js/src/woo.js +30 -24
- package/js/src/yobit.js +16 -16
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +15 -15
- package/package.json +1 -1
- package/skip-tests.json +2 -0
package/js/src/bitbns.js
CHANGED
|
@@ -159,7 +159,7 @@ export default class bitbns extends Exchange {
|
|
|
159
159
|
* @name bitbns#fetchStatus
|
|
160
160
|
* @description the latest known information on the availability of the exchange API
|
|
161
161
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
162
|
-
* @returns {object} a [status structure]{@link https://
|
|
162
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
163
163
|
*/
|
|
164
164
|
const response = await this.v1GetPlatformStatus(params);
|
|
165
165
|
//
|
|
@@ -291,7 +291,7 @@ export default class bitbns extends Exchange {
|
|
|
291
291
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
292
292
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
293
293
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
294
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
294
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
295
295
|
*/
|
|
296
296
|
await this.loadMarkets();
|
|
297
297
|
const market = this.market(symbol);
|
|
@@ -387,7 +387,7 @@ export default class bitbns extends Exchange {
|
|
|
387
387
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
388
388
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
389
389
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
390
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
390
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
391
391
|
*/
|
|
392
392
|
await this.loadMarkets();
|
|
393
393
|
const response = await this.wwwGetOrderFetchTickers(params);
|
|
@@ -459,7 +459,7 @@ export default class bitbns extends Exchange {
|
|
|
459
459
|
* @name bitbns#fetchBalance
|
|
460
460
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
461
461
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
462
|
-
* @returns {object} a [balance structure]{@link https://
|
|
462
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
463
463
|
*/
|
|
464
464
|
await this.loadMarkets();
|
|
465
465
|
const response = await this.v1PostCurrentCoinBalanceEVERYTHING(params);
|
|
@@ -595,9 +595,9 @@ export default class bitbns extends Exchange {
|
|
|
595
595
|
* @param {string} type 'market' or 'limit'
|
|
596
596
|
* @param {string} side 'buy' or 'sell'
|
|
597
597
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
598
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
598
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
599
599
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
600
|
-
* @returns {object} an [order structure]{@link https://
|
|
600
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
601
601
|
*/
|
|
602
602
|
if (type !== 'limit' && type !== 'market') {
|
|
603
603
|
throw new ExchangeError(this.id + ' allows limit and market orders only');
|
|
@@ -646,7 +646,7 @@ export default class bitbns extends Exchange {
|
|
|
646
646
|
* @param {string} id order id
|
|
647
647
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
648
648
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
649
|
-
* @returns {object} An [order structure]{@link https://
|
|
649
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
650
650
|
*/
|
|
651
651
|
if (symbol === undefined) {
|
|
652
652
|
throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -669,7 +669,7 @@ export default class bitbns extends Exchange {
|
|
|
669
669
|
* @description fetches information on an order made by the user
|
|
670
670
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
671
671
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
672
|
-
* @returns {object} An [order structure]{@link https://
|
|
672
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
673
673
|
*/
|
|
674
674
|
if (symbol === undefined) {
|
|
675
675
|
throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -719,7 +719,7 @@ export default class bitbns extends Exchange {
|
|
|
719
719
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
720
720
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
721
721
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
722
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
722
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
723
723
|
*/
|
|
724
724
|
if (symbol === undefined) {
|
|
725
725
|
throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -844,7 +844,7 @@ export default class bitbns extends Exchange {
|
|
|
844
844
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
845
845
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
846
846
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
847
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
847
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
848
848
|
*/
|
|
849
849
|
if (symbol === undefined) {
|
|
850
850
|
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -912,7 +912,7 @@ export default class bitbns extends Exchange {
|
|
|
912
912
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
913
913
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
914
914
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
915
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
915
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
916
916
|
*/
|
|
917
917
|
if (symbol === undefined) {
|
|
918
918
|
throw new ArgumentsRequired(this.id + ' fetchTrades() requires a symbol argument');
|
|
@@ -942,7 +942,7 @@ export default class bitbns extends Exchange {
|
|
|
942
942
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
943
943
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
944
944
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
945
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
945
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
946
946
|
*/
|
|
947
947
|
if (code === undefined) {
|
|
948
948
|
throw new ArgumentsRequired(this.id + ' fetchDeposits() requires a currency code argument');
|
|
@@ -989,7 +989,7 @@ export default class bitbns extends Exchange {
|
|
|
989
989
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
990
990
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
991
991
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
992
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
992
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
993
993
|
*/
|
|
994
994
|
if (code === undefined) {
|
|
995
995
|
throw new ArgumentsRequired(this.id + ' fetchWithdrawals() requires a currency code argument');
|
|
@@ -1100,7 +1100,7 @@ export default class bitbns extends Exchange {
|
|
|
1100
1100
|
* @description fetch the deposit address for a currency associated with this account
|
|
1101
1101
|
* @param {string} code unified currency code
|
|
1102
1102
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
1103
|
-
* @returns {object} an [address structure]{@link https://
|
|
1103
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1104
1104
|
*/
|
|
1105
1105
|
await this.loadMarkets();
|
|
1106
1106
|
const currency = this.currency(code);
|
package/js/src/bitfinex.js
CHANGED
|
@@ -405,7 +405,7 @@ export default class bitfinex extends Exchange {
|
|
|
405
405
|
* @see https://docs.bitfinex.com/v1/reference/rest-auth-fees
|
|
406
406
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
407
407
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
408
|
-
* @returns {object[]} a list of [fees structures]{@link https://
|
|
408
|
+
* @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
409
409
|
*/
|
|
410
410
|
await this.loadMarkets();
|
|
411
411
|
const result = {};
|
|
@@ -441,7 +441,7 @@ export default class bitfinex extends Exchange {
|
|
|
441
441
|
* @see https://docs.bitfinex.com/v1/reference/rest-auth-fees
|
|
442
442
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
443
443
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
444
|
-
* @returns {object[]} a list of [fees structures]{@link https://
|
|
444
|
+
* @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
445
445
|
*/
|
|
446
446
|
await this.loadMarkets();
|
|
447
447
|
const response = await this.privatePostAccountFees(params);
|
|
@@ -479,7 +479,7 @@ export default class bitfinex extends Exchange {
|
|
|
479
479
|
* @name bitfinex#fetchTradingFees
|
|
480
480
|
* @description fetch the trading fees for multiple markets
|
|
481
481
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
482
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
482
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
483
483
|
*/
|
|
484
484
|
await this.loadMarkets();
|
|
485
485
|
const response = await this.privatePostSummary(params);
|
|
@@ -684,7 +684,7 @@ export default class bitfinex extends Exchange {
|
|
|
684
684
|
* @name bitfinex#fetchBalance
|
|
685
685
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
686
686
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
687
|
-
* @returns {object} a [balance structure]{@link https://
|
|
687
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
688
688
|
*/
|
|
689
689
|
await this.loadMarkets();
|
|
690
690
|
const accountsByType = this.safeValue(this.options, 'accountsByType', {});
|
|
@@ -745,7 +745,7 @@ export default class bitfinex extends Exchange {
|
|
|
745
745
|
* @param {string} fromAccount account to transfer from
|
|
746
746
|
* @param {string} toAccount account to transfer to
|
|
747
747
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
748
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
748
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
749
749
|
*/
|
|
750
750
|
// transferring between derivatives wallet and regular wallet is not documented in their API
|
|
751
751
|
// however we support it in CCXT (from just looking at web inspector)
|
|
@@ -829,7 +829,7 @@ export default class bitfinex extends Exchange {
|
|
|
829
829
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
830
830
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
831
831
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
832
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
832
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
833
833
|
*/
|
|
834
834
|
await this.loadMarkets();
|
|
835
835
|
const market = this.market(symbol);
|
|
@@ -850,7 +850,7 @@ export default class bitfinex extends Exchange {
|
|
|
850
850
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
851
851
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
852
852
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
853
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
853
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
854
854
|
*/
|
|
855
855
|
await this.loadMarkets();
|
|
856
856
|
symbols = this.marketSymbols(symbols);
|
|
@@ -870,7 +870,7 @@ export default class bitfinex extends Exchange {
|
|
|
870
870
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
871
871
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
872
872
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
873
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
873
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
874
874
|
*/
|
|
875
875
|
await this.loadMarkets();
|
|
876
876
|
const market = this.market(symbol);
|
|
@@ -996,7 +996,7 @@ export default class bitfinex extends Exchange {
|
|
|
996
996
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
997
997
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
998
998
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
999
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
999
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
1000
1000
|
*/
|
|
1001
1001
|
await this.loadMarkets();
|
|
1002
1002
|
const market = this.market(symbol);
|
|
@@ -1019,7 +1019,7 @@ export default class bitfinex extends Exchange {
|
|
|
1019
1019
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1020
1020
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1021
1021
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1022
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1022
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1023
1023
|
*/
|
|
1024
1024
|
if (symbol === undefined) {
|
|
1025
1025
|
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a `symbol` argument');
|
|
@@ -1047,9 +1047,9 @@ export default class bitfinex extends Exchange {
|
|
|
1047
1047
|
* @param {string} type 'market' or 'limit'
|
|
1048
1048
|
* @param {string} side 'buy' or 'sell'
|
|
1049
1049
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1050
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1050
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1051
1051
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1052
|
-
* @returns {object} an [order structure]{@link https://
|
|
1052
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1053
1053
|
*/
|
|
1054
1054
|
await this.loadMarkets();
|
|
1055
1055
|
const market = this.market(symbol);
|
|
@@ -1113,7 +1113,7 @@ export default class bitfinex extends Exchange {
|
|
|
1113
1113
|
* @param {string} id order id
|
|
1114
1114
|
* @param {string} symbol not used by bitfinex cancelOrder ()
|
|
1115
1115
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1116
|
-
* @returns {object} An [order structure]{@link https://
|
|
1116
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1117
1117
|
*/
|
|
1118
1118
|
await this.loadMarkets();
|
|
1119
1119
|
const request = {
|
|
@@ -1214,7 +1214,7 @@ export default class bitfinex extends Exchange {
|
|
|
1214
1214
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1215
1215
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1216
1216
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1217
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1217
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1218
1218
|
*/
|
|
1219
1219
|
await this.loadMarkets();
|
|
1220
1220
|
if (symbol !== undefined) {
|
|
@@ -1238,7 +1238,7 @@ export default class bitfinex extends Exchange {
|
|
|
1238
1238
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1239
1239
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1240
1240
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1241
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1241
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1242
1242
|
*/
|
|
1243
1243
|
await this.loadMarkets();
|
|
1244
1244
|
symbol = this.symbol(symbol);
|
|
@@ -1261,7 +1261,7 @@ export default class bitfinex extends Exchange {
|
|
|
1261
1261
|
* @description fetches information on an order made by the user
|
|
1262
1262
|
* @param {string} symbol not used by bitfinex fetchOrder
|
|
1263
1263
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1264
|
-
* @returns {object} An [order structure]{@link https://
|
|
1264
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1265
1265
|
*/
|
|
1266
1266
|
await this.loadMarkets();
|
|
1267
1267
|
const request = {
|
|
@@ -1341,7 +1341,7 @@ export default class bitfinex extends Exchange {
|
|
|
1341
1341
|
* @description create a currency deposit address
|
|
1342
1342
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1343
1343
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1344
|
-
* @returns {object} an [address structure]{@link https://
|
|
1344
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1345
1345
|
*/
|
|
1346
1346
|
await this.loadMarkets();
|
|
1347
1347
|
const request = {
|
|
@@ -1356,7 +1356,7 @@ export default class bitfinex extends Exchange {
|
|
|
1356
1356
|
* @description fetch the deposit address for a currency associated with this account
|
|
1357
1357
|
* @param {string} code unified currency code
|
|
1358
1358
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1359
|
-
* @returns {object} an [address structure]{@link https://
|
|
1359
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1360
1360
|
*/
|
|
1361
1361
|
await this.loadMarkets();
|
|
1362
1362
|
// todo rewrite for https://api-pub.bitfinex.com//v2/conf/pub:map:tx:method
|
|
@@ -1391,7 +1391,7 @@ export default class bitfinex extends Exchange {
|
|
|
1391
1391
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1392
1392
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1393
1393
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1394
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1394
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1395
1395
|
*/
|
|
1396
1396
|
await this.loadMarkets();
|
|
1397
1397
|
let currencyId = this.safeString(params, 'currency');
|
|
@@ -1527,7 +1527,7 @@ export default class bitfinex extends Exchange {
|
|
|
1527
1527
|
* @param {string} address the address to withdraw to
|
|
1528
1528
|
* @param {string} tag
|
|
1529
1529
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1530
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1530
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1531
1531
|
*/
|
|
1532
1532
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1533
1533
|
this.checkAddress(address);
|
|
@@ -1574,7 +1574,7 @@ export default class bitfinex extends Exchange {
|
|
|
1574
1574
|
* @description fetch all open positions
|
|
1575
1575
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1576
1576
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
1577
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
1577
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
1578
1578
|
*/
|
|
1579
1579
|
await this.loadMarkets();
|
|
1580
1580
|
const response = await this.privatePostPositions(params);
|
package/js/src/bitfinex2.js
CHANGED
|
@@ -435,7 +435,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
435
435
|
* @name bitfinex2#fetchStatus
|
|
436
436
|
* @description the latest known information on the availability of the exchange API
|
|
437
437
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
438
|
-
* @returns {object} a [status structure]{@link https://
|
|
438
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
439
439
|
*/
|
|
440
440
|
//
|
|
441
441
|
// [1] // operative
|
|
@@ -794,7 +794,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
794
794
|
* @name bitfinex2#fetchBalance
|
|
795
795
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
796
796
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
797
|
-
* @returns {object} a [balance structure]{@link https://
|
|
797
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
798
798
|
*/
|
|
799
799
|
// this api call does not return the 'used' amount - use the v1 version instead (which also returns zero balances)
|
|
800
800
|
// there is a difference between this and the v1 api, namely trading wallet is called margin in v2
|
|
@@ -838,7 +838,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
838
838
|
* @param {string} fromAccount account to transfer from
|
|
839
839
|
* @param {string} toAccount account to transfer to
|
|
840
840
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
841
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
841
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
842
842
|
*/
|
|
843
843
|
// transferring between derivatives wallet and regular wallet is not documented in their API
|
|
844
844
|
// however we support it in CCXT (from just looking at web inspector)
|
|
@@ -981,7 +981,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
981
981
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
982
982
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
983
983
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
984
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
984
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
985
985
|
*/
|
|
986
986
|
await this.loadMarkets();
|
|
987
987
|
const precision = this.safeValue(this.options, 'precision', 'R0');
|
|
@@ -1069,9 +1069,9 @@ export default class bitfinex2 extends Exchange {
|
|
|
1069
1069
|
'high': this.safeString(ticker, length - 2),
|
|
1070
1070
|
'low': this.safeString(ticker, length - 1),
|
|
1071
1071
|
'bid': this.safeString(ticker, length - 10),
|
|
1072
|
-
'bidVolume':
|
|
1072
|
+
'bidVolume': this.safeString(ticker, length - 9),
|
|
1073
1073
|
'ask': this.safeString(ticker, length - 8),
|
|
1074
|
-
'askVolume':
|
|
1074
|
+
'askVolume': this.safeString(ticker, length - 7),
|
|
1075
1075
|
'vwap': undefined,
|
|
1076
1076
|
'open': undefined,
|
|
1077
1077
|
'close': last,
|
|
@@ -1092,7 +1092,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1092
1092
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1093
1093
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1094
1094
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1095
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1095
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1096
1096
|
*/
|
|
1097
1097
|
await this.loadMarkets();
|
|
1098
1098
|
symbols = this.marketSymbols(symbols);
|
|
@@ -1161,7 +1161,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1161
1161
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1162
1162
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1163
1163
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1164
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
1164
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1165
1165
|
*/
|
|
1166
1166
|
await this.loadMarkets();
|
|
1167
1167
|
const market = this.market(symbol);
|
|
@@ -1263,7 +1263,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1263
1263
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1264
1264
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1265
1265
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1266
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1266
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
1267
1267
|
*/
|
|
1268
1268
|
await this.loadMarkets();
|
|
1269
1269
|
const market = this.market(symbol);
|
|
@@ -1468,7 +1468,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1468
1468
|
* @param {string} type 'limit' or 'market'
|
|
1469
1469
|
* @param {string} side 'buy' or 'sell'
|
|
1470
1470
|
* @param {float} amount the amount of currency to trade
|
|
1471
|
-
* @param {float} price price of order
|
|
1471
|
+
* @param {float} [price] price of order
|
|
1472
1472
|
* @param {object} [params] Extra parameters specific to the exchange API endpoint
|
|
1473
1473
|
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
1474
1474
|
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
@@ -1479,7 +1479,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1479
1479
|
* @param {string} [params.price_traling] The trailing price for a trailing stop order
|
|
1480
1480
|
* @param {string} [params.price_aux_limit] Order price for stop limit orders
|
|
1481
1481
|
* @param {string} [params.price_oco_stop] OCO stop price
|
|
1482
|
-
* @returns {object} an [order structure]{@link https://
|
|
1482
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1483
1483
|
*/
|
|
1484
1484
|
await this.loadMarkets();
|
|
1485
1485
|
const market = this.market(symbol);
|
|
@@ -1630,7 +1630,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1630
1630
|
* @description cancel all open orders
|
|
1631
1631
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1632
1632
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1633
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1633
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1634
1634
|
*/
|
|
1635
1635
|
const request = {
|
|
1636
1636
|
'all': 1,
|
|
@@ -1647,7 +1647,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1647
1647
|
* @param {string} id order id
|
|
1648
1648
|
* @param {string} symbol Not used by bitfinex2 cancelOrder ()
|
|
1649
1649
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1650
|
-
* @returns {object} An [order structure]{@link https://
|
|
1650
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1651
1651
|
*/
|
|
1652
1652
|
const cid = this.safeValue2(params, 'cid', 'clientOrderId'); // client order id
|
|
1653
1653
|
let request = undefined;
|
|
@@ -1679,7 +1679,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1679
1679
|
* @param {string} id order id
|
|
1680
1680
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1681
1681
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1682
|
-
* @returns {object} an [order structure]{@link https://
|
|
1682
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1683
1683
|
*/
|
|
1684
1684
|
const request = {
|
|
1685
1685
|
'id': [parseInt(id)],
|
|
@@ -1699,7 +1699,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1699
1699
|
* @param {string} id order id
|
|
1700
1700
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1701
1701
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1702
|
-
* @returns {object} an [order structure]{@link https://
|
|
1702
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1703
1703
|
*/
|
|
1704
1704
|
const request = {
|
|
1705
1705
|
'id': [parseInt(id)],
|
|
@@ -1720,7 +1720,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1720
1720
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1721
1721
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1722
1722
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1723
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1723
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1724
1724
|
*/
|
|
1725
1725
|
await this.loadMarkets();
|
|
1726
1726
|
const request = {};
|
|
@@ -1783,7 +1783,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1783
1783
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1784
1784
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1785
1785
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1786
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1786
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1787
1787
|
*/
|
|
1788
1788
|
// returns the most recent closed or canceled orders up to circa two weeks ago
|
|
1789
1789
|
await this.loadMarkets();
|
|
@@ -1854,7 +1854,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1854
1854
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1855
1855
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1856
1856
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1857
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1857
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1858
1858
|
*/
|
|
1859
1859
|
if (symbol === undefined) {
|
|
1860
1860
|
throw new ArgumentsRequired(this.id + ' fetchOrderTrades() requires a symbol argument');
|
|
@@ -1879,7 +1879,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1879
1879
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1880
1880
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1881
1881
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1882
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1882
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1883
1883
|
*/
|
|
1884
1884
|
await this.loadMarkets();
|
|
1885
1885
|
let market = undefined;
|
|
@@ -1908,7 +1908,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1908
1908
|
* @description create a currency deposit address
|
|
1909
1909
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1910
1910
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1911
|
-
* @returns {object} an [address structure]{@link https://
|
|
1911
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1912
1912
|
*/
|
|
1913
1913
|
await this.loadMarkets();
|
|
1914
1914
|
const request = {
|
|
@@ -1923,7 +1923,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1923
1923
|
* @description fetch the deposit address for a currency associated with this account
|
|
1924
1924
|
* @param {string} code unified currency code
|
|
1925
1925
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
1926
|
-
* @returns {object} an [address structure]{@link https://
|
|
1926
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1927
1927
|
*/
|
|
1928
1928
|
await this.loadMarkets();
|
|
1929
1929
|
const currency = this.currency(code);
|
|
@@ -2136,7 +2136,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2136
2136
|
* @name bitfinex2#fetchTradingFees
|
|
2137
2137
|
* @description fetch the trading fees for multiple markets
|
|
2138
2138
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
2139
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
2139
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
2140
2140
|
*/
|
|
2141
2141
|
await this.loadMarkets();
|
|
2142
2142
|
const response = await this.privatePostAuthRSummary(params);
|
|
@@ -2252,7 +2252,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2252
2252
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2253
2253
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2254
2254
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
2255
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
2255
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2256
2256
|
*/
|
|
2257
2257
|
await this.loadMarkets();
|
|
2258
2258
|
let currency = undefined;
|
|
@@ -2310,7 +2310,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2310
2310
|
* @param {string} address the address to withdraw to
|
|
2311
2311
|
* @param {string} tag
|
|
2312
2312
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
2313
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2313
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2314
2314
|
*/
|
|
2315
2315
|
this.checkAddress(address);
|
|
2316
2316
|
await this.loadMarkets();
|
|
@@ -2397,7 +2397,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2397
2397
|
* @see https://docs.bitfinex.com/reference/rest-auth-positions
|
|
2398
2398
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2399
2399
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
2400
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
2400
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
2401
2401
|
*/
|
|
2402
2402
|
await this.loadMarkets();
|
|
2403
2403
|
symbols = this.marketSymbols(symbols);
|
|
@@ -2647,7 +2647,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2647
2647
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2648
2648
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
2649
2649
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
2650
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
2650
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
2651
2651
|
*/
|
|
2652
2652
|
await this.loadMarkets();
|
|
2653
2653
|
await this.loadMarkets();
|
|
@@ -2691,7 +2691,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2691
2691
|
* @see https://docs.bitfinex.com/reference/rest-public-derivatives-status
|
|
2692
2692
|
* @param {string} symbol unified market symbol
|
|
2693
2693
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
2694
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
2694
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
2695
2695
|
*/
|
|
2696
2696
|
return this.fetchFundingRates([symbol], params);
|
|
2697
2697
|
}
|
|
@@ -2703,7 +2703,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2703
2703
|
* @see https://docs.bitfinex.com/reference/rest-public-derivatives-status
|
|
2704
2704
|
* @param {string[]} symbols list of unified market symbols
|
|
2705
2705
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
2706
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
2706
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
2707
2707
|
*/
|
|
2708
2708
|
if (symbols === undefined) {
|
|
2709
2709
|
throw new ArgumentsRequired(this.id + ' fetchFundingRates() requires a symbols argument');
|
|
@@ -2754,7 +2754,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2754
2754
|
* @see https://docs.bitfinex.com/reference/rest-public-derivatives-status-history
|
|
2755
2755
|
* @param {string} symbol unified market symbol
|
|
2756
2756
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
2757
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
2757
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
2758
2758
|
*/
|
|
2759
2759
|
await this.loadMarkets();
|
|
2760
2760
|
this.checkRequiredSymbol('fetchFundingRateHistory', symbol);
|