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
package/js/src/digifinex.js
CHANGED
|
@@ -350,7 +350,7 @@ export default class digifinex extends Exchange {
|
|
|
350
350
|
* @method
|
|
351
351
|
* @name digifinex#fetchCurrencies
|
|
352
352
|
* @description fetches all available currencies on an exchange
|
|
353
|
-
* @param {object} [params] extra parameters specific to the
|
|
353
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
354
354
|
* @returns {object} an associative dictionary of currencies
|
|
355
355
|
*/
|
|
356
356
|
const response = await this.publicSpotGetCurrencies(params);
|
|
@@ -517,7 +517,7 @@ export default class digifinex extends Exchange {
|
|
|
517
517
|
* @method
|
|
518
518
|
* @name digifinex#fetchMarkets
|
|
519
519
|
* @description retrieves data on all markets for digifinex
|
|
520
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
520
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
521
521
|
* @returns {object[]} an array of objects representing market data
|
|
522
522
|
*/
|
|
523
523
|
const options = this.safeValue(this.options, 'fetchMarkets', {});
|
|
@@ -804,7 +804,7 @@ export default class digifinex extends Exchange {
|
|
|
804
804
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-account-assets
|
|
805
805
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
|
|
806
806
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#accountbalance
|
|
807
|
-
* @param {object} [params] extra parameters specific to the
|
|
807
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
808
808
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
809
809
|
*/
|
|
810
810
|
await this.loadMarkets();
|
|
@@ -870,7 +870,7 @@ export default class digifinex extends Exchange {
|
|
|
870
870
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderbook
|
|
871
871
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
872
872
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
873
|
-
* @param {object} [params] extra parameters specific to the
|
|
873
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
874
874
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
875
875
|
*/
|
|
876
876
|
await this.loadMarkets();
|
|
@@ -944,11 +944,11 @@ export default class digifinex extends Exchange {
|
|
|
944
944
|
/**
|
|
945
945
|
* @method
|
|
946
946
|
* @name digifinex#fetchTickers
|
|
947
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
947
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
948
948
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
|
|
949
949
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#tickers
|
|
950
950
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
951
|
-
* @param {object} [params] extra parameters specific to the
|
|
951
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
952
952
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
953
953
|
*/
|
|
954
954
|
await this.loadMarkets();
|
|
@@ -1035,7 +1035,7 @@ export default class digifinex extends Exchange {
|
|
|
1035
1035
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
|
|
1036
1036
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#ticker
|
|
1037
1037
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1038
|
-
* @param {object} [params] extra parameters specific to the
|
|
1038
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1039
1039
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1040
1040
|
*/
|
|
1041
1041
|
await this.loadMarkets();
|
|
@@ -1326,7 +1326,7 @@ export default class digifinex extends Exchange {
|
|
|
1326
1326
|
* @method
|
|
1327
1327
|
* @name digifinex#fetchTime
|
|
1328
1328
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
1329
|
-
* @param {object} [params] extra parameters specific to the
|
|
1329
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1330
1330
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
1331
1331
|
*/
|
|
1332
1332
|
const response = await this.publicSpotGetTime(params);
|
|
@@ -1343,7 +1343,7 @@ export default class digifinex extends Exchange {
|
|
|
1343
1343
|
* @method
|
|
1344
1344
|
* @name digifinex#fetchStatus
|
|
1345
1345
|
* @description the latest known information on the availability of the exchange API
|
|
1346
|
-
* @param {object} [params] extra parameters specific to the
|
|
1346
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1347
1347
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
1348
1348
|
*/
|
|
1349
1349
|
const response = await this.publicSpotGetPing(params);
|
|
@@ -1373,7 +1373,7 @@ export default class digifinex extends Exchange {
|
|
|
1373
1373
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1374
1374
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1375
1375
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1376
|
-
* @param {object} [params] extra parameters specific to the
|
|
1376
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1377
1377
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1378
1378
|
*/
|
|
1379
1379
|
await this.loadMarkets();
|
|
@@ -1478,7 +1478,7 @@ export default class digifinex extends Exchange {
|
|
|
1478
1478
|
* @param {string} timeframe the length of time each candle represents
|
|
1479
1479
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1480
1480
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1481
|
-
* @param {object} [params] extra parameters specific to the
|
|
1481
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1482
1482
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1483
1483
|
*/
|
|
1484
1484
|
await this.loadMarkets();
|
|
@@ -1560,7 +1560,7 @@ export default class digifinex extends Exchange {
|
|
|
1560
1560
|
* @param {string} side 'buy' or 'sell'
|
|
1561
1561
|
* @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
|
|
1562
1562
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1563
|
-
* @param {object} [params] extra parameters specific to the
|
|
1563
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1564
1564
|
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
1565
1565
|
* @param {bool} [params.postOnly] true or false
|
|
1566
1566
|
* @param {bool} [params.reduceOnly] true or false
|
|
@@ -1615,7 +1615,7 @@ export default class digifinex extends Exchange {
|
|
|
1615
1615
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-multiple-order
|
|
1616
1616
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#batchorder
|
|
1617
1617
|
* @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
|
|
1618
|
-
* @param {object} [params] extra parameters specific to the
|
|
1618
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1619
1619
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1620
1620
|
*/
|
|
1621
1621
|
await this.loadMarkets();
|
|
@@ -1716,7 +1716,7 @@ export default class digifinex extends Exchange {
|
|
|
1716
1716
|
* @param {string} side 'buy' or 'sell'
|
|
1717
1717
|
* @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
|
|
1718
1718
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1719
|
-
* @param {object} [params] extra parameters specific to the
|
|
1719
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1720
1720
|
* @returns {object} request to be sent to the exchange
|
|
1721
1721
|
*/
|
|
1722
1722
|
const market = this.market(symbol);
|
|
@@ -1819,7 +1819,7 @@ export default class digifinex extends Exchange {
|
|
|
1819
1819
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#cancelorder
|
|
1820
1820
|
* @param {string} id order id
|
|
1821
1821
|
* @param {string} symbol not used by digifinex cancelOrder ()
|
|
1822
|
-
* @param {object} [params] extra parameters specific to the
|
|
1822
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1823
1823
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1824
1824
|
*/
|
|
1825
1825
|
await this.loadMarkets();
|
|
@@ -1890,7 +1890,7 @@ export default class digifinex extends Exchange {
|
|
|
1890
1890
|
* @description cancel multiple orders
|
|
1891
1891
|
* @param {string[]} ids order ids
|
|
1892
1892
|
* @param {string} symbol not used by digifinex cancelOrders ()
|
|
1893
|
-
* @param {object} [params] extra parameters specific to the
|
|
1893
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1894
1894
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1895
1895
|
*/
|
|
1896
1896
|
await this.loadMarkets();
|
|
@@ -2089,7 +2089,7 @@ export default class digifinex extends Exchange {
|
|
|
2089
2089
|
* @param {string} symbol unified market symbol
|
|
2090
2090
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2091
2091
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2092
|
-
* @param {object} [params] extra parameters specific to the
|
|
2092
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2093
2093
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2094
2094
|
*/
|
|
2095
2095
|
await this.loadMarkets();
|
|
@@ -2191,7 +2191,7 @@ export default class digifinex extends Exchange {
|
|
|
2191
2191
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2192
2192
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2193
2193
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2194
|
-
* @param {object} [params] extra parameters specific to the
|
|
2194
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2195
2195
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2196
2196
|
*/
|
|
2197
2197
|
await this.loadMarkets();
|
|
@@ -2294,7 +2294,7 @@ export default class digifinex extends Exchange {
|
|
|
2294
2294
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderinfo
|
|
2295
2295
|
* @param {string} id order id
|
|
2296
2296
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2297
|
-
* @param {object} [params] extra parameters specific to the
|
|
2297
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2298
2298
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2299
2299
|
*/
|
|
2300
2300
|
await this.loadMarkets();
|
|
@@ -2391,7 +2391,7 @@ export default class digifinex extends Exchange {
|
|
|
2391
2391
|
* @param {string} symbol unified market symbol
|
|
2392
2392
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2393
2393
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2394
|
-
* @param {object} [params] extra parameters specific to the
|
|
2394
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2395
2395
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
2396
2396
|
*/
|
|
2397
2397
|
await this.loadMarkets();
|
|
@@ -2541,7 +2541,7 @@ export default class digifinex extends Exchange {
|
|
|
2541
2541
|
* @param {string} code unified currency code, default is undefined
|
|
2542
2542
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2543
2543
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
2544
|
-
* @param {object} [params] extra parameters specific to the
|
|
2544
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2545
2545
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
2546
2546
|
*/
|
|
2547
2547
|
await this.loadMarkets();
|
|
@@ -2649,7 +2649,7 @@ export default class digifinex extends Exchange {
|
|
|
2649
2649
|
* @name digifinex#fetchDepositAddress
|
|
2650
2650
|
* @description fetch the deposit address for a currency associated with this account
|
|
2651
2651
|
* @param {string} code unified currency code
|
|
2652
|
-
* @param {object} [params] extra parameters specific to the
|
|
2652
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2653
2653
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2654
2654
|
*/
|
|
2655
2655
|
await this.loadMarkets();
|
|
@@ -2728,7 +2728,7 @@ export default class digifinex extends Exchange {
|
|
|
2728
2728
|
* @param {string} code unified currency code
|
|
2729
2729
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2730
2730
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2731
|
-
* @param {object} [params] extra parameters specific to the
|
|
2731
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2732
2732
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2733
2733
|
*/
|
|
2734
2734
|
return await this.fetchTransactionsByType('deposit', code, since, limit, params);
|
|
@@ -2741,7 +2741,7 @@ export default class digifinex extends Exchange {
|
|
|
2741
2741
|
* @param {string} code unified currency code
|
|
2742
2742
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2743
2743
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2744
|
-
* @param {object} [params] extra parameters specific to the
|
|
2744
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2745
2745
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2746
2746
|
*/
|
|
2747
2747
|
return await this.fetchTransactionsByType('withdrawal', code, since, limit, params);
|
|
@@ -2878,7 +2878,7 @@ export default class digifinex extends Exchange {
|
|
|
2878
2878
|
* @param {float} amount amount to transfer
|
|
2879
2879
|
* @param {string} fromAccount account to transfer from
|
|
2880
2880
|
* @param {string} toAccount account to transfer to
|
|
2881
|
-
* @param {object} [params] extra parameters specific to the
|
|
2881
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2882
2882
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
2883
2883
|
*/
|
|
2884
2884
|
await this.loadMarkets();
|
|
@@ -2909,7 +2909,7 @@ export default class digifinex extends Exchange {
|
|
|
2909
2909
|
* @param {float} amount the amount to withdraw
|
|
2910
2910
|
* @param {string} address the address to withdraw to
|
|
2911
2911
|
* @param {string} tag
|
|
2912
|
-
* @param {object} [params] extra parameters specific to the
|
|
2912
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2913
2913
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2914
2914
|
*/
|
|
2915
2915
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -3008,7 +3008,7 @@ export default class digifinex extends Exchange {
|
|
|
3008
3008
|
* @description fetch the rate of interest to borrow a currency for margin trading
|
|
3009
3009
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
|
|
3010
3010
|
* @param {string} code unified currency code
|
|
3011
|
-
* @param {object} [params] extra parameters specific to the
|
|
3011
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3012
3012
|
* @returns {object} a [borrow rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
|
|
3013
3013
|
*/
|
|
3014
3014
|
await this.loadMarkets();
|
|
@@ -3048,7 +3048,7 @@ export default class digifinex extends Exchange {
|
|
|
3048
3048
|
* @name digifinex#fetchCrossBorrowRates
|
|
3049
3049
|
* @description fetch the borrow interest rates of all currencies
|
|
3050
3050
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
|
|
3051
|
-
* @param {object} [params] extra parameters specific to the
|
|
3051
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3052
3052
|
* @returns {object} a list of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
|
|
3053
3053
|
*/
|
|
3054
3054
|
await this.loadMarkets();
|
|
@@ -3119,7 +3119,7 @@ export default class digifinex extends Exchange {
|
|
|
3119
3119
|
* @description fetch the current funding rate
|
|
3120
3120
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#currentfundingrate
|
|
3121
3121
|
* @param {string} symbol unified market symbol
|
|
3122
|
-
* @param {object} [params] extra parameters specific to the
|
|
3122
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3123
3123
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
3124
3124
|
*/
|
|
3125
3125
|
await this.loadMarkets();
|
|
@@ -3187,7 +3187,7 @@ export default class digifinex extends Exchange {
|
|
|
3187
3187
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
3188
3188
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
3189
3189
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
3190
|
-
* @param {object} [params] extra parameters specific to the
|
|
3190
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3191
3191
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
3192
3192
|
*/
|
|
3193
3193
|
if (symbol === undefined) {
|
|
@@ -3249,7 +3249,7 @@ export default class digifinex extends Exchange {
|
|
|
3249
3249
|
* @description fetch the trading fees for a market
|
|
3250
3250
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#tradingfee
|
|
3251
3251
|
* @param {string} symbol unified market symbol
|
|
3252
|
-
* @param {object} [params] extra parameters specific to the
|
|
3252
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3253
3253
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
3254
3254
|
*/
|
|
3255
3255
|
await this.loadMarkets();
|
|
@@ -3299,7 +3299,7 @@ export default class digifinex extends Exchange {
|
|
|
3299
3299
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-positions
|
|
3300
3300
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
|
|
3301
3301
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
3302
|
-
* @param {object} [params] extra parameters specific to the
|
|
3302
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3303
3303
|
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
3304
3304
|
*/
|
|
3305
3305
|
await this.loadMarkets();
|
|
@@ -3405,7 +3405,7 @@ export default class digifinex extends Exchange {
|
|
|
3405
3405
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
|
|
3406
3406
|
* @description fetch data on a single open contract trade position
|
|
3407
3407
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
3408
|
-
* @param {object} [params] extra parameters specific to the
|
|
3408
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3409
3409
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
3410
3410
|
*/
|
|
3411
3411
|
await this.loadMarkets();
|
|
@@ -3581,7 +3581,7 @@ export default class digifinex extends Exchange {
|
|
|
3581
3581
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#setleverage
|
|
3582
3582
|
* @param {float} leverage the rate of leverage
|
|
3583
3583
|
* @param {string} symbol unified market symbol
|
|
3584
|
-
* @param {object} [params] extra parameters specific to the
|
|
3584
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3585
3585
|
* @param {string} [params.marginMode] either 'cross' or 'isolated', default is cross
|
|
3586
3586
|
* @param {string} [params.side] either 'long' or 'short', required for isolated markets only
|
|
3587
3587
|
* @returns {object} response from the exchange
|
|
@@ -3640,7 +3640,7 @@ export default class digifinex extends Exchange {
|
|
|
3640
3640
|
* @param {string} code unified currency code of the currency transferred
|
|
3641
3641
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
3642
3642
|
* @param {int} [limit] the maximum number of transfers to retrieve
|
|
3643
|
-
* @param {object} [params] extra parameters specific to the
|
|
3643
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3644
3644
|
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
3645
3645
|
*/
|
|
3646
3646
|
await this.loadMarkets();
|
|
@@ -3682,7 +3682,7 @@ export default class digifinex extends Exchange {
|
|
|
3682
3682
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#instruments
|
|
3683
3683
|
* @description retrieve information on the maximum leverage, for different trade sizes
|
|
3684
3684
|
* @param {string[]|undefined} symbols a list of unified market symbols
|
|
3685
|
-
* @param {object} [params] extra parameters specific to the
|
|
3685
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3686
3686
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
3687
3687
|
*/
|
|
3688
3688
|
await this.loadMarkets();
|
|
@@ -3775,7 +3775,7 @@ export default class digifinex extends Exchange {
|
|
|
3775
3775
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#instrument
|
|
3776
3776
|
* @description retrieve information on the maximum leverage, for different trade sizes for a single market
|
|
3777
3777
|
* @param {string} symbol unified market symbol
|
|
3778
|
-
* @param {object} [params] extra parameters specific to the
|
|
3778
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3779
3779
|
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
|
|
3780
3780
|
*/
|
|
3781
3781
|
await this.loadMarkets();
|
|
@@ -3865,7 +3865,7 @@ export default class digifinex extends Exchange {
|
|
|
3865
3865
|
* @ignore
|
|
3866
3866
|
* @method
|
|
3867
3867
|
* @description marginMode specified by params["marginMode"], this.options["marginMode"], this.options["defaultMarginMode"], params["margin"] = true or this.options["defaultType"] = 'margin'
|
|
3868
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
3868
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3869
3869
|
* @returns {array} the marginMode in lowercase
|
|
3870
3870
|
*/
|
|
3871
3871
|
const defaultType = this.safeString(this.options, 'defaultType');
|
|
@@ -3891,7 +3891,7 @@ export default class digifinex extends Exchange {
|
|
|
3891
3891
|
* @description fetch deposit and withdraw fees
|
|
3892
3892
|
* @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-currency-deposit-and-withdrawal-information
|
|
3893
3893
|
* @param {string[]|undefined} codes not used by fetchDepositWithdrawFees ()
|
|
3894
|
-
* @param {object} [params] extra parameters specific to the
|
|
3894
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3895
3895
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
3896
3896
|
*/
|
|
3897
3897
|
await this.loadMarkets();
|
|
@@ -4007,7 +4007,7 @@ export default class digifinex extends Exchange {
|
|
|
4007
4007
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmargin
|
|
4008
4008
|
* @param {string} symbol unified market symbol
|
|
4009
4009
|
* @param {float} amount amount of margin to add
|
|
4010
|
-
* @param {object} [params] extra parameters specific to the
|
|
4010
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4011
4011
|
* @param {string} params.side the position side: 'long' or 'short'
|
|
4012
4012
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=margin-structure}
|
|
4013
4013
|
*/
|
|
@@ -4023,7 +4023,7 @@ export default class digifinex extends Exchange {
|
|
|
4023
4023
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmargin
|
|
4024
4024
|
* @param {string} symbol unified market symbol
|
|
4025
4025
|
* @param {float} amount the amount of margin to remove
|
|
4026
|
-
* @param {object} [params] extra parameters specific to the
|
|
4026
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4027
4027
|
* @param {string} params.side the position side: 'long' or 'short'
|
|
4028
4028
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=margin-structure}
|
|
4029
4029
|
*/
|
|
@@ -4090,7 +4090,7 @@ export default class digifinex extends Exchange {
|
|
|
4090
4090
|
* @param {string} [symbol] unified market symbol
|
|
4091
4091
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
4092
4092
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
4093
|
-
* @param {object} [params] extra parameters specific to the
|
|
4093
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4094
4094
|
* @param {int} [params.until] timestamp in ms of the latest funding payment
|
|
4095
4095
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
4096
4096
|
*/
|
|
@@ -4155,7 +4155,7 @@ export default class digifinex extends Exchange {
|
|
|
4155
4155
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmode
|
|
4156
4156
|
* @param {string} marginMode 'cross' or 'isolated'
|
|
4157
4157
|
* @param {string} symbol unified market symbol
|
|
4158
|
-
* @param {object} [params] extra parameters specific to the
|
|
4158
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4159
4159
|
* @returns {object} response from the exchange
|
|
4160
4160
|
*/
|
|
4161
4161
|
if (symbol === undefined) {
|
package/js/src/exmo.js
CHANGED
|
@@ -281,7 +281,7 @@ export default class exmo extends Exchange {
|
|
|
281
281
|
* @description remove margin from a position
|
|
282
282
|
* @param {string} symbol unified market symbol
|
|
283
283
|
* @param {float} amount the amount of margin to remove
|
|
284
|
-
* @param {object} [params] extra parameters specific to the
|
|
284
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
285
285
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
286
286
|
*/
|
|
287
287
|
return await this.modifyMarginHelper(symbol, amount, 'reduce', params);
|
|
@@ -293,7 +293,7 @@ export default class exmo extends Exchange {
|
|
|
293
293
|
* @description add margin
|
|
294
294
|
* @param {string} symbol unified market symbol
|
|
295
295
|
* @param {float} amount amount of margin to add
|
|
296
|
-
* @param {object} [params] extra parameters specific to the
|
|
296
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
297
297
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
298
298
|
*/
|
|
299
299
|
return await this.modifyMarginHelper(symbol, amount, 'add', params);
|
|
@@ -303,7 +303,7 @@ export default class exmo extends Exchange {
|
|
|
303
303
|
* @method
|
|
304
304
|
* @name exmo#fetchTradingFees
|
|
305
305
|
* @description fetch the trading fees for multiple markets
|
|
306
|
-
* @param {object} [params] extra parameters specific to the
|
|
306
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
307
307
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
308
308
|
*/
|
|
309
309
|
let method = this.safeString(params, 'method');
|
|
@@ -429,7 +429,7 @@ export default class exmo extends Exchange {
|
|
|
429
429
|
* @description please use fetchDepositWithdrawFees instead
|
|
430
430
|
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
|
|
431
431
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
432
|
-
* @param {object} [params] extra parameters specific to the
|
|
432
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
433
433
|
* @returns {object} a list of [transaction fees structures]{@link https://docs.ccxt.com/#/?id=fees-structure}
|
|
434
434
|
*/
|
|
435
435
|
await this.loadMarkets();
|
|
@@ -502,7 +502,7 @@ export default class exmo extends Exchange {
|
|
|
502
502
|
* @description fetch deposit and withdraw fees
|
|
503
503
|
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
|
|
504
504
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
505
|
-
* @param {object} [params] extra parameters specific to the
|
|
505
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
506
506
|
* @returns {object} a list of [transaction fees structures]{@link https://docs.ccxt.com/#/?id=fees-structure}
|
|
507
507
|
*/
|
|
508
508
|
await this.loadMarkets();
|
|
@@ -587,7 +587,7 @@ export default class exmo extends Exchange {
|
|
|
587
587
|
* @method
|
|
588
588
|
* @name exmo#fetchCurrencies
|
|
589
589
|
* @description fetches all available currencies on an exchange
|
|
590
|
-
* @param {object} [params] extra parameters specific to the
|
|
590
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
591
591
|
* @returns {object} an associative dictionary of currencies
|
|
592
592
|
*/
|
|
593
593
|
//
|
|
@@ -713,7 +713,7 @@ export default class exmo extends Exchange {
|
|
|
713
713
|
* @method
|
|
714
714
|
* @name exmo#fetchMarkets
|
|
715
715
|
* @description retrieves data on all markets for exmo
|
|
716
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
716
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
717
717
|
* @returns {object[]} an array of objects representing market data
|
|
718
718
|
*/
|
|
719
719
|
const response = await this.publicGetPairSettings(params);
|
|
@@ -844,7 +844,7 @@ export default class exmo extends Exchange {
|
|
|
844
844
|
* @param {string} timeframe the length of time each candle represents
|
|
845
845
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
846
846
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
847
|
-
* @param {object} [params] extra parameters specific to the
|
|
847
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
848
848
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
849
849
|
*/
|
|
850
850
|
await this.loadMarkets();
|
|
@@ -953,7 +953,7 @@ export default class exmo extends Exchange {
|
|
|
953
953
|
* @method
|
|
954
954
|
* @name exmo#fetchBalance
|
|
955
955
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
956
|
-
* @param {object} [params] extra parameters specific to the
|
|
956
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
957
957
|
* @param {string} [params.marginMode] *isolated* fetches the isolated margin balance
|
|
958
958
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
959
959
|
*/
|
|
@@ -1002,7 +1002,7 @@ export default class exmo extends Exchange {
|
|
|
1002
1002
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1003
1003
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1004
1004
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1005
|
-
* @param {object} [params] extra parameters specific to the
|
|
1005
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1006
1006
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1007
1007
|
*/
|
|
1008
1008
|
await this.loadMarkets();
|
|
@@ -1024,7 +1024,7 @@ export default class exmo extends Exchange {
|
|
|
1024
1024
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
1025
1025
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
1026
1026
|
* @param {int} [limit] max number of entries per orderbook to return, default is undefined
|
|
1027
|
-
* @param {object} [params] extra parameters specific to the
|
|
1027
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1028
1028
|
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
1029
1029
|
*/
|
|
1030
1030
|
await this.loadMarkets();
|
|
@@ -1101,9 +1101,9 @@ export default class exmo extends Exchange {
|
|
|
1101
1101
|
/**
|
|
1102
1102
|
* @method
|
|
1103
1103
|
* @name exmo#fetchTickers
|
|
1104
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1104
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1105
1105
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1106
|
-
* @param {object} [params] extra parameters specific to the
|
|
1106
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1107
1107
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1108
1108
|
*/
|
|
1109
1109
|
await this.loadMarkets();
|
|
@@ -1141,7 +1141,7 @@ export default class exmo extends Exchange {
|
|
|
1141
1141
|
* @name exmo#fetchTicker
|
|
1142
1142
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1143
1143
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1144
|
-
* @param {object} [params] extra parameters specific to the
|
|
1144
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1145
1145
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1146
1146
|
*/
|
|
1147
1147
|
await this.loadMarkets();
|
|
@@ -1247,7 +1247,7 @@ export default class exmo extends Exchange {
|
|
|
1247
1247
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1248
1248
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1249
1249
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1250
|
-
* @param {object} [params] extra parameters specific to the
|
|
1250
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1251
1251
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1252
1252
|
*/
|
|
1253
1253
|
await this.loadMarkets();
|
|
@@ -1291,7 +1291,7 @@ export default class exmo extends Exchange {
|
|
|
1291
1291
|
* @param {string} symbol a symbol is required but it can be a single string, or a non-empty array
|
|
1292
1292
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1293
1293
|
* @param {int} [limit] *required for margin orders* the maximum number of trades structures to retrieve
|
|
1294
|
-
* @param {object} [params] extra parameters specific to the
|
|
1294
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1295
1295
|
*
|
|
1296
1296
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
1297
1297
|
* @param {int} [params.offset] last deal offset, default = 0
|
|
@@ -1397,7 +1397,7 @@ export default class exmo extends Exchange {
|
|
|
1397
1397
|
* @param {string} side 'buy' or 'sell'
|
|
1398
1398
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1399
1399
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1400
|
-
* @param {object} [params] extra parameters specific to the
|
|
1400
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1401
1401
|
* @param {float} [params.stopPrice] the price at which a trigger order is triggered at
|
|
1402
1402
|
* @param {string} [params.timeInForce] *spot only* 'fok', 'ioc' or 'post_only'
|
|
1403
1403
|
* @param {boolean} [params.postOnly] *spot only* true for post only orders
|
|
@@ -1510,7 +1510,7 @@ export default class exmo extends Exchange {
|
|
|
1510
1510
|
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#705dfec5-2b35-4667-862b-faf54eca6209 // margin
|
|
1511
1511
|
* @param {string} id order id
|
|
1512
1512
|
* @param {string} symbol not used by exmo cancelOrder ()
|
|
1513
|
-
* @param {object} [params] extra parameters specific to the
|
|
1513
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1514
1514
|
* @param {boolean} [params.trigger] true to cancel a trigger order
|
|
1515
1515
|
* @param {string} [params.marginMode] set to 'cross' or 'isolated' to cancel a margin order
|
|
1516
1516
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1560,7 +1560,7 @@ export default class exmo extends Exchange {
|
|
|
1560
1560
|
* @description *spot only* fetches information on an order made by the user
|
|
1561
1561
|
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#cf27781e-28e5-4b39-a52d-3110f5d22459 // spot
|
|
1562
1562
|
* @param {string} symbol not used by exmo fetchOrder
|
|
1563
|
-
* @param {object} [params] extra parameters specific to the
|
|
1563
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1564
1564
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1565
1565
|
*/
|
|
1566
1566
|
await this.loadMarkets();
|
|
@@ -1604,7 +1604,7 @@ export default class exmo extends Exchange {
|
|
|
1604
1604
|
* @param {string} symbol unified market symbol
|
|
1605
1605
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1606
1606
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1607
|
-
* @param {object} [params] extra parameters specific to the
|
|
1607
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1608
1608
|
* @param {string} [params.marginMode] set to "isolated" to fetch trades for a margin order
|
|
1609
1609
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1610
1610
|
*/
|
|
@@ -1681,7 +1681,7 @@ export default class exmo extends Exchange {
|
|
|
1681
1681
|
* @param {string} symbol unified market symbol
|
|
1682
1682
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1683
1683
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1684
|
-
* @param {object} [params] extra parameters specific to the
|
|
1684
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1685
1685
|
* @param {string} [params.marginMode] set to "isolated" for margin orders
|
|
1686
1686
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1687
1687
|
*/
|
|
@@ -1945,7 +1945,7 @@ export default class exmo extends Exchange {
|
|
|
1945
1945
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1946
1946
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
1947
1947
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
1948
|
-
* @param {object} [params] extra parameters specific to the
|
|
1948
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1949
1949
|
* @param {string} [params.marginMode] set to "isolated" for margin orders
|
|
1950
1950
|
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1951
1951
|
*/
|
|
@@ -2044,7 +2044,7 @@ export default class exmo extends Exchange {
|
|
|
2044
2044
|
* @param {string} side not used by exmo editOrder
|
|
2045
2045
|
* @param {float} [amount] how much of the currency you want to trade in units of the base currency
|
|
2046
2046
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2047
|
-
* @param {object} [params] extra parameters specific to the
|
|
2047
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2048
2048
|
* @param {float} [params.triggerPrice] stop price for stop-market and stop-limit orders
|
|
2049
2049
|
* @param {string} params.marginMode must be set to isolated
|
|
2050
2050
|
*
|
|
@@ -2084,7 +2084,7 @@ export default class exmo extends Exchange {
|
|
|
2084
2084
|
* @name exmo#fetchDepositAddress
|
|
2085
2085
|
* @description fetch the deposit address for a currency associated with this account
|
|
2086
2086
|
* @param {string} code unified currency code
|
|
2087
|
-
* @param {object} [params] extra parameters specific to the
|
|
2087
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2088
2088
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2089
2089
|
*/
|
|
2090
2090
|
await this.loadMarkets();
|
|
@@ -2133,7 +2133,7 @@ export default class exmo extends Exchange {
|
|
|
2133
2133
|
* @param {float} amount the amount to withdraw
|
|
2134
2134
|
* @param {string} address the address to withdraw to
|
|
2135
2135
|
* @param {string} tag
|
|
2136
|
-
* @param {object} [params] extra parameters specific to the
|
|
2136
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2137
2137
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2138
2138
|
*/
|
|
2139
2139
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -2311,7 +2311,7 @@ export default class exmo extends Exchange {
|
|
|
2311
2311
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2312
2312
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2313
2313
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2314
|
-
* @param {object} [params] extra parameters specific to the
|
|
2314
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2315
2315
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2316
2316
|
*/
|
|
2317
2317
|
await this.loadMarkets();
|
|
@@ -2364,7 +2364,7 @@ export default class exmo extends Exchange {
|
|
|
2364
2364
|
* @param {string} code unified currency code
|
|
2365
2365
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2366
2366
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2367
|
-
* @param {object} [params] extra parameters specific to the
|
|
2367
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2368
2368
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2369
2369
|
*/
|
|
2370
2370
|
await this.loadMarkets();
|
|
@@ -2416,7 +2416,7 @@ export default class exmo extends Exchange {
|
|
|
2416
2416
|
* @description fetch data on a currency withdrawal via the withdrawal id
|
|
2417
2417
|
* @param {string} id withdrawal id
|
|
2418
2418
|
* @param {string} code unified currency code of the currency withdrawn, default is undefined
|
|
2419
|
-
* @param {object} [params] extra parameters specific to the
|
|
2419
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2420
2420
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2421
2421
|
*/
|
|
2422
2422
|
await this.loadMarkets();
|
|
@@ -2467,7 +2467,7 @@ export default class exmo extends Exchange {
|
|
|
2467
2467
|
* @description fetch information on a deposit
|
|
2468
2468
|
* @param {string} id deposit id
|
|
2469
2469
|
* @param {string} code unified currency code, default is undefined
|
|
2470
|
-
* @param {object} [params] extra parameters specific to the
|
|
2470
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2471
2471
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2472
2472
|
*/
|
|
2473
2473
|
await this.loadMarkets();
|
|
@@ -2519,7 +2519,7 @@ export default class exmo extends Exchange {
|
|
|
2519
2519
|
* @param {string} code unified currency code
|
|
2520
2520
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2521
2521
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2522
|
-
* @param {object} [params] extra parameters specific to the
|
|
2522
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2523
2523
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2524
2524
|
*/
|
|
2525
2525
|
await this.loadMarkets();
|