ccxt 4.0.73 → 4.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -11
- package/dist/ccxt.browser.js +2058 -1943
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +9 -9
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +22 -22
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +17 -17
- package/dist/cjs/src/binance.js +51 -51
- package/dist/cjs/src/bingx.js +25 -26
- package/dist/cjs/src/bit2c.js +10 -10
- package/dist/cjs/src/bitbank.js +11 -11
- package/dist/cjs/src/bitbns.js +12 -12
- package/dist/cjs/src/bitfinex.js +19 -19
- package/dist/cjs/src/bitfinex2.js +25 -25
- package/dist/cjs/src/bitflyer.js +15 -15
- package/dist/cjs/src/bitforex.js +9 -9
- package/dist/cjs/src/bitget.js +34 -34
- package/dist/cjs/src/bithumb.js +9 -9
- package/dist/cjs/src/bitmart.js +42 -29
- package/dist/cjs/src/bitmex.js +19 -19
- package/dist/cjs/src/bitopro.js +18 -18
- package/dist/cjs/src/bitpanda.js +19 -19
- package/dist/cjs/src/bitrue.js +15 -15
- package/dist/cjs/src/bitso.js +19 -19
- package/dist/cjs/src/bitstamp.js +19 -19
- package/dist/cjs/src/bitstamp1.js +6 -6
- package/dist/cjs/src/bittrex.js +24 -24
- package/dist/cjs/src/bitvavo.js +16 -16
- package/dist/cjs/src/bkex.js +17 -17
- package/dist/cjs/src/bl3p.js +6 -6
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +13 -13
- package/dist/cjs/src/btcbox.js +8 -8
- package/dist/cjs/src/btcmarkets.js +15 -15
- package/dist/cjs/src/btctradeua.js +6 -6
- package/dist/cjs/src/btcturk.js +9 -9
- package/dist/cjs/src/bybit.js +148 -116
- package/dist/cjs/src/cex.js +12 -12
- package/dist/cjs/src/coinbase.js +20 -20
- package/dist/cjs/src/coinbasepro.js +22 -22
- package/dist/cjs/src/coincheck.js +10 -10
- package/dist/cjs/src/coinex.js +81 -35
- package/dist/cjs/src/coinfalcon.js +14 -14
- package/dist/cjs/src/coinmate.js +12 -12
- package/dist/cjs/src/coinone.js +10 -10
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +6 -6
- package/dist/cjs/src/cryptocom.js +24 -24
- package/dist/cjs/src/currencycom.js +18 -18
- package/dist/cjs/src/delta.js +23 -23
- package/dist/cjs/src/deribit.js +27 -27
- package/dist/cjs/src/digifinex.js +27 -27
- package/dist/cjs/src/exmo.js +24 -24
- package/dist/cjs/src/gate.js +34 -34
- package/dist/cjs/src/gemini.js +14 -14
- package/dist/cjs/src/hitbtc.js +30 -30
- package/dist/cjs/src/hollaex.js +20 -20
- package/dist/cjs/src/huobi.js +40 -40
- package/dist/cjs/src/huobijp.js +18 -18
- package/dist/cjs/src/idex.js +17 -17
- package/dist/cjs/src/independentreserve.js +10 -10
- package/dist/cjs/src/indodax.js +12 -12
- package/dist/cjs/src/kraken.js +25 -25
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +29 -29
- package/dist/cjs/src/kucoinfutures.js +19 -19
- package/dist/cjs/src/kuna.js +10 -10
- package/dist/cjs/src/latoken.js +15 -15
- package/dist/cjs/src/lbank.js +10 -10
- package/dist/cjs/src/lbank2.js +21 -21
- package/dist/cjs/src/luno.js +14 -14
- package/dist/cjs/src/lykke.js +14 -14
- package/dist/cjs/src/mercado.js +10 -10
- package/dist/cjs/src/mexc.js +38 -38
- package/dist/cjs/src/ndax.js +18 -18
- package/dist/cjs/src/novadax.js +18 -18
- package/dist/cjs/src/oceanex.js +14 -14
- package/dist/cjs/src/okcoin.js +19 -19
- package/dist/cjs/src/okx.js +48 -48
- package/dist/cjs/src/paymium.js +9 -9
- package/dist/cjs/src/phemex.js +24 -24
- package/dist/cjs/src/poloniex.js +77 -60
- package/dist/cjs/src/poloniexfutures.js +16 -16
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +10 -10
- package/dist/cjs/src/pro/bitfinex.js +3 -3
- package/dist/cjs/src/pro/bitfinex2.js +4 -4
- package/dist/cjs/src/pro/bitget.js +4 -4
- package/dist/cjs/src/pro/bitmart.js +3 -3
- package/dist/cjs/src/pro/bitmex.js +4 -4
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +2 -2
- package/dist/cjs/src/pro/bittrex.js +4 -4
- package/dist/cjs/src/pro/bitvavo.js +4 -4
- package/dist/cjs/src/pro/bybit.js +12 -11
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbasepro.js +5 -5
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +7 -7
- package/dist/cjs/src/pro/currencycom.js +2 -2
- package/dist/cjs/src/pro/deribit.js +3 -3
- package/dist/cjs/src/pro/exmo.js +2 -2
- package/dist/cjs/src/pro/gate.js +5 -5
- package/dist/cjs/src/pro/gemini.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +2 -2
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/huobi.js +4 -4
- package/dist/cjs/src/pro/huobijp.js +2 -2
- package/dist/cjs/src/pro/idex.js +3 -3
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +6 -6
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +4 -4
- package/dist/cjs/src/pro/kucoinfutures.js +3 -3
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/ndax.js +2 -2
- package/dist/cjs/src/pro/okcoin.js +3 -3
- package/dist/cjs/src/pro/okx.js +12 -11
- package/dist/cjs/src/pro/phemex.js +4 -4
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/upbit.js +2 -2
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +4 -4
- package/dist/cjs/src/probit.js +17 -17
- package/dist/cjs/src/tidex.js +11 -11
- package/dist/cjs/src/timex.js +14 -14
- package/dist/cjs/src/tokocrypto.js +16 -16
- package/dist/cjs/src/upbit.js +18 -18
- package/dist/cjs/src/wavesexchange.js +13 -13
- package/dist/cjs/src/wazirx.js +10 -10
- package/dist/cjs/src/whitebit.js +21 -21
- package/dist/cjs/src/woo.js +28 -22
- package/dist/cjs/src/yobit.js +14 -14
- package/dist/cjs/src/zaif.js +8 -8
- package/dist/cjs/src/zonda.js +13 -13
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +9 -9
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +22 -22
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +17 -17
- package/js/src/binance.js +51 -51
- package/js/src/bingx.js +25 -26
- package/js/src/bit2c.js +10 -10
- package/js/src/bitbank.js +11 -11
- package/js/src/bitbns.js +12 -12
- package/js/src/bitfinex.js +19 -19
- package/js/src/bitfinex2.js +25 -25
- package/js/src/bitflyer.js +15 -15
- package/js/src/bitforex.js +9 -9
- package/js/src/bitget.js +34 -34
- package/js/src/bithumb.js +9 -9
- package/js/src/bitmart.js +42 -29
- package/js/src/bitmex.js +19 -19
- package/js/src/bitopro.js +18 -18
- package/js/src/bitpanda.js +19 -19
- package/js/src/bitrue.js +15 -15
- package/js/src/bitso.js +19 -19
- package/js/src/bitstamp.js +19 -19
- package/js/src/bitstamp1.js +6 -6
- package/js/src/bittrex.js +24 -24
- package/js/src/bitvavo.js +16 -16
- package/js/src/bkex.js +17 -17
- package/js/src/bl3p.js +6 -6
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +13 -13
- package/js/src/btcbox.js +8 -8
- package/js/src/btcmarkets.js +15 -15
- package/js/src/btctradeua.js +6 -6
- package/js/src/btcturk.js +9 -9
- package/js/src/bybit.js +148 -116
- package/js/src/cex.js +12 -12
- package/js/src/coinbase.js +20 -20
- package/js/src/coinbasepro.js +22 -22
- package/js/src/coincheck.js +10 -10
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +81 -35
- package/js/src/coinfalcon.js +14 -14
- package/js/src/coinmate.js +12 -12
- package/js/src/coinone.js +10 -10
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.js +6 -6
- package/js/src/cryptocom.js +24 -24
- package/js/src/currencycom.js +18 -18
- package/js/src/delta.js +23 -23
- package/js/src/deribit.js +27 -27
- package/js/src/digifinex.js +27 -27
- package/js/src/exmo.js +24 -24
- package/js/src/gate.js +34 -34
- package/js/src/gemini.js +14 -14
- package/js/src/hitbtc.js +30 -30
- package/js/src/hollaex.js +20 -20
- package/js/src/huobi.js +40 -40
- package/js/src/huobijp.js +18 -18
- package/js/src/idex.js +17 -17
- package/js/src/independentreserve.js +10 -10
- package/js/src/indodax.js +12 -12
- package/js/src/kraken.js +25 -25
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +29 -29
- package/js/src/kucoinfutures.js +19 -19
- package/js/src/kuna.js +10 -10
- package/js/src/latoken.js +15 -15
- package/js/src/lbank.js +10 -10
- package/js/src/lbank2.js +21 -21
- package/js/src/luno.js +14 -14
- package/js/src/lykke.js +14 -14
- package/js/src/mercado.js +10 -10
- package/js/src/mexc.js +38 -38
- package/js/src/ndax.js +18 -18
- package/js/src/novadax.js +18 -18
- package/js/src/oceanex.js +14 -14
- package/js/src/okcoin.js +19 -19
- package/js/src/okx.js +48 -48
- package/js/src/paymium.js +9 -9
- package/js/src/phemex.js +24 -24
- package/js/src/poloniex.js +77 -60
- package/js/src/poloniexfutures.js +16 -16
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +10 -10
- package/js/src/pro/bitfinex.js +3 -3
- package/js/src/pro/bitfinex2.js +4 -4
- package/js/src/pro/bitget.js +4 -4
- package/js/src/pro/bitmart.js +3 -3
- package/js/src/pro/bitmex.js +4 -4
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +2 -2
- package/js/src/pro/bittrex.js +4 -4
- package/js/src/pro/bitvavo.js +4 -4
- package/js/src/pro/bybit.d.ts +1 -1
- package/js/src/pro/bybit.js +12 -11
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbasepro.js +5 -5
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/cryptocom.js +7 -7
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +2 -2
- package/js/src/pro/gate.js +5 -5
- package/js/src/pro/gemini.js +2 -2
- package/js/src/pro/hitbtc.js +2 -2
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/huobi.js +4 -4
- package/js/src/pro/huobijp.js +2 -2
- package/js/src/pro/idex.js +3 -3
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/kucoin.js +4 -4
- package/js/src/pro/kucoinfutures.js +3 -3
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/ndax.js +2 -2
- package/js/src/pro/okcoin.js +3 -3
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +12 -11
- package/js/src/pro/phemex.js +4 -4
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/upbit.js +2 -2
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +4 -4
- package/js/src/probit.js +17 -17
- package/js/src/tidex.js +11 -11
- package/js/src/timex.js +14 -14
- package/js/src/tokocrypto.js +16 -16
- package/js/src/upbit.js +18 -18
- package/js/src/wavesexchange.js +13 -13
- package/js/src/wazirx.js +10 -10
- package/js/src/whitebit.js +21 -21
- package/js/src/woo.js +28 -22
- package/js/src/yobit.js +14 -14
- package/js/src/zaif.js +8 -8
- package/js/src/zonda.js +13 -13
- package/package.json +1 -1
package/dist/cjs/src/mercado.js
CHANGED
|
@@ -249,7 +249,7 @@ class mercado extends mercado$1 {
|
|
|
249
249
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
250
250
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
251
251
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
252
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
252
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
253
253
|
*/
|
|
254
254
|
await this.loadMarkets();
|
|
255
255
|
const market = this.market(symbol);
|
|
@@ -305,7 +305,7 @@ class mercado extends mercado$1 {
|
|
|
305
305
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
306
306
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
307
307
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
308
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
308
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
309
309
|
*/
|
|
310
310
|
await this.loadMarkets();
|
|
311
311
|
const market = this.market(symbol);
|
|
@@ -429,9 +429,9 @@ class mercado extends mercado$1 {
|
|
|
429
429
|
* @param {string} type 'market' or 'limit'
|
|
430
430
|
* @param {string} side 'buy' or 'sell'
|
|
431
431
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
432
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
432
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
433
433
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
434
|
-
* @returns {object} an [order structure]{@link https://
|
|
434
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
435
435
|
*/
|
|
436
436
|
await this.loadMarkets();
|
|
437
437
|
const market = this.market(symbol);
|
|
@@ -471,7 +471,7 @@ class mercado extends mercado$1 {
|
|
|
471
471
|
* @param {string} id order id
|
|
472
472
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
473
473
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
474
|
-
* @returns {object} An [order structure]{@link https://
|
|
474
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
475
475
|
*/
|
|
476
476
|
if (symbol === undefined) {
|
|
477
477
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -597,7 +597,7 @@ class mercado extends mercado$1 {
|
|
|
597
597
|
* @description fetches information on an order made by the user
|
|
598
598
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
599
599
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
600
|
-
* @returns {object} An [order structure]{@link https://
|
|
600
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
601
601
|
*/
|
|
602
602
|
if (symbol === undefined) {
|
|
603
603
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -623,7 +623,7 @@ class mercado extends mercado$1 {
|
|
|
623
623
|
* @param {string} address the address to withdraw to
|
|
624
624
|
* @param {string} tag
|
|
625
625
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
626
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
626
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
627
627
|
*/
|
|
628
628
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
629
629
|
this.checkAddress(address);
|
|
@@ -769,7 +769,7 @@ class mercado extends mercado$1 {
|
|
|
769
769
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
770
770
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
771
771
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
772
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
772
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
773
773
|
*/
|
|
774
774
|
if (symbol === undefined) {
|
|
775
775
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
@@ -793,7 +793,7 @@ class mercado extends mercado$1 {
|
|
|
793
793
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
794
794
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
795
795
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
796
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
796
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
797
797
|
*/
|
|
798
798
|
if (symbol === undefined) {
|
|
799
799
|
throw new errors.ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -818,7 +818,7 @@ class mercado extends mercado$1 {
|
|
|
818
818
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
819
819
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
820
820
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
821
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
821
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
822
822
|
*/
|
|
823
823
|
if (symbol === undefined) {
|
|
824
824
|
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
package/dist/cjs/src/mexc.js
CHANGED
|
@@ -819,7 +819,7 @@ class mexc extends mexc$1 {
|
|
|
819
819
|
* @name mexc3#fetchStatus
|
|
820
820
|
* @description the latest known information on the availability of the exchange API
|
|
821
821
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
822
|
-
* @returns {object} a [status structure]{@link https://
|
|
822
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
823
823
|
*/
|
|
824
824
|
const [marketType, query] = this.handleMarketTypeAndParams('fetchStatus', undefined, params);
|
|
825
825
|
let response = undefined;
|
|
@@ -1283,7 +1283,7 @@ class mexc extends mexc$1 {
|
|
|
1283
1283
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1284
1284
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1285
1285
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
1286
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
1286
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
1287
1287
|
*/
|
|
1288
1288
|
await this.loadMarkets();
|
|
1289
1289
|
const market = this.market(symbol);
|
|
@@ -1693,7 +1693,7 @@ class mexc extends mexc$1 {
|
|
|
1693
1693
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1694
1694
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1695
1695
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
1696
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1696
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1697
1697
|
*/
|
|
1698
1698
|
await this.loadMarkets();
|
|
1699
1699
|
const request = {};
|
|
@@ -1781,7 +1781,7 @@ class mexc extends mexc$1 {
|
|
|
1781
1781
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1782
1782
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1783
1783
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
1784
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
1784
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1785
1785
|
*/
|
|
1786
1786
|
await this.loadMarkets();
|
|
1787
1787
|
const market = this.market(symbol);
|
|
@@ -1971,7 +1971,7 @@ class mexc extends mexc$1 {
|
|
|
1971
1971
|
* @description fetches the bid and ask price and volume for multiple markets
|
|
1972
1972
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
1973
1973
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
1974
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1974
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1975
1975
|
*/
|
|
1976
1976
|
await this.loadMarkets();
|
|
1977
1977
|
let market = undefined;
|
|
@@ -2015,10 +2015,10 @@ class mexc extends mexc$1 {
|
|
|
2015
2015
|
* @param {string} type 'market' or 'limit'
|
|
2016
2016
|
* @param {string} side 'buy' or 'sell'
|
|
2017
2017
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
2018
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2018
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2019
2019
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2020
2020
|
* @param {string} [params.marginMode] only 'isolated' is supported for spot-margin trading
|
|
2021
|
-
* @returns {object} an [order structure]{@link https://
|
|
2021
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2022
2022
|
*/
|
|
2023
2023
|
await this.loadMarkets();
|
|
2024
2024
|
const market = this.market(symbol);
|
|
@@ -2221,7 +2221,7 @@ class mexc extends mexc$1 {
|
|
|
2221
2221
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2222
2222
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2223
2223
|
* @param {string} [params.marginMode] only 'isolated' is supported, for spot-margin trading
|
|
2224
|
-
* @returns {object} An [order structure]{@link https://
|
|
2224
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2225
2225
|
*/
|
|
2226
2226
|
if (symbol === undefined) {
|
|
2227
2227
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -2344,7 +2344,7 @@ class mexc extends mexc$1 {
|
|
|
2344
2344
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2345
2345
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2346
2346
|
* @param {string} [params.marginMode] only 'isolated' is supported, for spot-margin trading
|
|
2347
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2347
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2348
2348
|
*/
|
|
2349
2349
|
await this.loadMarkets();
|
|
2350
2350
|
const request = {};
|
|
@@ -2574,7 +2574,7 @@ class mexc extends mexc$1 {
|
|
|
2574
2574
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2575
2575
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2576
2576
|
* @param {string} [params.marginMode] only 'isolated' is supported, for spot-margin trading
|
|
2577
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2577
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2578
2578
|
*/
|
|
2579
2579
|
await this.loadMarkets();
|
|
2580
2580
|
const request = {};
|
|
@@ -2662,7 +2662,7 @@ class mexc extends mexc$1 {
|
|
|
2662
2662
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2663
2663
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2664
2664
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2665
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2665
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2666
2666
|
*/
|
|
2667
2667
|
return await this.fetchOrdersByState(3, symbol, since, limit, params);
|
|
2668
2668
|
}
|
|
@@ -2675,7 +2675,7 @@ class mexc extends mexc$1 {
|
|
|
2675
2675
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
2676
2676
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
2677
2677
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2678
|
-
* @returns {object} a list of [order structures]{@link https://
|
|
2678
|
+
* @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2679
2679
|
*/
|
|
2680
2680
|
return await this.fetchOrdersByState(4, symbol, since, limit, params);
|
|
2681
2681
|
}
|
|
@@ -2705,7 +2705,7 @@ class mexc extends mexc$1 {
|
|
|
2705
2705
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2706
2706
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2707
2707
|
* @param {string} [params.marginMode] only 'isolated' is supported for spot-margin trading
|
|
2708
|
-
* @returns {object} An [order structure]{@link https://
|
|
2708
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2709
2709
|
*/
|
|
2710
2710
|
await this.loadMarkets();
|
|
2711
2711
|
let market = undefined;
|
|
@@ -2810,7 +2810,7 @@ class mexc extends mexc$1 {
|
|
|
2810
2810
|
* @param {string[]} ids order ids
|
|
2811
2811
|
* @param {string} symbol unified market symbol, default is undefined
|
|
2812
2812
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2813
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
2813
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2814
2814
|
*/
|
|
2815
2815
|
await this.loadMarkets();
|
|
2816
2816
|
const market = (symbol !== undefined) ? this.market(symbol) : undefined;
|
|
@@ -2845,7 +2845,7 @@ class mexc extends mexc$1 {
|
|
|
2845
2845
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2846
2846
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2847
2847
|
* @param {string} [params.marginMode] only 'isolated' is supported for spot-margin trading
|
|
2848
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
2848
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2849
2849
|
*/
|
|
2850
2850
|
await this.loadMarkets();
|
|
2851
2851
|
const market = (symbol !== undefined) ? this.market(symbol) : undefined;
|
|
@@ -3221,7 +3221,7 @@ class mexc extends mexc$1 {
|
|
|
3221
3221
|
* @name mexc3#fetchAccounts
|
|
3222
3222
|
* @description fetch all the accounts associated with a profile
|
|
3223
3223
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3224
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
3224
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
3225
3225
|
*/
|
|
3226
3226
|
// TODO: is the below endpoints suitable for fetchAccounts?
|
|
3227
3227
|
const [marketType, query] = this.handleMarketTypeAndParams('fetchAccounts', undefined, params);
|
|
@@ -3248,7 +3248,7 @@ class mexc extends mexc$1 {
|
|
|
3248
3248
|
* @name mexc3#fetchTradingFees
|
|
3249
3249
|
* @description fetch the trading fees for multiple markets
|
|
3250
3250
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3251
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
3251
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
3252
3252
|
*/
|
|
3253
3253
|
await this.loadMarkets();
|
|
3254
3254
|
const response = await this.fetchAccountHelper('spot', params);
|
|
@@ -3531,7 +3531,7 @@ class mexc extends mexc$1 {
|
|
|
3531
3531
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3532
3532
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
3533
3533
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3534
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
3534
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
3535
3535
|
*/
|
|
3536
3536
|
if (symbol === undefined) {
|
|
3537
3537
|
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -3622,7 +3622,7 @@ class mexc extends mexc$1 {
|
|
|
3622
3622
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3623
3623
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
3624
3624
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3625
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
3625
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
3626
3626
|
*/
|
|
3627
3627
|
await this.loadMarkets();
|
|
3628
3628
|
const request = {};
|
|
@@ -3718,7 +3718,7 @@ class mexc extends mexc$1 {
|
|
|
3718
3718
|
* @param {string} symbol unified market symbol
|
|
3719
3719
|
* @param {float} amount the amount of margin to remove
|
|
3720
3720
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3721
|
-
* @returns {object} a [margin structure]{@link https://
|
|
3721
|
+
* @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#reduce-margin-structure}
|
|
3722
3722
|
*/
|
|
3723
3723
|
return await this.modifyMarginHelper(symbol, amount, 'SUB', params);
|
|
3724
3724
|
}
|
|
@@ -3730,7 +3730,7 @@ class mexc extends mexc$1 {
|
|
|
3730
3730
|
* @param {string} symbol unified market symbol
|
|
3731
3731
|
* @param {float} amount amount of margin to add
|
|
3732
3732
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3733
|
-
* @returns {object} a [margin structure]{@link https://
|
|
3733
|
+
* @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
|
|
3734
3734
|
*/
|
|
3735
3735
|
return await this.modifyMarginHelper(symbol, amount, 'ADD', params);
|
|
3736
3736
|
}
|
|
@@ -3776,7 +3776,7 @@ class mexc extends mexc$1 {
|
|
|
3776
3776
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
3777
3777
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
3778
3778
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3779
|
-
* @returns {object} a [funding history structure]{@link https://
|
|
3779
|
+
* @returns {object} a [funding history structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-history-structure}
|
|
3780
3780
|
*/
|
|
3781
3781
|
await this.loadMarkets();
|
|
3782
3782
|
let market = undefined;
|
|
@@ -3889,7 +3889,7 @@ class mexc extends mexc$1 {
|
|
|
3889
3889
|
* @description fetch the current funding rate
|
|
3890
3890
|
* @param {string} symbol unified market symbol
|
|
3891
3891
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3892
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
3892
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
3893
3893
|
*/
|
|
3894
3894
|
await this.loadMarkets();
|
|
3895
3895
|
const market = this.market(symbol);
|
|
@@ -3990,7 +3990,7 @@ class mexc extends mexc$1 {
|
|
|
3990
3990
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
3991
3991
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
3992
3992
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3993
|
-
* @returns {object} a dictionary of [leverage tiers structures]{@link https://
|
|
3993
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}, indexed by market symbols
|
|
3994
3994
|
*/
|
|
3995
3995
|
await this.loadMarkets();
|
|
3996
3996
|
const response = await this.contractPublicGetDetail(params);
|
|
@@ -4103,7 +4103,7 @@ class mexc extends mexc$1 {
|
|
|
4103
4103
|
* @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
|
|
4104
4104
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
4105
4105
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4106
|
-
* @returns {object} a dictionary of [address structures]{@link https://
|
|
4106
|
+
* @returns {object} a dictionary of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure} indexed by the network
|
|
4107
4107
|
*/
|
|
4108
4108
|
await this.loadMarkets();
|
|
4109
4109
|
const currency = this.currency(code);
|
|
@@ -4144,7 +4144,7 @@ class mexc extends mexc$1 {
|
|
|
4144
4144
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
4145
4145
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4146
4146
|
* @param {string} [params.network] the blockchain network name
|
|
4147
|
-
* @returns {object} an [address structure]{@link https://
|
|
4147
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
4148
4148
|
*/
|
|
4149
4149
|
await this.loadMarkets();
|
|
4150
4150
|
const currency = this.currency(code);
|
|
@@ -4183,7 +4183,7 @@ class mexc extends mexc$1 {
|
|
|
4183
4183
|
* @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
|
|
4184
4184
|
* @param {string} code unified currency code
|
|
4185
4185
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4186
|
-
* @returns {object} an [address structure]{@link https://
|
|
4186
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
4187
4187
|
*/
|
|
4188
4188
|
const rawNetwork = this.safeStringUpper(params, 'network');
|
|
4189
4189
|
params = this.omit(params, 'network');
|
|
@@ -4213,7 +4213,7 @@ class mexc extends mexc$1 {
|
|
|
4213
4213
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
4214
4214
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
4215
4215
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4216
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
4216
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
4217
4217
|
*/
|
|
4218
4218
|
await this.loadMarkets();
|
|
4219
4219
|
const request = {
|
|
@@ -4273,7 +4273,7 @@ class mexc extends mexc$1 {
|
|
|
4273
4273
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
4274
4274
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
4275
4275
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4276
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
4276
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
4277
4277
|
*/
|
|
4278
4278
|
await this.loadMarkets();
|
|
4279
4279
|
const request = {
|
|
@@ -4445,7 +4445,7 @@ class mexc extends mexc$1 {
|
|
|
4445
4445
|
* @description fetch data on a single open contract trade position
|
|
4446
4446
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
4447
4447
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4448
|
-
* @returns {object} a [position structure]{@link https://
|
|
4448
|
+
* @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
4449
4449
|
*/
|
|
4450
4450
|
await this.loadMarkets();
|
|
4451
4451
|
const market = this.market(symbol);
|
|
@@ -4462,7 +4462,7 @@ class mexc extends mexc$1 {
|
|
|
4462
4462
|
* @description fetch all open positions
|
|
4463
4463
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
4464
4464
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4465
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
4465
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
4466
4466
|
*/
|
|
4467
4467
|
await this.loadMarkets();
|
|
4468
4468
|
const response = await this.contractPrivateGetPositionOpenPositions(params);
|
|
@@ -4604,7 +4604,7 @@ class mexc extends mexc$1 {
|
|
|
4604
4604
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
4605
4605
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
4606
4606
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4607
|
-
* @returns {object[]} a list of [transfer structures]{@link https://
|
|
4607
|
+
* @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
4608
4608
|
*/
|
|
4609
4609
|
const [marketType, query] = this.handleMarketTypeAndParams('fetchTransfers', undefined, params);
|
|
4610
4610
|
await this.loadMarkets();
|
|
@@ -4694,7 +4694,7 @@ class mexc extends mexc$1 {
|
|
|
4694
4694
|
* @param {string} toAccount account to transfer to
|
|
4695
4695
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4696
4696
|
* @param {string} [params.symbol] market symbol required for margin account transfers eg:BTCUSDT
|
|
4697
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
4697
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
4698
4698
|
*/
|
|
4699
4699
|
await this.loadMarkets();
|
|
4700
4700
|
const currency = this.currency(code);
|
|
@@ -4826,7 +4826,7 @@ class mexc extends mexc$1 {
|
|
|
4826
4826
|
* @param {string} address the address to withdraw to
|
|
4827
4827
|
* @param {string} tag
|
|
4828
4828
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4829
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
4829
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
4830
4830
|
*/
|
|
4831
4831
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
4832
4832
|
const networks = this.safeValue(this.options, 'networks', {});
|
|
@@ -4893,7 +4893,7 @@ class mexc extends mexc$1 {
|
|
|
4893
4893
|
* @param {float} amount the amount to borrow
|
|
4894
4894
|
* @param {string} symbol unified market symbol
|
|
4895
4895
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4896
|
-
* @returns {object} a [margin loan structure]{@link https://
|
|
4896
|
+
* @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
|
|
4897
4897
|
*/
|
|
4898
4898
|
await this.loadMarkets();
|
|
4899
4899
|
if (symbol === undefined) {
|
|
@@ -4929,7 +4929,7 @@ class mexc extends mexc$1 {
|
|
|
4929
4929
|
* @param {string} symbol unified market symbol
|
|
4930
4930
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4931
4931
|
* @param {string} [params.borrowId] transaction id '762407666453712896'
|
|
4932
|
-
* @returns {object} a [margin loan structure]{@link https://
|
|
4932
|
+
* @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
|
|
4933
4933
|
*/
|
|
4934
4934
|
await this.loadMarkets();
|
|
4935
4935
|
if (symbol === undefined) {
|
|
@@ -4967,7 +4967,7 @@ class mexc extends mexc$1 {
|
|
|
4967
4967
|
* @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
|
|
4968
4968
|
* @param {string[]|undefined} codes returns fees for all currencies if undefined
|
|
4969
4969
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4970
|
-
* @returns {object[]} a list of [fee structures]{@link https://
|
|
4970
|
+
* @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
4971
4971
|
*/
|
|
4972
4972
|
await this.loadMarkets();
|
|
4973
4973
|
const response = await this.spotPrivateGetCapitalConfigGetall(params);
|
|
@@ -5065,7 +5065,7 @@ class mexc extends mexc$1 {
|
|
|
5065
5065
|
* @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
|
|
5066
5066
|
* @param {string[]|undefined} codes returns fees for all currencies if undefined
|
|
5067
5067
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
5068
|
-
* @returns {object[]} a list of [fee structures]{@link https://
|
|
5068
|
+
* @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
5069
5069
|
*/
|
|
5070
5070
|
await this.loadMarkets();
|
|
5071
5071
|
const response = await this.spotPrivateGetCapitalConfigGetall(params);
|
package/dist/cjs/src/ndax.js
CHANGED
|
@@ -557,7 +557,7 @@ class ndax extends ndax$1 {
|
|
|
557
557
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
558
558
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
559
559
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
560
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
560
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
561
561
|
*/
|
|
562
562
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
563
563
|
await this.loadMarkets();
|
|
@@ -666,7 +666,7 @@ class ndax extends ndax$1 {
|
|
|
666
666
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
667
667
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
668
668
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
669
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
669
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
670
670
|
*/
|
|
671
671
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
672
672
|
await this.loadMarkets();
|
|
@@ -983,7 +983,7 @@ class ndax extends ndax$1 {
|
|
|
983
983
|
* @name ndax#fetchAccounts
|
|
984
984
|
* @description fetch all the accounts associated with a profile
|
|
985
985
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
986
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
986
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
987
987
|
*/
|
|
988
988
|
if (!this.login) {
|
|
989
989
|
throw new errors.AuthenticationError(this.id + ' fetchAccounts() requires exchange.login email credential');
|
|
@@ -1166,7 +1166,7 @@ class ndax extends ndax$1 {
|
|
|
1166
1166
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1167
1167
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
1168
1168
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1169
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
1169
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
1170
1170
|
*/
|
|
1171
1171
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1172
1172
|
await this.loadMarkets();
|
|
@@ -1320,10 +1320,10 @@ class ndax extends ndax$1 {
|
|
|
1320
1320
|
* @param {string} type 'market' or 'limit'
|
|
1321
1321
|
* @param {string} side 'buy' or 'sell'
|
|
1322
1322
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1323
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1323
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1324
1324
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1325
1325
|
* @param {float} [params.triggerPrice] the price at which a trigger order would be triggered
|
|
1326
|
-
* @returns {object} an [order structure]{@link https://
|
|
1326
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1327
1327
|
*/
|
|
1328
1328
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1329
1329
|
await this.loadMarkets();
|
|
@@ -1438,7 +1438,7 @@ class ndax extends ndax$1 {
|
|
|
1438
1438
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1439
1439
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1440
1440
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1441
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1441
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1442
1442
|
*/
|
|
1443
1443
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1444
1444
|
await this.loadMarkets();
|
|
@@ -1523,7 +1523,7 @@ class ndax extends ndax$1 {
|
|
|
1523
1523
|
* @description cancel all open orders
|
|
1524
1524
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1525
1525
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1526
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1526
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1527
1527
|
*/
|
|
1528
1528
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1529
1529
|
await this.loadMarkets();
|
|
@@ -1558,7 +1558,7 @@ class ndax extends ndax$1 {
|
|
|
1558
1558
|
* @param {string} id order id
|
|
1559
1559
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1560
1560
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1561
|
-
* @returns {object} An [order structure]{@link https://
|
|
1561
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1562
1562
|
*/
|
|
1563
1563
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1564
1564
|
await this.loadMarkets();
|
|
@@ -1598,7 +1598,7 @@ class ndax extends ndax$1 {
|
|
|
1598
1598
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1599
1599
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1600
1600
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1601
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1601
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1602
1602
|
*/
|
|
1603
1603
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1604
1604
|
await this.loadMarkets();
|
|
@@ -1676,7 +1676,7 @@ class ndax extends ndax$1 {
|
|
|
1676
1676
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1677
1677
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1678
1678
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1679
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1679
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1680
1680
|
*/
|
|
1681
1681
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1682
1682
|
await this.loadMarkets();
|
|
@@ -1768,7 +1768,7 @@ class ndax extends ndax$1 {
|
|
|
1768
1768
|
* @description fetches information on an order made by the user
|
|
1769
1769
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1770
1770
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1771
|
-
* @returns {object} An [order structure]{@link https://
|
|
1771
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1772
1772
|
*/
|
|
1773
1773
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1774
1774
|
await this.loadMarkets();
|
|
@@ -1846,7 +1846,7 @@ class ndax extends ndax$1 {
|
|
|
1846
1846
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1847
1847
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1848
1848
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1849
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1849
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1850
1850
|
*/
|
|
1851
1851
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1852
1852
|
await this.loadMarkets();
|
|
@@ -1925,7 +1925,7 @@ class ndax extends ndax$1 {
|
|
|
1925
1925
|
* @description fetch the deposit address for a currency associated with this account
|
|
1926
1926
|
* @param {string} code unified currency code
|
|
1927
1927
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1928
|
-
* @returns {object} an [address structure]{@link https://
|
|
1928
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1929
1929
|
*/
|
|
1930
1930
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1931
1931
|
await this.loadMarkets();
|
|
@@ -1997,7 +1997,7 @@ class ndax extends ndax$1 {
|
|
|
1997
1997
|
* @description create a currency deposit address
|
|
1998
1998
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1999
1999
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
2000
|
-
* @returns {object} an [address structure]{@link https://
|
|
2000
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
2001
2001
|
*/
|
|
2002
2002
|
const request = {
|
|
2003
2003
|
'GenerateNewKey': true,
|
|
@@ -2014,7 +2014,7 @@ class ndax extends ndax$1 {
|
|
|
2014
2014
|
* @param {int} [since] not used by ndax fetchDeposits
|
|
2015
2015
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2016
2016
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
2017
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2017
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2018
2018
|
*/
|
|
2019
2019
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
2020
2020
|
await this.loadMarkets();
|
|
@@ -2073,7 +2073,7 @@ class ndax extends ndax$1 {
|
|
|
2073
2073
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2074
2074
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2075
2075
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
2076
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2076
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2077
2077
|
*/
|
|
2078
2078
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
2079
2079
|
await this.loadMarkets();
|
|
@@ -2270,7 +2270,7 @@ class ndax extends ndax$1 {
|
|
|
2270
2270
|
* @param {string} address the address to withdraw to
|
|
2271
2271
|
* @param {string} tag
|
|
2272
2272
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
2273
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2273
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2274
2274
|
*/
|
|
2275
2275
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
2276
2276
|
// this method required login, password and twofa key
|