ccxt 4.1.55 → 4.1.57
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/.git-templates/hooks/pre-push +2 -2
- package/CONTRIBUTING.md +1 -1
- package/README.md +6 -6
- package/build.sh +30 -8
- package/dist/ccxt.browser.js +5592 -4907
- package/dist/ccxt.browser.min.js +13 -13
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +17 -13
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +35 -29
- package/dist/cjs/src/base/Exchange.js +39 -26
- package/dist/cjs/src/base/Precise.js +1 -3
- package/dist/cjs/src/bigone.js +24 -20
- package/dist/cjs/src/binance.js +97 -76
- package/dist/cjs/src/bingx.js +63 -44
- package/dist/cjs/src/bit2c.js +18 -15
- package/dist/cjs/src/bitbank.js +17 -15
- package/dist/cjs/src/bitbns.js +28 -18
- package/dist/cjs/src/bitfinex.js +23 -21
- package/dist/cjs/src/bitfinex2.js +32 -28
- package/dist/cjs/src/bitflyer.js +28 -20
- package/dist/cjs/src/bitforex.js +25 -18
- package/dist/cjs/src/bitget.js +184 -147
- package/dist/cjs/src/bithumb.js +23 -16
- package/dist/cjs/src/bitmart.js +129 -94
- package/dist/cjs/src/bitmex.js +104 -64
- package/dist/cjs/src/bitopro.js +38 -26
- package/dist/cjs/src/bitpanda.js +24 -23
- package/dist/cjs/src/bitrue.js +33 -24
- package/dist/cjs/src/bitso.js +24 -23
- package/dist/cjs/src/bitstamp.js +24 -23
- package/dist/cjs/src/bittrex.js +30 -29
- package/dist/cjs/src/bitvavo.js +38 -30
- package/dist/cjs/src/bl3p.js +11 -10
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +18 -17
- package/dist/cjs/src/btcbox.js +13 -12
- package/dist/cjs/src/btcmarkets.js +20 -19
- package/dist/cjs/src/btcturk.js +14 -13
- package/dist/cjs/src/bybit.js +84 -54
- package/dist/cjs/src/cex.js +16 -14
- package/dist/cjs/src/coinbase.js +29 -27
- package/dist/cjs/src/coinbasepro.js +27 -25
- package/dist/cjs/src/coincheck.js +15 -14
- package/dist/cjs/src/coinex.js +101 -78
- package/dist/cjs/src/coinlist.js +28 -27
- package/dist/cjs/src/coinmate.js +20 -17
- package/dist/cjs/src/coinone.js +21 -16
- package/dist/cjs/src/coinsph.js +37 -28
- package/dist/cjs/src/coinspot.js +12 -11
- package/dist/cjs/src/cryptocom.js +40 -202
- package/dist/cjs/src/currencycom.js +32 -25
- package/dist/cjs/src/delta.js +34 -28
- package/dist/cjs/src/deribit.js +39 -36
- package/dist/cjs/src/digifinex.js +64 -44
- package/dist/cjs/src/exmo.js +29 -27
- package/dist/cjs/src/gate.js +67 -53
- package/dist/cjs/src/gemini.js +23 -20
- package/dist/cjs/src/hitbtc.js +65 -56
- package/dist/cjs/src/hollaex.js +30 -27
- package/dist/cjs/src/htx.js +135 -143
- package/dist/cjs/src/huobijp.js +22 -20
- package/dist/cjs/src/idex.js +22 -21
- package/dist/cjs/src/independentreserve.js +15 -14
- package/dist/cjs/src/indodax.js +30 -26
- package/dist/cjs/src/kraken.js +29 -27
- package/dist/cjs/src/krakenfutures.js +29 -22
- package/dist/cjs/src/kucoin.js +48 -43
- package/dist/cjs/src/kucoinfutures.js +33 -28
- package/dist/cjs/src/kuna.js +25 -24
- package/dist/cjs/src/latoken.js +24 -22
- package/dist/cjs/src/lbank.js +45 -30
- package/dist/cjs/src/luno.js +22 -19
- package/dist/cjs/src/lykke.js +19 -17
- package/dist/cjs/src/mercado.js +30 -19
- package/dist/cjs/src/mexc.js +60 -49
- package/dist/cjs/src/ndax.js +23 -22
- package/dist/cjs/src/novadax.js +23 -22
- package/dist/cjs/src/oceanex.js +22 -19
- package/dist/cjs/src/okcoin.js +29 -23
- package/dist/cjs/src/okx.js +92 -84
- package/dist/cjs/src/p2b.js +80 -83
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +63 -40
- package/dist/cjs/src/poloniex.js +22 -22
- package/dist/cjs/src/poloniexfutures.js +23 -19
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +4 -4
- package/dist/cjs/src/pro/binance.js +16 -16
- package/dist/cjs/src/pro/bingx.js +1 -1
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +6 -6
- package/dist/cjs/src/pro/bitget.js +7 -7
- package/dist/cjs/src/pro/bitmart.js +7 -5
- package/dist/cjs/src/pro/bitmex.js +6 -6
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +6 -6
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +6 -4
- package/dist/cjs/src/pro/bittrex.js +6 -6
- package/dist/cjs/src/pro/bitvavo.js +11 -7
- package/dist/cjs/src/pro/blockchaincom.js +8 -8
- package/dist/cjs/src/pro/bybit.js +7 -7
- package/dist/cjs/src/pro/cex.js +13 -9
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +11 -10
- package/dist/cjs/src/pro/coinex.js +7 -9
- package/dist/cjs/src/pro/cryptocom.js +9 -9
- package/dist/cjs/src/pro/currencycom.js +4 -4
- package/dist/cjs/src/pro/deribit.js +6 -6
- package/dist/cjs/src/pro/exmo.js +12 -14
- package/dist/cjs/src/pro/gate.js +7 -7
- package/dist/cjs/src/pro/gemini.js +3 -3
- package/dist/cjs/src/pro/hitbtc.js +263 -4
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +6 -6
- package/dist/cjs/src/pro/huobijp.js +3 -3
- package/dist/cjs/src/pro/idex.js +4 -4
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +10 -10
- package/dist/cjs/src/pro/krakenfutures.js +41 -17
- package/dist/cjs/src/pro/kucoin.js +7 -7
- package/dist/cjs/src/pro/kucoinfutures.js +8 -6
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +6 -6
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okcoin.js +5 -5
- package/dist/cjs/src/pro/okx.js +12 -12
- package/dist/cjs/src/pro/phemex.js +6 -6
- 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 +8 -8
- package/dist/cjs/src/pro/whitebit.js +12 -8
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +28 -23
- package/dist/cjs/src/tidex.js +16 -15
- package/dist/cjs/src/timex.js +19 -18
- package/dist/cjs/src/tokocrypto.js +27 -22
- package/dist/cjs/src/upbit.js +19 -19
- package/dist/cjs/src/wavesexchange.js +22 -19
- package/dist/cjs/src/wazirx.js +24 -17
- package/dist/cjs/src/whitebit.js +33 -27
- package/dist/cjs/src/woo.js +44 -34
- package/dist/cjs/src/yobit.js +25 -20
- package/dist/cjs/src/zaif.js +9 -9
- package/dist/cjs/src/zonda.js +18 -17
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitbank.d.ts +1 -0
- package/js/src/abstract/bybit.d.ts +1 -0
- package/js/src/abstract/cryptocom.d.ts +0 -20
- package/js/src/abstract/htx.d.ts +3 -0
- package/js/src/abstract/huobi.d.ts +3 -0
- package/js/src/abstract/huobipro.d.ts +3 -0
- package/js/src/abstract/okex.d.ts +3 -1
- package/js/src/abstract/okex5.d.ts +3 -1
- package/js/src/abstract/okx.d.ts +3 -1
- package/js/src/ace.js +18 -14
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +35 -29
- package/js/src/base/Exchange.d.ts +37 -34
- package/js/src/base/Exchange.js +39 -26
- package/js/src/base/Precise.d.ts +4 -4
- package/js/src/base/Precise.js +1 -3
- package/js/src/base/functions/type.d.ts +25 -25
- package/js/src/base/types.d.ts +21 -14
- package/js/src/bigone.js +25 -21
- package/js/src/binance.d.ts +2 -2
- package/js/src/binance.js +97 -76
- package/js/src/bingx.js +63 -44
- package/js/src/bit2c.js +19 -16
- package/js/src/bitbank.js +17 -15
- package/js/src/bitbns.js +28 -18
- package/js/src/bitfinex.js +23 -21
- package/js/src/bitfinex2.js +32 -28
- package/js/src/bitflyer.js +28 -20
- package/js/src/bitforex.js +26 -19
- package/js/src/bitget.d.ts +25 -3
- package/js/src/bitget.js +184 -147
- package/js/src/bithumb.js +23 -16
- package/js/src/bitmart.d.ts +1 -1
- package/js/src/bitmart.js +129 -94
- package/js/src/bitmex.d.ts +2 -2
- package/js/src/bitmex.js +104 -64
- package/js/src/bitopro.js +38 -26
- package/js/src/bitpanda.js +24 -23
- package/js/src/bitrue.js +33 -24
- package/js/src/bitso.js +24 -23
- package/js/src/bitstamp.d.ts +2 -2
- package/js/src/bitstamp.js +24 -23
- package/js/src/bittrex.js +30 -29
- package/js/src/bitvavo.js +38 -30
- package/js/src/bl3p.js +11 -10
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +18 -17
- package/js/src/btcbox.js +13 -12
- package/js/src/btcmarkets.js +20 -19
- package/js/src/btcturk.js +14 -13
- package/js/src/bybit.d.ts +1 -1
- package/js/src/bybit.js +84 -54
- package/js/src/cex.js +16 -14
- package/js/src/coinbase.js +29 -27
- package/js/src/coinbasepro.js +27 -25
- package/js/src/coincheck.js +15 -14
- package/js/src/coinex.d.ts +1 -1
- package/js/src/coinex.js +101 -78
- package/js/src/coinlist.js +28 -27
- package/js/src/coinmate.js +21 -18
- package/js/src/coinone.js +21 -16
- package/js/src/coinsph.js +37 -28
- package/js/src/coinspot.js +12 -11
- package/js/src/cryptocom.d.ts +0 -23
- package/js/src/cryptocom.js +40 -202
- package/js/src/currencycom.js +32 -25
- package/js/src/delta.js +35 -29
- package/js/src/deribit.js +39 -36
- package/js/src/digifinex.d.ts +2 -2
- package/js/src/digifinex.js +65 -45
- package/js/src/exmo.js +29 -27
- package/js/src/gate.d.ts +1 -1
- package/js/src/gate.js +67 -53
- package/js/src/gemini.js +23 -20
- package/js/src/hitbtc.d.ts +1 -0
- package/js/src/hitbtc.js +65 -56
- package/js/src/hollaex.js +30 -27
- package/js/src/htx.d.ts +11 -3
- package/js/src/htx.js +135 -143
- package/js/src/huobijp.js +23 -21
- package/js/src/idex.js +22 -21
- package/js/src/independentreserve.js +15 -14
- package/js/src/indodax.js +30 -26
- package/js/src/kraken.js +29 -27
- package/js/src/krakenfutures.js +29 -22
- package/js/src/kucoin.d.ts +1 -1
- package/js/src/kucoin.js +48 -43
- package/js/src/kucoinfutures.js +33 -28
- package/js/src/kuna.js +25 -24
- package/js/src/latoken.js +25 -23
- package/js/src/lbank.js +46 -31
- package/js/src/luno.js +22 -19
- package/js/src/lykke.js +19 -17
- package/js/src/mercado.js +30 -19
- package/js/src/mexc.d.ts +1 -1
- package/js/src/mexc.js +60 -49
- package/js/src/ndax.js +23 -22
- package/js/src/novadax.js +23 -22
- package/js/src/oceanex.js +22 -19
- package/js/src/okcoin.js +29 -23
- package/js/src/okx.d.ts +2 -2
- package/js/src/okx.js +92 -84
- package/js/src/p2b.d.ts +8 -7
- package/js/src/p2b.js +80 -82
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +63 -40
- package/js/src/poloniex.js +22 -22
- package/js/src/poloniexfutures.js +23 -19
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +4 -4
- package/js/src/pro/binance.js +16 -16
- package/js/src/pro/bingx.js +1 -1
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.d.ts +1 -1
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +7 -7
- package/js/src/pro/bitmart.js +7 -5
- package/js/src/pro/bitmex.js +6 -6
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +6 -6
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +7 -5
- package/js/src/pro/bittrex.js +6 -6
- package/js/src/pro/bitvavo.js +12 -8
- package/js/src/pro/blockchaincom.js +8 -8
- package/js/src/pro/bybit.js +7 -7
- package/js/src/pro/cex.js +14 -10
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +12 -11
- package/js/src/pro/coinex.js +7 -9
- package/js/src/pro/cryptocom.js +9 -9
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +12 -14
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.d.ts +8 -1
- package/js/src/pro/hitbtc.js +264 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +6 -6
- package/js/src/pro/huobijp.js +3 -3
- package/js/src/pro/idex.js +4 -4
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +10 -10
- package/js/src/pro/krakenfutures.d.ts +1 -0
- package/js/src/pro/krakenfutures.js +42 -18
- package/js/src/pro/kucoin.js +7 -7
- package/js/src/pro/kucoinfutures.js +8 -6
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.js +6 -6
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okcoin.js +5 -5
- package/js/src/pro/okx.js +12 -12
- package/js/src/pro/phemex.js +6 -6
- 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 +8 -8
- package/js/src/pro/whitebit.js +13 -9
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +29 -24
- package/js/src/tidex.js +16 -15
- package/js/src/timex.js +19 -18
- package/js/src/tokocrypto.js +28 -23
- package/js/src/upbit.js +19 -19
- package/js/src/wavesexchange.js +23 -20
- package/js/src/wazirx.js +25 -18
- package/js/src/whitebit.js +33 -27
- package/js/src/woo.js +45 -35
- package/js/src/yobit.js +25 -20
- package/js/src/zaif.js +9 -9
- package/js/src/zonda.js +18 -17
- package/package.json +2 -2
- package/js/src/bitstamp1.d.ts +0 -28
- package/js/src/bitstamp1.js +0 -430
- package/js/src/lbank2.d.ts +0 -90
- package/js/src/lbank2.js +0 -2779
package/dist/cjs/src/luno.js
CHANGED
|
@@ -34,16 +34,17 @@ class luno extends luno$1 {
|
|
|
34
34
|
'createReduceOnlyOrder': false,
|
|
35
35
|
'fetchAccounts': true,
|
|
36
36
|
'fetchBalance': true,
|
|
37
|
-
'fetchBorrowRate': false,
|
|
38
37
|
'fetchBorrowRateHistory': false,
|
|
39
|
-
'fetchBorrowRates': false,
|
|
40
|
-
'fetchBorrowRatesPerSymbol': false,
|
|
41
38
|
'fetchClosedOrders': true,
|
|
39
|
+
'fetchCrossBorrowRate': false,
|
|
40
|
+
'fetchCrossBorrowRates': false,
|
|
42
41
|
'fetchFundingHistory': false,
|
|
43
42
|
'fetchFundingRate': false,
|
|
44
43
|
'fetchFundingRateHistory': false,
|
|
45
44
|
'fetchFundingRates': false,
|
|
46
45
|
'fetchIndexOHLCV': false,
|
|
46
|
+
'fetchIsolatedBorrowRate': false,
|
|
47
|
+
'fetchIsolatedBorrowRates': false,
|
|
47
48
|
'fetchLedger': true,
|
|
48
49
|
'fetchLeverage': false,
|
|
49
50
|
'fetchLeverageTiers': false,
|
|
@@ -252,7 +253,7 @@ class luno extends luno$1 {
|
|
|
252
253
|
* @name luno#fetchAccounts
|
|
253
254
|
* @description fetch all the accounts associated with a profile
|
|
254
255
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
255
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
256
|
+
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
256
257
|
*/
|
|
257
258
|
const response = await this.privateGetBalance(params);
|
|
258
259
|
const wallets = this.safeValue(response, 'balance', []);
|
|
@@ -306,7 +307,7 @@ class luno extends luno$1 {
|
|
|
306
307
|
* @name luno#fetchBalance
|
|
307
308
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
308
309
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
309
|
-
* @returns {object} a [balance structure]{@link https://
|
|
310
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
310
311
|
*/
|
|
311
312
|
await this.loadMarkets();
|
|
312
313
|
const response = await this.privateGetBalance(params);
|
|
@@ -330,7 +331,7 @@ class luno extends luno$1 {
|
|
|
330
331
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
331
332
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
332
333
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
333
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
334
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
334
335
|
*/
|
|
335
336
|
await this.loadMarkets();
|
|
336
337
|
let method = 'publicGetOrderbook';
|
|
@@ -437,7 +438,7 @@ class luno extends luno$1 {
|
|
|
437
438
|
* @description fetches information on an order made by the user
|
|
438
439
|
* @param {string} symbol not used by luno fetchOrder
|
|
439
440
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
440
|
-
* @returns {object} An [order structure]{@link https://
|
|
441
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
441
442
|
*/
|
|
442
443
|
await this.loadMarkets();
|
|
443
444
|
const request = {
|
|
@@ -470,7 +471,7 @@ class luno extends luno$1 {
|
|
|
470
471
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
471
472
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
472
473
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
473
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
474
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
474
475
|
*/
|
|
475
476
|
return await this.fetchOrdersByState(undefined, symbol, since, limit, params);
|
|
476
477
|
}
|
|
@@ -483,7 +484,7 @@ class luno extends luno$1 {
|
|
|
483
484
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
484
485
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
485
486
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
486
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
487
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
487
488
|
*/
|
|
488
489
|
return await this.fetchOrdersByState('PENDING', symbol, since, limit, params);
|
|
489
490
|
}
|
|
@@ -496,7 +497,7 @@ class luno extends luno$1 {
|
|
|
496
497
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
497
498
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
498
499
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
499
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
500
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
500
501
|
*/
|
|
501
502
|
return await this.fetchOrdersByState('COMPLETE', symbol, since, limit, params);
|
|
502
503
|
}
|
|
@@ -544,7 +545,7 @@ class luno extends luno$1 {
|
|
|
544
545
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
545
546
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
546
547
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
547
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
548
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
548
549
|
*/
|
|
549
550
|
await this.loadMarkets();
|
|
550
551
|
symbols = this.marketSymbols(symbols);
|
|
@@ -568,7 +569,7 @@ class luno extends luno$1 {
|
|
|
568
569
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
569
570
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
570
571
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
571
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
572
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
572
573
|
*/
|
|
573
574
|
await this.loadMarkets();
|
|
574
575
|
const market = this.market(symbol);
|
|
@@ -691,7 +692,7 @@ class luno extends luno$1 {
|
|
|
691
692
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
692
693
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
693
694
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
694
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
695
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
695
696
|
*/
|
|
696
697
|
await this.loadMarkets();
|
|
697
698
|
const market = this.market(symbol);
|
|
@@ -727,9 +728,11 @@ class luno extends luno$1 {
|
|
|
727
728
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
728
729
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
729
730
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
730
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
731
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
731
732
|
*/
|
|
732
|
-
|
|
733
|
+
if (symbol === undefined) {
|
|
734
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
735
|
+
}
|
|
733
736
|
await this.loadMarkets();
|
|
734
737
|
const market = this.market(symbol);
|
|
735
738
|
const request = {
|
|
@@ -773,7 +776,7 @@ class luno extends luno$1 {
|
|
|
773
776
|
* @description fetch the trading fees for a market
|
|
774
777
|
* @param {string} symbol unified market symbol
|
|
775
778
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
776
|
-
* @returns {object} a [fee structure]{@link https://
|
|
779
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
777
780
|
*/
|
|
778
781
|
await this.loadMarkets();
|
|
779
782
|
const market = this.market(symbol);
|
|
@@ -806,7 +809,7 @@ class luno extends luno$1 {
|
|
|
806
809
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
807
810
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
808
811
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
809
|
-
* @returns {object} an [order structure]{@link https://
|
|
812
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
810
813
|
*/
|
|
811
814
|
await this.loadMarkets();
|
|
812
815
|
let method = 'privatePost';
|
|
@@ -845,7 +848,7 @@ class luno extends luno$1 {
|
|
|
845
848
|
* @param {string} id order id
|
|
846
849
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
847
850
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
848
|
-
* @returns {object} An [order structure]{@link https://
|
|
851
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
849
852
|
*/
|
|
850
853
|
await this.loadMarkets();
|
|
851
854
|
const request = {
|
|
@@ -877,7 +880,7 @@ class luno extends luno$1 {
|
|
|
877
880
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
878
881
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
879
882
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
880
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
883
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
881
884
|
*/
|
|
882
885
|
await this.loadMarkets();
|
|
883
886
|
await this.loadAccounts();
|
package/dist/cjs/src/lykke.js
CHANGED
|
@@ -36,11 +36,11 @@ class lykke extends lykke$1 {
|
|
|
36
36
|
'createStopOrder': false,
|
|
37
37
|
'editOrder': false,
|
|
38
38
|
'fetchBalance': true,
|
|
39
|
-
'fetchBorrowRate': false,
|
|
40
39
|
'fetchBorrowRateHistories': false,
|
|
41
40
|
'fetchBorrowRateHistory': false,
|
|
42
|
-
'fetchBorrowRates': false,
|
|
43
41
|
'fetchClosedOrders': true,
|
|
42
|
+
'fetchCrossBorrowRate': false,
|
|
43
|
+
'fetchCrossBorrowRates': false,
|
|
44
44
|
'fetchCurrencies': true,
|
|
45
45
|
'fetchDepositAddress': true,
|
|
46
46
|
'fetchDeposits': false,
|
|
@@ -50,6 +50,8 @@ class lykke extends lykke$1 {
|
|
|
50
50
|
'fetchFundingRateHistory': false,
|
|
51
51
|
'fetchFundingRates': false,
|
|
52
52
|
'fetchIndexOHLCV': false,
|
|
53
|
+
'fetchIsolatedBorrowRate': false,
|
|
54
|
+
'fetchIsolatedBorrowRates': false,
|
|
53
55
|
'fetchMarginMode': false,
|
|
54
56
|
'fetchMarkets': true,
|
|
55
57
|
'fetchMarkOHLCV': false,
|
|
@@ -421,7 +423,7 @@ class lykke extends lykke$1 {
|
|
|
421
423
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
422
424
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
423
425
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
424
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
426
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
425
427
|
*/
|
|
426
428
|
await this.loadMarkets();
|
|
427
429
|
const market = this.market(symbol);
|
|
@@ -474,7 +476,7 @@ class lykke extends lykke$1 {
|
|
|
474
476
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
475
477
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
476
478
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
477
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
479
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
478
480
|
*/
|
|
479
481
|
await this.loadMarkets();
|
|
480
482
|
const response = await this.publicGetTickers(params);
|
|
@@ -506,7 +508,7 @@ class lykke extends lykke$1 {
|
|
|
506
508
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
507
509
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
508
510
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
509
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
511
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
510
512
|
*/
|
|
511
513
|
await this.loadMarkets();
|
|
512
514
|
const market = this.market(symbol);
|
|
@@ -611,7 +613,7 @@ class lykke extends lykke$1 {
|
|
|
611
613
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
612
614
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
613
615
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
614
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
616
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
615
617
|
*/
|
|
616
618
|
await this.loadMarkets();
|
|
617
619
|
const market = this.market(symbol);
|
|
@@ -672,7 +674,7 @@ class lykke extends lykke$1 {
|
|
|
672
674
|
* @name lykke#fetchBalance
|
|
673
675
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
674
676
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
675
|
-
* @returns {object} a [balance structure]{@link https://
|
|
677
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
676
678
|
*/
|
|
677
679
|
await this.loadMarkets();
|
|
678
680
|
const response = await this.privateGetBalance(params);
|
|
@@ -772,7 +774,7 @@ class lykke extends lykke$1 {
|
|
|
772
774
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
773
775
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
774
776
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
775
|
-
* @returns {object} an [order structure]{@link https://
|
|
777
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
776
778
|
*/
|
|
777
779
|
await this.loadMarkets();
|
|
778
780
|
const market = this.market(symbol);
|
|
@@ -840,7 +842,7 @@ class lykke extends lykke$1 {
|
|
|
840
842
|
* @param {string} id order id
|
|
841
843
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
842
844
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
843
|
-
* @returns {object} An [order structure]{@link https://
|
|
845
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
844
846
|
*/
|
|
845
847
|
const request = {
|
|
846
848
|
'orderId': id,
|
|
@@ -860,7 +862,7 @@ class lykke extends lykke$1 {
|
|
|
860
862
|
* @description cancel all open orders
|
|
861
863
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
862
864
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
863
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
865
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
864
866
|
*/
|
|
865
867
|
await this.loadMarkets();
|
|
866
868
|
const request = {
|
|
@@ -886,7 +888,7 @@ class lykke extends lykke$1 {
|
|
|
886
888
|
* @description fetches information on an order made by the user
|
|
887
889
|
* @param {string} symbol not used by lykke fetchOrder
|
|
888
890
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
889
|
-
* @returns {object} An [order structure]{@link https://
|
|
891
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
890
892
|
*/
|
|
891
893
|
await this.loadMarkets();
|
|
892
894
|
const request = {
|
|
@@ -924,7 +926,7 @@ class lykke extends lykke$1 {
|
|
|
924
926
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
925
927
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
926
928
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
927
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
929
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
928
930
|
*/
|
|
929
931
|
await this.loadMarkets();
|
|
930
932
|
let market = undefined;
|
|
@@ -972,7 +974,7 @@ class lykke extends lykke$1 {
|
|
|
972
974
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
973
975
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
974
976
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
975
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
977
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
976
978
|
*/
|
|
977
979
|
await this.loadMarkets();
|
|
978
980
|
let market = undefined;
|
|
@@ -1020,7 +1022,7 @@ class lykke extends lykke$1 {
|
|
|
1020
1022
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1021
1023
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1022
1024
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
1023
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1025
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1024
1026
|
*/
|
|
1025
1027
|
await this.loadMarkets();
|
|
1026
1028
|
const request = {
|
|
@@ -1077,7 +1079,7 @@ class lykke extends lykke$1 {
|
|
|
1077
1079
|
* @description fetch the deposit address for a currency associated with this account
|
|
1078
1080
|
* @param {string} code unified currency code
|
|
1079
1081
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
1080
|
-
* @returns {object} an [address structure]{@link https://
|
|
1082
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1081
1083
|
*/
|
|
1082
1084
|
await this.loadMarkets();
|
|
1083
1085
|
const currency = this.currency(code);
|
|
@@ -1176,7 +1178,7 @@ class lykke extends lykke$1 {
|
|
|
1176
1178
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1177
1179
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1178
1180
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
1179
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1181
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1180
1182
|
*/
|
|
1181
1183
|
await this.loadMarkets();
|
|
1182
1184
|
const request = {
|
|
@@ -1219,7 +1221,7 @@ class lykke extends lykke$1 {
|
|
|
1219
1221
|
* @param {string} address the address to withdraw to
|
|
1220
1222
|
* @param {string} tag
|
|
1221
1223
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
1222
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1224
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1223
1225
|
*/
|
|
1224
1226
|
await this.loadMarkets();
|
|
1225
1227
|
this.checkAddress(address);
|
package/dist/cjs/src/mercado.js
CHANGED
|
@@ -35,15 +35,16 @@ class mercado extends mercado$1 {
|
|
|
35
35
|
'createStopMarketOrder': false,
|
|
36
36
|
'createStopOrder': false,
|
|
37
37
|
'fetchBalance': true,
|
|
38
|
-
'fetchBorrowRate': false,
|
|
39
38
|
'fetchBorrowRateHistory': false,
|
|
40
|
-
'
|
|
41
|
-
'
|
|
39
|
+
'fetchCrossBorrowRate': false,
|
|
40
|
+
'fetchCrossBorrowRates': false,
|
|
42
41
|
'fetchFundingHistory': false,
|
|
43
42
|
'fetchFundingRate': false,
|
|
44
43
|
'fetchFundingRateHistory': false,
|
|
45
44
|
'fetchFundingRates': false,
|
|
46
45
|
'fetchIndexOHLCV': false,
|
|
46
|
+
'fetchIsolatedBorrowRate': false,
|
|
47
|
+
'fetchIsolatedBorrowRates': false,
|
|
47
48
|
'fetchLeverage': false,
|
|
48
49
|
'fetchLeverageTiers': false,
|
|
49
50
|
'fetchMarginMode': false,
|
|
@@ -250,7 +251,7 @@ class mercado extends mercado$1 {
|
|
|
250
251
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
251
252
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
252
253
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
253
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
254
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
254
255
|
*/
|
|
255
256
|
await this.loadMarkets();
|
|
256
257
|
const market = this.market(symbol);
|
|
@@ -306,7 +307,7 @@ class mercado extends mercado$1 {
|
|
|
306
307
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
307
308
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
308
309
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
309
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
310
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
310
311
|
*/
|
|
311
312
|
await this.loadMarkets();
|
|
312
313
|
const market = this.market(symbol);
|
|
@@ -372,7 +373,7 @@ class mercado extends mercado$1 {
|
|
|
372
373
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
373
374
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
374
375
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
375
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
376
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
376
377
|
*/
|
|
377
378
|
await this.loadMarkets();
|
|
378
379
|
const market = this.market(symbol);
|
|
@@ -415,7 +416,7 @@ class mercado extends mercado$1 {
|
|
|
415
416
|
* @name mercado#fetchBalance
|
|
416
417
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
417
418
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
418
|
-
* @returns {object} a [balance structure]{@link https://
|
|
419
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
419
420
|
*/
|
|
420
421
|
await this.loadMarkets();
|
|
421
422
|
const response = await this.privatePostGetAccountInfo(params);
|
|
@@ -432,7 +433,7 @@ class mercado extends mercado$1 {
|
|
|
432
433
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
433
434
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
434
435
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
435
|
-
* @returns {object} an [order structure]{@link https://
|
|
436
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
436
437
|
*/
|
|
437
438
|
await this.loadMarkets();
|
|
438
439
|
const market = this.market(symbol);
|
|
@@ -472,9 +473,11 @@ class mercado extends mercado$1 {
|
|
|
472
473
|
* @param {string} id order id
|
|
473
474
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
474
475
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
475
|
-
* @returns {object} An [order structure]{@link https://
|
|
476
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
476
477
|
*/
|
|
477
|
-
|
|
478
|
+
if (symbol === undefined) {
|
|
479
|
+
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
480
|
+
}
|
|
478
481
|
await this.loadMarkets();
|
|
479
482
|
const market = this.market(symbol);
|
|
480
483
|
const request = {
|
|
@@ -596,9 +599,11 @@ class mercado extends mercado$1 {
|
|
|
596
599
|
* @description fetches information on an order made by the user
|
|
597
600
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
598
601
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
599
|
-
* @returns {object} An [order structure]{@link https://
|
|
602
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
600
603
|
*/
|
|
601
|
-
|
|
604
|
+
if (symbol === undefined) {
|
|
605
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
606
|
+
}
|
|
602
607
|
await this.loadMarkets();
|
|
603
608
|
const market = this.market(symbol);
|
|
604
609
|
const request = {
|
|
@@ -620,7 +625,7 @@ class mercado extends mercado$1 {
|
|
|
620
625
|
* @param {string} address the address to withdraw to
|
|
621
626
|
* @param {string} tag
|
|
622
627
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
623
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
628
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
624
629
|
*/
|
|
625
630
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
626
631
|
this.checkAddress(address);
|
|
@@ -767,9 +772,11 @@ class mercado extends mercado$1 {
|
|
|
767
772
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
768
773
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
769
774
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
770
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
775
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
771
776
|
*/
|
|
772
|
-
|
|
777
|
+
if (symbol === undefined) {
|
|
778
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
779
|
+
}
|
|
773
780
|
await this.loadMarkets();
|
|
774
781
|
const market = this.market(symbol);
|
|
775
782
|
const request = {
|
|
@@ -789,9 +796,11 @@ class mercado extends mercado$1 {
|
|
|
789
796
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
790
797
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
791
798
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
792
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
799
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
793
800
|
*/
|
|
794
|
-
|
|
801
|
+
if (symbol === undefined) {
|
|
802
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
803
|
+
}
|
|
795
804
|
await this.loadMarkets();
|
|
796
805
|
const market = this.market(symbol);
|
|
797
806
|
const request = {
|
|
@@ -812,9 +821,11 @@ class mercado extends mercado$1 {
|
|
|
812
821
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
813
822
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
814
823
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
815
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
824
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
816
825
|
*/
|
|
817
|
-
|
|
826
|
+
if (symbol === undefined) {
|
|
827
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
828
|
+
}
|
|
818
829
|
await this.loadMarkets();
|
|
819
830
|
const market = this.market(symbol);
|
|
820
831
|
const request = {
|