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/js/src/mercado.js
CHANGED
|
@@ -252,7 +252,7 @@ export default class mercado extends Exchange {
|
|
|
252
252
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
253
253
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
254
254
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
255
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
255
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
256
256
|
*/
|
|
257
257
|
await this.loadMarkets();
|
|
258
258
|
const market = this.market(symbol);
|
|
@@ -308,7 +308,7 @@ export default class mercado extends Exchange {
|
|
|
308
308
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
309
309
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
310
310
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
311
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
311
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
312
312
|
*/
|
|
313
313
|
await this.loadMarkets();
|
|
314
314
|
const market = this.market(symbol);
|
|
@@ -432,9 +432,9 @@ export default class mercado extends Exchange {
|
|
|
432
432
|
* @param {string} type 'market' or 'limit'
|
|
433
433
|
* @param {string} side 'buy' or 'sell'
|
|
434
434
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
435
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
435
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
436
436
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
437
|
-
* @returns {object} an [order structure]{@link https://
|
|
437
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
438
438
|
*/
|
|
439
439
|
await this.loadMarkets();
|
|
440
440
|
const market = this.market(symbol);
|
|
@@ -474,7 +474,7 @@ export default class mercado extends Exchange {
|
|
|
474
474
|
* @param {string} id order id
|
|
475
475
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
476
476
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
477
|
-
* @returns {object} An [order structure]{@link https://
|
|
477
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
478
478
|
*/
|
|
479
479
|
if (symbol === undefined) {
|
|
480
480
|
throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -600,7 +600,7 @@ export default class mercado extends Exchange {
|
|
|
600
600
|
* @description fetches information on an order made by the user
|
|
601
601
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
602
602
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
603
|
-
* @returns {object} An [order structure]{@link https://
|
|
603
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
604
604
|
*/
|
|
605
605
|
if (symbol === undefined) {
|
|
606
606
|
throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -626,7 +626,7 @@ export default class mercado extends Exchange {
|
|
|
626
626
|
* @param {string} address the address to withdraw to
|
|
627
627
|
* @param {string} tag
|
|
628
628
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
629
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
629
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
630
630
|
*/
|
|
631
631
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
632
632
|
this.checkAddress(address);
|
|
@@ -772,7 +772,7 @@ export default class mercado extends Exchange {
|
|
|
772
772
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
773
773
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
774
774
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
775
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
775
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
776
776
|
*/
|
|
777
777
|
if (symbol === undefined) {
|
|
778
778
|
throw new ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
@@ -796,7 +796,7 @@ export default class mercado extends Exchange {
|
|
|
796
796
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
797
797
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
798
798
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
799
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
799
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
800
800
|
*/
|
|
801
801
|
if (symbol === undefined) {
|
|
802
802
|
throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -821,7 +821,7 @@ export default class mercado extends Exchange {
|
|
|
821
821
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
822
822
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
823
823
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
824
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
824
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
825
825
|
*/
|
|
826
826
|
if (symbol === undefined) {
|
|
827
827
|
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
package/js/src/mexc.js
CHANGED
|
@@ -822,7 +822,7 @@ export default class mexc extends Exchange {
|
|
|
822
822
|
* @name mexc3#fetchStatus
|
|
823
823
|
* @description the latest known information on the availability of the exchange API
|
|
824
824
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
825
|
-
* @returns {object} a [status structure]{@link https://
|
|
825
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
826
826
|
*/
|
|
827
827
|
const [marketType, query] = this.handleMarketTypeAndParams('fetchStatus', undefined, params);
|
|
828
828
|
let response = undefined;
|
|
@@ -1286,7 +1286,7 @@ export default class mexc extends Exchange {
|
|
|
1286
1286
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1287
1287
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1288
1288
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
1289
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
1289
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
1290
1290
|
*/
|
|
1291
1291
|
await this.loadMarkets();
|
|
1292
1292
|
const market = this.market(symbol);
|
|
@@ -1696,7 +1696,7 @@ export default class mexc extends Exchange {
|
|
|
1696
1696
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1697
1697
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1698
1698
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
1699
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1699
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1700
1700
|
*/
|
|
1701
1701
|
await this.loadMarkets();
|
|
1702
1702
|
const request = {};
|
|
@@ -1784,7 +1784,7 @@ export default class mexc extends Exchange {
|
|
|
1784
1784
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1785
1785
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1786
1786
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
1787
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
1787
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1788
1788
|
*/
|
|
1789
1789
|
await this.loadMarkets();
|
|
1790
1790
|
const market = this.market(symbol);
|
|
@@ -1974,7 +1974,7 @@ export default class mexc extends Exchange {
|
|
|
1974
1974
|
* @description fetches the bid and ask price and volume for multiple markets
|
|
1975
1975
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
1976
1976
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
1977
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1977
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1978
1978
|
*/
|
|
1979
1979
|
await this.loadMarkets();
|
|
1980
1980
|
let market = undefined;
|
|
@@ -2018,10 +2018,10 @@ export default class mexc extends Exchange {
|
|
|
2018
2018
|
* @param {string} type 'market' or 'limit'
|
|
2019
2019
|
* @param {string} side 'buy' or 'sell'
|
|
2020
2020
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
2021
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2021
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2022
2022
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2023
2023
|
* @param {string} [params.marginMode] only 'isolated' is supported for spot-margin trading
|
|
2024
|
-
* @returns {object} an [order structure]{@link https://
|
|
2024
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2025
2025
|
*/
|
|
2026
2026
|
await this.loadMarkets();
|
|
2027
2027
|
const market = this.market(symbol);
|
|
@@ -2224,7 +2224,7 @@ export default class mexc extends Exchange {
|
|
|
2224
2224
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2225
2225
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2226
2226
|
* @param {string} [params.marginMode] only 'isolated' is supported, for spot-margin trading
|
|
2227
|
-
* @returns {object} An [order structure]{@link https://
|
|
2227
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2228
2228
|
*/
|
|
2229
2229
|
if (symbol === undefined) {
|
|
2230
2230
|
throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -2347,7 +2347,7 @@ export default class mexc extends Exchange {
|
|
|
2347
2347
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2348
2348
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2349
2349
|
* @param {string} [params.marginMode] only 'isolated' is supported, for spot-margin trading
|
|
2350
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2350
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2351
2351
|
*/
|
|
2352
2352
|
await this.loadMarkets();
|
|
2353
2353
|
const request = {};
|
|
@@ -2577,7 +2577,7 @@ export default class mexc extends Exchange {
|
|
|
2577
2577
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2578
2578
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2579
2579
|
* @param {string} [params.marginMode] only 'isolated' is supported, for spot-margin trading
|
|
2580
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2580
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2581
2581
|
*/
|
|
2582
2582
|
await this.loadMarkets();
|
|
2583
2583
|
const request = {};
|
|
@@ -2665,7 +2665,7 @@ export default class mexc extends Exchange {
|
|
|
2665
2665
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2666
2666
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2667
2667
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2668
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2668
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2669
2669
|
*/
|
|
2670
2670
|
return await this.fetchOrdersByState(3, symbol, since, limit, params);
|
|
2671
2671
|
}
|
|
@@ -2678,7 +2678,7 @@ export default class mexc extends Exchange {
|
|
|
2678
2678
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
2679
2679
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
2680
2680
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2681
|
-
* @returns {object} a list of [order structures]{@link https://
|
|
2681
|
+
* @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2682
2682
|
*/
|
|
2683
2683
|
return await this.fetchOrdersByState(4, symbol, since, limit, params);
|
|
2684
2684
|
}
|
|
@@ -2708,7 +2708,7 @@ export default class mexc extends Exchange {
|
|
|
2708
2708
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2709
2709
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2710
2710
|
* @param {string} [params.marginMode] only 'isolated' is supported for spot-margin trading
|
|
2711
|
-
* @returns {object} An [order structure]{@link https://
|
|
2711
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2712
2712
|
*/
|
|
2713
2713
|
await this.loadMarkets();
|
|
2714
2714
|
const request = {};
|
|
@@ -2814,7 +2814,7 @@ export default class mexc extends Exchange {
|
|
|
2814
2814
|
* @param {string[]} ids order ids
|
|
2815
2815
|
* @param {string} symbol unified market symbol, default is undefined
|
|
2816
2816
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2817
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
2817
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2818
2818
|
*/
|
|
2819
2819
|
await this.loadMarkets();
|
|
2820
2820
|
const market = (symbol !== undefined) ? this.market(symbol) : undefined;
|
|
@@ -2849,7 +2849,7 @@ export default class mexc extends Exchange {
|
|
|
2849
2849
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2850
2850
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
2851
2851
|
* @param {string} [params.marginMode] only 'isolated' is supported for spot-margin trading
|
|
2852
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
2852
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2853
2853
|
*/
|
|
2854
2854
|
await this.loadMarkets();
|
|
2855
2855
|
const market = (symbol !== undefined) ? this.market(symbol) : undefined;
|
|
@@ -3225,7 +3225,7 @@ export default class mexc extends Exchange {
|
|
|
3225
3225
|
* @name mexc3#fetchAccounts
|
|
3226
3226
|
* @description fetch all the accounts associated with a profile
|
|
3227
3227
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3228
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
3228
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
3229
3229
|
*/
|
|
3230
3230
|
// TODO: is the below endpoints suitable for fetchAccounts?
|
|
3231
3231
|
const [marketType, query] = this.handleMarketTypeAndParams('fetchAccounts', undefined, params);
|
|
@@ -3252,7 +3252,7 @@ export default class mexc extends Exchange {
|
|
|
3252
3252
|
* @name mexc3#fetchTradingFees
|
|
3253
3253
|
* @description fetch the trading fees for multiple markets
|
|
3254
3254
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3255
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
3255
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
3256
3256
|
*/
|
|
3257
3257
|
await this.loadMarkets();
|
|
3258
3258
|
const response = await this.fetchAccountHelper('spot', params);
|
|
@@ -3535,7 +3535,7 @@ export default class mexc extends Exchange {
|
|
|
3535
3535
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3536
3536
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
3537
3537
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3538
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
3538
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
3539
3539
|
*/
|
|
3540
3540
|
if (symbol === undefined) {
|
|
3541
3541
|
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -3626,7 +3626,7 @@ export default class mexc extends Exchange {
|
|
|
3626
3626
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3627
3627
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
3628
3628
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3629
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
3629
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
3630
3630
|
*/
|
|
3631
3631
|
await this.loadMarkets();
|
|
3632
3632
|
const request = {};
|
|
@@ -3722,7 +3722,7 @@ export default class mexc extends Exchange {
|
|
|
3722
3722
|
* @param {string} symbol unified market symbol
|
|
3723
3723
|
* @param {float} amount the amount of margin to remove
|
|
3724
3724
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3725
|
-
* @returns {object} a [margin structure]{@link https://
|
|
3725
|
+
* @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#reduce-margin-structure}
|
|
3726
3726
|
*/
|
|
3727
3727
|
return await this.modifyMarginHelper(symbol, amount, 'SUB', params);
|
|
3728
3728
|
}
|
|
@@ -3734,7 +3734,7 @@ export default class mexc extends Exchange {
|
|
|
3734
3734
|
* @param {string} symbol unified market symbol
|
|
3735
3735
|
* @param {float} amount amount of margin to add
|
|
3736
3736
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3737
|
-
* @returns {object} a [margin structure]{@link https://
|
|
3737
|
+
* @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
|
|
3738
3738
|
*/
|
|
3739
3739
|
return await this.modifyMarginHelper(symbol, amount, 'ADD', params);
|
|
3740
3740
|
}
|
|
@@ -3780,7 +3780,7 @@ export default class mexc extends Exchange {
|
|
|
3780
3780
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
3781
3781
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
3782
3782
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3783
|
-
* @returns {object} a [funding history structure]{@link https://
|
|
3783
|
+
* @returns {object} a [funding history structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-history-structure}
|
|
3784
3784
|
*/
|
|
3785
3785
|
await this.loadMarkets();
|
|
3786
3786
|
let market = undefined;
|
|
@@ -3893,7 +3893,7 @@ export default class mexc extends Exchange {
|
|
|
3893
3893
|
* @description fetch the current funding rate
|
|
3894
3894
|
* @param {string} symbol unified market symbol
|
|
3895
3895
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3896
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
3896
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
3897
3897
|
*/
|
|
3898
3898
|
await this.loadMarkets();
|
|
3899
3899
|
const market = this.market(symbol);
|
|
@@ -3994,7 +3994,7 @@ export default class mexc extends Exchange {
|
|
|
3994
3994
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
3995
3995
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
3996
3996
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
3997
|
-
* @returns {object} a dictionary of [leverage tiers structures]{@link https://
|
|
3997
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}, indexed by market symbols
|
|
3998
3998
|
*/
|
|
3999
3999
|
await this.loadMarkets();
|
|
4000
4000
|
const response = await this.contractPublicGetDetail(params);
|
|
@@ -4107,7 +4107,7 @@ export default class mexc extends Exchange {
|
|
|
4107
4107
|
* @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
|
|
4108
4108
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
4109
4109
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4110
|
-
* @returns {object} a dictionary of [address structures]{@link https://
|
|
4110
|
+
* @returns {object} a dictionary of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure} indexed by the network
|
|
4111
4111
|
*/
|
|
4112
4112
|
await this.loadMarkets();
|
|
4113
4113
|
const currency = this.currency(code);
|
|
@@ -4148,7 +4148,7 @@ export default class mexc extends Exchange {
|
|
|
4148
4148
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
4149
4149
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4150
4150
|
* @param {string} [params.network] the blockchain network name
|
|
4151
|
-
* @returns {object} an [address structure]{@link https://
|
|
4151
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
4152
4152
|
*/
|
|
4153
4153
|
await this.loadMarkets();
|
|
4154
4154
|
const currency = this.currency(code);
|
|
@@ -4187,7 +4187,7 @@ export default class mexc extends Exchange {
|
|
|
4187
4187
|
* @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
|
|
4188
4188
|
* @param {string} code unified currency code
|
|
4189
4189
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4190
|
-
* @returns {object} an [address structure]{@link https://
|
|
4190
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
4191
4191
|
*/
|
|
4192
4192
|
const rawNetwork = this.safeStringUpper(params, 'network');
|
|
4193
4193
|
params = this.omit(params, 'network');
|
|
@@ -4217,7 +4217,7 @@ export default class mexc extends Exchange {
|
|
|
4217
4217
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
4218
4218
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
4219
4219
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4220
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
4220
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
4221
4221
|
*/
|
|
4222
4222
|
await this.loadMarkets();
|
|
4223
4223
|
const request = {
|
|
@@ -4277,7 +4277,7 @@ export default class mexc extends Exchange {
|
|
|
4277
4277
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
4278
4278
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
4279
4279
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4280
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
4280
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
4281
4281
|
*/
|
|
4282
4282
|
await this.loadMarkets();
|
|
4283
4283
|
const request = {
|
|
@@ -4449,7 +4449,7 @@ export default class mexc extends Exchange {
|
|
|
4449
4449
|
* @description fetch data on a single open contract trade position
|
|
4450
4450
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
4451
4451
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4452
|
-
* @returns {object} a [position structure]{@link https://
|
|
4452
|
+
* @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
4453
4453
|
*/
|
|
4454
4454
|
await this.loadMarkets();
|
|
4455
4455
|
const market = this.market(symbol);
|
|
@@ -4466,7 +4466,7 @@ export default class mexc extends Exchange {
|
|
|
4466
4466
|
* @description fetch all open positions
|
|
4467
4467
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
4468
4468
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4469
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
4469
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
4470
4470
|
*/
|
|
4471
4471
|
await this.loadMarkets();
|
|
4472
4472
|
const response = await this.contractPrivateGetPositionOpenPositions(params);
|
|
@@ -4608,7 +4608,7 @@ export default class mexc extends Exchange {
|
|
|
4608
4608
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
4609
4609
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
4610
4610
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4611
|
-
* @returns {object[]} a list of [transfer structures]{@link https://
|
|
4611
|
+
* @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
4612
4612
|
*/
|
|
4613
4613
|
const [marketType, query] = this.handleMarketTypeAndParams('fetchTransfers', undefined, params);
|
|
4614
4614
|
await this.loadMarkets();
|
|
@@ -4698,7 +4698,7 @@ export default class mexc extends Exchange {
|
|
|
4698
4698
|
* @param {string} toAccount account to transfer to
|
|
4699
4699
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4700
4700
|
* @param {string} [params.symbol] market symbol required for margin account transfers eg:BTCUSDT
|
|
4701
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
4701
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
4702
4702
|
*/
|
|
4703
4703
|
await this.loadMarkets();
|
|
4704
4704
|
const currency = this.currency(code);
|
|
@@ -4830,7 +4830,7 @@ export default class mexc extends Exchange {
|
|
|
4830
4830
|
* @param {string} address the address to withdraw to
|
|
4831
4831
|
* @param {string} tag
|
|
4832
4832
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4833
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
4833
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
4834
4834
|
*/
|
|
4835
4835
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
4836
4836
|
const networks = this.safeValue(this.options, 'networks', {});
|
|
@@ -4897,7 +4897,7 @@ export default class mexc extends Exchange {
|
|
|
4897
4897
|
* @param {float} amount the amount to borrow
|
|
4898
4898
|
* @param {string} symbol unified market symbol
|
|
4899
4899
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4900
|
-
* @returns {object} a [margin loan structure]{@link https://
|
|
4900
|
+
* @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
|
|
4901
4901
|
*/
|
|
4902
4902
|
await this.loadMarkets();
|
|
4903
4903
|
if (symbol === undefined) {
|
|
@@ -4933,7 +4933,7 @@ export default class mexc extends Exchange {
|
|
|
4933
4933
|
* @param {string} symbol unified market symbol
|
|
4934
4934
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4935
4935
|
* @param {string} [params.borrowId] transaction id '762407666453712896'
|
|
4936
|
-
* @returns {object} a [margin loan structure]{@link https://
|
|
4936
|
+
* @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
|
|
4937
4937
|
*/
|
|
4938
4938
|
await this.loadMarkets();
|
|
4939
4939
|
if (symbol === undefined) {
|
|
@@ -4971,7 +4971,7 @@ export default class mexc extends Exchange {
|
|
|
4971
4971
|
* @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
|
|
4972
4972
|
* @param {string[]|undefined} codes returns fees for all currencies if undefined
|
|
4973
4973
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
4974
|
-
* @returns {object[]} a list of [fee structures]{@link https://
|
|
4974
|
+
* @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
4975
4975
|
*/
|
|
4976
4976
|
await this.loadMarkets();
|
|
4977
4977
|
const response = await this.spotPrivateGetCapitalConfigGetall(params);
|
|
@@ -5069,7 +5069,7 @@ export default class mexc extends Exchange {
|
|
|
5069
5069
|
* @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
|
|
5070
5070
|
* @param {string[]|undefined} codes returns fees for all currencies if undefined
|
|
5071
5071
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
5072
|
-
* @returns {object[]} a list of [fee structures]{@link https://
|
|
5072
|
+
* @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
5073
5073
|
*/
|
|
5074
5074
|
await this.loadMarkets();
|
|
5075
5075
|
const response = await this.spotPrivateGetCapitalConfigGetall(params);
|
package/js/src/ndax.js
CHANGED
|
@@ -560,7 +560,7 @@ export default class ndax extends Exchange {
|
|
|
560
560
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
561
561
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
562
562
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
563
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
563
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
564
564
|
*/
|
|
565
565
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
566
566
|
await this.loadMarkets();
|
|
@@ -669,7 +669,7 @@ export default class ndax extends Exchange {
|
|
|
669
669
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
670
670
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
671
671
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
672
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
672
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
673
673
|
*/
|
|
674
674
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
675
675
|
await this.loadMarkets();
|
|
@@ -986,7 +986,7 @@ export default class ndax extends Exchange {
|
|
|
986
986
|
* @name ndax#fetchAccounts
|
|
987
987
|
* @description fetch all the accounts associated with a profile
|
|
988
988
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
989
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
989
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
990
990
|
*/
|
|
991
991
|
if (!this.login) {
|
|
992
992
|
throw new AuthenticationError(this.id + ' fetchAccounts() requires exchange.login email credential');
|
|
@@ -1169,7 +1169,7 @@ export default class ndax extends Exchange {
|
|
|
1169
1169
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1170
1170
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
1171
1171
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1172
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
1172
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
1173
1173
|
*/
|
|
1174
1174
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1175
1175
|
await this.loadMarkets();
|
|
@@ -1323,10 +1323,10 @@ export default class ndax extends Exchange {
|
|
|
1323
1323
|
* @param {string} type 'market' or 'limit'
|
|
1324
1324
|
* @param {string} side 'buy' or 'sell'
|
|
1325
1325
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1326
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1326
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1327
1327
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1328
1328
|
* @param {float} [params.triggerPrice] the price at which a trigger order would be triggered
|
|
1329
|
-
* @returns {object} an [order structure]{@link https://
|
|
1329
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1330
1330
|
*/
|
|
1331
1331
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1332
1332
|
await this.loadMarkets();
|
|
@@ -1441,7 +1441,7 @@ export default class ndax extends Exchange {
|
|
|
1441
1441
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1442
1442
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1443
1443
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1444
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1444
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1445
1445
|
*/
|
|
1446
1446
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1447
1447
|
await this.loadMarkets();
|
|
@@ -1526,7 +1526,7 @@ export default class ndax extends Exchange {
|
|
|
1526
1526
|
* @description cancel all open orders
|
|
1527
1527
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1528
1528
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1529
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1529
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1530
1530
|
*/
|
|
1531
1531
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1532
1532
|
await this.loadMarkets();
|
|
@@ -1561,7 +1561,7 @@ export default class ndax extends Exchange {
|
|
|
1561
1561
|
* @param {string} id order id
|
|
1562
1562
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1563
1563
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1564
|
-
* @returns {object} An [order structure]{@link https://
|
|
1564
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1565
1565
|
*/
|
|
1566
1566
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1567
1567
|
await this.loadMarkets();
|
|
@@ -1601,7 +1601,7 @@ export default class ndax extends Exchange {
|
|
|
1601
1601
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1602
1602
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1603
1603
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1604
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1604
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1605
1605
|
*/
|
|
1606
1606
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1607
1607
|
await this.loadMarkets();
|
|
@@ -1679,7 +1679,7 @@ export default class ndax extends Exchange {
|
|
|
1679
1679
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1680
1680
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1681
1681
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1682
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1682
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1683
1683
|
*/
|
|
1684
1684
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1685
1685
|
await this.loadMarkets();
|
|
@@ -1771,7 +1771,7 @@ export default class ndax extends Exchange {
|
|
|
1771
1771
|
* @description fetches information on an order made by the user
|
|
1772
1772
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1773
1773
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1774
|
-
* @returns {object} An [order structure]{@link https://
|
|
1774
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1775
1775
|
*/
|
|
1776
1776
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1777
1777
|
await this.loadMarkets();
|
|
@@ -1849,7 +1849,7 @@ export default class ndax extends Exchange {
|
|
|
1849
1849
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1850
1850
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1851
1851
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1852
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1852
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1853
1853
|
*/
|
|
1854
1854
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1855
1855
|
await this.loadMarkets();
|
|
@@ -1928,7 +1928,7 @@ export default class ndax extends Exchange {
|
|
|
1928
1928
|
* @description fetch the deposit address for a currency associated with this account
|
|
1929
1929
|
* @param {string} code unified currency code
|
|
1930
1930
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
1931
|
-
* @returns {object} an [address structure]{@link https://
|
|
1931
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1932
1932
|
*/
|
|
1933
1933
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
1934
1934
|
await this.loadMarkets();
|
|
@@ -2000,7 +2000,7 @@ export default class ndax extends Exchange {
|
|
|
2000
2000
|
* @description create a currency deposit address
|
|
2001
2001
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
2002
2002
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
2003
|
-
* @returns {object} an [address structure]{@link https://
|
|
2003
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
2004
2004
|
*/
|
|
2005
2005
|
const request = {
|
|
2006
2006
|
'GenerateNewKey': true,
|
|
@@ -2017,7 +2017,7 @@ export default class ndax extends Exchange {
|
|
|
2017
2017
|
* @param {int} [since] not used by ndax fetchDeposits
|
|
2018
2018
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2019
2019
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
2020
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2020
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2021
2021
|
*/
|
|
2022
2022
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
2023
2023
|
await this.loadMarkets();
|
|
@@ -2076,7 +2076,7 @@ export default class ndax extends Exchange {
|
|
|
2076
2076
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2077
2077
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2078
2078
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
2079
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2079
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2080
2080
|
*/
|
|
2081
2081
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
2082
2082
|
await this.loadMarkets();
|
|
@@ -2273,7 +2273,7 @@ export default class ndax extends Exchange {
|
|
|
2273
2273
|
* @param {string} address the address to withdraw to
|
|
2274
2274
|
* @param {string} tag
|
|
2275
2275
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
2276
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2276
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2277
2277
|
*/
|
|
2278
2278
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
2279
2279
|
// this method required login, password and twofa key
|