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
package/js/src/currencycom.js
CHANGED
|
@@ -581,7 +581,7 @@ export default class currencycom extends Exchange {
|
|
|
581
581
|
* @name currencycom#fetchAccounts
|
|
582
582
|
* @description fetch all the accounts associated with a profile
|
|
583
583
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
584
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
584
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
585
585
|
*/
|
|
586
586
|
const response = await this.privateGetV2Account(params);
|
|
587
587
|
//
|
|
@@ -637,7 +637,7 @@ export default class currencycom extends Exchange {
|
|
|
637
637
|
* @name currencycom#fetchTradingFees
|
|
638
638
|
* @description fetch the trading fees for multiple markets
|
|
639
639
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
640
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
640
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
641
641
|
*/
|
|
642
642
|
await this.loadMarkets();
|
|
643
643
|
const response = await this.privateGetV2Account(params);
|
|
@@ -758,7 +758,7 @@ export default class currencycom extends Exchange {
|
|
|
758
758
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
759
759
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
760
760
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
761
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
761
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
762
762
|
*/
|
|
763
763
|
await this.loadMarkets();
|
|
764
764
|
const market = this.market(symbol);
|
|
@@ -873,7 +873,7 @@ export default class currencycom extends Exchange {
|
|
|
873
873
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
874
874
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
875
875
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
876
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
876
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
877
877
|
*/
|
|
878
878
|
await this.loadMarkets();
|
|
879
879
|
const market = this.market(symbol);
|
|
@@ -910,7 +910,7 @@ export default class currencycom extends Exchange {
|
|
|
910
910
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
911
911
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
912
912
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
913
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
913
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
914
914
|
*/
|
|
915
915
|
await this.loadMarkets();
|
|
916
916
|
const response = await this.publicGetV2Ticker24hr(params);
|
|
@@ -1259,9 +1259,9 @@ export default class currencycom extends Exchange {
|
|
|
1259
1259
|
* @param {string} type 'market' or 'limit'
|
|
1260
1260
|
* @param {string} side 'buy' or 'sell'
|
|
1261
1261
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1262
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1262
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1263
1263
|
* @param {object} [params] extra parameters specific to the currencycom 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 market = this.market(symbol);
|
|
@@ -1354,7 +1354,7 @@ export default class currencycom extends Exchange {
|
|
|
1354
1354
|
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getOrderUsingGET
|
|
1355
1355
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1356
1356
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1357
|
-
* @returns {object} An [order structure]{@link https://
|
|
1357
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1358
1358
|
*/
|
|
1359
1359
|
this.checkRequiredSymbol('fetchOrder', symbol);
|
|
1360
1360
|
await this.loadMarkets();
|
|
@@ -1397,7 +1397,7 @@ export default class currencycom extends Exchange {
|
|
|
1397
1397
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1398
1398
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1399
1399
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1400
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1400
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1401
1401
|
*/
|
|
1402
1402
|
await this.loadMarkets();
|
|
1403
1403
|
let market = undefined;
|
|
@@ -1442,7 +1442,7 @@ export default class currencycom extends Exchange {
|
|
|
1442
1442
|
* @param {string} id order id
|
|
1443
1443
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1444
1444
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1445
|
-
* @returns {object} An [order structure]{@link https://
|
|
1445
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1446
1446
|
*/
|
|
1447
1447
|
if (symbol === undefined) {
|
|
1448
1448
|
throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -1486,7 +1486,7 @@ export default class currencycom extends Exchange {
|
|
|
1486
1486
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1487
1487
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1488
1488
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1489
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1489
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1490
1490
|
*/
|
|
1491
1491
|
if (symbol === undefined) {
|
|
1492
1492
|
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -1529,7 +1529,7 @@ export default class currencycom extends Exchange {
|
|
|
1529
1529
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1530
1530
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1531
1531
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1532
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1532
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1533
1533
|
*/
|
|
1534
1534
|
return await this.fetchTransactionsByMethod('privateGetV2Deposits', code, since, limit, params);
|
|
1535
1535
|
}
|
|
@@ -1542,7 +1542,7 @@ export default class currencycom extends Exchange {
|
|
|
1542
1542
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1543
1543
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1544
1544
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1545
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1545
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1546
1546
|
*/
|
|
1547
1547
|
return await this.fetchTransactionsByMethod('privateGetV2Withdrawals', code, since, limit, params);
|
|
1548
1548
|
}
|
|
@@ -1555,7 +1555,7 @@ export default class currencycom extends Exchange {
|
|
|
1555
1555
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1556
1556
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1557
1557
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1558
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1558
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1559
1559
|
*/
|
|
1560
1560
|
return await this.fetchTransactionsByMethod('privateGetV2Transactions', code, since, limit, params);
|
|
1561
1561
|
}
|
|
@@ -1665,7 +1665,7 @@ export default class currencycom extends Exchange {
|
|
|
1665
1665
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1666
1666
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
1667
1667
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1668
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
1668
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
1669
1669
|
*/
|
|
1670
1670
|
await this.loadMarkets();
|
|
1671
1671
|
const request = {};
|
|
@@ -1764,7 +1764,7 @@ export default class currencycom extends Exchange {
|
|
|
1764
1764
|
* @description fetch the set leverage for a market
|
|
1765
1765
|
* @param {string} symbol unified market symbol
|
|
1766
1766
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1767
|
-
* @returns {object} a [leverage structure]{@link https://
|
|
1767
|
+
* @returns {object} a [leverage structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-structure}
|
|
1768
1768
|
*/
|
|
1769
1769
|
await this.loadMarkets();
|
|
1770
1770
|
const market = this.market(symbol);
|
|
@@ -1787,7 +1787,7 @@ export default class currencycom extends Exchange {
|
|
|
1787
1787
|
* @description fetch the deposit address for a currency associated with this account
|
|
1788
1788
|
* @param {string} code unified currency code
|
|
1789
1789
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1790
|
-
* @returns {object} an [address structure]{@link https://
|
|
1790
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1791
1791
|
*/
|
|
1792
1792
|
await this.loadMarkets();
|
|
1793
1793
|
const currency = this.currency(code);
|
|
@@ -1853,7 +1853,7 @@ export default class currencycom extends Exchange {
|
|
|
1853
1853
|
* @description fetch all open positions
|
|
1854
1854
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1855
1855
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1856
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
1856
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
1857
1857
|
*/
|
|
1858
1858
|
await this.loadMarkets();
|
|
1859
1859
|
const response = await this.privateGetV2TradingPositions(params);
|
package/js/src/delta.js
CHANGED
|
@@ -359,7 +359,7 @@ export default class delta extends Exchange {
|
|
|
359
359
|
* @name delta#fetchStatus
|
|
360
360
|
* @description the latest known information on the availability of the exchange API
|
|
361
361
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
362
|
-
* @returns {object} a [status structure]{@link https://
|
|
362
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
363
363
|
*/
|
|
364
364
|
const response = await this.publicGetSettings(params);
|
|
365
365
|
//
|
|
@@ -975,7 +975,7 @@ export default class delta extends Exchange {
|
|
|
975
975
|
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
976
976
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
977
977
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
978
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
978
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
979
979
|
*/
|
|
980
980
|
await this.loadMarkets();
|
|
981
981
|
const market = this.market(symbol);
|
|
@@ -1118,7 +1118,7 @@ export default class delta extends Exchange {
|
|
|
1118
1118
|
* @see https://docs.delta.exchange/#get-tickers-for-products
|
|
1119
1119
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1120
1120
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1121
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1121
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1122
1122
|
*/
|
|
1123
1123
|
await this.loadMarkets();
|
|
1124
1124
|
symbols = this.marketSymbols(symbols);
|
|
@@ -1271,7 +1271,7 @@ export default class delta extends Exchange {
|
|
|
1271
1271
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1272
1272
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1273
1273
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1274
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
1274
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
1275
1275
|
*/
|
|
1276
1276
|
await this.loadMarkets();
|
|
1277
1277
|
const market = this.market(symbol);
|
|
@@ -1572,7 +1572,7 @@ export default class delta extends Exchange {
|
|
|
1572
1572
|
* @see https://docs.delta.exchange/#get-position
|
|
1573
1573
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
1574
1574
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1575
|
-
* @returns {object} a [position structure]{@link https://
|
|
1575
|
+
* @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
1576
1576
|
*/
|
|
1577
1577
|
await this.loadMarkets();
|
|
1578
1578
|
const market = this.market(symbol);
|
|
@@ -1601,7 +1601,7 @@ export default class delta extends Exchange {
|
|
|
1601
1601
|
* @see https://docs.delta.exchange/#get-margined-positions
|
|
1602
1602
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1603
1603
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1604
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
1604
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
1605
1605
|
*/
|
|
1606
1606
|
await this.loadMarkets();
|
|
1607
1607
|
const response = await this.privateGetPositionsMargined(params);
|
|
@@ -1804,10 +1804,10 @@ export default class delta extends Exchange {
|
|
|
1804
1804
|
* @param {string} type 'market' or 'limit'
|
|
1805
1805
|
* @param {string} side 'buy' or 'sell'
|
|
1806
1806
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1807
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1807
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1808
1808
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1809
1809
|
* @param {bool} [params.reduceOnly] *contract only* indicates if this order is to reduce the size of a position
|
|
1810
|
-
* @returns {object} an [order structure]{@link https://
|
|
1810
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1811
1811
|
*/
|
|
1812
1812
|
await this.loadMarkets();
|
|
1813
1813
|
const orderType = type + '_order';
|
|
@@ -1887,9 +1887,9 @@ export default class delta extends Exchange {
|
|
|
1887
1887
|
* @param {string} type 'market' or 'limit'
|
|
1888
1888
|
* @param {string} side 'buy' or 'sell'
|
|
1889
1889
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
1890
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency
|
|
1890
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency
|
|
1891
1891
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1892
|
-
* @returns {object} an [order structure]{@link https://
|
|
1892
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1893
1893
|
*/
|
|
1894
1894
|
await this.loadMarkets();
|
|
1895
1895
|
const market = this.market(symbol);
|
|
@@ -1935,7 +1935,7 @@ export default class delta extends Exchange {
|
|
|
1935
1935
|
* @param {string} id order id
|
|
1936
1936
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1937
1937
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1938
|
-
* @returns {object} An [order structure]{@link https://
|
|
1938
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1939
1939
|
*/
|
|
1940
1940
|
this.checkRequiredSymbol('cancelOrder', symbol);
|
|
1941
1941
|
await this.loadMarkets();
|
|
@@ -1992,7 +1992,7 @@ export default class delta extends Exchange {
|
|
|
1992
1992
|
* @see https://docs.delta.exchange/#cancel-all-open-orders
|
|
1993
1993
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
1994
1994
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1995
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1995
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1996
1996
|
*/
|
|
1997
1997
|
this.checkRequiredSymbol('cancelAllOrders', symbol);
|
|
1998
1998
|
await this.loadMarkets();
|
|
@@ -2021,7 +2021,7 @@ export default class delta extends Exchange {
|
|
|
2021
2021
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2022
2022
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
2023
2023
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2024
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2024
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2025
2025
|
*/
|
|
2026
2026
|
return await this.fetchOrdersWithMethod('privateGetOrders', symbol, since, limit, params);
|
|
2027
2027
|
}
|
|
@@ -2035,7 +2035,7 @@ export default class delta extends Exchange {
|
|
|
2035
2035
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2036
2036
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2037
2037
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2038
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2038
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2039
2039
|
*/
|
|
2040
2040
|
return await this.fetchOrdersWithMethod('privateGetOrdersHistory', symbol, since, limit, params);
|
|
2041
2041
|
}
|
|
@@ -2099,7 +2099,7 @@ export default class delta extends Exchange {
|
|
|
2099
2099
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2100
2100
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2101
2101
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2102
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
2102
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
2103
2103
|
*/
|
|
2104
2104
|
await this.loadMarkets();
|
|
2105
2105
|
const request = {
|
|
@@ -2181,7 +2181,7 @@ export default class delta extends Exchange {
|
|
|
2181
2181
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2182
2182
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
2183
2183
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2184
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
2184
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
2185
2185
|
*/
|
|
2186
2186
|
await this.loadMarkets();
|
|
2187
2187
|
const request = {
|
|
@@ -2304,7 +2304,7 @@ export default class delta extends Exchange {
|
|
|
2304
2304
|
* @param {string} code unified currency code
|
|
2305
2305
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2306
2306
|
* @param {string} [params.network] unified network code
|
|
2307
|
-
* @returns {object} an [address structure]{@link https://
|
|
2307
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
2308
2308
|
*/
|
|
2309
2309
|
await this.loadMarkets();
|
|
2310
2310
|
const currency = this.currency(code);
|
|
@@ -2372,7 +2372,7 @@ export default class delta extends Exchange {
|
|
|
2372
2372
|
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
2373
2373
|
* @param {string} symbol unified market symbol
|
|
2374
2374
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2375
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
2375
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
2376
2376
|
*/
|
|
2377
2377
|
await this.loadMarkets();
|
|
2378
2378
|
const market = this.market(symbol);
|
|
@@ -2439,7 +2439,7 @@ export default class delta extends Exchange {
|
|
|
2439
2439
|
* @see https://docs.delta.exchange/#get-tickers-for-products
|
|
2440
2440
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2441
2441
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2442
|
-
* @returns {object} a dictionary of [funding rates structures]{@link https://
|
|
2442
|
+
* @returns {object} a dictionary of [funding rates structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rates-structure}, indexe by market symbols
|
|
2443
2443
|
*/
|
|
2444
2444
|
await this.loadMarkets();
|
|
2445
2445
|
symbols = this.marketSymbols(symbols);
|
|
@@ -2574,7 +2574,7 @@ export default class delta extends Exchange {
|
|
|
2574
2574
|
* @param {string} symbol unified market symbol
|
|
2575
2575
|
* @param {float} amount amount of margin to add
|
|
2576
2576
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2577
|
-
* @returns {object} a [margin structure]{@link https://
|
|
2577
|
+
* @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
|
|
2578
2578
|
*/
|
|
2579
2579
|
return await this.modifyMarginHelper(symbol, amount, 'add', params);
|
|
2580
2580
|
}
|
|
@@ -2587,7 +2587,7 @@ export default class delta extends Exchange {
|
|
|
2587
2587
|
* @param {string} symbol unified market symbol
|
|
2588
2588
|
* @param {float} amount the amount of margin to remove
|
|
2589
2589
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2590
|
-
* @returns {object} a [margin structure]{@link https://
|
|
2590
|
+
* @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#reduce-margin-structure}
|
|
2591
2591
|
*/
|
|
2592
2592
|
return await this.modifyMarginHelper(symbol, amount, 'reduce', params);
|
|
2593
2593
|
}
|
|
@@ -2670,7 +2670,7 @@ export default class delta extends Exchange {
|
|
|
2670
2670
|
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
2671
2671
|
* @param {string} symbol unified market symbol
|
|
2672
2672
|
* @param {object} [params] exchange specific parameters
|
|
2673
|
-
* @returns {object} an open interest structure{@link https://
|
|
2673
|
+
* @returns {object} an open interest structure{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure}
|
|
2674
2674
|
*/
|
|
2675
2675
|
await this.loadMarkets();
|
|
2676
2676
|
const market = this.market(symbol);
|
|
@@ -2807,7 +2807,7 @@ export default class delta extends Exchange {
|
|
|
2807
2807
|
* @see https://docs.delta.exchange/#get-order-leverage
|
|
2808
2808
|
* @param {string} symbol unified market symbol
|
|
2809
2809
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2810
|
-
* @returns {object} a [leverage structure]{@link https://
|
|
2810
|
+
* @returns {object} a [leverage structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-structure}
|
|
2811
2811
|
*/
|
|
2812
2812
|
await this.loadMarkets();
|
|
2813
2813
|
const market = this.market(symbol);
|
package/js/src/deribit.js
CHANGED
|
@@ -500,7 +500,7 @@ export default class deribit extends Exchange {
|
|
|
500
500
|
* @name deribit#fetchStatus
|
|
501
501
|
* @description the latest known information on the availability of the exchange API
|
|
502
502
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
503
|
-
* @returns {object} a [status structure]{@link https://
|
|
503
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
504
504
|
*/
|
|
505
505
|
const response = await this.publicGetStatus(params);
|
|
506
506
|
//
|
|
@@ -532,7 +532,7 @@ export default class deribit extends Exchange {
|
|
|
532
532
|
* @name deribit#fetchAccounts
|
|
533
533
|
* @description fetch all the accounts associated with a profile
|
|
534
534
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
535
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
535
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
536
536
|
*/
|
|
537
537
|
await this.loadMarkets();
|
|
538
538
|
const response = await this.privateGetGetSubaccounts(params);
|
|
@@ -897,7 +897,7 @@ export default class deribit extends Exchange {
|
|
|
897
897
|
* @description create a currency deposit address
|
|
898
898
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
899
899
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
900
|
-
* @returns {object} an [address structure]{@link https://
|
|
900
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
901
901
|
*/
|
|
902
902
|
await this.loadMarkets();
|
|
903
903
|
const currency = this.currency(code);
|
|
@@ -934,7 +934,7 @@ export default class deribit extends Exchange {
|
|
|
934
934
|
* @description fetch the deposit address for a currency associated with this account
|
|
935
935
|
* @param {string} code unified currency code
|
|
936
936
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
937
|
-
* @returns {object} an [address structure]{@link https://
|
|
937
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
938
938
|
*/
|
|
939
939
|
await this.loadMarkets();
|
|
940
940
|
const currency = this.currency(code);
|
|
@@ -1052,7 +1052,7 @@ export default class deribit extends Exchange {
|
|
|
1052
1052
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1053
1053
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1054
1054
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1055
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
1055
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1056
1056
|
*/
|
|
1057
1057
|
await this.loadMarkets();
|
|
1058
1058
|
const market = this.market(symbol);
|
|
@@ -1098,7 +1098,7 @@ export default class deribit extends Exchange {
|
|
|
1098
1098
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1099
1099
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1100
1100
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1101
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1101
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1102
1102
|
*/
|
|
1103
1103
|
await this.loadMarkets();
|
|
1104
1104
|
symbols = this.marketSymbols(symbols);
|
|
@@ -1357,7 +1357,7 @@ export default class deribit extends Exchange {
|
|
|
1357
1357
|
* @name deribit#fetchTradingFees
|
|
1358
1358
|
* @description fetch the trading fees for multiple markets
|
|
1359
1359
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1360
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
1360
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
1361
1361
|
*/
|
|
1362
1362
|
await this.loadMarkets();
|
|
1363
1363
|
const code = this.codeFromOptions('fetchTradingFees', params);
|
|
@@ -1479,7 +1479,7 @@ export default class deribit extends Exchange {
|
|
|
1479
1479
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1480
1480
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1481
1481
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1482
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
1482
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
1483
1483
|
*/
|
|
1484
1484
|
await this.loadMarkets();
|
|
1485
1485
|
const market = this.market(symbol);
|
|
@@ -1668,7 +1668,7 @@ export default class deribit extends Exchange {
|
|
|
1668
1668
|
* @description fetches information on an order made by the user
|
|
1669
1669
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1670
1670
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1671
|
-
* @returns {object} An [order structure]{@link https://
|
|
1671
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1672
1672
|
*/
|
|
1673
1673
|
await this.loadMarkets();
|
|
1674
1674
|
const request = {
|
|
@@ -1716,9 +1716,9 @@ export default class deribit extends Exchange {
|
|
|
1716
1716
|
* @param {string} type 'market' or 'limit'
|
|
1717
1717
|
* @param {string} side 'buy' or 'sell'
|
|
1718
1718
|
* @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.
|
|
1719
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1719
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1720
1720
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1721
|
-
* @returns {object} an [order structure]{@link https://
|
|
1721
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1722
1722
|
*/
|
|
1723
1723
|
await this.loadMarkets();
|
|
1724
1724
|
const market = this.market(symbol);
|
|
@@ -1914,7 +1914,7 @@ export default class deribit extends Exchange {
|
|
|
1914
1914
|
* @param {string} id order id
|
|
1915
1915
|
* @param {string} symbol not used by deribit cancelOrder ()
|
|
1916
1916
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1917
|
-
* @returns {object} An [order structure]{@link https://
|
|
1917
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1918
1918
|
*/
|
|
1919
1919
|
await this.loadMarkets();
|
|
1920
1920
|
const request = {
|
|
@@ -1931,7 +1931,7 @@ export default class deribit extends Exchange {
|
|
|
1931
1931
|
* @description cancel all open orders
|
|
1932
1932
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1933
1933
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1934
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1934
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1935
1935
|
*/
|
|
1936
1936
|
await this.loadMarkets();
|
|
1937
1937
|
const request = {};
|
|
@@ -1956,7 +1956,7 @@ export default class deribit extends Exchange {
|
|
|
1956
1956
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1957
1957
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1958
1958
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1959
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1959
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1960
1960
|
*/
|
|
1961
1961
|
await this.loadMarkets();
|
|
1962
1962
|
const request = {};
|
|
@@ -1986,7 +1986,7 @@ export default class deribit extends Exchange {
|
|
|
1986
1986
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1987
1987
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1988
1988
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
1989
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1989
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1990
1990
|
*/
|
|
1991
1991
|
await this.loadMarkets();
|
|
1992
1992
|
const request = {};
|
|
@@ -2017,7 +2017,7 @@ export default class deribit extends Exchange {
|
|
|
2017
2017
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2018
2018
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
2019
2019
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2020
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
2020
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
2021
2021
|
*/
|
|
2022
2022
|
await this.loadMarkets();
|
|
2023
2023
|
const request = {
|
|
@@ -2069,7 +2069,7 @@ export default class deribit extends Exchange {
|
|
|
2069
2069
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2070
2070
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2071
2071
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2072
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
2072
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
2073
2073
|
*/
|
|
2074
2074
|
await this.loadMarkets();
|
|
2075
2075
|
const request = {
|
|
@@ -2150,7 +2150,7 @@ export default class deribit extends Exchange {
|
|
|
2150
2150
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2151
2151
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2152
2152
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2153
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2153
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2154
2154
|
*/
|
|
2155
2155
|
if (code === undefined) {
|
|
2156
2156
|
throw new ArgumentsRequired(this.id + ' fetchDeposits() requires a currency code argument');
|
|
@@ -2197,7 +2197,7 @@ export default class deribit extends Exchange {
|
|
|
2197
2197
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2198
2198
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2199
2199
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2200
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2200
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2201
2201
|
*/
|
|
2202
2202
|
if (code === undefined) {
|
|
2203
2203
|
throw new ArgumentsRequired(this.id + ' fetchWithdrawals() requires a currency code argument');
|
|
@@ -2385,7 +2385,7 @@ export default class deribit extends Exchange {
|
|
|
2385
2385
|
* @description fetch data on a single open contract trade position
|
|
2386
2386
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
2387
2387
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2388
|
-
* @returns {object} a [position structure]{@link https://
|
|
2388
|
+
* @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
2389
2389
|
*/
|
|
2390
2390
|
await this.loadMarkets();
|
|
2391
2391
|
const market = this.market(symbol);
|
|
@@ -2429,7 +2429,7 @@ export default class deribit extends Exchange {
|
|
|
2429
2429
|
* @description fetch all open positions
|
|
2430
2430
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2431
2431
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2432
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
2432
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
2433
2433
|
*/
|
|
2434
2434
|
await this.loadMarkets();
|
|
2435
2435
|
let code = undefined;
|
|
@@ -2496,7 +2496,7 @@ export default class deribit extends Exchange {
|
|
|
2496
2496
|
* @see https://docs.deribit.com/#public-get_historical_volatility
|
|
2497
2497
|
* @param {string} code unified currency code
|
|
2498
2498
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2499
|
-
* @returns {object[]} a list of [volatility history objects]{@link https://
|
|
2499
|
+
* @returns {object[]} a list of [volatility history objects]{@link https://github.com/ccxt/ccxt/wiki/Manual#volatility-structure}
|
|
2500
2500
|
*/
|
|
2501
2501
|
await this.loadMarkets();
|
|
2502
2502
|
const currency = this.currency(code);
|
|
@@ -2558,7 +2558,7 @@ export default class deribit extends Exchange {
|
|
|
2558
2558
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
2559
2559
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
2560
2560
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2561
|
-
* @returns {object[]} a list of [transfer structures]{@link https://
|
|
2561
|
+
* @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
2562
2562
|
*/
|
|
2563
2563
|
if (code === undefined) {
|
|
2564
2564
|
throw new ArgumentsRequired(this.id + ' fetchTransfers() requires a currency code argument');
|
|
@@ -2619,7 +2619,7 @@ export default class deribit extends Exchange {
|
|
|
2619
2619
|
* @param {string} fromAccount account to transfer from
|
|
2620
2620
|
* @param {string} toAccount account to transfer to
|
|
2621
2621
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2622
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
2622
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
2623
2623
|
*/
|
|
2624
2624
|
await this.loadMarkets();
|
|
2625
2625
|
const currency = this.currency(code);
|
|
@@ -2705,7 +2705,7 @@ export default class deribit extends Exchange {
|
|
|
2705
2705
|
* @param {string} address the address to withdraw to
|
|
2706
2706
|
* @param {string} tag
|
|
2707
2707
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2708
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2708
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2709
2709
|
*/
|
|
2710
2710
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
2711
2711
|
this.checkAddress(address);
|
|
@@ -2797,7 +2797,7 @@ export default class deribit extends Exchange {
|
|
|
2797
2797
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2798
2798
|
* @param {int} [params.start_timestamp] fetch funding rate starting from this timestamp
|
|
2799
2799
|
* @param {int} [params.end_timestamp] fetch funding rate ending at this timestamp
|
|
2800
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
2800
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
2801
2801
|
*/
|
|
2802
2802
|
await this.loadMarkets();
|
|
2803
2803
|
const market = this.market(symbol);
|
|
@@ -2829,7 +2829,7 @@ export default class deribit extends Exchange {
|
|
|
2829
2829
|
* @param {string} symbol unified market symbol
|
|
2830
2830
|
* @param {object} [params] extra parameters specific to the deribit api endpoint
|
|
2831
2831
|
* @param {int} [params.end_timestamp] fetch funding rate ending at this timestamp
|
|
2832
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
2832
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
2833
2833
|
*/
|
|
2834
2834
|
await this.loadMarkets();
|
|
2835
2835
|
const market = this.market(symbol);
|