ccxt 4.0.74 → 4.0.75
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 +2047 -1932
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +9 -9
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +22 -22
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +17 -17
- package/dist/cjs/src/binance.js +51 -51
- package/dist/cjs/src/bingx.js +21 -21
- package/dist/cjs/src/bit2c.js +10 -10
- package/dist/cjs/src/bitbank.js +11 -11
- package/dist/cjs/src/bitbns.js +12 -12
- package/dist/cjs/src/bitfinex.js +19 -19
- package/dist/cjs/src/bitfinex2.js +25 -25
- package/dist/cjs/src/bitflyer.js +15 -15
- package/dist/cjs/src/bitforex.js +9 -9
- package/dist/cjs/src/bitget.js +34 -34
- package/dist/cjs/src/bithumb.js +9 -9
- package/dist/cjs/src/bitmart.js +42 -29
- package/dist/cjs/src/bitmex.js +19 -19
- package/dist/cjs/src/bitopro.js +18 -18
- package/dist/cjs/src/bitpanda.js +19 -19
- package/dist/cjs/src/bitrue.js +15 -15
- package/dist/cjs/src/bitso.js +19 -19
- package/dist/cjs/src/bitstamp.js +19 -19
- package/dist/cjs/src/bitstamp1.js +6 -6
- package/dist/cjs/src/bittrex.js +24 -24
- package/dist/cjs/src/bitvavo.js +16 -16
- package/dist/cjs/src/bkex.js +17 -17
- package/dist/cjs/src/bl3p.js +6 -6
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +13 -13
- package/dist/cjs/src/btcbox.js +8 -8
- package/dist/cjs/src/btcmarkets.js +15 -15
- package/dist/cjs/src/btctradeua.js +6 -6
- package/dist/cjs/src/btcturk.js +9 -9
- package/dist/cjs/src/bybit.js +148 -116
- package/dist/cjs/src/cex.js +12 -12
- package/dist/cjs/src/coinbase.js +20 -20
- package/dist/cjs/src/coinbasepro.js +22 -22
- package/dist/cjs/src/coincheck.js +10 -10
- package/dist/cjs/src/coinex.js +81 -35
- package/dist/cjs/src/coinfalcon.js +14 -14
- package/dist/cjs/src/coinmate.js +12 -12
- package/dist/cjs/src/coinone.js +10 -10
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +6 -6
- package/dist/cjs/src/cryptocom.js +24 -24
- package/dist/cjs/src/currencycom.js +18 -18
- package/dist/cjs/src/delta.js +23 -23
- package/dist/cjs/src/deribit.js +27 -27
- package/dist/cjs/src/digifinex.js +27 -27
- package/dist/cjs/src/exmo.js +24 -24
- package/dist/cjs/src/gate.js +34 -34
- package/dist/cjs/src/gemini.js +14 -14
- package/dist/cjs/src/hitbtc.js +30 -30
- package/dist/cjs/src/hollaex.js +20 -20
- package/dist/cjs/src/huobi.js +40 -40
- package/dist/cjs/src/huobijp.js +18 -18
- package/dist/cjs/src/idex.js +17 -17
- package/dist/cjs/src/independentreserve.js +10 -10
- package/dist/cjs/src/indodax.js +12 -12
- package/dist/cjs/src/kraken.js +25 -25
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +29 -29
- package/dist/cjs/src/kucoinfutures.js +19 -19
- package/dist/cjs/src/kuna.js +10 -10
- package/dist/cjs/src/latoken.js +15 -15
- package/dist/cjs/src/lbank.js +10 -10
- package/dist/cjs/src/lbank2.js +21 -21
- package/dist/cjs/src/luno.js +14 -14
- package/dist/cjs/src/lykke.js +14 -14
- package/dist/cjs/src/mercado.js +10 -10
- package/dist/cjs/src/mexc.js +38 -38
- package/dist/cjs/src/ndax.js +18 -18
- package/dist/cjs/src/novadax.js +18 -18
- package/dist/cjs/src/oceanex.js +14 -14
- package/dist/cjs/src/okcoin.js +19 -19
- package/dist/cjs/src/okx.js +48 -48
- package/dist/cjs/src/paymium.js +9 -9
- package/dist/cjs/src/phemex.js +24 -24
- package/dist/cjs/src/poloniex.js +77 -60
- package/dist/cjs/src/poloniexfutures.js +16 -16
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +10 -10
- package/dist/cjs/src/pro/bitfinex.js +3 -3
- package/dist/cjs/src/pro/bitfinex2.js +4 -4
- package/dist/cjs/src/pro/bitget.js +4 -4
- package/dist/cjs/src/pro/bitmart.js +3 -3
- package/dist/cjs/src/pro/bitmex.js +4 -4
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +2 -2
- package/dist/cjs/src/pro/bittrex.js +4 -4
- package/dist/cjs/src/pro/bitvavo.js +4 -4
- package/dist/cjs/src/pro/bybit.js +5 -5
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbasepro.js +5 -5
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +7 -7
- package/dist/cjs/src/pro/currencycom.js +2 -2
- package/dist/cjs/src/pro/deribit.js +3 -3
- package/dist/cjs/src/pro/exmo.js +2 -2
- package/dist/cjs/src/pro/gate.js +5 -5
- package/dist/cjs/src/pro/gemini.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +2 -2
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/huobi.js +4 -4
- package/dist/cjs/src/pro/huobijp.js +2 -2
- package/dist/cjs/src/pro/idex.js +3 -3
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +6 -6
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +4 -4
- package/dist/cjs/src/pro/kucoinfutures.js +3 -3
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/ndax.js +2 -2
- package/dist/cjs/src/pro/okcoin.js +3 -3
- package/dist/cjs/src/pro/okx.js +12 -11
- package/dist/cjs/src/pro/phemex.js +4 -4
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/upbit.js +2 -2
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +4 -4
- package/dist/cjs/src/probit.js +17 -17
- package/dist/cjs/src/tidex.js +11 -11
- package/dist/cjs/src/timex.js +14 -14
- package/dist/cjs/src/tokocrypto.js +16 -16
- package/dist/cjs/src/upbit.js +18 -18
- package/dist/cjs/src/wavesexchange.js +13 -13
- package/dist/cjs/src/wazirx.js +10 -10
- package/dist/cjs/src/whitebit.js +21 -21
- package/dist/cjs/src/woo.js +28 -22
- package/dist/cjs/src/yobit.js +14 -14
- package/dist/cjs/src/zaif.js +8 -8
- package/dist/cjs/src/zonda.js +13 -13
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +9 -9
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +22 -22
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +17 -17
- package/js/src/binance.js +51 -51
- package/js/src/bingx.js +21 -21
- package/js/src/bit2c.js +10 -10
- package/js/src/bitbank.js +11 -11
- package/js/src/bitbns.js +12 -12
- package/js/src/bitfinex.js +19 -19
- package/js/src/bitfinex2.js +25 -25
- package/js/src/bitflyer.js +15 -15
- package/js/src/bitforex.js +9 -9
- package/js/src/bitget.js +34 -34
- package/js/src/bithumb.js +9 -9
- package/js/src/bitmart.js +42 -29
- package/js/src/bitmex.js +19 -19
- package/js/src/bitopro.js +18 -18
- package/js/src/bitpanda.js +19 -19
- package/js/src/bitrue.js +15 -15
- package/js/src/bitso.js +19 -19
- package/js/src/bitstamp.js +19 -19
- package/js/src/bitstamp1.js +6 -6
- package/js/src/bittrex.js +24 -24
- package/js/src/bitvavo.js +16 -16
- package/js/src/bkex.js +17 -17
- package/js/src/bl3p.js +6 -6
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +13 -13
- package/js/src/btcbox.js +8 -8
- package/js/src/btcmarkets.js +15 -15
- package/js/src/btctradeua.js +6 -6
- package/js/src/btcturk.js +9 -9
- package/js/src/bybit.js +148 -116
- package/js/src/cex.js +12 -12
- package/js/src/coinbase.js +20 -20
- package/js/src/coinbasepro.js +22 -22
- package/js/src/coincheck.js +10 -10
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +81 -35
- package/js/src/coinfalcon.js +14 -14
- package/js/src/coinmate.js +12 -12
- package/js/src/coinone.js +10 -10
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.js +6 -6
- package/js/src/cryptocom.js +24 -24
- package/js/src/currencycom.js +18 -18
- package/js/src/delta.js +23 -23
- package/js/src/deribit.js +27 -27
- package/js/src/digifinex.js +27 -27
- package/js/src/exmo.js +24 -24
- package/js/src/gate.js +34 -34
- package/js/src/gemini.js +14 -14
- package/js/src/hitbtc.js +30 -30
- package/js/src/hollaex.js +20 -20
- package/js/src/huobi.js +40 -40
- package/js/src/huobijp.js +18 -18
- package/js/src/idex.js +17 -17
- package/js/src/independentreserve.js +10 -10
- package/js/src/indodax.js +12 -12
- package/js/src/kraken.js +25 -25
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +29 -29
- package/js/src/kucoinfutures.js +19 -19
- package/js/src/kuna.js +10 -10
- package/js/src/latoken.js +15 -15
- package/js/src/lbank.js +10 -10
- package/js/src/lbank2.js +21 -21
- package/js/src/luno.js +14 -14
- package/js/src/lykke.js +14 -14
- package/js/src/mercado.js +10 -10
- package/js/src/mexc.js +38 -38
- package/js/src/ndax.js +18 -18
- package/js/src/novadax.js +18 -18
- package/js/src/oceanex.js +14 -14
- package/js/src/okcoin.js +19 -19
- package/js/src/okx.js +48 -48
- package/js/src/paymium.js +9 -9
- package/js/src/phemex.js +24 -24
- package/js/src/poloniex.js +77 -60
- package/js/src/poloniexfutures.js +16 -16
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +10 -10
- package/js/src/pro/bitfinex.js +3 -3
- package/js/src/pro/bitfinex2.js +4 -4
- package/js/src/pro/bitget.js +4 -4
- package/js/src/pro/bitmart.js +3 -3
- package/js/src/pro/bitmex.js +4 -4
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +2 -2
- package/js/src/pro/bittrex.js +4 -4
- package/js/src/pro/bitvavo.js +4 -4
- package/js/src/pro/bybit.js +5 -5
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbasepro.js +5 -5
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/cryptocom.js +7 -7
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +2 -2
- package/js/src/pro/gate.js +5 -5
- package/js/src/pro/gemini.js +2 -2
- package/js/src/pro/hitbtc.js +2 -2
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/huobi.js +4 -4
- package/js/src/pro/huobijp.js +2 -2
- package/js/src/pro/idex.js +3 -3
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/kucoin.js +4 -4
- package/js/src/pro/kucoinfutures.js +3 -3
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/ndax.js +2 -2
- package/js/src/pro/okcoin.js +3 -3
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +12 -11
- package/js/src/pro/phemex.js +4 -4
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/upbit.js +2 -2
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +4 -4
- package/js/src/probit.js +17 -17
- package/js/src/tidex.js +11 -11
- package/js/src/timex.js +14 -14
- package/js/src/tokocrypto.js +16 -16
- package/js/src/upbit.js +18 -18
- package/js/src/wavesexchange.js +13 -13
- package/js/src/wazirx.js +10 -10
- package/js/src/whitebit.js +21 -21
- package/js/src/woo.js +28 -22
- package/js/src/yobit.js +14 -14
- package/js/src/zaif.js +8 -8
- package/js/src/zonda.js +13 -13
- package/package.json +1 -1
package/js/src/bit2c.js
CHANGED
|
@@ -264,7 +264,7 @@ export default class bit2c extends Exchange {
|
|
|
264
264
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
265
265
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
266
266
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
267
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
267
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
268
268
|
*/
|
|
269
269
|
await this.loadMarkets();
|
|
270
270
|
const market = this.market(symbol);
|
|
@@ -310,7 +310,7 @@ export default class bit2c extends Exchange {
|
|
|
310
310
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
311
311
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
312
312
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
313
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
313
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
314
314
|
*/
|
|
315
315
|
await this.loadMarkets();
|
|
316
316
|
const market = this.market(symbol);
|
|
@@ -362,7 +362,7 @@ export default class bit2c extends Exchange {
|
|
|
362
362
|
* @name bit2c#fetchTradingFees
|
|
363
363
|
* @description fetch the trading fees for multiple markets
|
|
364
364
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
365
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
365
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
366
366
|
*/
|
|
367
367
|
await this.loadMarkets();
|
|
368
368
|
const response = await this.privateGetAccountBalance(params);
|
|
@@ -413,9 +413,9 @@ export default class bit2c extends Exchange {
|
|
|
413
413
|
* @param {string} type 'market' or 'limit'
|
|
414
414
|
* @param {string} side 'buy' or 'sell'
|
|
415
415
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
416
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
416
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
417
417
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
418
|
-
* @returns {object} an [order structure]{@link https://
|
|
418
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
419
419
|
*/
|
|
420
420
|
await this.loadMarkets();
|
|
421
421
|
let method = 'privatePostOrderAddOrder';
|
|
@@ -445,7 +445,7 @@ export default class bit2c extends Exchange {
|
|
|
445
445
|
* @param {string} id order id
|
|
446
446
|
* @param {string} symbol Not used by bit2c cancelOrder ()
|
|
447
447
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
448
|
-
* @returns {object} An [order structure]{@link https://
|
|
448
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
449
449
|
*/
|
|
450
450
|
const request = {
|
|
451
451
|
'id': id,
|
|
@@ -461,7 +461,7 @@ export default class bit2c extends Exchange {
|
|
|
461
461
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
462
462
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
463
463
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
464
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
464
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
465
465
|
*/
|
|
466
466
|
if (symbol === undefined) {
|
|
467
467
|
throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -484,7 +484,7 @@ export default class bit2c extends Exchange {
|
|
|
484
484
|
* @description fetches information on an order made by the user
|
|
485
485
|
* @param {string} symbol unified market symbol
|
|
486
486
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
487
|
-
* @returns {object} An [order structure]{@link https://
|
|
487
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
488
488
|
*/
|
|
489
489
|
await this.loadMarkets();
|
|
490
490
|
const market = this.market(symbol);
|
|
@@ -638,7 +638,7 @@ export default class bit2c extends Exchange {
|
|
|
638
638
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
639
639
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
640
640
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
641
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
641
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
642
642
|
*/
|
|
643
643
|
await this.loadMarkets();
|
|
644
644
|
let market = undefined;
|
|
@@ -816,7 +816,7 @@ export default class bit2c extends Exchange {
|
|
|
816
816
|
* @description fetch the deposit address for a currency associated with this account
|
|
817
817
|
* @param {string} code unified currency code
|
|
818
818
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
819
|
-
* @returns {object} an [address structure]{@link https://
|
|
819
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
820
820
|
*/
|
|
821
821
|
await this.loadMarkets();
|
|
822
822
|
const currency = this.currency(code);
|
package/js/src/bitbank.js
CHANGED
|
@@ -287,7 +287,7 @@ export default class bitbank extends Exchange {
|
|
|
287
287
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
288
288
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
289
289
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
290
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
290
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
291
291
|
*/
|
|
292
292
|
await this.loadMarkets();
|
|
293
293
|
const market = this.market(symbol);
|
|
@@ -306,7 +306,7 @@ export default class bitbank extends Exchange {
|
|
|
306
306
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
307
307
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
308
308
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
309
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
309
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
310
310
|
*/
|
|
311
311
|
await this.loadMarkets();
|
|
312
312
|
const market = this.market(symbol);
|
|
@@ -379,7 +379,7 @@ export default class bitbank extends Exchange {
|
|
|
379
379
|
* @name bitbank#fetchTradingFees
|
|
380
380
|
* @description fetch the trading fees for multiple markets
|
|
381
381
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
382
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
382
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
383
383
|
*/
|
|
384
384
|
await this.loadMarkets();
|
|
385
385
|
const response = await this.marketsGetSpotPairs(params);
|
|
@@ -623,9 +623,9 @@ export default class bitbank extends Exchange {
|
|
|
623
623
|
* @param {string} type 'market' or 'limit'
|
|
624
624
|
* @param {string} side 'buy' or 'sell'
|
|
625
625
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
626
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
626
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
627
627
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
628
|
-
* @returns {object} an [order structure]{@link https://
|
|
628
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
629
629
|
*/
|
|
630
630
|
await this.loadMarkets();
|
|
631
631
|
const market = this.market(symbol);
|
|
@@ -650,7 +650,7 @@ export default class bitbank extends Exchange {
|
|
|
650
650
|
* @param {string} id order id
|
|
651
651
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
652
652
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
653
|
-
* @returns {object} An [order structure]{@link https://
|
|
653
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
654
654
|
*/
|
|
655
655
|
await this.loadMarkets();
|
|
656
656
|
const market = this.market(symbol);
|
|
@@ -669,7 +669,7 @@ export default class bitbank 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 bitbank 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
|
await this.loadMarkets();
|
|
675
675
|
const market = this.market(symbol);
|
|
@@ -690,7 +690,7 @@ export default class bitbank extends Exchange {
|
|
|
690
690
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
691
691
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
692
692
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
693
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
693
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
694
694
|
*/
|
|
695
695
|
await this.loadMarkets();
|
|
696
696
|
const market = this.market(symbol);
|
|
@@ -717,7 +717,7 @@ export default class bitbank extends Exchange {
|
|
|
717
717
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
718
718
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
719
719
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
720
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
720
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
721
721
|
*/
|
|
722
722
|
await this.loadMarkets();
|
|
723
723
|
const request = {};
|
|
@@ -744,7 +744,7 @@ export default class bitbank extends Exchange {
|
|
|
744
744
|
* @description fetch the deposit address for a currency associated with this account
|
|
745
745
|
* @param {string} code unified currency code
|
|
746
746
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
747
|
-
* @returns {object} an [address structure]{@link https://
|
|
747
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
748
748
|
*/
|
|
749
749
|
await this.loadMarkets();
|
|
750
750
|
const currency = this.currency(code);
|
|
@@ -775,7 +775,7 @@ export default class bitbank extends Exchange {
|
|
|
775
775
|
* @param {string} address the address to withdraw to
|
|
776
776
|
* @param {string} tag
|
|
777
777
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
778
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
778
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
779
779
|
*/
|
|
780
780
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
781
781
|
if (!('uuid' in params)) {
|
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);
|
|
@@ -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');
|
|
@@ -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);
|
|
@@ -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);
|
|
@@ -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);
|