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/js/src/luno.js
CHANGED
|
@@ -254,7 +254,7 @@ export default class luno extends Exchange {
|
|
|
254
254
|
* @name luno#fetchAccounts
|
|
255
255
|
* @description fetch all the accounts associated with a profile
|
|
256
256
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
257
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
257
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
258
258
|
*/
|
|
259
259
|
const response = await this.privateGetBalance(params);
|
|
260
260
|
const wallets = this.safeValue(response, 'balance', []);
|
|
@@ -308,7 +308,7 @@ export default class luno extends Exchange {
|
|
|
308
308
|
* @name luno#fetchBalance
|
|
309
309
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
310
310
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
311
|
-
* @returns {object} a [balance structure]{@link https://
|
|
311
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
312
312
|
*/
|
|
313
313
|
await this.loadMarkets();
|
|
314
314
|
const response = await this.privateGetBalance(params);
|
|
@@ -332,7 +332,7 @@ export default class luno extends Exchange {
|
|
|
332
332
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
333
333
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
334
334
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
335
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
335
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
336
336
|
*/
|
|
337
337
|
await this.loadMarkets();
|
|
338
338
|
let method = 'publicGetOrderbook';
|
|
@@ -439,7 +439,7 @@ export default class luno extends Exchange {
|
|
|
439
439
|
* @description fetches information on an order made by the user
|
|
440
440
|
* @param {string} symbol not used by luno fetchOrder
|
|
441
441
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
442
|
-
* @returns {object} An [order structure]{@link https://
|
|
442
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
443
443
|
*/
|
|
444
444
|
await this.loadMarkets();
|
|
445
445
|
const request = {
|
|
@@ -472,7 +472,7 @@ export default class luno extends Exchange {
|
|
|
472
472
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
473
473
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
474
474
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
475
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
475
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
476
476
|
*/
|
|
477
477
|
return await this.fetchOrdersByState(undefined, symbol, since, limit, params);
|
|
478
478
|
}
|
|
@@ -485,7 +485,7 @@ export default class luno extends Exchange {
|
|
|
485
485
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
486
486
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
487
487
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
488
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
488
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
489
489
|
*/
|
|
490
490
|
return await this.fetchOrdersByState('PENDING', symbol, since, limit, params);
|
|
491
491
|
}
|
|
@@ -498,7 +498,7 @@ export default class luno extends Exchange {
|
|
|
498
498
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
499
499
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
500
500
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
501
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
501
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
502
502
|
*/
|
|
503
503
|
return await this.fetchOrdersByState('COMPLETE', symbol, since, limit, params);
|
|
504
504
|
}
|
|
@@ -546,7 +546,7 @@ export default class luno extends Exchange {
|
|
|
546
546
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
547
547
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
548
548
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
549
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
549
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
550
550
|
*/
|
|
551
551
|
await this.loadMarkets();
|
|
552
552
|
symbols = this.marketSymbols(symbols);
|
|
@@ -570,7 +570,7 @@ export default class luno extends Exchange {
|
|
|
570
570
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
571
571
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
572
572
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
573
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
573
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
574
574
|
*/
|
|
575
575
|
await this.loadMarkets();
|
|
576
576
|
const market = this.market(symbol);
|
|
@@ -693,7 +693,7 @@ export default class luno extends Exchange {
|
|
|
693
693
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
694
694
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
695
695
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
696
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
696
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
697
697
|
*/
|
|
698
698
|
await this.loadMarkets();
|
|
699
699
|
const market = this.market(symbol);
|
|
@@ -729,7 +729,7 @@ export default class luno extends Exchange {
|
|
|
729
729
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
730
730
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
731
731
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
732
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
732
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
733
733
|
*/
|
|
734
734
|
if (symbol === undefined) {
|
|
735
735
|
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -777,7 +777,7 @@ export default class luno extends Exchange {
|
|
|
777
777
|
* @description fetch the trading fees for a market
|
|
778
778
|
* @param {string} symbol unified market symbol
|
|
779
779
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
780
|
-
* @returns {object} a [fee structure]{@link https://
|
|
780
|
+
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
781
781
|
*/
|
|
782
782
|
await this.loadMarkets();
|
|
783
783
|
const market = this.market(symbol);
|
|
@@ -808,9 +808,9 @@ export default class luno extends Exchange {
|
|
|
808
808
|
* @param {string} type 'market' or 'limit'
|
|
809
809
|
* @param {string} side 'buy' or 'sell'
|
|
810
810
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
811
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
811
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
812
812
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
813
|
-
* @returns {object} an [order structure]{@link https://
|
|
813
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
814
814
|
*/
|
|
815
815
|
await this.loadMarkets();
|
|
816
816
|
let method = 'privatePost';
|
|
@@ -849,7 +849,7 @@ export default class luno extends Exchange {
|
|
|
849
849
|
* @param {string} id order id
|
|
850
850
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
851
851
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
852
|
-
* @returns {object} An [order structure]{@link https://
|
|
852
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
853
853
|
*/
|
|
854
854
|
await this.loadMarkets();
|
|
855
855
|
const request = {
|
|
@@ -881,7 +881,7 @@ export default class luno extends Exchange {
|
|
|
881
881
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
882
882
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
883
883
|
* @param {object} [params] extra parameters specific to the luno api endpoint
|
|
884
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
884
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
885
885
|
*/
|
|
886
886
|
await this.loadMarkets();
|
|
887
887
|
await this.loadAccounts();
|
package/js/src/lykke.js
CHANGED
|
@@ -422,7 +422,7 @@ export default class lykke extends Exchange {
|
|
|
422
422
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
423
423
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
424
424
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
425
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
425
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
426
426
|
*/
|
|
427
427
|
await this.loadMarkets();
|
|
428
428
|
const market = this.market(symbol);
|
|
@@ -475,7 +475,7 @@ export default class lykke extends Exchange {
|
|
|
475
475
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
476
476
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
477
477
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
478
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
478
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
479
479
|
*/
|
|
480
480
|
await this.loadMarkets();
|
|
481
481
|
const response = await this.publicGetTickers(params);
|
|
@@ -507,7 +507,7 @@ export default class lykke extends Exchange {
|
|
|
507
507
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
508
508
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
509
509
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
510
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
510
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
511
511
|
*/
|
|
512
512
|
await this.loadMarkets();
|
|
513
513
|
const market = this.market(symbol);
|
|
@@ -612,7 +612,7 @@ export default class lykke extends Exchange {
|
|
|
612
612
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
613
613
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
614
614
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
615
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
615
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
616
616
|
*/
|
|
617
617
|
await this.loadMarkets();
|
|
618
618
|
const market = this.market(symbol);
|
|
@@ -673,7 +673,7 @@ export default class lykke extends Exchange {
|
|
|
673
673
|
* @name lykke#fetchBalance
|
|
674
674
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
675
675
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
676
|
-
* @returns {object} a [balance structure]{@link https://
|
|
676
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
677
677
|
*/
|
|
678
678
|
await this.loadMarkets();
|
|
679
679
|
const response = await this.privateGetBalance(params);
|
|
@@ -771,9 +771,9 @@ export default class lykke extends Exchange {
|
|
|
771
771
|
* @param {string} type 'market' or 'limit'
|
|
772
772
|
* @param {string} side 'buy' or 'sell'
|
|
773
773
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
774
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
774
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
775
775
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
776
|
-
* @returns {object} an [order structure]{@link https://
|
|
776
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
777
777
|
*/
|
|
778
778
|
await this.loadMarkets();
|
|
779
779
|
const market = this.market(symbol);
|
|
@@ -841,7 +841,7 @@ export default class lykke extends Exchange {
|
|
|
841
841
|
* @param {string} id order id
|
|
842
842
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
843
843
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
844
|
-
* @returns {object} An [order structure]{@link https://
|
|
844
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
845
845
|
*/
|
|
846
846
|
const request = {
|
|
847
847
|
'orderId': id,
|
|
@@ -861,7 +861,7 @@ export default class lykke extends Exchange {
|
|
|
861
861
|
* @description cancel all open orders
|
|
862
862
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
863
863
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
864
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
864
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
865
865
|
*/
|
|
866
866
|
await this.loadMarkets();
|
|
867
867
|
const request = {
|
|
@@ -887,7 +887,7 @@ export default class lykke extends Exchange {
|
|
|
887
887
|
* @description fetches information on an order made by the user
|
|
888
888
|
* @param {string} symbol not used by lykke fetchOrder
|
|
889
889
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
890
|
-
* @returns {object} An [order structure]{@link https://
|
|
890
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
891
891
|
*/
|
|
892
892
|
await this.loadMarkets();
|
|
893
893
|
const request = {
|
|
@@ -925,7 +925,7 @@ export default class lykke extends Exchange {
|
|
|
925
925
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
926
926
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
927
927
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
928
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
928
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
929
929
|
*/
|
|
930
930
|
await this.loadMarkets();
|
|
931
931
|
let market = undefined;
|
|
@@ -973,7 +973,7 @@ export default class lykke extends Exchange {
|
|
|
973
973
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
974
974
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
975
975
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
976
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
976
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
977
977
|
*/
|
|
978
978
|
await this.loadMarkets();
|
|
979
979
|
let market = undefined;
|
|
@@ -1021,7 +1021,7 @@ export default class lykke extends Exchange {
|
|
|
1021
1021
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1022
1022
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1023
1023
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
1024
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1024
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1025
1025
|
*/
|
|
1026
1026
|
await this.loadMarkets();
|
|
1027
1027
|
const request = {
|
|
@@ -1078,7 +1078,7 @@ export default class lykke extends Exchange {
|
|
|
1078
1078
|
* @description fetch the deposit address for a currency associated with this account
|
|
1079
1079
|
* @param {string} code unified currency code
|
|
1080
1080
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
1081
|
-
* @returns {object} an [address structure]{@link https://
|
|
1081
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1082
1082
|
*/
|
|
1083
1083
|
await this.loadMarkets();
|
|
1084
1084
|
const currency = this.currency(code);
|
|
@@ -1175,7 +1175,7 @@ export default class lykke extends Exchange {
|
|
|
1175
1175
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1176
1176
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1177
1177
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
1178
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1178
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1179
1179
|
*/
|
|
1180
1180
|
await this.loadMarkets();
|
|
1181
1181
|
const request = {
|
|
@@ -1218,7 +1218,7 @@ export default class lykke extends Exchange {
|
|
|
1218
1218
|
* @param {string} address the address to withdraw to
|
|
1219
1219
|
* @param {string} tag
|
|
1220
1220
|
* @param {object} [params] extra parameters specific to the lykke api endpoint
|
|
1221
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1221
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1222
1222
|
*/
|
|
1223
1223
|
await this.loadMarkets();
|
|
1224
1224
|
this.checkAddress(address);
|
package/js/src/mercado.js
CHANGED
|
@@ -252,7 +252,7 @@ export default class mercado extends Exchange {
|
|
|
252
252
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
253
253
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
254
254
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
255
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
255
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
256
256
|
*/
|
|
257
257
|
await this.loadMarkets();
|
|
258
258
|
const market = this.market(symbol);
|
|
@@ -308,7 +308,7 @@ export default class mercado extends Exchange {
|
|
|
308
308
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
309
309
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
310
310
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
311
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
311
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
312
312
|
*/
|
|
313
313
|
await this.loadMarkets();
|
|
314
314
|
const market = this.market(symbol);
|
|
@@ -374,7 +374,7 @@ export default class mercado extends Exchange {
|
|
|
374
374
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
375
375
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
376
376
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
377
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
377
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
378
378
|
*/
|
|
379
379
|
await this.loadMarkets();
|
|
380
380
|
const market = this.market(symbol);
|
|
@@ -417,7 +417,7 @@ export default class mercado extends Exchange {
|
|
|
417
417
|
* @name mercado#fetchBalance
|
|
418
418
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
419
419
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
420
|
-
* @returns {object} a [balance structure]{@link https://
|
|
420
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
421
421
|
*/
|
|
422
422
|
await this.loadMarkets();
|
|
423
423
|
const response = await this.privatePostGetAccountInfo(params);
|
|
@@ -432,9 +432,9 @@ export default class mercado extends Exchange {
|
|
|
432
432
|
* @param {string} type 'market' or 'limit'
|
|
433
433
|
* @param {string} side 'buy' or 'sell'
|
|
434
434
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
435
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
435
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
436
436
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
437
|
-
* @returns {object} an [order structure]{@link https://
|
|
437
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
438
438
|
*/
|
|
439
439
|
await this.loadMarkets();
|
|
440
440
|
const market = this.market(symbol);
|
|
@@ -474,7 +474,7 @@ export default class mercado extends Exchange {
|
|
|
474
474
|
* @param {string} id order id
|
|
475
475
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
476
476
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
477
|
-
* @returns {object} An [order structure]{@link https://
|
|
477
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
478
478
|
*/
|
|
479
479
|
if (symbol === undefined) {
|
|
480
480
|
throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -600,7 +600,7 @@ export default class mercado extends Exchange {
|
|
|
600
600
|
* @description fetches information on an order made by the user
|
|
601
601
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
602
602
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
603
|
-
* @returns {object} An [order structure]{@link https://
|
|
603
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
604
604
|
*/
|
|
605
605
|
if (symbol === undefined) {
|
|
606
606
|
throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -626,7 +626,7 @@ export default class mercado extends Exchange {
|
|
|
626
626
|
* @param {string} address the address to withdraw to
|
|
627
627
|
* @param {string} tag
|
|
628
628
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
629
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
629
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
630
630
|
*/
|
|
631
631
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
632
632
|
this.checkAddress(address);
|
|
@@ -772,7 +772,7 @@ export default class mercado extends Exchange {
|
|
|
772
772
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
773
773
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
774
774
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
775
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
775
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
776
776
|
*/
|
|
777
777
|
if (symbol === undefined) {
|
|
778
778
|
throw new ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
@@ -796,7 +796,7 @@ export default class mercado extends Exchange {
|
|
|
796
796
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
797
797
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
798
798
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
799
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
799
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
800
800
|
*/
|
|
801
801
|
if (symbol === undefined) {
|
|
802
802
|
throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -821,7 +821,7 @@ export default class mercado extends Exchange {
|
|
|
821
821
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
822
822
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
823
823
|
* @param {object} [params] extra parameters specific to the mercado api endpoint
|
|
824
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
824
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
825
825
|
*/
|
|
826
826
|
if (symbol === undefined) {
|
|
827
827
|
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|