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/dist/cjs/src/mexc.js
CHANGED
|
@@ -173,6 +173,7 @@ class mexc extends mexc$1 {
|
|
|
173
173
|
'capital/deposit/address': 1,
|
|
174
174
|
'capital/transfer': 1,
|
|
175
175
|
'capital/transfer/tranId': 1,
|
|
176
|
+
'capital/transfer/internal': 1,
|
|
176
177
|
'capital/sub-account/universalTransfer': 1,
|
|
177
178
|
'capital/convert': 1,
|
|
178
179
|
'capital/convert/list': 1,
|
|
@@ -210,6 +211,7 @@ class mexc extends mexc$1 {
|
|
|
210
211
|
'batchOrders': 10,
|
|
211
212
|
'capital/withdraw/apply': 1,
|
|
212
213
|
'capital/transfer': 1,
|
|
214
|
+
'capital/transfer/internal': 1,
|
|
213
215
|
'capital/deposit/address': 1,
|
|
214
216
|
'capital/sub-account/universalTransfer': 1,
|
|
215
217
|
'capital/convert': 1,
|
|
@@ -817,7 +819,7 @@ class mexc extends mexc$1 {
|
|
|
817
819
|
* @method
|
|
818
820
|
* @name mexc3#fetchStatus
|
|
819
821
|
* @description the latest known information on the availability of the exchange API
|
|
820
|
-
* @param {object} [params] extra parameters specific to the
|
|
822
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
821
823
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
822
824
|
*/
|
|
823
825
|
const [marketType, query] = this.handleMarketTypeAndParams('fetchStatus', undefined, params);
|
|
@@ -854,7 +856,7 @@ class mexc extends mexc$1 {
|
|
|
854
856
|
* @method
|
|
855
857
|
* @name mexc3#fetchTime
|
|
856
858
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
857
|
-
* @param {object} [params] extra parameters specific to the
|
|
859
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
858
860
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
859
861
|
*/
|
|
860
862
|
const [marketType, query] = this.handleMarketTypeAndParams('fetchTime', undefined, params);
|
|
@@ -881,7 +883,7 @@ class mexc extends mexc$1 {
|
|
|
881
883
|
* @name mexc3#fetchCurrencies
|
|
882
884
|
* @description fetches all available currencies on an exchange
|
|
883
885
|
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
|
|
884
|
-
* @param {object} [params] extra parameters specific to the
|
|
886
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
885
887
|
* @returns {object} an associative dictionary of currencies
|
|
886
888
|
*/
|
|
887
889
|
// this endpoint requires authentication
|
|
@@ -1045,7 +1047,7 @@ class mexc extends mexc$1 {
|
|
|
1045
1047
|
* @method
|
|
1046
1048
|
* @name mexc3#fetchMarkets
|
|
1047
1049
|
* @description retrieves data on all markets for mexc3
|
|
1048
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
1050
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1049
1051
|
* @returns {object[]} an array of objects representing market data
|
|
1050
1052
|
*/
|
|
1051
1053
|
const spotMarket = await this.fetchSpotMarkets(params);
|
|
@@ -1290,7 +1292,7 @@ class mexc extends mexc$1 {
|
|
|
1290
1292
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1291
1293
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1292
1294
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1293
|
-
* @param {object} [params] extra parameters specific to the
|
|
1295
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1294
1296
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1295
1297
|
*/
|
|
1296
1298
|
await this.loadMarkets();
|
|
@@ -1367,7 +1369,7 @@ class mexc extends mexc$1 {
|
|
|
1367
1369
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1368
1370
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1369
1371
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1370
|
-
* @param {object} [params] extra parameters specific to the
|
|
1372
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1371
1373
|
* @param {int} [params.until] *spot only* *since must be defined* the latest time in ms to fetch entries for
|
|
1372
1374
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1373
1375
|
*/
|
|
@@ -1631,7 +1633,7 @@ class mexc extends mexc$1 {
|
|
|
1631
1633
|
* @param {string} timeframe the length of time each candle represents
|
|
1632
1634
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1633
1635
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1634
|
-
* @param {object} [params] extra parameters specific to the
|
|
1636
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1635
1637
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
1636
1638
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
1637
1639
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
@@ -1739,9 +1741,9 @@ class mexc extends mexc$1 {
|
|
|
1739
1741
|
/**
|
|
1740
1742
|
* @method
|
|
1741
1743
|
* @name mexc3#fetchTickers
|
|
1742
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1744
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1743
1745
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1744
|
-
* @param {object} [params] extra parameters specific to the
|
|
1746
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1745
1747
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1746
1748
|
*/
|
|
1747
1749
|
await this.loadMarkets();
|
|
@@ -1829,7 +1831,7 @@ class mexc extends mexc$1 {
|
|
|
1829
1831
|
* @name mexc3#fetchTicker
|
|
1830
1832
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1831
1833
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1832
|
-
* @param {object} [params] extra parameters specific to the
|
|
1834
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1833
1835
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1834
1836
|
*/
|
|
1835
1837
|
await this.loadMarkets();
|
|
@@ -2019,7 +2021,7 @@ class mexc extends mexc$1 {
|
|
|
2019
2021
|
* @name mexc3#fetchBidsAsks
|
|
2020
2022
|
* @description fetches the bid and ask price and volume for multiple markets
|
|
2021
2023
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
2022
|
-
* @param {object} [params] extra parameters specific to the
|
|
2024
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2023
2025
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
2024
2026
|
*/
|
|
2025
2027
|
await this.loadMarkets();
|
|
@@ -2065,7 +2067,7 @@ class mexc extends mexc$1 {
|
|
|
2065
2067
|
* @param {string} side 'buy' or 'sell'
|
|
2066
2068
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
2067
2069
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2068
|
-
* @param {object} [params] extra parameters specific to the
|
|
2070
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2069
2071
|
* @param {string} [params.marginMode] only 'isolated' is supported for spot-margin trading
|
|
2070
2072
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2071
2073
|
*/
|
|
@@ -2334,7 +2336,7 @@ class mexc extends mexc$1 {
|
|
|
2334
2336
|
* @name mexc3#fetchOrder
|
|
2335
2337
|
* @description fetches information on an order made by the user
|
|
2336
2338
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2337
|
-
* @param {object} [params] extra parameters specific to the
|
|
2339
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2338
2340
|
* @param {string} [params.marginMode] only 'isolated' is supported, for spot-margin trading
|
|
2339
2341
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2340
2342
|
*/
|
|
@@ -2457,7 +2459,7 @@ class mexc extends mexc$1 {
|
|
|
2457
2459
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2458
2460
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2459
2461
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2460
|
-
* @param {object} [params] extra parameters specific to the
|
|
2462
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2461
2463
|
* @param {string} [params.marginMode] only 'isolated' is supported, for spot-margin trading
|
|
2462
2464
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2463
2465
|
*/
|
|
@@ -2687,7 +2689,7 @@ class mexc extends mexc$1 {
|
|
|
2687
2689
|
* @param {string} symbol unified market symbol
|
|
2688
2690
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2689
2691
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2690
|
-
* @param {object} [params] extra parameters specific to the
|
|
2692
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2691
2693
|
* @param {string} [params.marginMode] only 'isolated' is supported, for spot-margin trading
|
|
2692
2694
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2693
2695
|
*/
|
|
@@ -2776,7 +2778,7 @@ class mexc extends mexc$1 {
|
|
|
2776
2778
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2777
2779
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2778
2780
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2779
|
-
* @param {object} [params] extra parameters specific to the
|
|
2781
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2780
2782
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2781
2783
|
*/
|
|
2782
2784
|
return await this.fetchOrdersByState(3, symbol, since, limit, params);
|
|
@@ -2789,7 +2791,7 @@ class mexc extends mexc$1 {
|
|
|
2789
2791
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2790
2792
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
2791
2793
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
2792
|
-
* @param {object} [params] extra parameters specific to the
|
|
2794
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2793
2795
|
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2794
2796
|
*/
|
|
2795
2797
|
return await this.fetchOrdersByState(4, symbol, since, limit, params);
|
|
@@ -2817,7 +2819,7 @@ class mexc extends mexc$1 {
|
|
|
2817
2819
|
* @description cancels an open order
|
|
2818
2820
|
* @param {string} id order id
|
|
2819
2821
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2820
|
-
* @param {object} [params] extra parameters specific to the
|
|
2822
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2821
2823
|
* @param {string} [params.marginMode] only 'isolated' is supported for spot-margin trading
|
|
2822
2824
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2823
2825
|
*/
|
|
@@ -2923,7 +2925,7 @@ class mexc extends mexc$1 {
|
|
|
2923
2925
|
* @description cancel multiple orders
|
|
2924
2926
|
* @param {string[]} ids order ids
|
|
2925
2927
|
* @param {string} symbol unified market symbol, default is undefined
|
|
2926
|
-
* @param {object} [params] extra parameters specific to the
|
|
2928
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2927
2929
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2928
2930
|
*/
|
|
2929
2931
|
await this.loadMarkets();
|
|
@@ -2957,7 +2959,7 @@ class mexc extends mexc$1 {
|
|
|
2957
2959
|
* @name mexc3#cancelAllOrders
|
|
2958
2960
|
* @description cancel all open orders
|
|
2959
2961
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2960
|
-
* @param {object} [params] extra parameters specific to the
|
|
2962
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2961
2963
|
* @param {string} [params.marginMode] only 'isolated' is supported for spot-margin trading
|
|
2962
2964
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2963
2965
|
*/
|
|
@@ -3351,7 +3353,7 @@ class mexc extends mexc$1 {
|
|
|
3351
3353
|
* @method
|
|
3352
3354
|
* @name mexc3#fetchAccounts
|
|
3353
3355
|
* @description fetch all the accounts associated with a profile
|
|
3354
|
-
* @param {object} [params] extra parameters specific to the
|
|
3356
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3355
3357
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
3356
3358
|
*/
|
|
3357
3359
|
// TODO: is the below endpoints suitable for fetchAccounts?
|
|
@@ -3378,7 +3380,7 @@ class mexc extends mexc$1 {
|
|
|
3378
3380
|
* @method
|
|
3379
3381
|
* @name mexc3#fetchTradingFees
|
|
3380
3382
|
* @description fetch the trading fees for multiple markets
|
|
3381
|
-
* @param {object} [params] extra parameters specific to the
|
|
3383
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3382
3384
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
3383
3385
|
*/
|
|
3384
3386
|
await this.loadMarkets();
|
|
@@ -3532,7 +3534,7 @@ class mexc extends mexc$1 {
|
|
|
3532
3534
|
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#account-information
|
|
3533
3535
|
* @see https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-informations-of-user-39-s-asset
|
|
3534
3536
|
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#isolated-account
|
|
3535
|
-
* @param {object} [params] extra parameters specific to the
|
|
3537
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3536
3538
|
* @param {string} [params.symbols] // required for margin, market id's separated by commas
|
|
3537
3539
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
3538
3540
|
*/
|
|
@@ -3661,7 +3663,7 @@ class mexc extends mexc$1 {
|
|
|
3661
3663
|
* @param {string} symbol unified market symbol
|
|
3662
3664
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3663
3665
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
3664
|
-
* @param {object} [params] extra parameters specific to the
|
|
3666
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3665
3667
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
3666
3668
|
*/
|
|
3667
3669
|
if (symbol === undefined) {
|
|
@@ -3752,7 +3754,7 @@ class mexc extends mexc$1 {
|
|
|
3752
3754
|
* @param {string} symbol unified market symbol
|
|
3753
3755
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3754
3756
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
3755
|
-
* @param {object} [params] extra parameters specific to the
|
|
3757
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3756
3758
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
3757
3759
|
*/
|
|
3758
3760
|
await this.loadMarkets();
|
|
@@ -3848,7 +3850,7 @@ class mexc extends mexc$1 {
|
|
|
3848
3850
|
* @description remove margin from a position
|
|
3849
3851
|
* @param {string} symbol unified market symbol
|
|
3850
3852
|
* @param {float} amount the amount of margin to remove
|
|
3851
|
-
* @param {object} [params] extra parameters specific to the
|
|
3853
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3852
3854
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
3853
3855
|
*/
|
|
3854
3856
|
return await this.modifyMarginHelper(symbol, amount, 'SUB', params);
|
|
@@ -3860,7 +3862,7 @@ class mexc extends mexc$1 {
|
|
|
3860
3862
|
* @description add margin
|
|
3861
3863
|
* @param {string} symbol unified market symbol
|
|
3862
3864
|
* @param {float} amount amount of margin to add
|
|
3863
|
-
* @param {object} [params] extra parameters specific to the
|
|
3865
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3864
3866
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
3865
3867
|
*/
|
|
3866
3868
|
return await this.modifyMarginHelper(symbol, amount, 'ADD', params);
|
|
@@ -3872,7 +3874,7 @@ class mexc extends mexc$1 {
|
|
|
3872
3874
|
* @description set the level of leverage for a market
|
|
3873
3875
|
* @param {float} leverage the rate of leverage
|
|
3874
3876
|
* @param {string} symbol unified market symbol
|
|
3875
|
-
* @param {object} [params] extra parameters specific to the
|
|
3877
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3876
3878
|
* @returns {object} response from the exchange
|
|
3877
3879
|
*/
|
|
3878
3880
|
await this.loadMarkets();
|
|
@@ -3906,7 +3908,7 @@ class mexc extends mexc$1 {
|
|
|
3906
3908
|
* @param {string} symbol unified market symbol
|
|
3907
3909
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
3908
3910
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
3909
|
-
* @param {object} [params] extra parameters specific to the
|
|
3911
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3910
3912
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
3911
3913
|
*/
|
|
3912
3914
|
await this.loadMarkets();
|
|
@@ -4019,7 +4021,7 @@ class mexc extends mexc$1 {
|
|
|
4019
4021
|
* @name mexc3#fetchFundingRate
|
|
4020
4022
|
* @description fetch the current funding rate
|
|
4021
4023
|
* @param {string} symbol unified market symbol
|
|
4022
|
-
* @param {object} [params] extra parameters specific to the
|
|
4024
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4023
4025
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
4024
4026
|
*/
|
|
4025
4027
|
await this.loadMarkets();
|
|
@@ -4054,7 +4056,7 @@ class mexc extends mexc$1 {
|
|
|
4054
4056
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
4055
4057
|
* @param {int} [since] not used by mexc, but filtered internally by ccxt
|
|
4056
4058
|
* @param {int} [limit] mexc limit is page_size default 20, maximum is 100
|
|
4057
|
-
* @param {object} [params] extra parameters specific to the
|
|
4059
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4058
4060
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
4059
4061
|
*/
|
|
4060
4062
|
if (symbol === undefined) {
|
|
@@ -4120,7 +4122,7 @@ class mexc extends mexc$1 {
|
|
|
4120
4122
|
* @name mexc3#fetchLeverageTiers
|
|
4121
4123
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
4122
4124
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
4123
|
-
* @param {object} [params] extra parameters specific to the
|
|
4125
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4124
4126
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
4125
4127
|
*/
|
|
4126
4128
|
await this.loadMarkets();
|
|
@@ -4234,7 +4236,7 @@ class mexc extends mexc$1 {
|
|
|
4234
4236
|
* @description fetch a dictionary of addresses for a currency, indexed by network
|
|
4235
4237
|
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
|
|
4236
4238
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
4237
|
-
* @param {object} [params] extra parameters specific to the
|
|
4239
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4238
4240
|
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
|
|
4239
4241
|
*/
|
|
4240
4242
|
await this.loadMarkets();
|
|
@@ -4274,7 +4276,7 @@ class mexc extends mexc$1 {
|
|
|
4274
4276
|
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#generate-deposit-address-supporting-network
|
|
4275
4277
|
* @description create a currency deposit address
|
|
4276
4278
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
4277
|
-
* @param {object} [params] extra parameters specific to the
|
|
4279
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4278
4280
|
* @param {string} [params.network] the blockchain network name
|
|
4279
4281
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
4280
4282
|
*/
|
|
@@ -4314,7 +4316,7 @@ class mexc extends mexc$1 {
|
|
|
4314
4316
|
* @description fetch the deposit address for a currency associated with this account
|
|
4315
4317
|
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
|
|
4316
4318
|
* @param {string} code unified currency code
|
|
4317
|
-
* @param {object} [params] extra parameters specific to the
|
|
4319
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4318
4320
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
4319
4321
|
*/
|
|
4320
4322
|
const rawNetwork = this.safeStringUpper(params, 'network');
|
|
@@ -4344,7 +4346,7 @@ class mexc extends mexc$1 {
|
|
|
4344
4346
|
* @param {string} code unified currency code
|
|
4345
4347
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
4346
4348
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
4347
|
-
* @param {object} [params] extra parameters specific to the
|
|
4349
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4348
4350
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
4349
4351
|
*/
|
|
4350
4352
|
await this.loadMarkets();
|
|
@@ -4404,7 +4406,7 @@ class mexc extends mexc$1 {
|
|
|
4404
4406
|
* @param {string} code unified currency code
|
|
4405
4407
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
4406
4408
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
4407
|
-
* @param {object} [params] extra parameters specific to the
|
|
4409
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4408
4410
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
4409
4411
|
*/
|
|
4410
4412
|
await this.loadMarkets();
|
|
@@ -4578,7 +4580,7 @@ class mexc extends mexc$1 {
|
|
|
4578
4580
|
* @name mexc3#fetchPosition
|
|
4579
4581
|
* @description fetch data on a single open contract trade position
|
|
4580
4582
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
4581
|
-
* @param {object} [params] extra parameters specific to the
|
|
4583
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4582
4584
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
4583
4585
|
*/
|
|
4584
4586
|
await this.loadMarkets();
|
|
@@ -4595,7 +4597,7 @@ class mexc extends mexc$1 {
|
|
|
4595
4597
|
* @name mexc3#fetchPositions
|
|
4596
4598
|
* @description fetch all open positions
|
|
4597
4599
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
4598
|
-
* @param {object} [params] extra parameters specific to the
|
|
4600
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4599
4601
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
4600
4602
|
*/
|
|
4601
4603
|
await this.loadMarkets();
|
|
@@ -4737,7 +4739,7 @@ class mexc extends mexc$1 {
|
|
|
4737
4739
|
* @param {string} code unified currency code of the currency transferred
|
|
4738
4740
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
4739
4741
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
4740
|
-
* @param {object} [params] extra parameters specific to the
|
|
4742
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4741
4743
|
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
4742
4744
|
*/
|
|
4743
4745
|
const [marketType, query] = this.handleMarketTypeAndParams('fetchTransfers', undefined, params);
|
|
@@ -4826,7 +4828,7 @@ class mexc extends mexc$1 {
|
|
|
4826
4828
|
* @param {float} amount amount to transfer
|
|
4827
4829
|
* @param {string} fromAccount account to transfer from
|
|
4828
4830
|
* @param {string} toAccount account to transfer to
|
|
4829
|
-
* @param {object} [params] extra parameters specific to the
|
|
4831
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4830
4832
|
* @param {string} [params.symbol] market symbol required for margin account transfers eg:BTCUSDT
|
|
4831
4833
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
4832
4834
|
*/
|
|
@@ -4959,7 +4961,7 @@ class mexc extends mexc$1 {
|
|
|
4959
4961
|
* @param {float} amount the amount to withdraw
|
|
4960
4962
|
* @param {string} address the address to withdraw to
|
|
4961
4963
|
* @param {string} tag
|
|
4962
|
-
* @param {object} [params] extra parameters specific to the
|
|
4964
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4963
4965
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
4964
4966
|
*/
|
|
4965
4967
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -5024,7 +5026,7 @@ class mexc extends mexc$1 {
|
|
|
5024
5026
|
* @description fetch deposit and withdrawal fees
|
|
5025
5027
|
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
|
|
5026
5028
|
* @param {string[]|undefined} codes returns fees for all currencies if undefined
|
|
5027
|
-
* @param {object} [params] extra parameters specific to the
|
|
5029
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5028
5030
|
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
5029
5031
|
*/
|
|
5030
5032
|
await this.loadMarkets();
|
|
@@ -5122,7 +5124,7 @@ class mexc extends mexc$1 {
|
|
|
5122
5124
|
* @description fetch deposit and withdrawal fees
|
|
5123
5125
|
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
|
|
5124
5126
|
* @param {string[]|undefined} codes returns fees for all currencies if undefined
|
|
5125
|
-
* @param {object} [params] extra parameters specific to the
|
|
5127
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5126
5128
|
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
5127
5129
|
*/
|
|
5128
5130
|
await this.loadMarkets();
|
|
@@ -5209,7 +5211,7 @@ class mexc extends mexc$1 {
|
|
|
5209
5211
|
* @ignore
|
|
5210
5212
|
* @method
|
|
5211
5213
|
* @description marginMode specified by params["marginMode"], this.options["marginMode"], this.options["defaultMarginMode"], params["margin"] = true or this.options["defaultType"] = 'margin'
|
|
5212
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
5214
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5213
5215
|
* @param {bool} [params.margin] true for trading spot-margin
|
|
5214
5216
|
* @returns {array} the marginMode in lowercase
|
|
5215
5217
|
*/
|
package/dist/cjs/src/ndax.js
CHANGED
|
@@ -278,7 +278,7 @@ class ndax extends ndax$1 {
|
|
|
278
278
|
* @method
|
|
279
279
|
* @name ndax#signIn
|
|
280
280
|
* @description sign in, must be called prior to using other authenticated methods
|
|
281
|
-
* @param {object} [params] extra parameters specific to the
|
|
281
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
282
282
|
* @returns response from exchange
|
|
283
283
|
*/
|
|
284
284
|
this.checkRequiredCredentials();
|
|
@@ -331,7 +331,7 @@ class ndax extends ndax$1 {
|
|
|
331
331
|
* @method
|
|
332
332
|
* @name ndax#fetchCurrencies
|
|
333
333
|
* @description fetches all available currencies on an exchange
|
|
334
|
-
* @param {object} [params] extra parameters specific to the
|
|
334
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
335
335
|
* @returns {object} an associative dictionary of currencies
|
|
336
336
|
*/
|
|
337
337
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -400,7 +400,7 @@ class ndax extends ndax$1 {
|
|
|
400
400
|
* @method
|
|
401
401
|
* @name ndax#fetchMarkets
|
|
402
402
|
* @description retrieves data on all markets for ndax
|
|
403
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
403
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
404
404
|
* @returns {object[]} an array of objects representing market data
|
|
405
405
|
*/
|
|
406
406
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -561,7 +561,7 @@ class ndax extends ndax$1 {
|
|
|
561
561
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
562
562
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
563
563
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
564
|
-
* @param {object} [params] extra parameters specific to the
|
|
564
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
565
565
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
566
566
|
*/
|
|
567
567
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -670,7 +670,7 @@ class ndax extends ndax$1 {
|
|
|
670
670
|
* @name ndax#fetchTicker
|
|
671
671
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
672
672
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
673
|
-
* @param {object} [params] extra parameters specific to the
|
|
673
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
674
674
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
675
675
|
*/
|
|
676
676
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -745,7 +745,7 @@ class ndax extends ndax$1 {
|
|
|
745
745
|
* @param {string} timeframe the length of time each candle represents
|
|
746
746
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
747
747
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
748
|
-
* @param {object} [params] extra parameters specific to the
|
|
748
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
749
749
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
750
750
|
*/
|
|
751
751
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -959,7 +959,7 @@ class ndax extends ndax$1 {
|
|
|
959
959
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
960
960
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
961
961
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
962
|
-
* @param {object} [params] extra parameters specific to the
|
|
962
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
963
963
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
964
964
|
*/
|
|
965
965
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -987,7 +987,7 @@ class ndax extends ndax$1 {
|
|
|
987
987
|
* @method
|
|
988
988
|
* @name ndax#fetchAccounts
|
|
989
989
|
* @description fetch all the accounts associated with a profile
|
|
990
|
-
* @param {object} [params] extra parameters specific to the
|
|
990
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
991
991
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
992
992
|
*/
|
|
993
993
|
if (!this.login) {
|
|
@@ -1040,7 +1040,7 @@ class ndax extends ndax$1 {
|
|
|
1040
1040
|
* @method
|
|
1041
1041
|
* @name ndax#fetchBalance
|
|
1042
1042
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1043
|
-
* @param {object} [params] extra parameters specific to the
|
|
1043
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1044
1044
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1045
1045
|
*/
|
|
1046
1046
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1170,7 +1170,7 @@ class ndax extends ndax$1 {
|
|
|
1170
1170
|
* @param {string} code unified currency code, default is undefined
|
|
1171
1171
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1172
1172
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
1173
|
-
* @param {object} [params] extra parameters specific to the
|
|
1173
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1174
1174
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
1175
1175
|
*/
|
|
1176
1176
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1326,7 +1326,7 @@ class ndax extends ndax$1 {
|
|
|
1326
1326
|
* @param {string} side 'buy' or 'sell'
|
|
1327
1327
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1328
1328
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1329
|
-
* @param {object} [params] extra parameters specific to the
|
|
1329
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1330
1330
|
* @param {float} [params.triggerPrice] the price at which a trigger order would be triggered
|
|
1331
1331
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1332
1332
|
*/
|
|
@@ -1442,7 +1442,7 @@ class ndax extends ndax$1 {
|
|
|
1442
1442
|
* @param {string} symbol unified market symbol
|
|
1443
1443
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1444
1444
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1445
|
-
* @param {object} [params] extra parameters specific to the
|
|
1445
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1446
1446
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1447
1447
|
*/
|
|
1448
1448
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1527,7 +1527,7 @@ class ndax extends ndax$1 {
|
|
|
1527
1527
|
* @name ndax#cancelAllOrders
|
|
1528
1528
|
* @description cancel all open orders
|
|
1529
1529
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1530
|
-
* @param {object} [params] extra parameters specific to the
|
|
1530
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1531
1531
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1532
1532
|
*/
|
|
1533
1533
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1562,7 +1562,7 @@ class ndax extends ndax$1 {
|
|
|
1562
1562
|
* @description cancels an open order
|
|
1563
1563
|
* @param {string} id order id
|
|
1564
1564
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1565
|
-
* @param {object} [params] extra parameters specific to the
|
|
1565
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1566
1566
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1567
1567
|
*/
|
|
1568
1568
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1602,7 +1602,7 @@ class ndax extends ndax$1 {
|
|
|
1602
1602
|
* @param {string} symbol unified market symbol
|
|
1603
1603
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1604
1604
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1605
|
-
* @param {object} [params] extra parameters specific to the
|
|
1605
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1606
1606
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1607
1607
|
*/
|
|
1608
1608
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1680,7 +1680,7 @@ class ndax extends ndax$1 {
|
|
|
1680
1680
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1681
1681
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1682
1682
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1683
|
-
* @param {object} [params] extra parameters specific to the
|
|
1683
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1684
1684
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1685
1685
|
*/
|
|
1686
1686
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1772,7 +1772,7 @@ class ndax extends ndax$1 {
|
|
|
1772
1772
|
* @name ndax#fetchOrder
|
|
1773
1773
|
* @description fetches information on an order made by the user
|
|
1774
1774
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1775
|
-
* @param {object} [params] extra parameters specific to the
|
|
1775
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1776
1776
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1777
1777
|
*/
|
|
1778
1778
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1850,7 +1850,7 @@ class ndax extends ndax$1 {
|
|
|
1850
1850
|
* @param {string} symbol unified market symbol
|
|
1851
1851
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1852
1852
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1853
|
-
* @param {object} [params] extra parameters specific to the
|
|
1853
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1854
1854
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1855
1855
|
*/
|
|
1856
1856
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1929,7 +1929,7 @@ class ndax extends ndax$1 {
|
|
|
1929
1929
|
* @name ndax#fetchDepositAddress
|
|
1930
1930
|
* @description fetch the deposit address for a currency associated with this account
|
|
1931
1931
|
* @param {string} code unified currency code
|
|
1932
|
-
* @param {object} [params] extra parameters specific to the
|
|
1932
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1933
1933
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1934
1934
|
*/
|
|
1935
1935
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -2001,7 +2001,7 @@ class ndax extends ndax$1 {
|
|
|
2001
2001
|
* @name ndax#createDepositAddress
|
|
2002
2002
|
* @description create a currency deposit address
|
|
2003
2003
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
2004
|
-
* @param {object} [params] extra parameters specific to the
|
|
2004
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2005
2005
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2006
2006
|
*/
|
|
2007
2007
|
const request = {
|
|
@@ -2018,7 +2018,7 @@ class ndax extends ndax$1 {
|
|
|
2018
2018
|
* @param {string} code unified currency code
|
|
2019
2019
|
* @param {int} [since] not used by ndax fetchDeposits
|
|
2020
2020
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2021
|
-
* @param {object} [params] extra parameters specific to the
|
|
2021
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2022
2022
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2023
2023
|
*/
|
|
2024
2024
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -2077,7 +2077,7 @@ class ndax extends ndax$1 {
|
|
|
2077
2077
|
* @param {string} code unified currency code
|
|
2078
2078
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2079
2079
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2080
|
-
* @param {object} [params] extra parameters specific to the
|
|
2080
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2081
2081
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2082
2082
|
*/
|
|
2083
2083
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -2277,7 +2277,7 @@ class ndax extends ndax$1 {
|
|
|
2277
2277
|
* @param {float} amount the amount to withdraw
|
|
2278
2278
|
* @param {string} address the address to withdraw to
|
|
2279
2279
|
* @param {string} tag
|
|
2280
|
-
* @param {object} [params] extra parameters specific to the
|
|
2280
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2281
2281
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2282
2282
|
*/
|
|
2283
2283
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|