ccxt 4.0.73 → 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 +11 -11
- package/dist/ccxt.browser.js +2058 -1943
- 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 +25 -26
- 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 +12 -11
- 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 +25 -26
- 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.d.ts +1 -1
- package/js/src/pro/bybit.js +12 -11
- 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
|
@@ -578,7 +578,7 @@ class currencycom extends currencycom$1 {
|
|
|
578
578
|
* @name currencycom#fetchAccounts
|
|
579
579
|
* @description fetch all the accounts associated with a profile
|
|
580
580
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
581
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
581
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
582
582
|
*/
|
|
583
583
|
const response = await this.privateGetV2Account(params);
|
|
584
584
|
//
|
|
@@ -634,7 +634,7 @@ class currencycom extends currencycom$1 {
|
|
|
634
634
|
* @name currencycom#fetchTradingFees
|
|
635
635
|
* @description fetch the trading fees for multiple markets
|
|
636
636
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
637
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
637
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
638
638
|
*/
|
|
639
639
|
await this.loadMarkets();
|
|
640
640
|
const response = await this.privateGetV2Account(params);
|
|
@@ -755,7 +755,7 @@ class currencycom extends currencycom$1 {
|
|
|
755
755
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
756
756
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
757
757
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
758
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
758
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
759
759
|
*/
|
|
760
760
|
await this.loadMarkets();
|
|
761
761
|
const market = this.market(symbol);
|
|
@@ -870,7 +870,7 @@ class currencycom extends currencycom$1 {
|
|
|
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 currencycom 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);
|
|
@@ -907,7 +907,7 @@ class currencycom extends currencycom$1 {
|
|
|
907
907
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
908
908
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
909
909
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
910
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
910
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
911
911
|
*/
|
|
912
912
|
await this.loadMarkets();
|
|
913
913
|
const response = await this.publicGetV2Ticker24hr(params);
|
|
@@ -1256,9 +1256,9 @@ class currencycom extends currencycom$1 {
|
|
|
1256
1256
|
* @param {string} type 'market' or 'limit'
|
|
1257
1257
|
* @param {string} side 'buy' or 'sell'
|
|
1258
1258
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1259
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1259
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1260
1260
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1261
|
-
* @returns {object} an [order structure]{@link https://
|
|
1261
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1262
1262
|
*/
|
|
1263
1263
|
await this.loadMarkets();
|
|
1264
1264
|
const market = this.market(symbol);
|
|
@@ -1351,7 +1351,7 @@ class currencycom extends currencycom$1 {
|
|
|
1351
1351
|
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getOrderUsingGET
|
|
1352
1352
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1353
1353
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1354
|
-
* @returns {object} An [order structure]{@link https://
|
|
1354
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1355
1355
|
*/
|
|
1356
1356
|
this.checkRequiredSymbol('fetchOrder', symbol);
|
|
1357
1357
|
await this.loadMarkets();
|
|
@@ -1394,7 +1394,7 @@ class currencycom extends currencycom$1 {
|
|
|
1394
1394
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1395
1395
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1396
1396
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1397
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1397
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1398
1398
|
*/
|
|
1399
1399
|
await this.loadMarkets();
|
|
1400
1400
|
let market = undefined;
|
|
@@ -1439,7 +1439,7 @@ class currencycom extends currencycom$1 {
|
|
|
1439
1439
|
* @param {string} id order id
|
|
1440
1440
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1441
1441
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1442
|
-
* @returns {object} An [order structure]{@link https://
|
|
1442
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1443
1443
|
*/
|
|
1444
1444
|
if (symbol === undefined) {
|
|
1445
1445
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -1483,7 +1483,7 @@ class currencycom extends currencycom$1 {
|
|
|
1483
1483
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1484
1484
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1485
1485
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1486
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1486
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1487
1487
|
*/
|
|
1488
1488
|
if (symbol === undefined) {
|
|
1489
1489
|
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -1526,7 +1526,7 @@ class currencycom extends currencycom$1 {
|
|
|
1526
1526
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1527
1527
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1528
1528
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1529
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1529
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1530
1530
|
*/
|
|
1531
1531
|
return await this.fetchTransactionsByMethod('privateGetV2Deposits', code, since, limit, params);
|
|
1532
1532
|
}
|
|
@@ -1539,7 +1539,7 @@ class currencycom extends currencycom$1 {
|
|
|
1539
1539
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1540
1540
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1541
1541
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1542
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1542
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1543
1543
|
*/
|
|
1544
1544
|
return await this.fetchTransactionsByMethod('privateGetV2Withdrawals', code, since, limit, params);
|
|
1545
1545
|
}
|
|
@@ -1552,7 +1552,7 @@ class currencycom extends currencycom$1 {
|
|
|
1552
1552
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1553
1553
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1554
1554
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1555
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1555
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1556
1556
|
*/
|
|
1557
1557
|
return await this.fetchTransactionsByMethod('privateGetV2Transactions', code, since, limit, params);
|
|
1558
1558
|
}
|
|
@@ -1662,7 +1662,7 @@ class currencycom extends currencycom$1 {
|
|
|
1662
1662
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1663
1663
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
1664
1664
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1665
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
1665
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
1666
1666
|
*/
|
|
1667
1667
|
await this.loadMarkets();
|
|
1668
1668
|
const request = {};
|
|
@@ -1761,7 +1761,7 @@ class currencycom extends currencycom$1 {
|
|
|
1761
1761
|
* @description fetch the set leverage for a market
|
|
1762
1762
|
* @param {string} symbol unified market symbol
|
|
1763
1763
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1764
|
-
* @returns {object} a [leverage structure]{@link https://
|
|
1764
|
+
* @returns {object} a [leverage structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-structure}
|
|
1765
1765
|
*/
|
|
1766
1766
|
await this.loadMarkets();
|
|
1767
1767
|
const market = this.market(symbol);
|
|
@@ -1784,7 +1784,7 @@ class currencycom extends currencycom$1 {
|
|
|
1784
1784
|
* @description fetch the deposit address for a currency associated with this account
|
|
1785
1785
|
* @param {string} code unified currency code
|
|
1786
1786
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1787
|
-
* @returns {object} an [address structure]{@link https://
|
|
1787
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1788
1788
|
*/
|
|
1789
1789
|
await this.loadMarkets();
|
|
1790
1790
|
const currency = this.currency(code);
|
|
@@ -1850,7 +1850,7 @@ class currencycom extends currencycom$1 {
|
|
|
1850
1850
|
* @description fetch all open positions
|
|
1851
1851
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1852
1852
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1853
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
1853
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
1854
1854
|
*/
|
|
1855
1855
|
await this.loadMarkets();
|
|
1856
1856
|
const response = await this.privateGetV2TradingPositions(params);
|
package/dist/cjs/src/delta.js
CHANGED
|
@@ -356,7 +356,7 @@ class delta extends delta$1 {
|
|
|
356
356
|
* @name delta#fetchStatus
|
|
357
357
|
* @description the latest known information on the availability of the exchange API
|
|
358
358
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
359
|
-
* @returns {object} a [status structure]{@link https://
|
|
359
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
360
360
|
*/
|
|
361
361
|
const response = await this.publicGetSettings(params);
|
|
362
362
|
//
|
|
@@ -972,7 +972,7 @@ class delta extends delta$1 {
|
|
|
972
972
|
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
973
973
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
974
974
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
975
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
975
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
976
976
|
*/
|
|
977
977
|
await this.loadMarkets();
|
|
978
978
|
const market = this.market(symbol);
|
|
@@ -1115,7 +1115,7 @@ class delta extends delta$1 {
|
|
|
1115
1115
|
* @see https://docs.delta.exchange/#get-tickers-for-products
|
|
1116
1116
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1117
1117
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1118
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1118
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1119
1119
|
*/
|
|
1120
1120
|
await this.loadMarkets();
|
|
1121
1121
|
symbols = this.marketSymbols(symbols);
|
|
@@ -1268,7 +1268,7 @@ class delta extends delta$1 {
|
|
|
1268
1268
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1269
1269
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1270
1270
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1271
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
1271
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
1272
1272
|
*/
|
|
1273
1273
|
await this.loadMarkets();
|
|
1274
1274
|
const market = this.market(symbol);
|
|
@@ -1569,7 +1569,7 @@ class delta extends delta$1 {
|
|
|
1569
1569
|
* @see https://docs.delta.exchange/#get-position
|
|
1570
1570
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
1571
1571
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1572
|
-
* @returns {object} a [position structure]{@link https://
|
|
1572
|
+
* @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
1573
1573
|
*/
|
|
1574
1574
|
await this.loadMarkets();
|
|
1575
1575
|
const market = this.market(symbol);
|
|
@@ -1598,7 +1598,7 @@ class delta extends delta$1 {
|
|
|
1598
1598
|
* @see https://docs.delta.exchange/#get-margined-positions
|
|
1599
1599
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1600
1600
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1601
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
1601
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
1602
1602
|
*/
|
|
1603
1603
|
await this.loadMarkets();
|
|
1604
1604
|
const response = await this.privateGetPositionsMargined(params);
|
|
@@ -1801,10 +1801,10 @@ class delta extends delta$1 {
|
|
|
1801
1801
|
* @param {string} type 'market' or 'limit'
|
|
1802
1802
|
* @param {string} side 'buy' or 'sell'
|
|
1803
1803
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1804
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1804
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1805
1805
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1806
1806
|
* @param {bool} [params.reduceOnly] *contract only* indicates if this order is to reduce the size of a position
|
|
1807
|
-
* @returns {object} an [order structure]{@link https://
|
|
1807
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1808
1808
|
*/
|
|
1809
1809
|
await this.loadMarkets();
|
|
1810
1810
|
const orderType = type + '_order';
|
|
@@ -1884,9 +1884,9 @@ class delta extends delta$1 {
|
|
|
1884
1884
|
* @param {string} type 'market' or 'limit'
|
|
1885
1885
|
* @param {string} side 'buy' or 'sell'
|
|
1886
1886
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
1887
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency
|
|
1887
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency
|
|
1888
1888
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1889
|
-
* @returns {object} an [order structure]{@link https://
|
|
1889
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1890
1890
|
*/
|
|
1891
1891
|
await this.loadMarkets();
|
|
1892
1892
|
const market = this.market(symbol);
|
|
@@ -1932,7 +1932,7 @@ class delta extends delta$1 {
|
|
|
1932
1932
|
* @param {string} id order id
|
|
1933
1933
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1934
1934
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1935
|
-
* @returns {object} An [order structure]{@link https://
|
|
1935
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1936
1936
|
*/
|
|
1937
1937
|
this.checkRequiredSymbol('cancelOrder', symbol);
|
|
1938
1938
|
await this.loadMarkets();
|
|
@@ -1989,7 +1989,7 @@ class delta extends delta$1 {
|
|
|
1989
1989
|
* @see https://docs.delta.exchange/#cancel-all-open-orders
|
|
1990
1990
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
1991
1991
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1992
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1992
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1993
1993
|
*/
|
|
1994
1994
|
this.checkRequiredSymbol('cancelAllOrders', symbol);
|
|
1995
1995
|
await this.loadMarkets();
|
|
@@ -2018,7 +2018,7 @@ class delta extends delta$1 {
|
|
|
2018
2018
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2019
2019
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
2020
2020
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2021
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2021
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2022
2022
|
*/
|
|
2023
2023
|
return await this.fetchOrdersWithMethod('privateGetOrders', symbol, since, limit, params);
|
|
2024
2024
|
}
|
|
@@ -2032,7 +2032,7 @@ class delta extends delta$1 {
|
|
|
2032
2032
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2033
2033
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2034
2034
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2035
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2035
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2036
2036
|
*/
|
|
2037
2037
|
return await this.fetchOrdersWithMethod('privateGetOrdersHistory', symbol, since, limit, params);
|
|
2038
2038
|
}
|
|
@@ -2096,7 +2096,7 @@ class delta extends delta$1 {
|
|
|
2096
2096
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2097
2097
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2098
2098
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2099
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
2099
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
2100
2100
|
*/
|
|
2101
2101
|
await this.loadMarkets();
|
|
2102
2102
|
const request = {
|
|
@@ -2178,7 +2178,7 @@ class delta extends delta$1 {
|
|
|
2178
2178
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2179
2179
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
2180
2180
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2181
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
2181
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
2182
2182
|
*/
|
|
2183
2183
|
await this.loadMarkets();
|
|
2184
2184
|
const request = {
|
|
@@ -2301,7 +2301,7 @@ class delta extends delta$1 {
|
|
|
2301
2301
|
* @param {string} code unified currency code
|
|
2302
2302
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2303
2303
|
* @param {string} [params.network] unified network code
|
|
2304
|
-
* @returns {object} an [address structure]{@link https://
|
|
2304
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
2305
2305
|
*/
|
|
2306
2306
|
await this.loadMarkets();
|
|
2307
2307
|
const currency = this.currency(code);
|
|
@@ -2369,7 +2369,7 @@ class delta extends delta$1 {
|
|
|
2369
2369
|
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
2370
2370
|
* @param {string} symbol unified market symbol
|
|
2371
2371
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2372
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
2372
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
2373
2373
|
*/
|
|
2374
2374
|
await this.loadMarkets();
|
|
2375
2375
|
const market = this.market(symbol);
|
|
@@ -2436,7 +2436,7 @@ class delta extends delta$1 {
|
|
|
2436
2436
|
* @see https://docs.delta.exchange/#get-tickers-for-products
|
|
2437
2437
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2438
2438
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2439
|
-
* @returns {object} a dictionary of [funding rates structures]{@link https://
|
|
2439
|
+
* @returns {object} a dictionary of [funding rates structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rates-structure}, indexe by market symbols
|
|
2440
2440
|
*/
|
|
2441
2441
|
await this.loadMarkets();
|
|
2442
2442
|
symbols = this.marketSymbols(symbols);
|
|
@@ -2571,7 +2571,7 @@ class delta extends delta$1 {
|
|
|
2571
2571
|
* @param {string} symbol unified market symbol
|
|
2572
2572
|
* @param {float} amount amount of margin to add
|
|
2573
2573
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2574
|
-
* @returns {object} a [margin structure]{@link https://
|
|
2574
|
+
* @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
|
|
2575
2575
|
*/
|
|
2576
2576
|
return await this.modifyMarginHelper(symbol, amount, 'add', params);
|
|
2577
2577
|
}
|
|
@@ -2584,7 +2584,7 @@ class delta extends delta$1 {
|
|
|
2584
2584
|
* @param {string} symbol unified market symbol
|
|
2585
2585
|
* @param {float} amount the amount of margin to remove
|
|
2586
2586
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2587
|
-
* @returns {object} a [margin structure]{@link https://
|
|
2587
|
+
* @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#reduce-margin-structure}
|
|
2588
2588
|
*/
|
|
2589
2589
|
return await this.modifyMarginHelper(symbol, amount, 'reduce', params);
|
|
2590
2590
|
}
|
|
@@ -2667,7 +2667,7 @@ class delta extends delta$1 {
|
|
|
2667
2667
|
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
2668
2668
|
* @param {string} symbol unified market symbol
|
|
2669
2669
|
* @param {object} [params] exchange specific parameters
|
|
2670
|
-
* @returns {object} an open interest structure{@link https://
|
|
2670
|
+
* @returns {object} an open interest structure{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure}
|
|
2671
2671
|
*/
|
|
2672
2672
|
await this.loadMarkets();
|
|
2673
2673
|
const market = this.market(symbol);
|
|
@@ -2804,7 +2804,7 @@ class delta extends delta$1 {
|
|
|
2804
2804
|
* @see https://docs.delta.exchange/#get-order-leverage
|
|
2805
2805
|
* @param {string} symbol unified market symbol
|
|
2806
2806
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2807
|
-
* @returns {object} a [leverage structure]{@link https://
|
|
2807
|
+
* @returns {object} a [leverage structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-structure}
|
|
2808
2808
|
*/
|
|
2809
2809
|
await this.loadMarkets();
|
|
2810
2810
|
const market = this.market(symbol);
|
package/dist/cjs/src/deribit.js
CHANGED
|
@@ -497,7 +497,7 @@ class deribit extends deribit$1 {
|
|
|
497
497
|
* @name deribit#fetchStatus
|
|
498
498
|
* @description the latest known information on the availability of the exchange API
|
|
499
499
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
500
|
-
* @returns {object} a [status structure]{@link https://
|
|
500
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
501
501
|
*/
|
|
502
502
|
const response = await this.publicGetStatus(params);
|
|
503
503
|
//
|
|
@@ -529,7 +529,7 @@ class deribit extends deribit$1 {
|
|
|
529
529
|
* @name deribit#fetchAccounts
|
|
530
530
|
* @description fetch all the accounts associated with a profile
|
|
531
531
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
532
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
532
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
533
533
|
*/
|
|
534
534
|
await this.loadMarkets();
|
|
535
535
|
const response = await this.privateGetGetSubaccounts(params);
|
|
@@ -894,7 +894,7 @@ class deribit extends deribit$1 {
|
|
|
894
894
|
* @description create a currency deposit address
|
|
895
895
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
896
896
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
897
|
-
* @returns {object} an [address structure]{@link https://
|
|
897
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
898
898
|
*/
|
|
899
899
|
await this.loadMarkets();
|
|
900
900
|
const currency = this.currency(code);
|
|
@@ -931,7 +931,7 @@ class deribit extends deribit$1 {
|
|
|
931
931
|
* @description fetch the deposit address for a currency associated with this account
|
|
932
932
|
* @param {string} code unified currency code
|
|
933
933
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
934
|
-
* @returns {object} an [address structure]{@link https://
|
|
934
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
935
935
|
*/
|
|
936
936
|
await this.loadMarkets();
|
|
937
937
|
const currency = this.currency(code);
|
|
@@ -1049,7 +1049,7 @@ class deribit extends deribit$1 {
|
|
|
1049
1049
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1050
1050
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1051
1051
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1052
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
1052
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1053
1053
|
*/
|
|
1054
1054
|
await this.loadMarkets();
|
|
1055
1055
|
const market = this.market(symbol);
|
|
@@ -1095,7 +1095,7 @@ class deribit extends deribit$1 {
|
|
|
1095
1095
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1096
1096
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1097
1097
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1098
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1098
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1099
1099
|
*/
|
|
1100
1100
|
await this.loadMarkets();
|
|
1101
1101
|
symbols = this.marketSymbols(symbols);
|
|
@@ -1354,7 +1354,7 @@ class deribit extends deribit$1 {
|
|
|
1354
1354
|
* @name deribit#fetchTradingFees
|
|
1355
1355
|
* @description fetch the trading fees for multiple markets
|
|
1356
1356
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1357
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
1357
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
1358
1358
|
*/
|
|
1359
1359
|
await this.loadMarkets();
|
|
1360
1360
|
const code = this.codeFromOptions('fetchTradingFees', params);
|
|
@@ -1476,7 +1476,7 @@ class deribit extends deribit$1 {
|
|
|
1476
1476
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1477
1477
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1478
1478
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1479
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
1479
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
1480
1480
|
*/
|
|
1481
1481
|
await this.loadMarkets();
|
|
1482
1482
|
const market = this.market(symbol);
|
|
@@ -1665,7 +1665,7 @@ class deribit extends deribit$1 {
|
|
|
1665
1665
|
* @description fetches information on an order made by the user
|
|
1666
1666
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1667
1667
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1668
|
-
* @returns {object} An [order structure]{@link https://
|
|
1668
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1669
1669
|
*/
|
|
1670
1670
|
await this.loadMarkets();
|
|
1671
1671
|
const request = {
|
|
@@ -1713,9 +1713,9 @@ class deribit extends deribit$1 {
|
|
|
1713
1713
|
* @param {string} type 'market' or 'limit'
|
|
1714
1714
|
* @param {string} side 'buy' or 'sell'
|
|
1715
1715
|
* @param {float} amount how much of currency you want to trade. For perpetual and futures the amount is in USD. For options it is in corresponding cryptocurrency contracts currency.
|
|
1716
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1716
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1717
1717
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1718
|
-
* @returns {object} an [order structure]{@link https://
|
|
1718
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1719
1719
|
*/
|
|
1720
1720
|
await this.loadMarkets();
|
|
1721
1721
|
const market = this.market(symbol);
|
|
@@ -1911,7 +1911,7 @@ class deribit extends deribit$1 {
|
|
|
1911
1911
|
* @param {string} id order id
|
|
1912
1912
|
* @param {string} symbol not used by deribit cancelOrder ()
|
|
1913
1913
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1914
|
-
* @returns {object} An [order structure]{@link https://
|
|
1914
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1915
1915
|
*/
|
|
1916
1916
|
await this.loadMarkets();
|
|
1917
1917
|
const request = {
|
|
@@ -1928,7 +1928,7 @@ class deribit extends deribit$1 {
|
|
|
1928
1928
|
* @description cancel all open orders
|
|
1929
1929
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1930
1930
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1931
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1931
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1932
1932
|
*/
|
|
1933
1933
|
await this.loadMarkets();
|
|
1934
1934
|
const request = {};
|
|
@@ -1953,7 +1953,7 @@ class deribit extends deribit$1 {
|
|
|
1953
1953
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1954
1954
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1955
1955
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1956
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1956
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1957
1957
|
*/
|
|
1958
1958
|
await this.loadMarkets();
|
|
1959
1959
|
const request = {};
|
|
@@ -1983,7 +1983,7 @@ class deribit extends deribit$1 {
|
|
|
1983
1983
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1984
1984
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1985
1985
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1986
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1986
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1987
1987
|
*/
|
|
1988
1988
|
await this.loadMarkets();
|
|
1989
1989
|
const request = {};
|
|
@@ -2014,7 +2014,7 @@ class deribit extends deribit$1 {
|
|
|
2014
2014
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2015
2015
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
2016
2016
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2017
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
2017
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
2018
2018
|
*/
|
|
2019
2019
|
await this.loadMarkets();
|
|
2020
2020
|
const request = {
|
|
@@ -2066,7 +2066,7 @@ class deribit extends deribit$1 {
|
|
|
2066
2066
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2067
2067
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2068
2068
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2069
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
2069
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
2070
2070
|
*/
|
|
2071
2071
|
await this.loadMarkets();
|
|
2072
2072
|
const request = {
|
|
@@ -2147,7 +2147,7 @@ class deribit extends deribit$1 {
|
|
|
2147
2147
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2148
2148
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2149
2149
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2150
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2150
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2151
2151
|
*/
|
|
2152
2152
|
if (code === undefined) {
|
|
2153
2153
|
throw new errors.ArgumentsRequired(this.id + ' fetchDeposits() requires a currency code argument');
|
|
@@ -2194,7 +2194,7 @@ class deribit extends deribit$1 {
|
|
|
2194
2194
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2195
2195
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2196
2196
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2197
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2197
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2198
2198
|
*/
|
|
2199
2199
|
if (code === undefined) {
|
|
2200
2200
|
throw new errors.ArgumentsRequired(this.id + ' fetchWithdrawals() requires a currency code argument');
|
|
@@ -2382,7 +2382,7 @@ class deribit extends deribit$1 {
|
|
|
2382
2382
|
* @description fetch data on a single open contract trade position
|
|
2383
2383
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
2384
2384
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2385
|
-
* @returns {object} a [position structure]{@link https://
|
|
2385
|
+
* @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
2386
2386
|
*/
|
|
2387
2387
|
await this.loadMarkets();
|
|
2388
2388
|
const market = this.market(symbol);
|
|
@@ -2426,7 +2426,7 @@ class deribit extends deribit$1 {
|
|
|
2426
2426
|
* @description fetch all open positions
|
|
2427
2427
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2428
2428
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2429
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
2429
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
2430
2430
|
*/
|
|
2431
2431
|
await this.loadMarkets();
|
|
2432
2432
|
let code = undefined;
|
|
@@ -2493,7 +2493,7 @@ class deribit extends deribit$1 {
|
|
|
2493
2493
|
* @see https://docs.deribit.com/#public-get_historical_volatility
|
|
2494
2494
|
* @param {string} code unified currency code
|
|
2495
2495
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2496
|
-
* @returns {object[]} a list of [volatility history objects]{@link https://
|
|
2496
|
+
* @returns {object[]} a list of [volatility history objects]{@link https://github.com/ccxt/ccxt/wiki/Manual#volatility-structure}
|
|
2497
2497
|
*/
|
|
2498
2498
|
await this.loadMarkets();
|
|
2499
2499
|
const currency = this.currency(code);
|
|
@@ -2555,7 +2555,7 @@ class deribit extends deribit$1 {
|
|
|
2555
2555
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
2556
2556
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
2557
2557
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2558
|
-
* @returns {object[]} a list of [transfer structures]{@link https://
|
|
2558
|
+
* @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
2559
2559
|
*/
|
|
2560
2560
|
if (code === undefined) {
|
|
2561
2561
|
throw new errors.ArgumentsRequired(this.id + ' fetchTransfers() requires a currency code argument');
|
|
@@ -2616,7 +2616,7 @@ class deribit extends deribit$1 {
|
|
|
2616
2616
|
* @param {string} fromAccount account to transfer from
|
|
2617
2617
|
* @param {string} toAccount account to transfer to
|
|
2618
2618
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2619
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
2619
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
2620
2620
|
*/
|
|
2621
2621
|
await this.loadMarkets();
|
|
2622
2622
|
const currency = this.currency(code);
|
|
@@ -2702,7 +2702,7 @@ class deribit extends deribit$1 {
|
|
|
2702
2702
|
* @param {string} address the address to withdraw to
|
|
2703
2703
|
* @param {string} tag
|
|
2704
2704
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2705
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2705
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2706
2706
|
*/
|
|
2707
2707
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
2708
2708
|
this.checkAddress(address);
|
|
@@ -2794,7 +2794,7 @@ class deribit extends deribit$1 {
|
|
|
2794
2794
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2795
2795
|
* @param {int} [params.start_timestamp] fetch funding rate starting from this timestamp
|
|
2796
2796
|
* @param {int} [params.end_timestamp] fetch funding rate ending at this timestamp
|
|
2797
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
2797
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
2798
2798
|
*/
|
|
2799
2799
|
await this.loadMarkets();
|
|
2800
2800
|
const market = this.market(symbol);
|
|
@@ -2826,7 +2826,7 @@ class deribit extends deribit$1 {
|
|
|
2826
2826
|
* @param {string} symbol unified market symbol
|
|
2827
2827
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2828
2828
|
* @param {int} [params.end_timestamp] fetch funding rate ending at this timestamp
|
|
2829
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
2829
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
2830
2830
|
*/
|
|
2831
2831
|
await this.loadMarkets();
|
|
2832
2832
|
const market = this.market(symbol);
|