ccxt 4.0.74 → 4.0.76
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 +2635 -2383
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +11 -11
- package/dist/cjs/src/alpaca.js +7 -7
- package/dist/cjs/src/ascendex.js +25 -25
- package/dist/cjs/src/base/Exchange.js +4 -4
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +56 -56
- package/dist/cjs/src/bingx.js +85 -40
- package/dist/cjs/src/bit2c.js +12 -12
- package/dist/cjs/src/bitbank.js +13 -13
- package/dist/cjs/src/bitbns.js +14 -14
- package/dist/cjs/src/bitfinex.js +21 -21
- package/dist/cjs/src/bitfinex2.js +29 -29
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +11 -11
- package/dist/cjs/src/bitget.js +39 -39
- package/dist/cjs/src/bithumb.js +11 -11
- package/dist/cjs/src/bitmart.js +44 -31
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +21 -21
- package/dist/cjs/src/bitpanda.js +21 -21
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +21 -21
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bitstamp1.js +8 -8
- package/dist/cjs/src/bittrex.js +27 -27
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/bkex.js +21 -21
- package/dist/cjs/src/bl3p.js +8 -8
- package/dist/cjs/src/blockchaincom.js +21 -21
- package/dist/cjs/src/btcalpha.js +15 -15
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +17 -17
- package/dist/cjs/src/btctradeua.js +8 -8
- package/dist/cjs/src/btcturk.js +11 -11
- package/dist/cjs/src/bybit.js +153 -121
- package/dist/cjs/src/cex.js +14 -14
- package/dist/cjs/src/coinbase.js +23 -23
- package/dist/cjs/src/coinbasepro.js +24 -24
- package/dist/cjs/src/coincheck.js +12 -12
- package/dist/cjs/src/coinex.js +87 -41
- package/dist/cjs/src/coinfalcon.js +16 -16
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +12 -12
- package/dist/cjs/src/coinsph.js +27 -22
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +29 -29
- package/dist/cjs/src/currencycom.js +20 -20
- package/dist/cjs/src/delta.js +25 -25
- package/dist/cjs/src/deribit.js +30 -30
- package/dist/cjs/src/digifinex.js +31 -31
- package/dist/cjs/src/exmo.js +26 -26
- package/dist/cjs/src/gate.js +38 -38
- package/dist/cjs/src/gemini.js +17 -17
- package/dist/cjs/src/hitbtc.js +34 -34
- package/dist/cjs/src/hollaex.js +23 -23
- package/dist/cjs/src/huobi.js +45 -45
- package/dist/cjs/src/huobijp.js +20 -20
- package/dist/cjs/src/idex.js +19 -19
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +27 -27
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +33 -33
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +12 -12
- package/dist/cjs/src/latoken.js +17 -17
- package/dist/cjs/src/lbank.js +12 -12
- package/dist/cjs/src/lbank2.js +23 -23
- package/dist/cjs/src/luno.js +16 -16
- package/dist/cjs/src/lykke.js +16 -16
- package/dist/cjs/src/mercado.js +12 -12
- package/dist/cjs/src/mexc.js +44 -42
- package/dist/cjs/src/ndax.js +20 -20
- package/dist/cjs/src/novadax.js +20 -20
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okcoin.js +21 -21
- package/dist/cjs/src/okx.js +52 -52
- package/dist/cjs/src/paymium.js +11 -11
- package/dist/cjs/src/phemex.js +26 -26
- package/dist/cjs/src/poloniex.js +237 -136
- package/dist/cjs/src/poloniexfutures.js +18 -18
- 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/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +6 -6
- package/dist/cjs/src/pro/bitget.js +6 -6
- package/dist/cjs/src/pro/bitmart.js +4 -4
- 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 +3 -3
- package/dist/cjs/src/pro/bittrex.js +6 -6
- package/dist/cjs/src/pro/bitvavo.js +5 -5
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/bybit.js +6 -6
- package/dist/cjs/src/pro/cex.js +7 -7
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +6 -6
- package/dist/cjs/src/pro/coinex.js +5 -5
- package/dist/cjs/src/pro/cryptocom.js +10 -10
- 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 +5 -5
- 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 +3 -3
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/huobi.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 +12 -12
- package/dist/cjs/src/pro/krakenfutures.js +7 -7
- package/dist/cjs/src/pro/kucoin.js +6 -6
- package/dist/cjs/src/pro/kucoinfutures.js +6 -5
- 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 +19 -18
- 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 +6 -6
- package/dist/cjs/src/pro/whitebit.js +6 -6
- package/dist/cjs/src/probit.js +19 -19
- package/dist/cjs/src/tidex.js +13 -13
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +18 -18
- package/dist/cjs/src/upbit.js +20 -20
- package/dist/cjs/src/wavesexchange.js +16 -16
- package/dist/cjs/src/wazirx.js +12 -12
- package/dist/cjs/src/whitebit.js +24 -24
- package/dist/cjs/src/woo.js +30 -24
- package/dist/cjs/src/yobit.js +16 -16
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +15 -15
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bingx.d.ts +2 -0
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/coinsph.d.ts +5 -0
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +11 -11
- package/js/src/alpaca.js +7 -7
- package/js/src/ascendex.js +25 -25
- package/js/src/base/Exchange.js +4 -4
- package/js/src/bigone.js +19 -19
- package/js/src/binance.js +56 -56
- package/js/src/bingx.d.ts +1 -0
- package/js/src/bingx.js +85 -40
- package/js/src/bit2c.js +12 -12
- package/js/src/bitbank.js +13 -13
- package/js/src/bitbns.js +14 -14
- package/js/src/bitfinex.js +21 -21
- package/js/src/bitfinex2.js +29 -29
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +11 -11
- package/js/src/bitget.js +39 -39
- package/js/src/bithumb.js +11 -11
- package/js/src/bitmart.js +44 -31
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.js +21 -21
- package/js/src/bitpanda.js +21 -21
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.js +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bitstamp1.js +8 -8
- package/js/src/bittrex.js +27 -27
- package/js/src/bitvavo.js +19 -19
- package/js/src/bkex.js +21 -21
- package/js/src/bl3p.js +8 -8
- package/js/src/blockchaincom.js +21 -21
- package/js/src/btcalpha.js +15 -15
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.js +17 -17
- package/js/src/btctradeua.js +8 -8
- package/js/src/btcturk.js +11 -11
- package/js/src/bybit.js +153 -121
- package/js/src/cex.js +14 -14
- package/js/src/coinbase.js +23 -23
- package/js/src/coinbasepro.js +24 -24
- package/js/src/coincheck.js +12 -12
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +87 -41
- package/js/src/coinfalcon.js +16 -16
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +12 -12
- package/js/src/coinsph.js +27 -22
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.js +29 -29
- package/js/src/currencycom.js +20 -20
- package/js/src/delta.js +25 -25
- package/js/src/deribit.js +30 -30
- package/js/src/digifinex.js +31 -31
- package/js/src/exmo.js +26 -26
- package/js/src/gate.js +38 -38
- package/js/src/gemini.js +17 -17
- package/js/src/hitbtc.js +34 -34
- package/js/src/hollaex.js +23 -23
- package/js/src/huobi.js +45 -45
- package/js/src/huobijp.js +20 -20
- package/js/src/idex.js +19 -19
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.js +27 -27
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +33 -33
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +12 -12
- package/js/src/latoken.js +17 -17
- package/js/src/lbank.js +12 -12
- package/js/src/lbank2.js +23 -23
- package/js/src/luno.js +16 -16
- package/js/src/lykke.js +16 -16
- package/js/src/mercado.js +12 -12
- package/js/src/mexc.js +45 -43
- package/js/src/ndax.js +20 -20
- package/js/src/novadax.js +20 -20
- package/js/src/oceanex.js +16 -16
- package/js/src/okcoin.js +21 -21
- package/js/src/okx.js +52 -52
- package/js/src/paymium.js +11 -11
- package/js/src/phemex.js +26 -26
- package/js/src/poloniex.d.ts +1 -1
- package/js/src/poloniex.js +237 -136
- package/js/src/poloniexfutures.js +18 -18
- 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/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +6 -6
- package/js/src/pro/bitmart.js +4 -4
- 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 +3 -3
- package/js/src/pro/bittrex.js +6 -6
- package/js/src/pro/bitvavo.js +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/bybit.js +6 -6
- package/js/src/pro/cex.js +7 -7
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +6 -6
- package/js/src/pro/coinex.js +5 -5
- package/js/src/pro/cryptocom.js +10 -10
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.js +3 -3
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/huobi.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 +12 -12
- package/js/src/pro/krakenfutures.js +7 -7
- package/js/src/pro/kucoin.js +6 -6
- package/js/src/pro/kucoinfutures.js +6 -5
- 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.d.ts +1 -1
- package/js/src/pro/okx.js +19 -18
- 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 +6 -6
- package/js/src/pro/whitebit.js +6 -6
- package/js/src/probit.js +19 -19
- package/js/src/tidex.js +13 -13
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.js +18 -18
- package/js/src/upbit.js +20 -20
- package/js/src/wavesexchange.js +16 -16
- package/js/src/wazirx.js +12 -12
- package/js/src/whitebit.js +24 -24
- package/js/src/woo.js +30 -24
- package/js/src/yobit.js +16 -16
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +15 -15
- package/package.json +1 -1
- package/skip-tests.json +2 -0
package/dist/cjs/src/luno.js
CHANGED
|
@@ -251,7 +251,7 @@ class luno extends luno$1 {
|
|
|
251
251
|
* @name luno#fetchAccounts
|
|
252
252
|
* @description fetch all the accounts associated with a profile
|
|
253
253
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
254
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
254
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
255
255
|
*/
|
|
256
256
|
const response = await this.privateGetBalance(params);
|
|
257
257
|
const wallets = this.safeValue(response, 'balance', []);
|
|
@@ -305,7 +305,7 @@ class luno extends luno$1 {
|
|
|
305
305
|
* @name luno#fetchBalance
|
|
306
306
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
307
307
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
308
|
-
* @returns {object} a [balance structure]{@link https://
|
|
308
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
309
309
|
*/
|
|
310
310
|
await this.loadMarkets();
|
|
311
311
|
const response = await this.privateGetBalance(params);
|
|
@@ -329,7 +329,7 @@ class luno extends luno$1 {
|
|
|
329
329
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
330
330
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
331
331
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
332
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
332
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
333
333
|
*/
|
|
334
334
|
await this.loadMarkets();
|
|
335
335
|
let method = 'publicGetOrderbook';
|
|
@@ -436,7 +436,7 @@ class luno extends luno$1 {
|
|
|
436
436
|
* @description fetches information on an order made by the user
|
|
437
437
|
* @param {string} symbol not used by luno fetchOrder
|
|
438
438
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
439
|
-
* @returns {object} An [order structure]{@link https://
|
|
439
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
440
440
|
*/
|
|
441
441
|
await this.loadMarkets();
|
|
442
442
|
const request = {
|
|
@@ -469,7 +469,7 @@ class luno extends luno$1 {
|
|
|
469
469
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
470
470
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
471
471
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
472
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
472
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
473
473
|
*/
|
|
474
474
|
return await this.fetchOrdersByState(undefined, symbol, since, limit, params);
|
|
475
475
|
}
|
|
@@ -482,7 +482,7 @@ class luno extends luno$1 {
|
|
|
482
482
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
483
483
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
484
484
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
485
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
485
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
486
486
|
*/
|
|
487
487
|
return await this.fetchOrdersByState('PENDING', symbol, since, limit, params);
|
|
488
488
|
}
|
|
@@ -495,7 +495,7 @@ class luno extends luno$1 {
|
|
|
495
495
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
496
496
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
497
497
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
498
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
498
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
499
499
|
*/
|
|
500
500
|
return await this.fetchOrdersByState('COMPLETE', symbol, since, limit, params);
|
|
501
501
|
}
|
|
@@ -543,7 +543,7 @@ class luno extends luno$1 {
|
|
|
543
543
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
544
544
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
545
545
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
546
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
546
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
547
547
|
*/
|
|
548
548
|
await this.loadMarkets();
|
|
549
549
|
symbols = this.marketSymbols(symbols);
|
|
@@ -567,7 +567,7 @@ class luno extends luno$1 {
|
|
|
567
567
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
568
568
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
569
569
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
570
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
570
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
571
571
|
*/
|
|
572
572
|
await this.loadMarkets();
|
|
573
573
|
const market = this.market(symbol);
|
|
@@ -690,7 +690,7 @@ class luno extends luno$1 {
|
|
|
690
690
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
691
691
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
692
692
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
693
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
693
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
694
694
|
*/
|
|
695
695
|
await this.loadMarkets();
|
|
696
696
|
const market = this.market(symbol);
|
|
@@ -726,7 +726,7 @@ class luno extends luno$1 {
|
|
|
726
726
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
727
727
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
728
728
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
729
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
729
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
730
730
|
*/
|
|
731
731
|
if (symbol === undefined) {
|
|
732
732
|
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -774,7 +774,7 @@ class luno extends luno$1 {
|
|
|
774
774
|
* @description fetch the trading fees for a market
|
|
775
775
|
* @param {string} symbol unified market symbol
|
|
776
776
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
777
|
-
* @returns {object} a [fee structure]{@link https://
|
|
777
|
+
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
778
778
|
*/
|
|
779
779
|
await this.loadMarkets();
|
|
780
780
|
const market = this.market(symbol);
|
|
@@ -805,9 +805,9 @@ class luno extends luno$1 {
|
|
|
805
805
|
* @param {string} type 'market' or 'limit'
|
|
806
806
|
* @param {string} side 'buy' or 'sell'
|
|
807
807
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
808
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
808
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
809
809
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
810
|
-
* @returns {object} an [order structure]{@link https://
|
|
810
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
811
811
|
*/
|
|
812
812
|
await this.loadMarkets();
|
|
813
813
|
let method = 'privatePost';
|
|
@@ -846,7 +846,7 @@ class luno extends luno$1 {
|
|
|
846
846
|
* @param {string} id order id
|
|
847
847
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
848
848
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
849
|
-
* @returns {object} An [order structure]{@link https://
|
|
849
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
850
850
|
*/
|
|
851
851
|
await this.loadMarkets();
|
|
852
852
|
const request = {
|
|
@@ -878,7 +878,7 @@ class luno extends luno$1 {
|
|
|
878
878
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
879
879
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
880
880
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
881
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
881
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
882
882
|
*/
|
|
883
883
|
await this.loadMarkets();
|
|
884
884
|
await this.loadAccounts();
|
package/dist/cjs/src/lykke.js
CHANGED
|
@@ -419,7 +419,7 @@ class lykke extends lykke$1 {
|
|
|
419
419
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
420
420
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
421
421
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
422
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
422
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
423
423
|
*/
|
|
424
424
|
await this.loadMarkets();
|
|
425
425
|
const market = this.market(symbol);
|
|
@@ -472,7 +472,7 @@ class lykke extends lykke$1 {
|
|
|
472
472
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
473
473
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
474
474
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
475
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
475
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
476
476
|
*/
|
|
477
477
|
await this.loadMarkets();
|
|
478
478
|
const response = await this.publicGetTickers(params);
|
|
@@ -504,7 +504,7 @@ class lykke extends lykke$1 {
|
|
|
504
504
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
505
505
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
506
506
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
507
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
507
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
508
508
|
*/
|
|
509
509
|
await this.loadMarkets();
|
|
510
510
|
const market = this.market(symbol);
|
|
@@ -609,7 +609,7 @@ class lykke extends lykke$1 {
|
|
|
609
609
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
610
610
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
611
611
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
612
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
612
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
613
613
|
*/
|
|
614
614
|
await this.loadMarkets();
|
|
615
615
|
const market = this.market(symbol);
|
|
@@ -670,7 +670,7 @@ class lykke extends lykke$1 {
|
|
|
670
670
|
* @name lykke#fetchBalance
|
|
671
671
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
672
672
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
673
|
-
* @returns {object} a [balance structure]{@link https://
|
|
673
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
674
674
|
*/
|
|
675
675
|
await this.loadMarkets();
|
|
676
676
|
const response = await this.privateGetBalance(params);
|
|
@@ -768,9 +768,9 @@ class lykke extends lykke$1 {
|
|
|
768
768
|
* @param {string} type 'market' or 'limit'
|
|
769
769
|
* @param {string} side 'buy' or 'sell'
|
|
770
770
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
771
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
771
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
772
772
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
773
|
-
* @returns {object} an [order structure]{@link https://
|
|
773
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
774
774
|
*/
|
|
775
775
|
await this.loadMarkets();
|
|
776
776
|
const market = this.market(symbol);
|
|
@@ -838,7 +838,7 @@ class lykke extends lykke$1 {
|
|
|
838
838
|
* @param {string} id order id
|
|
839
839
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
840
840
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
841
|
-
* @returns {object} An [order structure]{@link https://
|
|
841
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
842
842
|
*/
|
|
843
843
|
const request = {
|
|
844
844
|
'orderId': id,
|
|
@@ -858,7 +858,7 @@ class lykke extends lykke$1 {
|
|
|
858
858
|
* @description cancel all open orders
|
|
859
859
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
860
860
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
861
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
861
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
862
862
|
*/
|
|
863
863
|
await this.loadMarkets();
|
|
864
864
|
const request = {
|
|
@@ -884,7 +884,7 @@ class lykke extends lykke$1 {
|
|
|
884
884
|
* @description fetches information on an order made by the user
|
|
885
885
|
* @param {string} symbol not used by lykke fetchOrder
|
|
886
886
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
887
|
-
* @returns {object} An [order structure]{@link https://
|
|
887
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
888
888
|
*/
|
|
889
889
|
await this.loadMarkets();
|
|
890
890
|
const request = {
|
|
@@ -922,7 +922,7 @@ class lykke extends lykke$1 {
|
|
|
922
922
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
923
923
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
924
924
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
925
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
925
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
926
926
|
*/
|
|
927
927
|
await this.loadMarkets();
|
|
928
928
|
let market = undefined;
|
|
@@ -970,7 +970,7 @@ class lykke extends lykke$1 {
|
|
|
970
970
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
971
971
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
972
972
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
973
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
973
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
974
974
|
*/
|
|
975
975
|
await this.loadMarkets();
|
|
976
976
|
let market = undefined;
|
|
@@ -1018,7 +1018,7 @@ class lykke extends lykke$1 {
|
|
|
1018
1018
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1019
1019
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1020
1020
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
1021
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1021
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1022
1022
|
*/
|
|
1023
1023
|
await this.loadMarkets();
|
|
1024
1024
|
const request = {
|
|
@@ -1075,7 +1075,7 @@ class lykke extends lykke$1 {
|
|
|
1075
1075
|
* @description fetch the deposit address for a currency associated with this account
|
|
1076
1076
|
* @param {string} code unified currency code
|
|
1077
1077
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
1078
|
-
* @returns {object} an [address structure]{@link https://
|
|
1078
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1079
1079
|
*/
|
|
1080
1080
|
await this.loadMarkets();
|
|
1081
1081
|
const currency = this.currency(code);
|
|
@@ -1172,7 +1172,7 @@ class lykke extends lykke$1 {
|
|
|
1172
1172
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1173
1173
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1174
1174
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
1175
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1175
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1176
1176
|
*/
|
|
1177
1177
|
await this.loadMarkets();
|
|
1178
1178
|
const request = {
|
|
@@ -1215,7 +1215,7 @@ class lykke extends lykke$1 {
|
|
|
1215
1215
|
* @param {string} address the address to withdraw to
|
|
1216
1216
|
* @param {string} tag
|
|
1217
1217
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
1218
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1218
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1219
1219
|
*/
|
|
1220
1220
|
await this.loadMarkets();
|
|
1221
1221
|
this.checkAddress(address);
|
package/dist/cjs/src/mercado.js
CHANGED
|
@@ -249,7 +249,7 @@ class mercado extends mercado$1 {
|
|
|
249
249
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
250
250
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
251
251
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
252
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
252
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
253
253
|
*/
|
|
254
254
|
await this.loadMarkets();
|
|
255
255
|
const market = this.market(symbol);
|
|
@@ -305,7 +305,7 @@ class mercado extends mercado$1 {
|
|
|
305
305
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
306
306
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
307
307
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
308
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
308
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
309
309
|
*/
|
|
310
310
|
await this.loadMarkets();
|
|
311
311
|
const market = this.market(symbol);
|
|
@@ -371,7 +371,7 @@ class mercado extends mercado$1 {
|
|
|
371
371
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
372
372
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
373
373
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
374
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
374
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
375
375
|
*/
|
|
376
376
|
await this.loadMarkets();
|
|
377
377
|
const market = this.market(symbol);
|
|
@@ -414,7 +414,7 @@ class mercado extends mercado$1 {
|
|
|
414
414
|
* @name mercado#fetchBalance
|
|
415
415
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
416
416
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
417
|
-
* @returns {object} a [balance structure]{@link https://
|
|
417
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
418
418
|
*/
|
|
419
419
|
await this.loadMarkets();
|
|
420
420
|
const response = await this.privatePostGetAccountInfo(params);
|
|
@@ -429,9 +429,9 @@ class mercado extends mercado$1 {
|
|
|
429
429
|
* @param {string} type 'market' or 'limit'
|
|
430
430
|
* @param {string} side 'buy' or 'sell'
|
|
431
431
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
432
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
432
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
433
433
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
434
|
-
* @returns {object} an [order structure]{@link https://
|
|
434
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
435
435
|
*/
|
|
436
436
|
await this.loadMarkets();
|
|
437
437
|
const market = this.market(symbol);
|
|
@@ -471,7 +471,7 @@ class mercado extends mercado$1 {
|
|
|
471
471
|
* @param {string} id order id
|
|
472
472
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
473
473
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
474
|
-
* @returns {object} An [order structure]{@link https://
|
|
474
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
475
475
|
*/
|
|
476
476
|
if (symbol === undefined) {
|
|
477
477
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -597,7 +597,7 @@ class mercado extends mercado$1 {
|
|
|
597
597
|
* @description fetches information on an order made by the user
|
|
598
598
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
599
599
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
600
|
-
* @returns {object} An [order structure]{@link https://
|
|
600
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
601
601
|
*/
|
|
602
602
|
if (symbol === undefined) {
|
|
603
603
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -623,7 +623,7 @@ class mercado extends mercado$1 {
|
|
|
623
623
|
* @param {string} address the address to withdraw to
|
|
624
624
|
* @param {string} tag
|
|
625
625
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
626
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
626
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
627
627
|
*/
|
|
628
628
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
629
629
|
this.checkAddress(address);
|
|
@@ -769,7 +769,7 @@ class mercado extends mercado$1 {
|
|
|
769
769
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
770
770
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
771
771
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
772
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
772
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
773
773
|
*/
|
|
774
774
|
if (symbol === undefined) {
|
|
775
775
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
@@ -793,7 +793,7 @@ class mercado extends mercado$1 {
|
|
|
793
793
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
794
794
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
795
795
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
796
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
796
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
797
797
|
*/
|
|
798
798
|
if (symbol === undefined) {
|
|
799
799
|
throw new errors.ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -818,7 +818,7 @@ class mercado extends mercado$1 {
|
|
|
818
818
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
819
819
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
820
820
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
821
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
821
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
822
822
|
*/
|
|
823
823
|
if (symbol === undefined) {
|
|
824
824
|
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|