ccxt 4.0.73 → 4.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -11
- package/dist/ccxt.browser.js +2058 -1943
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +9 -9
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +22 -22
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +17 -17
- package/dist/cjs/src/binance.js +51 -51
- package/dist/cjs/src/bingx.js +25 -26
- package/dist/cjs/src/bit2c.js +10 -10
- package/dist/cjs/src/bitbank.js +11 -11
- package/dist/cjs/src/bitbns.js +12 -12
- package/dist/cjs/src/bitfinex.js +19 -19
- package/dist/cjs/src/bitfinex2.js +25 -25
- package/dist/cjs/src/bitflyer.js +15 -15
- package/dist/cjs/src/bitforex.js +9 -9
- package/dist/cjs/src/bitget.js +34 -34
- package/dist/cjs/src/bithumb.js +9 -9
- package/dist/cjs/src/bitmart.js +42 -29
- package/dist/cjs/src/bitmex.js +19 -19
- package/dist/cjs/src/bitopro.js +18 -18
- package/dist/cjs/src/bitpanda.js +19 -19
- package/dist/cjs/src/bitrue.js +15 -15
- package/dist/cjs/src/bitso.js +19 -19
- package/dist/cjs/src/bitstamp.js +19 -19
- package/dist/cjs/src/bitstamp1.js +6 -6
- package/dist/cjs/src/bittrex.js +24 -24
- package/dist/cjs/src/bitvavo.js +16 -16
- package/dist/cjs/src/bkex.js +17 -17
- package/dist/cjs/src/bl3p.js +6 -6
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +13 -13
- package/dist/cjs/src/btcbox.js +8 -8
- package/dist/cjs/src/btcmarkets.js +15 -15
- package/dist/cjs/src/btctradeua.js +6 -6
- package/dist/cjs/src/btcturk.js +9 -9
- package/dist/cjs/src/bybit.js +148 -116
- package/dist/cjs/src/cex.js +12 -12
- package/dist/cjs/src/coinbase.js +20 -20
- package/dist/cjs/src/coinbasepro.js +22 -22
- package/dist/cjs/src/coincheck.js +10 -10
- package/dist/cjs/src/coinex.js +81 -35
- package/dist/cjs/src/coinfalcon.js +14 -14
- package/dist/cjs/src/coinmate.js +12 -12
- package/dist/cjs/src/coinone.js +10 -10
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +6 -6
- package/dist/cjs/src/cryptocom.js +24 -24
- package/dist/cjs/src/currencycom.js +18 -18
- package/dist/cjs/src/delta.js +23 -23
- package/dist/cjs/src/deribit.js +27 -27
- package/dist/cjs/src/digifinex.js +27 -27
- package/dist/cjs/src/exmo.js +24 -24
- package/dist/cjs/src/gate.js +34 -34
- package/dist/cjs/src/gemini.js +14 -14
- package/dist/cjs/src/hitbtc.js +30 -30
- package/dist/cjs/src/hollaex.js +20 -20
- package/dist/cjs/src/huobi.js +40 -40
- package/dist/cjs/src/huobijp.js +18 -18
- package/dist/cjs/src/idex.js +17 -17
- package/dist/cjs/src/independentreserve.js +10 -10
- package/dist/cjs/src/indodax.js +12 -12
- package/dist/cjs/src/kraken.js +25 -25
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +29 -29
- package/dist/cjs/src/kucoinfutures.js +19 -19
- package/dist/cjs/src/kuna.js +10 -10
- package/dist/cjs/src/latoken.js +15 -15
- package/dist/cjs/src/lbank.js +10 -10
- package/dist/cjs/src/lbank2.js +21 -21
- package/dist/cjs/src/luno.js +14 -14
- package/dist/cjs/src/lykke.js +14 -14
- package/dist/cjs/src/mercado.js +10 -10
- package/dist/cjs/src/mexc.js +38 -38
- package/dist/cjs/src/ndax.js +18 -18
- package/dist/cjs/src/novadax.js +18 -18
- package/dist/cjs/src/oceanex.js +14 -14
- package/dist/cjs/src/okcoin.js +19 -19
- package/dist/cjs/src/okx.js +48 -48
- package/dist/cjs/src/paymium.js +9 -9
- package/dist/cjs/src/phemex.js +24 -24
- package/dist/cjs/src/poloniex.js +77 -60
- package/dist/cjs/src/poloniexfutures.js +16 -16
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +10 -10
- package/dist/cjs/src/pro/bitfinex.js +3 -3
- package/dist/cjs/src/pro/bitfinex2.js +4 -4
- package/dist/cjs/src/pro/bitget.js +4 -4
- package/dist/cjs/src/pro/bitmart.js +3 -3
- package/dist/cjs/src/pro/bitmex.js +4 -4
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +2 -2
- package/dist/cjs/src/pro/bittrex.js +4 -4
- package/dist/cjs/src/pro/bitvavo.js +4 -4
- package/dist/cjs/src/pro/bybit.js +12 -11
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbasepro.js +5 -5
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +7 -7
- package/dist/cjs/src/pro/currencycom.js +2 -2
- package/dist/cjs/src/pro/deribit.js +3 -3
- package/dist/cjs/src/pro/exmo.js +2 -2
- package/dist/cjs/src/pro/gate.js +5 -5
- package/dist/cjs/src/pro/gemini.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +2 -2
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/huobi.js +4 -4
- package/dist/cjs/src/pro/huobijp.js +2 -2
- package/dist/cjs/src/pro/idex.js +3 -3
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +6 -6
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +4 -4
- package/dist/cjs/src/pro/kucoinfutures.js +3 -3
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/ndax.js +2 -2
- package/dist/cjs/src/pro/okcoin.js +3 -3
- package/dist/cjs/src/pro/okx.js +12 -11
- package/dist/cjs/src/pro/phemex.js +4 -4
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/upbit.js +2 -2
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +4 -4
- package/dist/cjs/src/probit.js +17 -17
- package/dist/cjs/src/tidex.js +11 -11
- package/dist/cjs/src/timex.js +14 -14
- package/dist/cjs/src/tokocrypto.js +16 -16
- package/dist/cjs/src/upbit.js +18 -18
- package/dist/cjs/src/wavesexchange.js +13 -13
- package/dist/cjs/src/wazirx.js +10 -10
- package/dist/cjs/src/whitebit.js +21 -21
- package/dist/cjs/src/woo.js +28 -22
- package/dist/cjs/src/yobit.js +14 -14
- package/dist/cjs/src/zaif.js +8 -8
- package/dist/cjs/src/zonda.js +13 -13
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +9 -9
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +22 -22
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +17 -17
- package/js/src/binance.js +51 -51
- package/js/src/bingx.js +25 -26
- package/js/src/bit2c.js +10 -10
- package/js/src/bitbank.js +11 -11
- package/js/src/bitbns.js +12 -12
- package/js/src/bitfinex.js +19 -19
- package/js/src/bitfinex2.js +25 -25
- package/js/src/bitflyer.js +15 -15
- package/js/src/bitforex.js +9 -9
- package/js/src/bitget.js +34 -34
- package/js/src/bithumb.js +9 -9
- package/js/src/bitmart.js +42 -29
- package/js/src/bitmex.js +19 -19
- package/js/src/bitopro.js +18 -18
- package/js/src/bitpanda.js +19 -19
- package/js/src/bitrue.js +15 -15
- package/js/src/bitso.js +19 -19
- package/js/src/bitstamp.js +19 -19
- package/js/src/bitstamp1.js +6 -6
- package/js/src/bittrex.js +24 -24
- package/js/src/bitvavo.js +16 -16
- package/js/src/bkex.js +17 -17
- package/js/src/bl3p.js +6 -6
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +13 -13
- package/js/src/btcbox.js +8 -8
- package/js/src/btcmarkets.js +15 -15
- package/js/src/btctradeua.js +6 -6
- package/js/src/btcturk.js +9 -9
- package/js/src/bybit.js +148 -116
- package/js/src/cex.js +12 -12
- package/js/src/coinbase.js +20 -20
- package/js/src/coinbasepro.js +22 -22
- package/js/src/coincheck.js +10 -10
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +81 -35
- package/js/src/coinfalcon.js +14 -14
- package/js/src/coinmate.js +12 -12
- package/js/src/coinone.js +10 -10
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.js +6 -6
- package/js/src/cryptocom.js +24 -24
- package/js/src/currencycom.js +18 -18
- package/js/src/delta.js +23 -23
- package/js/src/deribit.js +27 -27
- package/js/src/digifinex.js +27 -27
- package/js/src/exmo.js +24 -24
- package/js/src/gate.js +34 -34
- package/js/src/gemini.js +14 -14
- package/js/src/hitbtc.js +30 -30
- package/js/src/hollaex.js +20 -20
- package/js/src/huobi.js +40 -40
- package/js/src/huobijp.js +18 -18
- package/js/src/idex.js +17 -17
- package/js/src/independentreserve.js +10 -10
- package/js/src/indodax.js +12 -12
- package/js/src/kraken.js +25 -25
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +29 -29
- package/js/src/kucoinfutures.js +19 -19
- package/js/src/kuna.js +10 -10
- package/js/src/latoken.js +15 -15
- package/js/src/lbank.js +10 -10
- package/js/src/lbank2.js +21 -21
- package/js/src/luno.js +14 -14
- package/js/src/lykke.js +14 -14
- package/js/src/mercado.js +10 -10
- package/js/src/mexc.js +38 -38
- package/js/src/ndax.js +18 -18
- package/js/src/novadax.js +18 -18
- package/js/src/oceanex.js +14 -14
- package/js/src/okcoin.js +19 -19
- package/js/src/okx.js +48 -48
- package/js/src/paymium.js +9 -9
- package/js/src/phemex.js +24 -24
- package/js/src/poloniex.js +77 -60
- package/js/src/poloniexfutures.js +16 -16
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +10 -10
- package/js/src/pro/bitfinex.js +3 -3
- package/js/src/pro/bitfinex2.js +4 -4
- package/js/src/pro/bitget.js +4 -4
- package/js/src/pro/bitmart.js +3 -3
- package/js/src/pro/bitmex.js +4 -4
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +2 -2
- package/js/src/pro/bittrex.js +4 -4
- package/js/src/pro/bitvavo.js +4 -4
- package/js/src/pro/bybit.d.ts +1 -1
- package/js/src/pro/bybit.js +12 -11
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbasepro.js +5 -5
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/cryptocom.js +7 -7
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +2 -2
- package/js/src/pro/gate.js +5 -5
- package/js/src/pro/gemini.js +2 -2
- package/js/src/pro/hitbtc.js +2 -2
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/huobi.js +4 -4
- package/js/src/pro/huobijp.js +2 -2
- package/js/src/pro/idex.js +3 -3
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/kucoin.js +4 -4
- package/js/src/pro/kucoinfutures.js +3 -3
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/ndax.js +2 -2
- package/js/src/pro/okcoin.js +3 -3
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +12 -11
- package/js/src/pro/phemex.js +4 -4
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/upbit.js +2 -2
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +4 -4
- package/js/src/probit.js +17 -17
- package/js/src/tidex.js +11 -11
- package/js/src/timex.js +14 -14
- package/js/src/tokocrypto.js +16 -16
- package/js/src/upbit.js +18 -18
- package/js/src/wavesexchange.js +13 -13
- package/js/src/wazirx.js +10 -10
- package/js/src/whitebit.js +21 -21
- package/js/src/woo.js +28 -22
- package/js/src/yobit.js +14 -14
- package/js/src/zaif.js +8 -8
- package/js/src/zonda.js +13 -13
- package/package.json +1 -1
package/dist/cjs/src/latoken.js
CHANGED
|
@@ -537,7 +537,7 @@ class latoken extends latoken$1 {
|
|
|
537
537
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
538
538
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
539
539
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
540
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
540
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
541
541
|
*/
|
|
542
542
|
await this.loadMarkets();
|
|
543
543
|
const market = this.market(symbol);
|
|
@@ -615,7 +615,7 @@ class latoken extends latoken$1 {
|
|
|
615
615
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
616
616
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
617
617
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
618
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
618
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
619
619
|
*/
|
|
620
620
|
await this.loadMarkets();
|
|
621
621
|
const market = this.market(symbol);
|
|
@@ -645,7 +645,7 @@ class latoken extends latoken$1 {
|
|
|
645
645
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
646
646
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
647
647
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
648
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
648
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
649
649
|
*/
|
|
650
650
|
await this.loadMarkets();
|
|
651
651
|
const response = await this.publicGetTicker(params);
|
|
@@ -791,7 +791,7 @@ class latoken extends latoken$1 {
|
|
|
791
791
|
* @description fetch the trading fees for a market
|
|
792
792
|
* @param {string} symbol unified market symbol
|
|
793
793
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
794
|
-
* @returns {object} a [fee structure]{@link https://
|
|
794
|
+
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
795
795
|
*/
|
|
796
796
|
let method = this.safeString(params, 'method');
|
|
797
797
|
params = this.omit(params, 'method');
|
|
@@ -856,7 +856,7 @@ class latoken extends latoken$1 {
|
|
|
856
856
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
857
857
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
858
858
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
859
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
859
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
860
860
|
*/
|
|
861
861
|
await this.loadMarkets();
|
|
862
862
|
const request = {
|
|
@@ -1035,7 +1035,7 @@ class latoken extends latoken$1 {
|
|
|
1035
1035
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1036
1036
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1037
1037
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1038
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1038
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1039
1039
|
*/
|
|
1040
1040
|
if (symbol === undefined) {
|
|
1041
1041
|
throw new errors.ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -1080,7 +1080,7 @@ class latoken extends latoken$1 {
|
|
|
1080
1080
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1081
1081
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1082
1082
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1083
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1083
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1084
1084
|
*/
|
|
1085
1085
|
await this.loadMarkets();
|
|
1086
1086
|
const request = {
|
|
@@ -1132,7 +1132,7 @@ class latoken extends latoken$1 {
|
|
|
1132
1132
|
* @description fetches information on an order made by the user
|
|
1133
1133
|
* @param {string} symbol not used by latoken fetchOrder
|
|
1134
1134
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1135
|
-
* @returns {object} An [order structure]{@link https://
|
|
1135
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1136
1136
|
*/
|
|
1137
1137
|
await this.loadMarkets();
|
|
1138
1138
|
const request = {
|
|
@@ -1170,9 +1170,9 @@ class latoken extends latoken$1 {
|
|
|
1170
1170
|
* @param {string} type 'market' or 'limit'
|
|
1171
1171
|
* @param {string} side 'buy' or 'sell'
|
|
1172
1172
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1173
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1173
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1174
1174
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1175
|
-
* @returns {object} an [order structure]{@link https://
|
|
1175
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1176
1176
|
*/
|
|
1177
1177
|
await this.loadMarkets();
|
|
1178
1178
|
const market = this.market(symbol);
|
|
@@ -1215,7 +1215,7 @@ class latoken extends latoken$1 {
|
|
|
1215
1215
|
* @param {string} id order id
|
|
1216
1216
|
* @param {string} symbol not used by latoken cancelOrder ()
|
|
1217
1217
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1218
|
-
* @returns {object} An [order structure]{@link https://
|
|
1218
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1219
1219
|
*/
|
|
1220
1220
|
await this.loadMarkets();
|
|
1221
1221
|
const request = {
|
|
@@ -1240,7 +1240,7 @@ class latoken extends latoken$1 {
|
|
|
1240
1240
|
* @description cancel all open orders in a market
|
|
1241
1241
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
1242
1242
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1243
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1243
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1244
1244
|
*/
|
|
1245
1245
|
await this.loadMarkets();
|
|
1246
1246
|
const request = {
|
|
@@ -1274,7 +1274,7 @@ class latoken extends latoken$1 {
|
|
|
1274
1274
|
* @param {int} [since] timestamp in ms of the earliest transaction, default is undefined
|
|
1275
1275
|
* @param {int} [limit] max number of transactions to return, default is undefined
|
|
1276
1276
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1277
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1277
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1278
1278
|
*/
|
|
1279
1279
|
await this.loadMarkets();
|
|
1280
1280
|
const request = {
|
|
@@ -1401,7 +1401,7 @@ class latoken extends latoken$1 {
|
|
|
1401
1401
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
1402
1402
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
1403
1403
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1404
|
-
* @returns {object[]} a list of [transfer structures]{@link https://
|
|
1404
|
+
* @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1405
1405
|
*/
|
|
1406
1406
|
await this.loadMarkets();
|
|
1407
1407
|
const currency = this.currency(code);
|
|
@@ -1450,7 +1450,7 @@ class latoken extends latoken$1 {
|
|
|
1450
1450
|
* @param {string} fromAccount account to transfer from
|
|
1451
1451
|
* @param {string} toAccount account to transfer to
|
|
1452
1452
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1453
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
1453
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1454
1454
|
*/
|
|
1455
1455
|
await this.loadMarkets();
|
|
1456
1456
|
const currency = this.currency(code);
|
package/dist/cjs/src/lbank.js
CHANGED
|
@@ -287,7 +287,7 @@ class lbank extends lbank$1 {
|
|
|
287
287
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
288
288
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
289
289
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
290
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
290
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
291
291
|
*/
|
|
292
292
|
await this.loadMarkets();
|
|
293
293
|
const market = this.market(symbol);
|
|
@@ -316,7 +316,7 @@ class lbank extends lbank$1 {
|
|
|
316
316
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
317
317
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
318
318
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
319
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
319
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
320
320
|
*/
|
|
321
321
|
await this.loadMarkets();
|
|
322
322
|
symbols = this.marketSymbols(symbols);
|
|
@@ -340,7 +340,7 @@ class lbank extends lbank$1 {
|
|
|
340
340
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
341
341
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
342
342
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
343
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
343
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
344
344
|
*/
|
|
345
345
|
await this.loadMarkets();
|
|
346
346
|
let size = 60;
|
|
@@ -595,9 +595,9 @@ class lbank extends lbank$1 {
|
|
|
595
595
|
* @param {string} type 'market' or 'limit'
|
|
596
596
|
* @param {string} side 'buy' or 'sell'
|
|
597
597
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
598
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
598
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
599
599
|
* @param {object} [params] extra parameters specific to the lbank 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
|
await this.loadMarkets();
|
|
603
603
|
const market = this.market(symbol);
|
|
@@ -629,7 +629,7 @@ class lbank extends lbank$1 {
|
|
|
629
629
|
* @param {string} id order id
|
|
630
630
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
631
631
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
632
|
-
* @returns {object} An [order structure]{@link https://
|
|
632
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
633
633
|
*/
|
|
634
634
|
await this.loadMarkets();
|
|
635
635
|
const market = this.market(symbol);
|
|
@@ -647,7 +647,7 @@ class lbank extends lbank$1 {
|
|
|
647
647
|
* @description fetches information on an order made by the user
|
|
648
648
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
649
649
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
650
|
-
* @returns {object} An [order structure]{@link https://
|
|
650
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
651
651
|
*/
|
|
652
652
|
// Id can be a list of ids delimited by a comma
|
|
653
653
|
await this.loadMarkets();
|
|
@@ -676,7 +676,7 @@ class lbank extends lbank$1 {
|
|
|
676
676
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
677
677
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
678
678
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
679
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
679
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
680
680
|
*/
|
|
681
681
|
await this.loadMarkets();
|
|
682
682
|
if (limit === undefined) {
|
|
@@ -701,7 +701,7 @@ class lbank extends lbank$1 {
|
|
|
701
701
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
702
702
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
703
703
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
704
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
704
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
705
705
|
*/
|
|
706
706
|
await this.loadMarkets();
|
|
707
707
|
if (symbol !== undefined) {
|
|
@@ -724,7 +724,7 @@ class lbank extends lbank$1 {
|
|
|
724
724
|
* @param {string} address the address to withdraw to
|
|
725
725
|
* @param {string} tag
|
|
726
726
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
727
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
727
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
728
728
|
*/
|
|
729
729
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
730
730
|
// mark and fee are optional params, mark is a note and must be less than 255 characters
|
package/dist/cjs/src/lbank2.js
CHANGED
|
@@ -590,7 +590,7 @@ class lbank2 extends lbank2$1 {
|
|
|
590
590
|
* @see https://www.lbank.info/en-US/docs/index.html#query-current-market-data-new
|
|
591
591
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
592
592
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
593
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
593
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
594
594
|
*/
|
|
595
595
|
await this.loadMarkets();
|
|
596
596
|
const market = this.market(symbol);
|
|
@@ -636,7 +636,7 @@ class lbank2 extends lbank2$1 {
|
|
|
636
636
|
* @see https://www.lbank.com/en-US/docs/contract.html#query-contract-market-list
|
|
637
637
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
638
638
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
639
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
639
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
640
640
|
*/
|
|
641
641
|
await this.loadMarkets();
|
|
642
642
|
let market = undefined;
|
|
@@ -717,7 +717,7 @@ class lbank2 extends lbank2$1 {
|
|
|
717
717
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
718
718
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
719
719
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
720
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
720
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
721
721
|
*/
|
|
722
722
|
await this.loadMarkets();
|
|
723
723
|
const market = this.market(symbol);
|
|
@@ -1229,7 +1229,7 @@ class lbank2 extends lbank2$1 {
|
|
|
1229
1229
|
* @see https://www.lbank.info/en-US/docs/index.html#transaction-fee-rate-query
|
|
1230
1230
|
* @param {string} symbol unified market symbol
|
|
1231
1231
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1232
|
-
* @returns {object} a [fee structure]{@link https://
|
|
1232
|
+
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1233
1233
|
*/
|
|
1234
1234
|
const market = this.market(symbol);
|
|
1235
1235
|
const result = await this.fetchTradingFees(this.extend(params, { 'category': market['id'] }));
|
|
@@ -1242,7 +1242,7 @@ class lbank2 extends lbank2$1 {
|
|
|
1242
1242
|
* @description fetch the trading fees for multiple markets
|
|
1243
1243
|
* @see https://www.lbank.info/en-US/docs/index.html#transaction-fee-rate-query
|
|
1244
1244
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1245
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
1245
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
1246
1246
|
*/
|
|
1247
1247
|
await this.loadMarkets();
|
|
1248
1248
|
const request = {};
|
|
@@ -1267,9 +1267,9 @@ class lbank2 extends lbank2$1 {
|
|
|
1267
1267
|
* @param {string} type 'market' or 'limit'
|
|
1268
1268
|
* @param {string} side 'buy' or 'sell'
|
|
1269
1269
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1270
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1270
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1271
1271
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1272
|
-
* @returns {object} an [order structure]{@link https://
|
|
1272
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1273
1273
|
*/
|
|
1274
1274
|
await this.loadMarkets();
|
|
1275
1275
|
const market = this.market(symbol);
|
|
@@ -1497,7 +1497,7 @@ class lbank2 extends lbank2$1 {
|
|
|
1497
1497
|
* @see https://www.lbank.info/en-US/docs/index.html#query-order-new
|
|
1498
1498
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1499
1499
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1500
|
-
* @returns {object} An [order structure]{@link https://
|
|
1500
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1501
1501
|
*/
|
|
1502
1502
|
await this.loadMarkets();
|
|
1503
1503
|
let method = this.safeString(params, 'method');
|
|
@@ -1595,7 +1595,7 @@ class lbank2 extends lbank2$1 {
|
|
|
1595
1595
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1596
1596
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
1597
1597
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1598
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1598
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1599
1599
|
*/
|
|
1600
1600
|
this.checkRequiredSymbol('fetchMyTrades', symbol);
|
|
1601
1601
|
await this.loadMarkets();
|
|
@@ -1652,7 +1652,7 @@ class lbank2 extends lbank2$1 {
|
|
|
1652
1652
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1653
1653
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1654
1654
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1655
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1655
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1656
1656
|
*/
|
|
1657
1657
|
// default query is for canceled and completely filled orders
|
|
1658
1658
|
// does not return open orders unless specified explicitly
|
|
@@ -1710,7 +1710,7 @@ class lbank2 extends lbank2$1 {
|
|
|
1710
1710
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1711
1711
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
1712
1712
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1713
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1713
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1714
1714
|
*/
|
|
1715
1715
|
this.checkRequiredSymbol('fetchOpenOrders', symbol);
|
|
1716
1716
|
await this.loadMarkets();
|
|
@@ -1764,7 +1764,7 @@ class lbank2 extends lbank2$1 {
|
|
|
1764
1764
|
* @param {string} id order id
|
|
1765
1765
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1766
1766
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1767
|
-
* @returns {object} An [order structure]{@link https://
|
|
1767
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1768
1768
|
*/
|
|
1769
1769
|
this.checkRequiredSymbol('cancelOrder', symbol);
|
|
1770
1770
|
await this.loadMarkets();
|
|
@@ -1803,7 +1803,7 @@ class lbank2 extends lbank2$1 {
|
|
|
1803
1803
|
* @see https://www.lbank.info/en-US/docs/index.html#cancel-all-pending-orders-for-a-single-trading-pair
|
|
1804
1804
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
1805
1805
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1806
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1806
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1807
1807
|
*/
|
|
1808
1808
|
this.checkRequiredSymbol('cancelAllOrders', symbol);
|
|
1809
1809
|
await this.loadMarkets();
|
|
@@ -1849,7 +1849,7 @@ class lbank2 extends lbank2$1 {
|
|
|
1849
1849
|
* @see https://www.lbank.info/en-US/docs/index.html#the-user-obtains-the-deposit-address
|
|
1850
1850
|
* @param {string} code unified currency code
|
|
1851
1851
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1852
|
-
* @returns {object} an [address structure]{@link https://
|
|
1852
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1853
1853
|
*/
|
|
1854
1854
|
await this.loadMarkets();
|
|
1855
1855
|
let method = this.safeString(params, 'method');
|
|
@@ -1950,7 +1950,7 @@ class lbank2 extends lbank2$1 {
|
|
|
1950
1950
|
* @param {string} address the address to withdraw to
|
|
1951
1951
|
* @param {string} tag
|
|
1952
1952
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1953
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1953
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1954
1954
|
*/
|
|
1955
1955
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1956
1956
|
this.checkAddress(address);
|
|
@@ -2115,7 +2115,7 @@ class lbank2 extends lbank2$1 {
|
|
|
2115
2115
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2116
2116
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2117
2117
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
2118
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2118
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2119
2119
|
*/
|
|
2120
2120
|
await this.loadMarkets();
|
|
2121
2121
|
const request = {
|
|
@@ -2168,7 +2168,7 @@ class lbank2 extends lbank2$1 {
|
|
|
2168
2168
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2169
2169
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2170
2170
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
2171
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2171
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2172
2172
|
*/
|
|
2173
2173
|
await this.loadMarkets();
|
|
2174
2174
|
const request = {
|
|
@@ -2223,7 +2223,7 @@ class lbank2 extends lbank2$1 {
|
|
|
2223
2223
|
* @description please use fetchDepositWithdrawFees instead
|
|
2224
2224
|
* @param {string[]|undefined} codes not used by lbank2 fetchTransactionFees ()
|
|
2225
2225
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
2226
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
2226
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
2227
2227
|
*/
|
|
2228
2228
|
// private only returns information for currencies with non-zero balance
|
|
2229
2229
|
await this.loadMarkets();
|
|
@@ -2370,7 +2370,7 @@ class lbank2 extends lbank2$1 {
|
|
|
2370
2370
|
* @see https://www.lbank.info/en-US/docs/index.html#withdrawal-configurations
|
|
2371
2371
|
* @param {string[]|undefined} codes array of unified currency codes
|
|
2372
2372
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
2373
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
2373
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
2374
2374
|
*/
|
|
2375
2375
|
await this.loadMarkets();
|
|
2376
2376
|
const isAuthorized = this.checkRequiredCredentials(false);
|
|
@@ -2656,8 +2656,8 @@ class lbank2 extends lbank2$1 {
|
|
|
2656
2656
|
if (response === undefined) {
|
|
2657
2657
|
return undefined;
|
|
2658
2658
|
}
|
|
2659
|
-
const success = this.
|
|
2660
|
-
if (success === 'false') {
|
|
2659
|
+
const success = this.safeValue(response, 'result');
|
|
2660
|
+
if (success === 'false' || !success) {
|
|
2661
2661
|
const errorCode = this.safeString(response, 'error_code');
|
|
2662
2662
|
const message = this.safeString({
|
|
2663
2663
|
'10000': 'Internal error',
|
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', []);
|
|
@@ -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);
|
|
@@ -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);
|
|
@@ -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);
|