ccxt 4.1.63 → 4.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.js +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +33 -3
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +27 -28
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +162 -123
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +12 -9
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- 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 +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +33 -3
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +48 -30
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +27 -28
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +162 -123
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +12 -9
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- 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 +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
|
@@ -347,7 +347,7 @@ class digifinex extends digifinex$1 {
|
|
|
347
347
|
* @method
|
|
348
348
|
* @name digifinex#fetchCurrencies
|
|
349
349
|
* @description fetches all available currencies on an exchange
|
|
350
|
-
* @param {object} [params] extra parameters specific to the
|
|
350
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
351
351
|
* @returns {object} an associative dictionary of currencies
|
|
352
352
|
*/
|
|
353
353
|
const response = await this.publicSpotGetCurrencies(params);
|
|
@@ -514,7 +514,7 @@ class digifinex extends digifinex$1 {
|
|
|
514
514
|
* @method
|
|
515
515
|
* @name digifinex#fetchMarkets
|
|
516
516
|
* @description retrieves data on all markets for digifinex
|
|
517
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
517
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
518
518
|
* @returns {object[]} an array of objects representing market data
|
|
519
519
|
*/
|
|
520
520
|
const options = this.safeValue(this.options, 'fetchMarkets', {});
|
|
@@ -801,7 +801,7 @@ class digifinex extends digifinex$1 {
|
|
|
801
801
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-account-assets
|
|
802
802
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
|
|
803
803
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#accountbalance
|
|
804
|
-
* @param {object} [params] extra parameters specific to the
|
|
804
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
805
805
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
806
806
|
*/
|
|
807
807
|
await this.loadMarkets();
|
|
@@ -867,7 +867,7 @@ class digifinex extends digifinex$1 {
|
|
|
867
867
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderbook
|
|
868
868
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
869
869
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
870
|
-
* @param {object} [params] extra parameters specific to the
|
|
870
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
871
871
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
872
872
|
*/
|
|
873
873
|
await this.loadMarkets();
|
|
@@ -941,11 +941,11 @@ class digifinex extends digifinex$1 {
|
|
|
941
941
|
/**
|
|
942
942
|
* @method
|
|
943
943
|
* @name digifinex#fetchTickers
|
|
944
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
944
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
945
945
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
|
|
946
946
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#tickers
|
|
947
947
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
948
|
-
* @param {object} [params] extra parameters specific to the
|
|
948
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
949
949
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
950
950
|
*/
|
|
951
951
|
await this.loadMarkets();
|
|
@@ -1032,7 +1032,7 @@ class digifinex extends digifinex$1 {
|
|
|
1032
1032
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
|
|
1033
1033
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#ticker
|
|
1034
1034
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1035
|
-
* @param {object} [params] extra parameters specific to the
|
|
1035
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1036
1036
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1037
1037
|
*/
|
|
1038
1038
|
await this.loadMarkets();
|
|
@@ -1323,7 +1323,7 @@ class digifinex extends digifinex$1 {
|
|
|
1323
1323
|
* @method
|
|
1324
1324
|
* @name digifinex#fetchTime
|
|
1325
1325
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
1326
|
-
* @param {object} [params] extra parameters specific to the
|
|
1326
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1327
1327
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
1328
1328
|
*/
|
|
1329
1329
|
const response = await this.publicSpotGetTime(params);
|
|
@@ -1340,7 +1340,7 @@ class digifinex extends digifinex$1 {
|
|
|
1340
1340
|
* @method
|
|
1341
1341
|
* @name digifinex#fetchStatus
|
|
1342
1342
|
* @description the latest known information on the availability of the exchange API
|
|
1343
|
-
* @param {object} [params] extra parameters specific to the
|
|
1343
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1344
1344
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
1345
1345
|
*/
|
|
1346
1346
|
const response = await this.publicSpotGetPing(params);
|
|
@@ -1370,7 +1370,7 @@ class digifinex extends digifinex$1 {
|
|
|
1370
1370
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1371
1371
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1372
1372
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1373
|
-
* @param {object} [params] extra parameters specific to the
|
|
1373
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1374
1374
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1375
1375
|
*/
|
|
1376
1376
|
await this.loadMarkets();
|
|
@@ -1475,7 +1475,7 @@ class digifinex extends digifinex$1 {
|
|
|
1475
1475
|
* @param {string} timeframe the length of time each candle represents
|
|
1476
1476
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1477
1477
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1478
|
-
* @param {object} [params] extra parameters specific to the
|
|
1478
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1479
1479
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1480
1480
|
*/
|
|
1481
1481
|
await this.loadMarkets();
|
|
@@ -1557,7 +1557,7 @@ class digifinex extends digifinex$1 {
|
|
|
1557
1557
|
* @param {string} side 'buy' or 'sell'
|
|
1558
1558
|
* @param {float} amount how much you want to trade in units of the base currency, spot market orders use the quote currency, swap requires the number of contracts
|
|
1559
1559
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1560
|
-
* @param {object} [params] extra parameters specific to the
|
|
1560
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1561
1561
|
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
1562
1562
|
* @param {bool} [params.postOnly] true or false
|
|
1563
1563
|
* @param {bool} [params.reduceOnly] true or false
|
|
@@ -1612,7 +1612,7 @@ class digifinex extends digifinex$1 {
|
|
|
1612
1612
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-multiple-order
|
|
1613
1613
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#batchorder
|
|
1614
1614
|
* @param {array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
1615
|
-
* @param {object} [params] extra parameters specific to the
|
|
1615
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1616
1616
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1617
1617
|
*/
|
|
1618
1618
|
await this.loadMarkets();
|
|
@@ -1713,7 +1713,7 @@ class digifinex extends digifinex$1 {
|
|
|
1713
1713
|
* @param {string} side 'buy' or 'sell'
|
|
1714
1714
|
* @param {float} amount how much you want to trade in units of the base currency, spot market orders use the quote currency, swap requires the number of contracts
|
|
1715
1715
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1716
|
-
* @param {object} [params] extra parameters specific to the
|
|
1716
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1717
1717
|
* @returns {object} request to be sent to the exchange
|
|
1718
1718
|
*/
|
|
1719
1719
|
const market = this.market(symbol);
|
|
@@ -1816,7 +1816,7 @@ class digifinex extends digifinex$1 {
|
|
|
1816
1816
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#cancelorder
|
|
1817
1817
|
* @param {string} id order id
|
|
1818
1818
|
* @param {string} symbol not used by digifinex cancelOrder ()
|
|
1819
|
-
* @param {object} [params] extra parameters specific to the
|
|
1819
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1820
1820
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1821
1821
|
*/
|
|
1822
1822
|
await this.loadMarkets();
|
|
@@ -1887,7 +1887,7 @@ class digifinex extends digifinex$1 {
|
|
|
1887
1887
|
* @description cancel multiple orders
|
|
1888
1888
|
* @param {string[]} ids order ids
|
|
1889
1889
|
* @param {string} symbol not used by digifinex cancelOrders ()
|
|
1890
|
-
* @param {object} [params] extra parameters specific to the
|
|
1890
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1891
1891
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1892
1892
|
*/
|
|
1893
1893
|
await this.loadMarkets();
|
|
@@ -2086,7 +2086,7 @@ class digifinex extends digifinex$1 {
|
|
|
2086
2086
|
* @param {string} symbol unified market symbol
|
|
2087
2087
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2088
2088
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2089
|
-
* @param {object} [params] extra parameters specific to the
|
|
2089
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2090
2090
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2091
2091
|
*/
|
|
2092
2092
|
await this.loadMarkets();
|
|
@@ -2188,7 +2188,7 @@ class digifinex extends digifinex$1 {
|
|
|
2188
2188
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2189
2189
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2190
2190
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2191
|
-
* @param {object} [params] extra parameters specific to the
|
|
2191
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2192
2192
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2193
2193
|
*/
|
|
2194
2194
|
await this.loadMarkets();
|
|
@@ -2291,7 +2291,7 @@ class digifinex extends digifinex$1 {
|
|
|
2291
2291
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderinfo
|
|
2292
2292
|
* @param {string} id order id
|
|
2293
2293
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2294
|
-
* @param {object} [params] extra parameters specific to the
|
|
2294
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2295
2295
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2296
2296
|
*/
|
|
2297
2297
|
await this.loadMarkets();
|
|
@@ -2388,7 +2388,7 @@ class digifinex extends digifinex$1 {
|
|
|
2388
2388
|
* @param {string} symbol unified market symbol
|
|
2389
2389
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2390
2390
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2391
|
-
* @param {object} [params] extra parameters specific to the
|
|
2391
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2392
2392
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
2393
2393
|
*/
|
|
2394
2394
|
await this.loadMarkets();
|
|
@@ -2538,7 +2538,7 @@ class digifinex extends digifinex$1 {
|
|
|
2538
2538
|
* @param {string} code unified currency code, default is undefined
|
|
2539
2539
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2540
2540
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
2541
|
-
* @param {object} [params] extra parameters specific to the
|
|
2541
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2542
2542
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
2543
2543
|
*/
|
|
2544
2544
|
await this.loadMarkets();
|
|
@@ -2646,7 +2646,7 @@ class digifinex extends digifinex$1 {
|
|
|
2646
2646
|
* @name digifinex#fetchDepositAddress
|
|
2647
2647
|
* @description fetch the deposit address for a currency associated with this account
|
|
2648
2648
|
* @param {string} code unified currency code
|
|
2649
|
-
* @param {object} [params] extra parameters specific to the
|
|
2649
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2650
2650
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2651
2651
|
*/
|
|
2652
2652
|
await this.loadMarkets();
|
|
@@ -2725,7 +2725,7 @@ class digifinex extends digifinex$1 {
|
|
|
2725
2725
|
* @param {string} code unified currency code
|
|
2726
2726
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2727
2727
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2728
|
-
* @param {object} [params] extra parameters specific to the
|
|
2728
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2729
2729
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2730
2730
|
*/
|
|
2731
2731
|
return await this.fetchTransactionsByType('deposit', code, since, limit, params);
|
|
@@ -2738,7 +2738,7 @@ class digifinex extends digifinex$1 {
|
|
|
2738
2738
|
* @param {string} code unified currency code
|
|
2739
2739
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2740
2740
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2741
|
-
* @param {object} [params] extra parameters specific to the
|
|
2741
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2742
2742
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2743
2743
|
*/
|
|
2744
2744
|
return await this.fetchTransactionsByType('withdrawal', code, since, limit, params);
|
|
@@ -2875,7 +2875,7 @@ class digifinex extends digifinex$1 {
|
|
|
2875
2875
|
* @param {float} amount amount to transfer
|
|
2876
2876
|
* @param {string} fromAccount account to transfer from
|
|
2877
2877
|
* @param {string} toAccount account to transfer to
|
|
2878
|
-
* @param {object} [params] extra parameters specific to the
|
|
2878
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2879
2879
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
2880
2880
|
*/
|
|
2881
2881
|
await this.loadMarkets();
|
|
@@ -2906,7 +2906,7 @@ class digifinex extends digifinex$1 {
|
|
|
2906
2906
|
* @param {float} amount the amount to withdraw
|
|
2907
2907
|
* @param {string} address the address to withdraw to
|
|
2908
2908
|
* @param {string} tag
|
|
2909
|
-
* @param {object} [params] extra parameters specific to the
|
|
2909
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2910
2910
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2911
2911
|
*/
|
|
2912
2912
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -3005,7 +3005,7 @@ class digifinex extends digifinex$1 {
|
|
|
3005
3005
|
* @description fetch the rate of interest to borrow a currency for margin trading
|
|
3006
3006
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
|
|
3007
3007
|
* @param {string} code unified currency code
|
|
3008
|
-
* @param {object} [params] extra parameters specific to the
|
|
3008
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3009
3009
|
* @returns {object} a [borrow rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
|
|
3010
3010
|
*/
|
|
3011
3011
|
await this.loadMarkets();
|
|
@@ -3045,7 +3045,7 @@ class digifinex extends digifinex$1 {
|
|
|
3045
3045
|
* @name digifinex#fetchCrossBorrowRates
|
|
3046
3046
|
* @description fetch the borrow interest rates of all currencies
|
|
3047
3047
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
|
|
3048
|
-
* @param {object} [params] extra parameters specific to the
|
|
3048
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3049
3049
|
* @returns {object} a list of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
|
|
3050
3050
|
*/
|
|
3051
3051
|
await this.loadMarkets();
|
|
@@ -3116,7 +3116,7 @@ class digifinex extends digifinex$1 {
|
|
|
3116
3116
|
* @description fetch the current funding rate
|
|
3117
3117
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#currentfundingrate
|
|
3118
3118
|
* @param {string} symbol unified market symbol
|
|
3119
|
-
* @param {object} [params] extra parameters specific to the
|
|
3119
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3120
3120
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
3121
3121
|
*/
|
|
3122
3122
|
await this.loadMarkets();
|
|
@@ -3184,7 +3184,7 @@ class digifinex extends digifinex$1 {
|
|
|
3184
3184
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
3185
3185
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
3186
3186
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
3187
|
-
* @param {object} [params] extra parameters specific to the
|
|
3187
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3188
3188
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
3189
3189
|
*/
|
|
3190
3190
|
if (symbol === undefined) {
|
|
@@ -3246,7 +3246,7 @@ class digifinex extends digifinex$1 {
|
|
|
3246
3246
|
* @description fetch the trading fees for a market
|
|
3247
3247
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#tradingfee
|
|
3248
3248
|
* @param {string} symbol unified market symbol
|
|
3249
|
-
* @param {object} [params] extra parameters specific to the
|
|
3249
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3250
3250
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
3251
3251
|
*/
|
|
3252
3252
|
await this.loadMarkets();
|
|
@@ -3296,7 +3296,7 @@ class digifinex extends digifinex$1 {
|
|
|
3296
3296
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-positions
|
|
3297
3297
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
|
|
3298
3298
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
3299
|
-
* @param {object} [params] extra parameters specific to the
|
|
3299
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3300
3300
|
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
3301
3301
|
*/
|
|
3302
3302
|
await this.loadMarkets();
|
|
@@ -3402,7 +3402,7 @@ class digifinex extends digifinex$1 {
|
|
|
3402
3402
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
|
|
3403
3403
|
* @description fetch data on a single open contract trade position
|
|
3404
3404
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
3405
|
-
* @param {object} [params] extra parameters specific to the
|
|
3405
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3406
3406
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
3407
3407
|
*/
|
|
3408
3408
|
await this.loadMarkets();
|
|
@@ -3578,7 +3578,7 @@ class digifinex extends digifinex$1 {
|
|
|
3578
3578
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#setleverage
|
|
3579
3579
|
* @param {float} leverage the rate of leverage
|
|
3580
3580
|
* @param {string} symbol unified market symbol
|
|
3581
|
-
* @param {object} [params] extra parameters specific to the
|
|
3581
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3582
3582
|
* @param {string} [params.marginMode] either 'cross' or 'isolated', default is cross
|
|
3583
3583
|
* @param {string} [params.side] either 'long' or 'short', required for isolated markets only
|
|
3584
3584
|
* @returns {object} response from the exchange
|
|
@@ -3637,7 +3637,7 @@ class digifinex extends digifinex$1 {
|
|
|
3637
3637
|
* @param {string} code unified currency code of the currency transferred
|
|
3638
3638
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
3639
3639
|
* @param {int} [limit] the maximum number of transfers to retrieve
|
|
3640
|
-
* @param {object} [params] extra parameters specific to the
|
|
3640
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3641
3641
|
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
3642
3642
|
*/
|
|
3643
3643
|
await this.loadMarkets();
|
|
@@ -3679,7 +3679,7 @@ class digifinex extends digifinex$1 {
|
|
|
3679
3679
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#instruments
|
|
3680
3680
|
* @description retrieve information on the maximum leverage, for different trade sizes
|
|
3681
3681
|
* @param {string[]|undefined} symbols a list of unified market symbols
|
|
3682
|
-
* @param {object} [params] extra parameters specific to the
|
|
3682
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3683
3683
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
3684
3684
|
*/
|
|
3685
3685
|
await this.loadMarkets();
|
|
@@ -3745,7 +3745,7 @@ class digifinex extends digifinex$1 {
|
|
|
3745
3745
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#instrument
|
|
3746
3746
|
* @description retrieve information on the maximum leverage, for different trade sizes for a single market
|
|
3747
3747
|
* @param {string} symbol unified market symbol
|
|
3748
|
-
* @param {object} [params] extra parameters specific to the
|
|
3748
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3749
3749
|
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
|
|
3750
3750
|
*/
|
|
3751
3751
|
await this.loadMarkets();
|
|
@@ -3835,7 +3835,7 @@ class digifinex extends digifinex$1 {
|
|
|
3835
3835
|
* @ignore
|
|
3836
3836
|
* @method
|
|
3837
3837
|
* @description marginMode specified by params["marginMode"], this.options["marginMode"], this.options["defaultMarginMode"], params["margin"] = true or this.options["defaultType"] = 'margin'
|
|
3838
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
3838
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3839
3839
|
* @returns {array} the marginMode in lowercase
|
|
3840
3840
|
*/
|
|
3841
3841
|
const defaultType = this.safeString(this.options, 'defaultType');
|
|
@@ -3861,7 +3861,7 @@ class digifinex extends digifinex$1 {
|
|
|
3861
3861
|
* @description fetch deposit and withdraw fees
|
|
3862
3862
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-currency-deposit-and-withdrawal-information
|
|
3863
3863
|
* @param {string[]|undefined} codes not used by fetchDepositWithdrawFees ()
|
|
3864
|
-
* @param {object} [params] extra parameters specific to the
|
|
3864
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3865
3865
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
3866
3866
|
*/
|
|
3867
3867
|
await this.loadMarkets();
|
|
@@ -3977,7 +3977,7 @@ class digifinex extends digifinex$1 {
|
|
|
3977
3977
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmargin
|
|
3978
3978
|
* @param {string} symbol unified market symbol
|
|
3979
3979
|
* @param {float} amount amount of margin to add
|
|
3980
|
-
* @param {object} [params] extra parameters specific to the
|
|
3980
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3981
3981
|
* @param {string} params.side the position side: 'long' or 'short'
|
|
3982
3982
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=margin-structure}
|
|
3983
3983
|
*/
|
|
@@ -3993,7 +3993,7 @@ class digifinex extends digifinex$1 {
|
|
|
3993
3993
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmargin
|
|
3994
3994
|
* @param {string} symbol unified market symbol
|
|
3995
3995
|
* @param {float} amount the amount of margin to remove
|
|
3996
|
-
* @param {object} [params] extra parameters specific to the
|
|
3996
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3997
3997
|
* @param {string} params.side the position side: 'long' or 'short'
|
|
3998
3998
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=margin-structure}
|
|
3999
3999
|
*/
|
|
@@ -4060,7 +4060,7 @@ class digifinex extends digifinex$1 {
|
|
|
4060
4060
|
* @param {string} [symbol] unified market symbol
|
|
4061
4061
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
4062
4062
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
4063
|
-
* @param {object} [params] extra parameters specific to the
|
|
4063
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4064
4064
|
* @param {int} [params.until] timestamp in ms of the latest funding payment
|
|
4065
4065
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
4066
4066
|
*/
|
|
@@ -4125,7 +4125,7 @@ class digifinex extends digifinex$1 {
|
|
|
4125
4125
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmode
|
|
4126
4126
|
* @param {string} marginMode 'cross' or 'isolated'
|
|
4127
4127
|
* @param {string} symbol unified market symbol
|
|
4128
|
-
* @param {object} [params] extra parameters specific to the
|
|
4128
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4129
4129
|
* @returns {object} response from the exchange
|
|
4130
4130
|
*/
|
|
4131
4131
|
if (symbol === undefined) {
|
package/dist/cjs/src/exmo.js
CHANGED
|
@@ -278,7 +278,7 @@ class exmo extends exmo$1 {
|
|
|
278
278
|
* @description remove margin from a position
|
|
279
279
|
* @param {string} symbol unified market symbol
|
|
280
280
|
* @param {float} amount the amount of margin to remove
|
|
281
|
-
* @param {object} [params] extra parameters specific to the
|
|
281
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
282
282
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
283
283
|
*/
|
|
284
284
|
return await this.modifyMarginHelper(symbol, amount, 'reduce', params);
|
|
@@ -290,7 +290,7 @@ class exmo extends exmo$1 {
|
|
|
290
290
|
* @description add margin
|
|
291
291
|
* @param {string} symbol unified market symbol
|
|
292
292
|
* @param {float} amount amount of margin to add
|
|
293
|
-
* @param {object} [params] extra parameters specific to the
|
|
293
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
294
294
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
295
295
|
*/
|
|
296
296
|
return await this.modifyMarginHelper(symbol, amount, 'add', params);
|
|
@@ -300,7 +300,7 @@ class exmo extends exmo$1 {
|
|
|
300
300
|
* @method
|
|
301
301
|
* @name exmo#fetchTradingFees
|
|
302
302
|
* @description fetch the trading fees for multiple markets
|
|
303
|
-
* @param {object} [params] extra parameters specific to the
|
|
303
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
304
304
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
305
305
|
*/
|
|
306
306
|
let method = this.safeString(params, 'method');
|
|
@@ -426,7 +426,7 @@ class exmo extends exmo$1 {
|
|
|
426
426
|
* @description please use fetchDepositWithdrawFees instead
|
|
427
427
|
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
|
|
428
428
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
429
|
-
* @param {object} [params] extra parameters specific to the
|
|
429
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
430
430
|
* @returns {object} a list of [transaction fees structures]{@link https://docs.ccxt.com/#/?id=fees-structure}
|
|
431
431
|
*/
|
|
432
432
|
await this.loadMarkets();
|
|
@@ -499,7 +499,7 @@ class exmo extends exmo$1 {
|
|
|
499
499
|
* @description fetch deposit and withdraw fees
|
|
500
500
|
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
|
|
501
501
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
502
|
-
* @param {object} [params] extra parameters specific to the
|
|
502
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
503
503
|
* @returns {object} a list of [transaction fees structures]{@link https://docs.ccxt.com/#/?id=fees-structure}
|
|
504
504
|
*/
|
|
505
505
|
await this.loadMarkets();
|
|
@@ -584,7 +584,7 @@ class exmo extends exmo$1 {
|
|
|
584
584
|
* @method
|
|
585
585
|
* @name exmo#fetchCurrencies
|
|
586
586
|
* @description fetches all available currencies on an exchange
|
|
587
|
-
* @param {object} [params] extra parameters specific to the
|
|
587
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
588
588
|
* @returns {object} an associative dictionary of currencies
|
|
589
589
|
*/
|
|
590
590
|
//
|
|
@@ -710,7 +710,7 @@ class exmo extends exmo$1 {
|
|
|
710
710
|
* @method
|
|
711
711
|
* @name exmo#fetchMarkets
|
|
712
712
|
* @description retrieves data on all markets for exmo
|
|
713
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
713
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
714
714
|
* @returns {object[]} an array of objects representing market data
|
|
715
715
|
*/
|
|
716
716
|
const response = await this.publicGetPairSettings(params);
|
|
@@ -841,7 +841,7 @@ class exmo extends exmo$1 {
|
|
|
841
841
|
* @param {string} timeframe the length of time each candle represents
|
|
842
842
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
843
843
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
844
|
-
* @param {object} [params] extra parameters specific to the
|
|
844
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
845
845
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
846
846
|
*/
|
|
847
847
|
await this.loadMarkets();
|
|
@@ -950,7 +950,7 @@ class exmo extends exmo$1 {
|
|
|
950
950
|
* @method
|
|
951
951
|
* @name exmo#fetchBalance
|
|
952
952
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
953
|
-
* @param {object} [params] extra parameters specific to the
|
|
953
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
954
954
|
* @param {string} [params.marginMode] *isolated* fetches the isolated margin balance
|
|
955
955
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
956
956
|
*/
|
|
@@ -999,7 +999,7 @@ class exmo extends exmo$1 {
|
|
|
999
999
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1000
1000
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1001
1001
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1002
|
-
* @param {object} [params] extra parameters specific to the
|
|
1002
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1003
1003
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1004
1004
|
*/
|
|
1005
1005
|
await this.loadMarkets();
|
|
@@ -1021,7 +1021,7 @@ class exmo extends exmo$1 {
|
|
|
1021
1021
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
1022
1022
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
1023
1023
|
* @param {int} [limit] max number of entries per orderbook to return, default is undefined
|
|
1024
|
-
* @param {object} [params] extra parameters specific to the
|
|
1024
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1025
1025
|
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
1026
1026
|
*/
|
|
1027
1027
|
await this.loadMarkets();
|
|
@@ -1098,9 +1098,9 @@ class exmo extends exmo$1 {
|
|
|
1098
1098
|
/**
|
|
1099
1099
|
* @method
|
|
1100
1100
|
* @name exmo#fetchTickers
|
|
1101
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1101
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1102
1102
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1103
|
-
* @param {object} [params] extra parameters specific to the
|
|
1103
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1104
1104
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1105
1105
|
*/
|
|
1106
1106
|
await this.loadMarkets();
|
|
@@ -1138,7 +1138,7 @@ class exmo extends exmo$1 {
|
|
|
1138
1138
|
* @name exmo#fetchTicker
|
|
1139
1139
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1140
1140
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1141
|
-
* @param {object} [params] extra parameters specific to the
|
|
1141
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1142
1142
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1143
1143
|
*/
|
|
1144
1144
|
await this.loadMarkets();
|
|
@@ -1244,7 +1244,7 @@ class exmo extends exmo$1 {
|
|
|
1244
1244
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1245
1245
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1246
1246
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1247
|
-
* @param {object} [params] extra parameters specific to the
|
|
1247
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1248
1248
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1249
1249
|
*/
|
|
1250
1250
|
await this.loadMarkets();
|
|
@@ -1288,7 +1288,7 @@ class exmo extends exmo$1 {
|
|
|
1288
1288
|
* @param {string} symbol a symbol is required but it can be a single string, or a non-empty array
|
|
1289
1289
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1290
1290
|
* @param {int} [limit] *required for margin orders* the maximum number of trades structures to retrieve
|
|
1291
|
-
* @param {object} [params] extra parameters specific to the
|
|
1291
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1292
1292
|
*
|
|
1293
1293
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
1294
1294
|
* @param {int} [params.offset] last deal offset, default = 0
|
|
@@ -1394,7 +1394,7 @@ class exmo extends exmo$1 {
|
|
|
1394
1394
|
* @param {string} side 'buy' or 'sell'
|
|
1395
1395
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1396
1396
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1397
|
-
* @param {object} [params] extra parameters specific to the
|
|
1397
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1398
1398
|
* @param {float} [params.stopPrice] the price at which a trigger order is triggered at
|
|
1399
1399
|
* @param {string} [params.timeInForce] *spot only* 'fok', 'ioc' or 'post_only'
|
|
1400
1400
|
* @param {boolean} [params.postOnly] *spot only* true for post only orders
|
|
@@ -1507,7 +1507,7 @@ class exmo extends exmo$1 {
|
|
|
1507
1507
|
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#705dfec5-2b35-4667-862b-faf54eca6209 // margin
|
|
1508
1508
|
* @param {string} id order id
|
|
1509
1509
|
* @param {string} symbol not used by exmo cancelOrder ()
|
|
1510
|
-
* @param {object} [params] extra parameters specific to the
|
|
1510
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1511
1511
|
* @param {boolean} [params.trigger] true to cancel a trigger order
|
|
1512
1512
|
* @param {string} [params.marginMode] set to 'cross' or 'isolated' to cancel a margin order
|
|
1513
1513
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1557,7 +1557,7 @@ class exmo extends exmo$1 {
|
|
|
1557
1557
|
* @description *spot only* fetches information on an order made by the user
|
|
1558
1558
|
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#cf27781e-28e5-4b39-a52d-3110f5d22459 // spot
|
|
1559
1559
|
* @param {string} symbol not used by exmo fetchOrder
|
|
1560
|
-
* @param {object} [params] extra parameters specific to the
|
|
1560
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1561
1561
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1562
1562
|
*/
|
|
1563
1563
|
await this.loadMarkets();
|
|
@@ -1601,7 +1601,7 @@ class exmo extends exmo$1 {
|
|
|
1601
1601
|
* @param {string} symbol unified market symbol
|
|
1602
1602
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1603
1603
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1604
|
-
* @param {object} [params] extra parameters specific to the
|
|
1604
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1605
1605
|
* @param {string} [params.marginMode] set to "isolated" to fetch trades for a margin order
|
|
1606
1606
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1607
1607
|
*/
|
|
@@ -1678,7 +1678,7 @@ class exmo extends exmo$1 {
|
|
|
1678
1678
|
* @param {string} symbol unified market symbol
|
|
1679
1679
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1680
1680
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1681
|
-
* @param {object} [params] extra parameters specific to the
|
|
1681
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1682
1682
|
* @param {string} [params.marginMode] set to "isolated" for margin orders
|
|
1683
1683
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1684
1684
|
*/
|
|
@@ -1942,7 +1942,7 @@ class exmo extends exmo$1 {
|
|
|
1942
1942
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1943
1943
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
1944
1944
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
1945
|
-
* @param {object} [params] extra parameters specific to the
|
|
1945
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1946
1946
|
* @param {string} [params.marginMode] set to "isolated" for margin orders
|
|
1947
1947
|
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1948
1948
|
*/
|
|
@@ -2041,7 +2041,7 @@ class exmo extends exmo$1 {
|
|
|
2041
2041
|
* @param {string} side not used by exmo editOrder
|
|
2042
2042
|
* @param {float} [amount] how much of the currency you want to trade in units of the base currency
|
|
2043
2043
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2044
|
-
* @param {object} [params] extra parameters specific to the
|
|
2044
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2045
2045
|
* @param {float} [params.triggerPrice] stop price for stop-market and stop-limit orders
|
|
2046
2046
|
* @param {string} params.marginMode must be set to isolated
|
|
2047
2047
|
*
|
|
@@ -2081,7 +2081,7 @@ class exmo extends exmo$1 {
|
|
|
2081
2081
|
* @name exmo#fetchDepositAddress
|
|
2082
2082
|
* @description fetch the deposit address for a currency associated with this account
|
|
2083
2083
|
* @param {string} code unified currency code
|
|
2084
|
-
* @param {object} [params] extra parameters specific to the
|
|
2084
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2085
2085
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2086
2086
|
*/
|
|
2087
2087
|
await this.loadMarkets();
|
|
@@ -2130,7 +2130,7 @@ class exmo extends exmo$1 {
|
|
|
2130
2130
|
* @param {float} amount the amount to withdraw
|
|
2131
2131
|
* @param {string} address the address to withdraw to
|
|
2132
2132
|
* @param {string} tag
|
|
2133
|
-
* @param {object} [params] extra parameters specific to the
|
|
2133
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2134
2134
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2135
2135
|
*/
|
|
2136
2136
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -2308,7 +2308,7 @@ class exmo extends exmo$1 {
|
|
|
2308
2308
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2309
2309
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2310
2310
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2311
|
-
* @param {object} [params] extra parameters specific to the
|
|
2311
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2312
2312
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2313
2313
|
*/
|
|
2314
2314
|
await this.loadMarkets();
|
|
@@ -2361,7 +2361,7 @@ class exmo extends exmo$1 {
|
|
|
2361
2361
|
* @param {string} code unified currency code
|
|
2362
2362
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2363
2363
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2364
|
-
* @param {object} [params] extra parameters specific to the
|
|
2364
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2365
2365
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2366
2366
|
*/
|
|
2367
2367
|
await this.loadMarkets();
|
|
@@ -2413,7 +2413,7 @@ class exmo extends exmo$1 {
|
|
|
2413
2413
|
* @description fetch data on a currency withdrawal via the withdrawal id
|
|
2414
2414
|
* @param {string} id withdrawal id
|
|
2415
2415
|
* @param {string} code unified currency code of the currency withdrawn, default is undefined
|
|
2416
|
-
* @param {object} [params] extra parameters specific to the
|
|
2416
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2417
2417
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2418
2418
|
*/
|
|
2419
2419
|
await this.loadMarkets();
|
|
@@ -2464,7 +2464,7 @@ class exmo extends exmo$1 {
|
|
|
2464
2464
|
* @description fetch information on a deposit
|
|
2465
2465
|
* @param {string} id deposit id
|
|
2466
2466
|
* @param {string} code unified currency code, default is undefined
|
|
2467
|
-
* @param {object} [params] extra parameters specific to the
|
|
2467
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2468
2468
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2469
2469
|
*/
|
|
2470
2470
|
await this.loadMarkets();
|
|
@@ -2516,7 +2516,7 @@ class exmo extends exmo$1 {
|
|
|
2516
2516
|
* @param {string} code unified currency code
|
|
2517
2517
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2518
2518
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2519
|
-
* @param {object} [params] extra parameters specific to the
|
|
2519
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2520
2520
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2521
2521
|
*/
|
|
2522
2522
|
await this.loadMarkets();
|