ccxt 4.1.56 → 4.1.58
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/.git-templates/hooks/pre-push +2 -2
- package/README.md +3 -3
- package/build.sh +30 -18
- package/dist/ccxt.browser.js +3893 -3214
- package/dist/ccxt.browser.min.js +10 -10
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +17 -13
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +35 -29
- package/dist/cjs/src/base/Exchange.js +39 -26
- package/dist/cjs/src/base/Precise.js +1 -3
- package/dist/cjs/src/base/ws/Client.js +1 -1
- package/dist/cjs/src/bigone.js +24 -20
- package/dist/cjs/src/binance.js +97 -76
- package/dist/cjs/src/bingx.js +63 -44
- package/dist/cjs/src/bit2c.js +18 -15
- package/dist/cjs/src/bitbank.js +16 -15
- package/dist/cjs/src/bitbns.js +28 -18
- package/dist/cjs/src/bitfinex.js +23 -21
- package/dist/cjs/src/bitfinex2.js +32 -28
- package/dist/cjs/src/bitflyer.js +28 -20
- package/dist/cjs/src/bitforex.js +25 -18
- package/dist/cjs/src/bitget.js +184 -147
- package/dist/cjs/src/bithumb.js +23 -16
- package/dist/cjs/src/bitmart.js +110 -89
- package/dist/cjs/src/bitmex.js +104 -64
- package/dist/cjs/src/bitopro.js +38 -26
- package/dist/cjs/src/bitpanda.js +24 -23
- package/dist/cjs/src/bitrue.js +33 -24
- package/dist/cjs/src/bitso.js +24 -23
- package/dist/cjs/src/bitstamp.js +24 -23
- package/dist/cjs/src/bittrex.js +30 -29
- package/dist/cjs/src/bitvavo.js +38 -30
- package/dist/cjs/src/bl3p.js +11 -10
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +18 -17
- package/dist/cjs/src/btcbox.js +13 -12
- package/dist/cjs/src/btcmarkets.js +20 -19
- package/dist/cjs/src/btcturk.js +14 -13
- package/dist/cjs/src/bybit.js +84 -54
- package/dist/cjs/src/cex.js +16 -14
- package/dist/cjs/src/coinbase.js +29 -27
- package/dist/cjs/src/coinbasepro.js +27 -25
- package/dist/cjs/src/coincheck.js +15 -14
- package/dist/cjs/src/coinex.js +100 -77
- package/dist/cjs/src/coinlist.js +28 -27
- package/dist/cjs/src/coinmate.js +20 -17
- package/dist/cjs/src/coinone.js +21 -16
- package/dist/cjs/src/coinsph.js +37 -28
- package/dist/cjs/src/coinspot.js +12 -11
- package/dist/cjs/src/cryptocom.js +40 -202
- package/dist/cjs/src/currencycom.js +32 -25
- package/dist/cjs/src/delta.js +34 -28
- package/dist/cjs/src/deribit.js +39 -36
- package/dist/cjs/src/digifinex.js +64 -44
- package/dist/cjs/src/exmo.js +29 -27
- package/dist/cjs/src/gate.js +67 -53
- package/dist/cjs/src/gemini.js +23 -20
- package/dist/cjs/src/hitbtc.js +65 -56
- package/dist/cjs/src/hollaex.js +30 -27
- package/dist/cjs/src/htx.js +132 -143
- package/dist/cjs/src/huobijp.js +22 -20
- package/dist/cjs/src/idex.js +22 -21
- package/dist/cjs/src/independentreserve.js +15 -14
- package/dist/cjs/src/indodax.js +30 -26
- package/dist/cjs/src/kraken.js +29 -27
- package/dist/cjs/src/krakenfutures.js +29 -22
- package/dist/cjs/src/kucoin.js +48 -43
- package/dist/cjs/src/kucoinfutures.js +33 -28
- package/dist/cjs/src/kuna.js +25 -24
- package/dist/cjs/src/latoken.js +24 -22
- package/dist/cjs/src/lbank.js +45 -30
- package/dist/cjs/src/luno.js +22 -19
- package/dist/cjs/src/lykke.js +19 -17
- package/dist/cjs/src/mercado.js +30 -19
- package/dist/cjs/src/mexc.js +60 -49
- package/dist/cjs/src/ndax.js +23 -22
- package/dist/cjs/src/novadax.js +23 -22
- package/dist/cjs/src/oceanex.js +22 -19
- package/dist/cjs/src/okcoin.js +29 -23
- package/dist/cjs/src/okx.js +87 -82
- package/dist/cjs/src/p2b.js +79 -82
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +63 -40
- package/dist/cjs/src/poloniex.js +22 -22
- package/dist/cjs/src/poloniexfutures.js +23 -19
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +4 -4
- package/dist/cjs/src/pro/binance.js +16 -16
- package/dist/cjs/src/pro/bingx.js +1 -1
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +6 -6
- package/dist/cjs/src/pro/bitget.js +7 -7
- package/dist/cjs/src/pro/bitmart.js +7 -5
- package/dist/cjs/src/pro/bitmex.js +6 -6
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +6 -6
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +6 -4
- package/dist/cjs/src/pro/bittrex.js +15 -6
- package/dist/cjs/src/pro/bitvavo.js +11 -7
- package/dist/cjs/src/pro/blockchaincom.js +8 -8
- package/dist/cjs/src/pro/bybit.js +7 -7
- package/dist/cjs/src/pro/cex.js +13 -9
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +11 -10
- package/dist/cjs/src/pro/coinex.js +7 -9
- package/dist/cjs/src/pro/cryptocom.js +9 -9
- package/dist/cjs/src/pro/currencycom.js +4 -4
- package/dist/cjs/src/pro/deribit.js +6 -6
- package/dist/cjs/src/pro/exmo.js +12 -14
- package/dist/cjs/src/pro/gate.js +7 -7
- package/dist/cjs/src/pro/gemini.js +3 -3
- package/dist/cjs/src/pro/hitbtc.js +263 -4
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +6 -6
- package/dist/cjs/src/pro/huobijp.js +3 -3
- package/dist/cjs/src/pro/idex.js +4 -4
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +10 -10
- package/dist/cjs/src/pro/krakenfutures.js +41 -17
- package/dist/cjs/src/pro/kucoin.js +7 -7
- package/dist/cjs/src/pro/kucoinfutures.js +8 -6
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +6 -6
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okcoin.js +5 -5
- package/dist/cjs/src/pro/okx.js +12 -12
- package/dist/cjs/src/pro/phemex.js +6 -6
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +8 -8
- package/dist/cjs/src/pro/whitebit.js +12 -8
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +28 -23
- package/dist/cjs/src/tidex.js +16 -15
- package/dist/cjs/src/timex.js +19 -18
- package/dist/cjs/src/tokocrypto.js +27 -22
- package/dist/cjs/src/upbit.js +19 -19
- package/dist/cjs/src/wavesexchange.js +22 -19
- package/dist/cjs/src/wazirx.js +24 -17
- package/dist/cjs/src/whitebit.js +33 -27
- package/dist/cjs/src/woo.js +44 -34
- package/dist/cjs/src/yobit.js +25 -20
- package/dist/cjs/src/zaif.js +9 -9
- package/dist/cjs/src/zonda.js +18 -17
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bybit.d.ts +1 -0
- package/js/src/abstract/cryptocom.d.ts +0 -20
- package/js/src/ace.js +18 -14
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +35 -29
- package/js/src/base/Exchange.d.ts +37 -34
- package/js/src/base/Exchange.js +39 -26
- package/js/src/base/Precise.d.ts +4 -4
- package/js/src/base/Precise.js +1 -3
- package/js/src/base/functions/type.d.ts +25 -25
- package/js/src/base/types.d.ts +21 -14
- package/js/src/base/ws/Client.js +1 -1
- package/js/src/bigone.js +25 -21
- package/js/src/binance.d.ts +2 -2
- package/js/src/binance.js +97 -76
- package/js/src/bingx.js +63 -44
- package/js/src/bit2c.js +19 -16
- package/js/src/bitbank.js +16 -15
- package/js/src/bitbns.js +28 -18
- package/js/src/bitfinex.js +23 -21
- package/js/src/bitfinex2.js +32 -28
- package/js/src/bitflyer.js +28 -20
- package/js/src/bitforex.js +26 -19
- package/js/src/bitget.d.ts +25 -3
- package/js/src/bitget.js +184 -147
- package/js/src/bithumb.js +23 -16
- package/js/src/bitmart.d.ts +1 -1
- package/js/src/bitmart.js +110 -89
- package/js/src/bitmex.d.ts +2 -2
- package/js/src/bitmex.js +104 -64
- package/js/src/bitopro.js +38 -26
- package/js/src/bitpanda.js +24 -23
- package/js/src/bitrue.js +33 -24
- package/js/src/bitso.js +24 -23
- package/js/src/bitstamp.d.ts +2 -2
- package/js/src/bitstamp.js +24 -23
- package/js/src/bittrex.js +30 -29
- package/js/src/bitvavo.js +38 -30
- package/js/src/bl3p.js +11 -10
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +18 -17
- package/js/src/btcbox.js +13 -12
- package/js/src/btcmarkets.js +20 -19
- package/js/src/btcturk.js +14 -13
- package/js/src/bybit.d.ts +1 -1
- package/js/src/bybit.js +84 -54
- package/js/src/cex.js +16 -14
- package/js/src/coinbase.js +29 -27
- package/js/src/coinbasepro.js +27 -25
- package/js/src/coincheck.js +15 -14
- package/js/src/coinex.d.ts +1 -1
- package/js/src/coinex.js +100 -77
- package/js/src/coinlist.js +28 -27
- package/js/src/coinmate.js +21 -18
- package/js/src/coinone.js +21 -16
- package/js/src/coinsph.js +37 -28
- package/js/src/coinspot.js +12 -11
- package/js/src/cryptocom.d.ts +0 -23
- package/js/src/cryptocom.js +40 -202
- package/js/src/currencycom.js +32 -25
- package/js/src/delta.js +35 -29
- package/js/src/deribit.js +39 -36
- package/js/src/digifinex.d.ts +2 -2
- package/js/src/digifinex.js +65 -45
- package/js/src/exmo.js +29 -27
- package/js/src/gate.d.ts +1 -1
- package/js/src/gate.js +67 -53
- package/js/src/gemini.js +23 -20
- package/js/src/hitbtc.d.ts +1 -0
- package/js/src/hitbtc.js +65 -56
- package/js/src/hollaex.js +30 -27
- package/js/src/htx.d.ts +11 -3
- package/js/src/htx.js +132 -143
- package/js/src/huobijp.js +23 -21
- package/js/src/idex.js +22 -21
- package/js/src/independentreserve.js +15 -14
- package/js/src/indodax.js +30 -26
- package/js/src/kraken.js +29 -27
- package/js/src/krakenfutures.js +29 -22
- package/js/src/kucoin.d.ts +1 -1
- package/js/src/kucoin.js +48 -43
- package/js/src/kucoinfutures.js +33 -28
- package/js/src/kuna.js +25 -24
- package/js/src/latoken.js +25 -23
- package/js/src/lbank.js +46 -31
- package/js/src/luno.js +22 -19
- package/js/src/lykke.js +19 -17
- package/js/src/mercado.js +30 -19
- package/js/src/mexc.d.ts +1 -1
- package/js/src/mexc.js +60 -49
- package/js/src/ndax.js +23 -22
- package/js/src/novadax.js +23 -22
- package/js/src/oceanex.js +22 -19
- package/js/src/okcoin.js +29 -23
- package/js/src/okx.d.ts +2 -2
- package/js/src/okx.js +87 -82
- package/js/src/p2b.d.ts +8 -7
- package/js/src/p2b.js +79 -81
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +63 -40
- package/js/src/poloniex.js +22 -22
- package/js/src/poloniexfutures.js +23 -19
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +4 -4
- package/js/src/pro/binance.js +16 -16
- package/js/src/pro/bingx.js +1 -1
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.d.ts +1 -1
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +7 -7
- package/js/src/pro/bitmart.js +7 -5
- package/js/src/pro/bitmex.js +6 -6
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +6 -6
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +7 -5
- package/js/src/pro/bittrex.js +15 -6
- package/js/src/pro/bitvavo.js +12 -8
- package/js/src/pro/blockchaincom.js +8 -8
- package/js/src/pro/bybit.js +7 -7
- package/js/src/pro/cex.js +14 -10
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +12 -11
- package/js/src/pro/coinex.js +7 -9
- package/js/src/pro/cryptocom.js +9 -9
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +12 -14
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.d.ts +8 -1
- package/js/src/pro/hitbtc.js +264 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +6 -6
- package/js/src/pro/huobijp.js +3 -3
- package/js/src/pro/idex.js +4 -4
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +10 -10
- package/js/src/pro/krakenfutures.d.ts +1 -0
- package/js/src/pro/krakenfutures.js +42 -18
- package/js/src/pro/kucoin.js +7 -7
- package/js/src/pro/kucoinfutures.js +8 -6
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.js +6 -6
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okcoin.js +5 -5
- package/js/src/pro/okx.js +12 -12
- package/js/src/pro/phemex.js +6 -6
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +8 -8
- package/js/src/pro/whitebit.js +13 -9
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +29 -24
- package/js/src/tidex.js +16 -15
- package/js/src/timex.js +19 -18
- package/js/src/tokocrypto.js +28 -23
- package/js/src/upbit.js +19 -19
- package/js/src/wavesexchange.js +23 -20
- package/js/src/wazirx.js +25 -18
- package/js/src/whitebit.js +33 -27
- package/js/src/woo.js +45 -35
- package/js/src/yobit.js +25 -20
- package/js/src/zaif.js +9 -9
- package/js/src/zonda.js +18 -17
- package/package.json +1 -1
|
@@ -45,13 +45,12 @@ class currencycom extends currencycom$1 {
|
|
|
45
45
|
'fetchAccounts': true,
|
|
46
46
|
'fetchBalance': true,
|
|
47
47
|
'fetchBidsAsks': undefined,
|
|
48
|
-
'fetchBorrowRate': undefined,
|
|
49
48
|
'fetchBorrowRateHistory': undefined,
|
|
50
|
-
'fetchBorrowRates': undefined,
|
|
51
|
-
'fetchBorrowRatesPerSymbol': undefined,
|
|
52
49
|
'fetchCanceledOrders': undefined,
|
|
53
50
|
'fetchClosedOrder': undefined,
|
|
54
51
|
'fetchClosedOrders': undefined,
|
|
52
|
+
'fetchCrossBorrowRate': false,
|
|
53
|
+
'fetchCrossBorrowRates': false,
|
|
55
54
|
'fetchCurrencies': true,
|
|
56
55
|
'fetchDeposit': undefined,
|
|
57
56
|
'fetchDepositAddress': true,
|
|
@@ -64,6 +63,8 @@ class currencycom extends currencycom$1 {
|
|
|
64
63
|
'fetchFundingRateHistory': false,
|
|
65
64
|
'fetchFundingRates': false,
|
|
66
65
|
'fetchIndexOHLCV': false,
|
|
66
|
+
'fetchIsolatedBorrowRate': false,
|
|
67
|
+
'fetchIsolatedBorrowRates': false,
|
|
67
68
|
'fetchL2OrderBook': true,
|
|
68
69
|
'fetchLedger': true,
|
|
69
70
|
'fetchLedgerEntry': false,
|
|
@@ -579,7 +580,7 @@ class currencycom extends currencycom$1 {
|
|
|
579
580
|
* @name currencycom#fetchAccounts
|
|
580
581
|
* @description fetch all the accounts associated with a profile
|
|
581
582
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
582
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
583
|
+
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
583
584
|
*/
|
|
584
585
|
const response = await this.privateGetV2Account(params);
|
|
585
586
|
//
|
|
@@ -635,7 +636,7 @@ class currencycom extends currencycom$1 {
|
|
|
635
636
|
* @name currencycom#fetchTradingFees
|
|
636
637
|
* @description fetch the trading fees for multiple markets
|
|
637
638
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
638
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
639
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
639
640
|
*/
|
|
640
641
|
await this.loadMarkets();
|
|
641
642
|
const response = await this.privateGetV2Account(params);
|
|
@@ -711,7 +712,7 @@ class currencycom extends currencycom$1 {
|
|
|
711
712
|
* @name currencycom#fetchBalance
|
|
712
713
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
713
714
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
714
|
-
* @returns {object} a [balance structure]{@link https://
|
|
715
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
715
716
|
*/
|
|
716
717
|
await this.loadMarkets();
|
|
717
718
|
const response = await this.privateGetV2Account(params);
|
|
@@ -756,7 +757,7 @@ class currencycom extends currencycom$1 {
|
|
|
756
757
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
757
758
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
758
759
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
759
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
760
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
760
761
|
*/
|
|
761
762
|
await this.loadMarkets();
|
|
762
763
|
const market = this.market(symbol);
|
|
@@ -871,7 +872,7 @@ class currencycom extends currencycom$1 {
|
|
|
871
872
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
872
873
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
873
874
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
874
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
875
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
875
876
|
*/
|
|
876
877
|
await this.loadMarkets();
|
|
877
878
|
const market = this.market(symbol);
|
|
@@ -908,7 +909,7 @@ class currencycom extends currencycom$1 {
|
|
|
908
909
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
909
910
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
910
911
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
911
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
912
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
912
913
|
*/
|
|
913
914
|
await this.loadMarkets();
|
|
914
915
|
const response = await this.publicGetV2Ticker24hr(params);
|
|
@@ -1073,7 +1074,7 @@ class currencycom extends currencycom$1 {
|
|
|
1073
1074
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1074
1075
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1075
1076
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1076
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1077
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1077
1078
|
*/
|
|
1078
1079
|
await this.loadMarkets();
|
|
1079
1080
|
const market = this.market(symbol);
|
|
@@ -1259,7 +1260,7 @@ class currencycom extends currencycom$1 {
|
|
|
1259
1260
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1260
1261
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1261
1262
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1262
|
-
* @returns {object} an [order structure]{@link https://
|
|
1263
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1263
1264
|
*/
|
|
1264
1265
|
await this.loadMarkets();
|
|
1265
1266
|
const market = this.market(symbol);
|
|
@@ -1352,9 +1353,11 @@ class currencycom extends currencycom$1 {
|
|
|
1352
1353
|
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getOrderUsingGET
|
|
1353
1354
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1354
1355
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1355
|
-
* @returns {object} An [order structure]{@link https://
|
|
1356
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1356
1357
|
*/
|
|
1357
|
-
|
|
1358
|
+
if (symbol === undefined) {
|
|
1359
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
1360
|
+
}
|
|
1358
1361
|
await this.loadMarkets();
|
|
1359
1362
|
const market = this.market(symbol);
|
|
1360
1363
|
const request = {
|
|
@@ -1395,7 +1398,7 @@ class currencycom extends currencycom$1 {
|
|
|
1395
1398
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1396
1399
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1397
1400
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1398
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1401
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1399
1402
|
*/
|
|
1400
1403
|
await this.loadMarkets();
|
|
1401
1404
|
let market = undefined;
|
|
@@ -1440,9 +1443,11 @@ class currencycom extends currencycom$1 {
|
|
|
1440
1443
|
* @param {string} id order id
|
|
1441
1444
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1442
1445
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1443
|
-
* @returns {object} An [order structure]{@link https://
|
|
1446
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1444
1447
|
*/
|
|
1445
|
-
|
|
1448
|
+
if (symbol === undefined) {
|
|
1449
|
+
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
1450
|
+
}
|
|
1446
1451
|
await this.loadMarkets();
|
|
1447
1452
|
const market = this.market(symbol);
|
|
1448
1453
|
const origClientOrderId = this.safeValue(params, 'origClientOrderId');
|
|
@@ -1482,9 +1487,11 @@ class currencycom extends currencycom$1 {
|
|
|
1482
1487
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1483
1488
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1484
1489
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1485
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1490
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1486
1491
|
*/
|
|
1487
|
-
|
|
1492
|
+
if (symbol === undefined) {
|
|
1493
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
1494
|
+
}
|
|
1488
1495
|
await this.loadMarkets();
|
|
1489
1496
|
const market = this.market(symbol);
|
|
1490
1497
|
const request = {
|
|
@@ -1523,7 +1530,7 @@ class currencycom extends currencycom$1 {
|
|
|
1523
1530
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1524
1531
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1525
1532
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1526
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1533
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1527
1534
|
*/
|
|
1528
1535
|
return await this.fetchTransactionsByMethod('privateGetV2Deposits', code, since, limit, params);
|
|
1529
1536
|
}
|
|
@@ -1536,7 +1543,7 @@ class currencycom extends currencycom$1 {
|
|
|
1536
1543
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1537
1544
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1538
1545
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1539
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1546
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1540
1547
|
*/
|
|
1541
1548
|
return await this.fetchTransactionsByMethod('privateGetV2Withdrawals', code, since, limit, params);
|
|
1542
1549
|
}
|
|
@@ -1549,7 +1556,7 @@ class currencycom extends currencycom$1 {
|
|
|
1549
1556
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1550
1557
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1551
1558
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1552
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1559
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1553
1560
|
*/
|
|
1554
1561
|
return await this.fetchTransactionsByMethod('privateGetV2Transactions', code, since, limit, params);
|
|
1555
1562
|
}
|
|
@@ -1659,7 +1666,7 @@ class currencycom extends currencycom$1 {
|
|
|
1659
1666
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1660
1667
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
1661
1668
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1662
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
1669
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
1663
1670
|
*/
|
|
1664
1671
|
await this.loadMarkets();
|
|
1665
1672
|
const request = {};
|
|
@@ -1758,7 +1765,7 @@ class currencycom extends currencycom$1 {
|
|
|
1758
1765
|
* @description fetch the set leverage for a market
|
|
1759
1766
|
* @param {string} symbol unified market symbol
|
|
1760
1767
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1761
|
-
* @returns {object} a [leverage structure]{@link https://
|
|
1768
|
+
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
|
|
1762
1769
|
*/
|
|
1763
1770
|
await this.loadMarkets();
|
|
1764
1771
|
const market = this.market(symbol);
|
|
@@ -1781,7 +1788,7 @@ class currencycom extends currencycom$1 {
|
|
|
1781
1788
|
* @description fetch the deposit address for a currency associated with this account
|
|
1782
1789
|
* @param {string} code unified currency code
|
|
1783
1790
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1784
|
-
* @returns {object} an [address structure]{@link https://
|
|
1791
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1785
1792
|
*/
|
|
1786
1793
|
await this.loadMarkets();
|
|
1787
1794
|
const currency = this.currency(code);
|
|
@@ -1847,7 +1854,7 @@ class currencycom extends currencycom$1 {
|
|
|
1847
1854
|
* @description fetch all open positions
|
|
1848
1855
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1849
1856
|
* @param {object} [params] extra parameters specific to the currencycom api endpoint
|
|
1850
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
1857
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
1851
1858
|
*/
|
|
1852
1859
|
await this.loadMarkets();
|
|
1853
1860
|
const response = await this.privateGetV2TradingPositions(params);
|
package/dist/cjs/src/delta.js
CHANGED
|
@@ -358,7 +358,7 @@ class delta extends delta$1 {
|
|
|
358
358
|
* @name delta#fetchStatus
|
|
359
359
|
* @description the latest known information on the availability of the exchange API
|
|
360
360
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
361
|
-
* @returns {object} a [status structure]{@link https://
|
|
361
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
362
362
|
*/
|
|
363
363
|
const response = await this.publicGetSettings(params);
|
|
364
364
|
//
|
|
@@ -978,7 +978,7 @@ class delta extends delta$1 {
|
|
|
978
978
|
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
979
979
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
980
980
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
981
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
981
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
982
982
|
*/
|
|
983
983
|
await this.loadMarkets();
|
|
984
984
|
const market = this.market(symbol);
|
|
@@ -1121,7 +1121,7 @@ class delta extends delta$1 {
|
|
|
1121
1121
|
* @see https://docs.delta.exchange/#get-tickers-for-products
|
|
1122
1122
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1123
1123
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1124
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1124
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1125
1125
|
*/
|
|
1126
1126
|
await this.loadMarkets();
|
|
1127
1127
|
symbols = this.marketSymbols(symbols);
|
|
@@ -1274,7 +1274,7 @@ class delta extends delta$1 {
|
|
|
1274
1274
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1275
1275
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1276
1276
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1277
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
1277
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1278
1278
|
*/
|
|
1279
1279
|
await this.loadMarkets();
|
|
1280
1280
|
const market = this.market(symbol);
|
|
@@ -1416,7 +1416,7 @@ class delta extends delta$1 {
|
|
|
1416
1416
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1417
1417
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1418
1418
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1419
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1419
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1420
1420
|
*/
|
|
1421
1421
|
await this.loadMarkets();
|
|
1422
1422
|
const market = this.market(symbol);
|
|
@@ -1540,7 +1540,7 @@ class delta extends delta$1 {
|
|
|
1540
1540
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1541
1541
|
* @see https://docs.delta.exchange/#get-wallet-balances
|
|
1542
1542
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1543
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1543
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1544
1544
|
*/
|
|
1545
1545
|
await this.loadMarkets();
|
|
1546
1546
|
const response = await this.privateGetWalletBalances(params);
|
|
@@ -1575,7 +1575,7 @@ class delta extends delta$1 {
|
|
|
1575
1575
|
* @see https://docs.delta.exchange/#get-position
|
|
1576
1576
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
1577
1577
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1578
|
-
* @returns {object} a [position structure]{@link https://
|
|
1578
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
1579
1579
|
*/
|
|
1580
1580
|
await this.loadMarkets();
|
|
1581
1581
|
const market = this.market(symbol);
|
|
@@ -1604,7 +1604,7 @@ class delta extends delta$1 {
|
|
|
1604
1604
|
* @see https://docs.delta.exchange/#get-margined-positions
|
|
1605
1605
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1606
1606
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1607
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
1607
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
1608
1608
|
*/
|
|
1609
1609
|
await this.loadMarkets();
|
|
1610
1610
|
const response = await this.privateGetPositionsMargined(params);
|
|
@@ -1810,7 +1810,7 @@ class delta extends delta$1 {
|
|
|
1810
1810
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1811
1811
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1812
1812
|
* @param {bool} [params.reduceOnly] *contract only* indicates if this order is to reduce the size of a position
|
|
1813
|
-
* @returns {object} an [order structure]{@link https://
|
|
1813
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1814
1814
|
*/
|
|
1815
1815
|
await this.loadMarkets();
|
|
1816
1816
|
const orderType = type + '_order';
|
|
@@ -1892,7 +1892,7 @@ class delta extends delta$1 {
|
|
|
1892
1892
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
1893
1893
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency
|
|
1894
1894
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1895
|
-
* @returns {object} an [order structure]{@link https://
|
|
1895
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1896
1896
|
*/
|
|
1897
1897
|
await this.loadMarkets();
|
|
1898
1898
|
const market = this.market(symbol);
|
|
@@ -1938,9 +1938,11 @@ class delta extends delta$1 {
|
|
|
1938
1938
|
* @param {string} id order id
|
|
1939
1939
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1940
1940
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1941
|
-
* @returns {object} An [order structure]{@link https://
|
|
1941
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1942
1942
|
*/
|
|
1943
|
-
|
|
1943
|
+
if (symbol === undefined) {
|
|
1944
|
+
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
1945
|
+
}
|
|
1944
1946
|
await this.loadMarkets();
|
|
1945
1947
|
const market = this.market(symbol);
|
|
1946
1948
|
const request = {
|
|
@@ -1995,9 +1997,11 @@ class delta extends delta$1 {
|
|
|
1995
1997
|
* @see https://docs.delta.exchange/#cancel-all-open-orders
|
|
1996
1998
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
1997
1999
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
1998
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
2000
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1999
2001
|
*/
|
|
2000
|
-
|
|
2002
|
+
if (symbol === undefined) {
|
|
2003
|
+
throw new errors.ArgumentsRequired(this.id + ' cancelAllOrders() requires a symbol argument');
|
|
2004
|
+
}
|
|
2001
2005
|
await this.loadMarkets();
|
|
2002
2006
|
const market = this.market(symbol);
|
|
2003
2007
|
const request = {
|
|
@@ -2024,7 +2028,7 @@ class delta extends delta$1 {
|
|
|
2024
2028
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2025
2029
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
2026
2030
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2027
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2031
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2028
2032
|
*/
|
|
2029
2033
|
return await this.fetchOrdersWithMethod('privateGetOrders', symbol, since, limit, params);
|
|
2030
2034
|
}
|
|
@@ -2038,7 +2042,7 @@ class delta extends delta$1 {
|
|
|
2038
2042
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2039
2043
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2040
2044
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2041
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2045
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2042
2046
|
*/
|
|
2043
2047
|
return await this.fetchOrdersWithMethod('privateGetOrdersHistory', symbol, since, limit, params);
|
|
2044
2048
|
}
|
|
@@ -2102,7 +2106,7 @@ class delta extends delta$1 {
|
|
|
2102
2106
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2103
2107
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2104
2108
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2105
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
2109
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
2106
2110
|
*/
|
|
2107
2111
|
await this.loadMarkets();
|
|
2108
2112
|
const request = {
|
|
@@ -2184,7 +2188,7 @@ class delta extends delta$1 {
|
|
|
2184
2188
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2185
2189
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
2186
2190
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2187
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
2191
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
2188
2192
|
*/
|
|
2189
2193
|
await this.loadMarkets();
|
|
2190
2194
|
const request = {
|
|
@@ -2307,7 +2311,7 @@ class delta extends delta$1 {
|
|
|
2307
2311
|
* @param {string} code unified currency code
|
|
2308
2312
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2309
2313
|
* @param {string} [params.network] unified network code
|
|
2310
|
-
* @returns {object} an [address structure]{@link https://
|
|
2314
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2311
2315
|
*/
|
|
2312
2316
|
await this.loadMarkets();
|
|
2313
2317
|
const currency = this.currency(code);
|
|
@@ -2375,7 +2379,7 @@ class delta extends delta$1 {
|
|
|
2375
2379
|
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
2376
2380
|
* @param {string} symbol unified market symbol
|
|
2377
2381
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2378
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
2382
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
2379
2383
|
*/
|
|
2380
2384
|
await this.loadMarkets();
|
|
2381
2385
|
const market = this.market(symbol);
|
|
@@ -2442,7 +2446,7 @@ class delta extends delta$1 {
|
|
|
2442
2446
|
* @see https://docs.delta.exchange/#get-tickers-for-products
|
|
2443
2447
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2444
2448
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2445
|
-
* @returns {object} a dictionary of [funding rates structures]{@link https://
|
|
2449
|
+
* @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
|
|
2446
2450
|
*/
|
|
2447
2451
|
await this.loadMarkets();
|
|
2448
2452
|
symbols = this.marketSymbols(symbols);
|
|
@@ -2577,7 +2581,7 @@ class delta extends delta$1 {
|
|
|
2577
2581
|
* @param {string} symbol unified market symbol
|
|
2578
2582
|
* @param {float} amount amount of margin to add
|
|
2579
2583
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2580
|
-
* @returns {object} a [margin structure]{@link https://
|
|
2584
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
2581
2585
|
*/
|
|
2582
2586
|
return await this.modifyMarginHelper(symbol, amount, 'add', params);
|
|
2583
2587
|
}
|
|
@@ -2590,7 +2594,7 @@ class delta extends delta$1 {
|
|
|
2590
2594
|
* @param {string} symbol unified market symbol
|
|
2591
2595
|
* @param {float} amount the amount of margin to remove
|
|
2592
2596
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2593
|
-
* @returns {object} a [margin structure]{@link https://
|
|
2597
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
2594
2598
|
*/
|
|
2595
2599
|
return await this.modifyMarginHelper(symbol, amount, 'reduce', params);
|
|
2596
2600
|
}
|
|
@@ -2673,7 +2677,7 @@ class delta extends delta$1 {
|
|
|
2673
2677
|
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
2674
2678
|
* @param {string} symbol unified market symbol
|
|
2675
2679
|
* @param {object} [params] exchange specific parameters
|
|
2676
|
-
* @returns {object} an open interest structure{@link https://
|
|
2680
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure}
|
|
2677
2681
|
*/
|
|
2678
2682
|
await this.loadMarkets();
|
|
2679
2683
|
const market = this.market(symbol);
|
|
@@ -2810,7 +2814,7 @@ class delta extends delta$1 {
|
|
|
2810
2814
|
* @see https://docs.delta.exchange/#get-order-leverage
|
|
2811
2815
|
* @param {string} symbol unified market symbol
|
|
2812
2816
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2813
|
-
* @returns {object} a [leverage structure]{@link https://
|
|
2817
|
+
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
|
|
2814
2818
|
*/
|
|
2815
2819
|
await this.loadMarkets();
|
|
2816
2820
|
const market = this.market(symbol);
|
|
@@ -2843,7 +2847,9 @@ class delta extends delta$1 {
|
|
|
2843
2847
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
2844
2848
|
* @returns {object} response from the exchange
|
|
2845
2849
|
*/
|
|
2846
|
-
|
|
2850
|
+
if (symbol === undefined) {
|
|
2851
|
+
throw new errors.ArgumentsRequired(this.id + ' setLeverage() requires a symbol argument');
|
|
2852
|
+
}
|
|
2847
2853
|
await this.loadMarkets();
|
|
2848
2854
|
const market = this.market(symbol);
|
|
2849
2855
|
const request = {
|
|
@@ -2873,7 +2879,7 @@ class delta extends delta$1 {
|
|
|
2873
2879
|
* @param {int} [since] timestamp in ms
|
|
2874
2880
|
* @param {int} [limit] number of records
|
|
2875
2881
|
* @param {object} [params] exchange specific params
|
|
2876
|
-
* @returns {object[]} a list of [settlement history objects]{@link https://
|
|
2882
|
+
* @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/#/?id=settlement-history-structure}
|
|
2877
2883
|
*/
|
|
2878
2884
|
await this.loadMarkets();
|
|
2879
2885
|
let market = undefined;
|
|
@@ -3029,7 +3035,7 @@ class delta extends delta$1 {
|
|
|
3029
3035
|
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
3030
3036
|
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
3031
3037
|
* @param {object} [params] extra parameters specific to the delta api endpoint
|
|
3032
|
-
* @returns {object} a [greeks structure]{@link https://
|
|
3038
|
+
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
|
|
3033
3039
|
*/
|
|
3034
3040
|
await this.loadMarkets();
|
|
3035
3041
|
const market = this.market(symbol);
|