ccxt 4.1.63 → 4.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.js +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +33 -3
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +27 -28
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +162 -123
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +12 -9
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +33 -3
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +48 -30
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +27 -28
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +162 -123
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +12 -9
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/js/src/luno.js
CHANGED
|
@@ -165,7 +165,7 @@ export default class luno extends Exchange {
|
|
|
165
165
|
* @method
|
|
166
166
|
* @name luno#fetchMarkets
|
|
167
167
|
* @description retrieves data on all markets for luno
|
|
168
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
168
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
169
169
|
* @returns {object[]} an array of objects representing market data
|
|
170
170
|
*/
|
|
171
171
|
const response = await this.exchangeGetMarkets(params);
|
|
@@ -255,7 +255,7 @@ export default class luno extends Exchange {
|
|
|
255
255
|
* @method
|
|
256
256
|
* @name luno#fetchAccounts
|
|
257
257
|
* @description fetch all the accounts associated with a profile
|
|
258
|
-
* @param {object} [params] extra parameters specific to the
|
|
258
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
259
259
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
260
260
|
*/
|
|
261
261
|
const response = await this.privateGetBalance(params);
|
|
@@ -309,7 +309,7 @@ export default class luno extends Exchange {
|
|
|
309
309
|
* @method
|
|
310
310
|
* @name luno#fetchBalance
|
|
311
311
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
312
|
-
* @param {object} [params] extra parameters specific to the
|
|
312
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
313
313
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
314
314
|
*/
|
|
315
315
|
await this.loadMarkets();
|
|
@@ -333,21 +333,21 @@ export default class luno extends Exchange {
|
|
|
333
333
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
334
334
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
335
335
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
336
|
-
* @param {object} [params] extra parameters specific to the
|
|
336
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
337
337
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
338
338
|
*/
|
|
339
339
|
await this.loadMarkets();
|
|
340
|
-
let method = 'publicGetOrderbook';
|
|
341
|
-
if (limit !== undefined) {
|
|
342
|
-
if (limit <= 100) {
|
|
343
|
-
method += 'Top'; // get just the top of the orderbook when limit is low
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
340
|
const market = this.market(symbol);
|
|
347
341
|
const request = {
|
|
348
342
|
'pair': market['id'],
|
|
349
343
|
};
|
|
350
|
-
|
|
344
|
+
let response = undefined;
|
|
345
|
+
if (limit !== undefined && limit <= 100) {
|
|
346
|
+
response = await this.publicGetOrderbookTop(this.extend(request, params));
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
response = await this.publicGetOrderbook(this.extend(request, params));
|
|
350
|
+
}
|
|
351
351
|
const timestamp = this.safeInteger(response, 'timestamp');
|
|
352
352
|
return this.parseOrderBook(response, market['symbol'], timestamp, 'bids', 'asks', 'price', 'volume');
|
|
353
353
|
}
|
|
@@ -440,7 +440,7 @@ export default class luno extends Exchange {
|
|
|
440
440
|
* @name luno#fetchOrder
|
|
441
441
|
* @description fetches information on an order made by the user
|
|
442
442
|
* @param {string} symbol not used by luno fetchOrder
|
|
443
|
-
* @param {object} [params] extra parameters specific to the
|
|
443
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
444
444
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
445
445
|
*/
|
|
446
446
|
await this.loadMarkets();
|
|
@@ -473,7 +473,7 @@ export default class luno extends Exchange {
|
|
|
473
473
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
474
474
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
475
475
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
476
|
-
* @param {object} [params] extra parameters specific to the
|
|
476
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
477
477
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
478
478
|
*/
|
|
479
479
|
return await this.fetchOrdersByState(undefined, symbol, since, limit, params);
|
|
@@ -486,7 +486,7 @@ export default class luno extends Exchange {
|
|
|
486
486
|
* @param {string} symbol unified market symbol
|
|
487
487
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
488
488
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
489
|
-
* @param {object} [params] extra parameters specific to the
|
|
489
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
490
490
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
491
491
|
*/
|
|
492
492
|
return await this.fetchOrdersByState('PENDING', symbol, since, limit, params);
|
|
@@ -499,7 +499,7 @@ export default class luno extends Exchange {
|
|
|
499
499
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
500
500
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
501
501
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
502
|
-
* @param {object} [params] extra parameters specific to the
|
|
502
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
503
503
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
504
504
|
*/
|
|
505
505
|
return await this.fetchOrdersByState('COMPLETE', symbol, since, limit, params);
|
|
@@ -545,9 +545,9 @@ export default class luno extends Exchange {
|
|
|
545
545
|
/**
|
|
546
546
|
* @method
|
|
547
547
|
* @name luno#fetchTickers
|
|
548
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
548
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
549
549
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
550
|
-
* @param {object} [params] extra parameters specific to the
|
|
550
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
551
551
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
552
552
|
*/
|
|
553
553
|
await this.loadMarkets();
|
|
@@ -571,7 +571,7 @@ export default class luno extends Exchange {
|
|
|
571
571
|
* @name luno#fetchTicker
|
|
572
572
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
573
573
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
574
|
-
* @param {object} [params] extra parameters specific to the
|
|
574
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
575
575
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
576
576
|
*/
|
|
577
577
|
await this.loadMarkets();
|
|
@@ -694,7 +694,7 @@ export default class luno extends Exchange {
|
|
|
694
694
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
695
695
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
696
696
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
697
|
-
* @param {object} [params] extra parameters specific to the
|
|
697
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
698
698
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
699
699
|
*/
|
|
700
700
|
await this.loadMarkets();
|
|
@@ -730,7 +730,7 @@ export default class luno extends Exchange {
|
|
|
730
730
|
* @param {string} symbol unified market symbol
|
|
731
731
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
732
732
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
733
|
-
* @param {object} [params] extra parameters specific to the
|
|
733
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
734
734
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
735
735
|
*/
|
|
736
736
|
if (symbol === undefined) {
|
|
@@ -778,7 +778,7 @@ export default class luno extends Exchange {
|
|
|
778
778
|
* @name luno#fetchTradingFee
|
|
779
779
|
* @description fetch the trading fees for a market
|
|
780
780
|
* @param {string} symbol unified market symbol
|
|
781
|
-
* @param {object} [params] extra parameters specific to the
|
|
781
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
782
782
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
783
783
|
*/
|
|
784
784
|
await this.loadMarkets();
|
|
@@ -811,17 +811,16 @@ export default class luno extends Exchange {
|
|
|
811
811
|
* @param {string} side 'buy' or 'sell'
|
|
812
812
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
813
813
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
814
|
-
* @param {object} [params] extra parameters specific to the
|
|
814
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
815
815
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
816
816
|
*/
|
|
817
817
|
await this.loadMarkets();
|
|
818
|
-
let method = 'privatePost';
|
|
819
818
|
const market = this.market(symbol);
|
|
820
819
|
const request = {
|
|
821
820
|
'pair': market['id'],
|
|
822
821
|
};
|
|
822
|
+
let response = undefined;
|
|
823
823
|
if (type === 'market') {
|
|
824
|
-
method += 'Marketorder';
|
|
825
824
|
request['type'] = side.toUpperCase();
|
|
826
825
|
// todo add createMarketBuyOrderRequires price logic as it is implemented in the other exchanges
|
|
827
826
|
if (side === 'buy') {
|
|
@@ -830,14 +829,14 @@ export default class luno extends Exchange {
|
|
|
830
829
|
else {
|
|
831
830
|
request['base_volume'] = this.amountToPrecision(market['symbol'], amount);
|
|
832
831
|
}
|
|
832
|
+
response = await this.privatePostMarketorder(this.extend(request, params));
|
|
833
833
|
}
|
|
834
834
|
else {
|
|
835
|
-
method += 'Postorder';
|
|
836
835
|
request['volume'] = this.amountToPrecision(market['symbol'], amount);
|
|
837
836
|
request['price'] = this.priceToPrecision(market['symbol'], price);
|
|
838
837
|
request['type'] = (side === 'buy') ? 'BID' : 'ASK';
|
|
838
|
+
response = await this.privatePostPostorder(this.extend(request, params));
|
|
839
839
|
}
|
|
840
|
-
const response = await this[method](this.extend(request, params));
|
|
841
840
|
return this.safeOrder({
|
|
842
841
|
'info': response,
|
|
843
842
|
'id': response['order_id'],
|
|
@@ -850,7 +849,7 @@ export default class luno extends Exchange {
|
|
|
850
849
|
* @description cancels an open order
|
|
851
850
|
* @param {string} id order id
|
|
852
851
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
853
|
-
* @param {object} [params] extra parameters specific to the
|
|
852
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
854
853
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
855
854
|
*/
|
|
856
855
|
await this.loadMarkets();
|
|
@@ -882,7 +881,7 @@ export default class luno extends Exchange {
|
|
|
882
881
|
* @param {string} code unified currency code, default is undefined
|
|
883
882
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
884
883
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
885
|
-
* @param {object} [params] extra parameters specific to the
|
|
884
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
886
885
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
887
886
|
*/
|
|
888
887
|
await this.loadMarkets();
|
package/js/src/lykke.js
CHANGED
|
@@ -187,7 +187,7 @@ export default class lykke extends Exchange {
|
|
|
187
187
|
* @method
|
|
188
188
|
* @name lykke#fetchCurrencies
|
|
189
189
|
* @description fetches all available currencies on an exchange
|
|
190
|
-
* @param {object} [params] extra parameters specific to the
|
|
190
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
191
191
|
* @returns {object} an associative dictionary of currencies
|
|
192
192
|
*/
|
|
193
193
|
const response = await this.publicGetAssets(params);
|
|
@@ -265,7 +265,7 @@ export default class lykke extends Exchange {
|
|
|
265
265
|
* @method
|
|
266
266
|
* @name lykke#fetchMarkets
|
|
267
267
|
* @description retrieves data on all markets for lykke
|
|
268
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
268
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
269
269
|
* @returns {object[]} an array of objects representing market data
|
|
270
270
|
*/
|
|
271
271
|
const response = await this.publicGetAssetpairs(params);
|
|
@@ -425,7 +425,7 @@ export default class lykke extends Exchange {
|
|
|
425
425
|
* @name lykke#fetchTicker
|
|
426
426
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
427
427
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
428
|
-
* @param {object} [params] extra parameters specific to the
|
|
428
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
429
429
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
430
430
|
*/
|
|
431
431
|
await this.loadMarkets();
|
|
@@ -476,9 +476,9 @@ export default class lykke extends Exchange {
|
|
|
476
476
|
/**
|
|
477
477
|
* @method
|
|
478
478
|
* @name lykke#fetchTickers
|
|
479
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
479
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
480
480
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
481
|
-
* @param {object} [params] extra parameters specific to the
|
|
481
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
482
482
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
483
483
|
*/
|
|
484
484
|
await this.loadMarkets();
|
|
@@ -510,7 +510,7 @@ export default class lykke extends Exchange {
|
|
|
510
510
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
511
511
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
512
512
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
513
|
-
* @param {object} [params] extra parameters specific to the
|
|
513
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
514
514
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
515
515
|
*/
|
|
516
516
|
await this.loadMarkets();
|
|
@@ -615,7 +615,7 @@ export default class lykke extends Exchange {
|
|
|
615
615
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
616
616
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
617
617
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
618
|
-
* @param {object} [params] extra parameters specific to the
|
|
618
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
619
619
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
620
620
|
*/
|
|
621
621
|
await this.loadMarkets();
|
|
@@ -676,7 +676,7 @@ export default class lykke extends Exchange {
|
|
|
676
676
|
* @method
|
|
677
677
|
* @name lykke#fetchBalance
|
|
678
678
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
679
|
-
* @param {object} [params] extra parameters specific to the
|
|
679
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
680
680
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
681
681
|
*/
|
|
682
682
|
await this.loadMarkets();
|
|
@@ -776,7 +776,7 @@ export default class lykke extends Exchange {
|
|
|
776
776
|
* @param {string} side 'buy' or 'sell'
|
|
777
777
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
778
778
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
779
|
-
* @param {object} [params] extra parameters specific to the
|
|
779
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
780
780
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
781
781
|
*/
|
|
782
782
|
await this.loadMarkets();
|
|
@@ -844,7 +844,7 @@ export default class lykke extends Exchange {
|
|
|
844
844
|
* @description cancels an open order
|
|
845
845
|
* @param {string} id order id
|
|
846
846
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
847
|
-
* @param {object} [params] extra parameters specific to the
|
|
847
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
848
848
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
849
849
|
*/
|
|
850
850
|
const request = {
|
|
@@ -864,7 +864,7 @@ export default class lykke extends Exchange {
|
|
|
864
864
|
* @name lykke#cancelAllOrders
|
|
865
865
|
* @description cancel all open orders
|
|
866
866
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
867
|
-
* @param {object} [params] extra parameters specific to the
|
|
867
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
868
868
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
869
869
|
*/
|
|
870
870
|
await this.loadMarkets();
|
|
@@ -890,7 +890,7 @@ export default class lykke extends Exchange {
|
|
|
890
890
|
* @name lykke#fetchOrder
|
|
891
891
|
* @description fetches information on an order made by the user
|
|
892
892
|
* @param {string} symbol not used by lykke fetchOrder
|
|
893
|
-
* @param {object} [params] extra parameters specific to the
|
|
893
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
894
894
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
895
895
|
*/
|
|
896
896
|
await this.loadMarkets();
|
|
@@ -928,7 +928,7 @@ export default class lykke extends Exchange {
|
|
|
928
928
|
* @param {string} symbol unified market symbol
|
|
929
929
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
930
930
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
931
|
-
* @param {object} [params] extra parameters specific to the
|
|
931
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
932
932
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
933
933
|
*/
|
|
934
934
|
await this.loadMarkets();
|
|
@@ -976,7 +976,7 @@ export default class lykke extends Exchange {
|
|
|
976
976
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
977
977
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
978
978
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
979
|
-
* @param {object} [params] extra parameters specific to the
|
|
979
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
980
980
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
981
981
|
*/
|
|
982
982
|
await this.loadMarkets();
|
|
@@ -1024,7 +1024,7 @@ export default class lykke extends Exchange {
|
|
|
1024
1024
|
* @param {string} symbol unified market symbol
|
|
1025
1025
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1026
1026
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1027
|
-
* @param {object} [params] extra parameters specific to the
|
|
1027
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1028
1028
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1029
1029
|
*/
|
|
1030
1030
|
await this.loadMarkets();
|
|
@@ -1081,7 +1081,7 @@ export default class lykke extends Exchange {
|
|
|
1081
1081
|
* @name lykke#fetchDepositAddress
|
|
1082
1082
|
* @description fetch the deposit address for a currency associated with this account
|
|
1083
1083
|
* @param {string} code unified currency code
|
|
1084
|
-
* @param {object} [params] extra parameters specific to the
|
|
1084
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1085
1085
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1086
1086
|
*/
|
|
1087
1087
|
await this.loadMarkets();
|
|
@@ -1180,7 +1180,7 @@ export default class lykke extends Exchange {
|
|
|
1180
1180
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
1181
1181
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1182
1182
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1183
|
-
* @param {object} [params] extra parameters specific to the
|
|
1183
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1184
1184
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1185
1185
|
*/
|
|
1186
1186
|
await this.loadMarkets();
|
|
@@ -1223,7 +1223,7 @@ export default class lykke extends Exchange {
|
|
|
1223
1223
|
* @param {float} amount the amount to withdraw
|
|
1224
1224
|
* @param {string} address the address to withdraw to
|
|
1225
1225
|
* @param {string} tag
|
|
1226
|
-
* @param {object} [params] extra parameters specific to the
|
|
1226
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1227
1227
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1228
1228
|
*/
|
|
1229
1229
|
await this.loadMarkets();
|
package/js/src/mercado.js
CHANGED
|
@@ -160,7 +160,7 @@ export default class mercado extends Exchange {
|
|
|
160
160
|
* @method
|
|
161
161
|
* @name mercado#fetchMarkets
|
|
162
162
|
* @description retrieves data on all markets for mercado
|
|
163
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
163
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
164
164
|
* @returns {object[]} an array of objects representing market data
|
|
165
165
|
*/
|
|
166
166
|
const response = await this.publicGetCoins(params);
|
|
@@ -253,7 +253,7 @@ export default class mercado extends Exchange {
|
|
|
253
253
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
254
254
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
255
255
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
256
|
-
* @param {object} [params] extra parameters specific to the
|
|
256
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
257
257
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
258
258
|
*/
|
|
259
259
|
await this.loadMarkets();
|
|
@@ -309,7 +309,7 @@ export default class mercado extends Exchange {
|
|
|
309
309
|
* @name mercado#fetchTicker
|
|
310
310
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
311
311
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
312
|
-
* @param {object} [params] extra parameters specific to the
|
|
312
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
313
313
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
314
314
|
*/
|
|
315
315
|
await this.loadMarkets();
|
|
@@ -375,7 +375,7 @@ export default class mercado extends Exchange {
|
|
|
375
375
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
376
376
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
377
377
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
378
|
-
* @param {object} [params] extra parameters specific to the
|
|
378
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
379
379
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
380
380
|
*/
|
|
381
381
|
await this.loadMarkets();
|
|
@@ -418,7 +418,7 @@ export default class mercado extends Exchange {
|
|
|
418
418
|
* @method
|
|
419
419
|
* @name mercado#fetchBalance
|
|
420
420
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
421
|
-
* @param {object} [params] extra parameters specific to the
|
|
421
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
422
422
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
423
423
|
*/
|
|
424
424
|
await this.loadMarkets();
|
|
@@ -435,7 +435,7 @@ export default class mercado extends Exchange {
|
|
|
435
435
|
* @param {string} side 'buy' or 'sell'
|
|
436
436
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
437
437
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
438
|
-
* @param {object} [params] extra parameters specific to the
|
|
438
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
439
439
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
440
440
|
*/
|
|
441
441
|
await this.loadMarkets();
|
|
@@ -475,7 +475,7 @@ export default class mercado extends Exchange {
|
|
|
475
475
|
* @description cancels an open order
|
|
476
476
|
* @param {string} id order id
|
|
477
477
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
478
|
-
* @param {object} [params] extra parameters specific to the
|
|
478
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
479
479
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
480
480
|
*/
|
|
481
481
|
if (symbol === undefined) {
|
|
@@ -601,7 +601,7 @@ export default class mercado extends Exchange {
|
|
|
601
601
|
* @name mercado#fetchOrder
|
|
602
602
|
* @description fetches information on an order made by the user
|
|
603
603
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
604
|
-
* @param {object} [params] extra parameters specific to the
|
|
604
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
605
605
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
606
606
|
*/
|
|
607
607
|
if (symbol === undefined) {
|
|
@@ -627,7 +627,7 @@ export default class mercado extends Exchange {
|
|
|
627
627
|
* @param {float} amount the amount to withdraw
|
|
628
628
|
* @param {string} address the address to withdraw to
|
|
629
629
|
* @param {string} tag
|
|
630
|
-
* @param {object} [params] extra parameters specific to the
|
|
630
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
631
631
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
632
632
|
*/
|
|
633
633
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -742,7 +742,7 @@ export default class mercado extends Exchange {
|
|
|
742
742
|
* @param {string} timeframe the length of time each candle represents
|
|
743
743
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
744
744
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
745
|
-
* @param {object} [params] extra parameters specific to the
|
|
745
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
746
746
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
747
747
|
*/
|
|
748
748
|
await this.loadMarkets();
|
|
@@ -774,7 +774,7 @@ export default class mercado extends Exchange {
|
|
|
774
774
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
775
775
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
776
776
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
777
|
-
* @param {object} [params] extra parameters specific to the
|
|
777
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
778
778
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
779
779
|
*/
|
|
780
780
|
if (symbol === undefined) {
|
|
@@ -798,7 +798,7 @@ export default class mercado extends Exchange {
|
|
|
798
798
|
* @param {string} symbol unified market symbol
|
|
799
799
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
800
800
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
801
|
-
* @param {object} [params] extra parameters specific to the
|
|
801
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
802
802
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
803
803
|
*/
|
|
804
804
|
if (symbol === undefined) {
|
|
@@ -823,7 +823,7 @@ export default class mercado extends Exchange {
|
|
|
823
823
|
* @param {string} symbol unified market symbol
|
|
824
824
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
825
825
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
826
|
-
* @param {object} [params] extra parameters specific to the
|
|
826
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
827
827
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
828
828
|
*/
|
|
829
829
|
if (symbol === undefined) {
|