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/js/src/latoken.js
CHANGED
|
@@ -540,7 +540,7 @@ export default class latoken extends Exchange {
|
|
|
540
540
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
541
541
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
542
542
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
543
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
543
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
544
544
|
*/
|
|
545
545
|
await this.loadMarkets();
|
|
546
546
|
const market = this.market(symbol);
|
|
@@ -618,7 +618,7 @@ export default class latoken extends Exchange {
|
|
|
618
618
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
619
619
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
620
620
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
621
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
621
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
622
622
|
*/
|
|
623
623
|
await this.loadMarkets();
|
|
624
624
|
const market = this.market(symbol);
|
|
@@ -648,7 +648,7 @@ export default class latoken extends Exchange {
|
|
|
648
648
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
649
649
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
650
650
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
651
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
651
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
652
652
|
*/
|
|
653
653
|
await this.loadMarkets();
|
|
654
654
|
const response = await this.publicGetTicker(params);
|
|
@@ -794,7 +794,7 @@ export default class latoken extends Exchange {
|
|
|
794
794
|
* @description fetch the trading fees for a market
|
|
795
795
|
* @param {string} symbol unified market symbol
|
|
796
796
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
797
|
-
* @returns {object} a [fee structure]{@link https://
|
|
797
|
+
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
798
798
|
*/
|
|
799
799
|
let method = this.safeString(params, 'method');
|
|
800
800
|
params = this.omit(params, 'method');
|
|
@@ -859,7 +859,7 @@ export default class latoken extends Exchange {
|
|
|
859
859
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
860
860
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
861
861
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
862
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
862
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
863
863
|
*/
|
|
864
864
|
await this.loadMarkets();
|
|
865
865
|
const request = {
|
|
@@ -1038,7 +1038,7 @@ export default class latoken extends Exchange {
|
|
|
1038
1038
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1039
1039
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1040
1040
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1041
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1041
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1042
1042
|
*/
|
|
1043
1043
|
if (symbol === undefined) {
|
|
1044
1044
|
throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -1083,7 +1083,7 @@ export default class latoken extends Exchange {
|
|
|
1083
1083
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1084
1084
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1085
1085
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1086
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1086
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1087
1087
|
*/
|
|
1088
1088
|
await this.loadMarkets();
|
|
1089
1089
|
const request = {
|
|
@@ -1135,7 +1135,7 @@ export default class latoken extends Exchange {
|
|
|
1135
1135
|
* @description fetches information on an order made by the user
|
|
1136
1136
|
* @param {string} symbol not used by latoken fetchOrder
|
|
1137
1137
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1138
|
-
* @returns {object} An [order structure]{@link https://
|
|
1138
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1139
1139
|
*/
|
|
1140
1140
|
await this.loadMarkets();
|
|
1141
1141
|
const request = {
|
|
@@ -1173,9 +1173,9 @@ export default class latoken extends Exchange {
|
|
|
1173
1173
|
* @param {string} type 'market' or 'limit'
|
|
1174
1174
|
* @param {string} side 'buy' or 'sell'
|
|
1175
1175
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1176
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1176
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1177
1177
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1178
|
-
* @returns {object} an [order structure]{@link https://
|
|
1178
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1179
1179
|
*/
|
|
1180
1180
|
await this.loadMarkets();
|
|
1181
1181
|
const market = this.market(symbol);
|
|
@@ -1218,7 +1218,7 @@ export default class latoken extends Exchange {
|
|
|
1218
1218
|
* @param {string} id order id
|
|
1219
1219
|
* @param {string} symbol not used by latoken cancelOrder ()
|
|
1220
1220
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1221
|
-
* @returns {object} An [order structure]{@link https://
|
|
1221
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1222
1222
|
*/
|
|
1223
1223
|
await this.loadMarkets();
|
|
1224
1224
|
const request = {
|
|
@@ -1243,7 +1243,7 @@ export default class latoken extends Exchange {
|
|
|
1243
1243
|
* @description cancel all open orders in a market
|
|
1244
1244
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
1245
1245
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1246
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1246
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1247
1247
|
*/
|
|
1248
1248
|
await this.loadMarkets();
|
|
1249
1249
|
const request = {
|
|
@@ -1277,7 +1277,7 @@ export default class latoken extends Exchange {
|
|
|
1277
1277
|
* @param {int} [since] timestamp in ms of the earliest transaction, default is undefined
|
|
1278
1278
|
* @param {int} [limit] max number of transactions to return, default is undefined
|
|
1279
1279
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1280
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1280
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1281
1281
|
*/
|
|
1282
1282
|
await this.loadMarkets();
|
|
1283
1283
|
const request = {
|
|
@@ -1404,7 +1404,7 @@ export default class latoken extends Exchange {
|
|
|
1404
1404
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
1405
1405
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
1406
1406
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1407
|
-
* @returns {object[]} a list of [transfer structures]{@link https://
|
|
1407
|
+
* @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1408
1408
|
*/
|
|
1409
1409
|
await this.loadMarkets();
|
|
1410
1410
|
const currency = this.currency(code);
|
|
@@ -1453,7 +1453,7 @@ export default class latoken extends Exchange {
|
|
|
1453
1453
|
* @param {string} fromAccount account to transfer from
|
|
1454
1454
|
* @param {string} toAccount account to transfer to
|
|
1455
1455
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
1456
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
1456
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1457
1457
|
*/
|
|
1458
1458
|
await this.loadMarkets();
|
|
1459
1459
|
const currency = this.currency(code);
|
package/js/src/lbank.js
CHANGED
|
@@ -290,7 +290,7 @@ export default class lbank extends Exchange {
|
|
|
290
290
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
291
291
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
292
292
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
293
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
293
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
294
294
|
*/
|
|
295
295
|
await this.loadMarkets();
|
|
296
296
|
const market = this.market(symbol);
|
|
@@ -319,7 +319,7 @@ export default class lbank extends Exchange {
|
|
|
319
319
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
320
320
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
321
321
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
322
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
322
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
323
323
|
*/
|
|
324
324
|
await this.loadMarkets();
|
|
325
325
|
symbols = this.marketSymbols(symbols);
|
|
@@ -343,7 +343,7 @@ export default class lbank extends Exchange {
|
|
|
343
343
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
344
344
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
345
345
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
346
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
346
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
347
347
|
*/
|
|
348
348
|
await this.loadMarkets();
|
|
349
349
|
let size = 60;
|
|
@@ -598,9 +598,9 @@ export default class lbank extends Exchange {
|
|
|
598
598
|
* @param {string} type 'market' or 'limit'
|
|
599
599
|
* @param {string} side 'buy' or 'sell'
|
|
600
600
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
601
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
601
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
602
602
|
* @param {object} [params] extra parameters specific to the lbank 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
|
await this.loadMarkets();
|
|
606
606
|
const market = this.market(symbol);
|
|
@@ -632,7 +632,7 @@ export default class lbank extends Exchange {
|
|
|
632
632
|
* @param {string} id order id
|
|
633
633
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
634
634
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
635
|
-
* @returns {object} An [order structure]{@link https://
|
|
635
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
636
636
|
*/
|
|
637
637
|
await this.loadMarkets();
|
|
638
638
|
const market = this.market(symbol);
|
|
@@ -650,7 +650,7 @@ export default class lbank extends Exchange {
|
|
|
650
650
|
* @description fetches information on an order made by the user
|
|
651
651
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
652
652
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
653
|
-
* @returns {object} An [order structure]{@link https://
|
|
653
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
654
654
|
*/
|
|
655
655
|
// Id can be a list of ids delimited by a comma
|
|
656
656
|
await this.loadMarkets();
|
|
@@ -679,7 +679,7 @@ export default class lbank extends Exchange {
|
|
|
679
679
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
680
680
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
681
681
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
682
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
682
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
683
683
|
*/
|
|
684
684
|
await this.loadMarkets();
|
|
685
685
|
if (limit === undefined) {
|
|
@@ -704,7 +704,7 @@ export default class lbank extends Exchange {
|
|
|
704
704
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
705
705
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
706
706
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
707
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
707
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
708
708
|
*/
|
|
709
709
|
await this.loadMarkets();
|
|
710
710
|
if (symbol !== undefined) {
|
|
@@ -727,7 +727,7 @@ export default class lbank extends Exchange {
|
|
|
727
727
|
* @param {string} address the address to withdraw to
|
|
728
728
|
* @param {string} tag
|
|
729
729
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
730
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
730
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
731
731
|
*/
|
|
732
732
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
733
733
|
// mark and fee are optional params, mark is a note and must be less than 255 characters
|
package/js/src/lbank2.js
CHANGED
|
@@ -593,7 +593,7 @@ export default class lbank2 extends Exchange {
|
|
|
593
593
|
* @see https://www.lbank.info/en-US/docs/index.html#query-current-market-data-new
|
|
594
594
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
595
595
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
596
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
596
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
597
597
|
*/
|
|
598
598
|
await this.loadMarkets();
|
|
599
599
|
const market = this.market(symbol);
|
|
@@ -639,7 +639,7 @@ export default class lbank2 extends Exchange {
|
|
|
639
639
|
* @see https://www.lbank.com/en-US/docs/contract.html#query-contract-market-list
|
|
640
640
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
641
641
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
642
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
642
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
643
643
|
*/
|
|
644
644
|
await this.loadMarkets();
|
|
645
645
|
let market = undefined;
|
|
@@ -720,7 +720,7 @@ export default class lbank2 extends Exchange {
|
|
|
720
720
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
721
721
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
722
722
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
723
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
723
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
724
724
|
*/
|
|
725
725
|
await this.loadMarkets();
|
|
726
726
|
const market = this.market(symbol);
|
|
@@ -1232,7 +1232,7 @@ export default class lbank2 extends Exchange {
|
|
|
1232
1232
|
* @see https://www.lbank.info/en-US/docs/index.html#transaction-fee-rate-query
|
|
1233
1233
|
* @param {string} symbol unified market symbol
|
|
1234
1234
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1235
|
-
* @returns {object} a [fee structure]{@link https://
|
|
1235
|
+
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1236
1236
|
*/
|
|
1237
1237
|
const market = this.market(symbol);
|
|
1238
1238
|
const result = await this.fetchTradingFees(this.extend(params, { 'category': market['id'] }));
|
|
@@ -1245,7 +1245,7 @@ export default class lbank2 extends Exchange {
|
|
|
1245
1245
|
* @description fetch the trading fees for multiple markets
|
|
1246
1246
|
* @see https://www.lbank.info/en-US/docs/index.html#transaction-fee-rate-query
|
|
1247
1247
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1248
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
1248
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
1249
1249
|
*/
|
|
1250
1250
|
await this.loadMarkets();
|
|
1251
1251
|
const request = {};
|
|
@@ -1270,9 +1270,9 @@ export default class lbank2 extends Exchange {
|
|
|
1270
1270
|
* @param {string} type 'market' or 'limit'
|
|
1271
1271
|
* @param {string} side 'buy' or 'sell'
|
|
1272
1272
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1273
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1273
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1274
1274
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1275
|
-
* @returns {object} an [order structure]{@link https://
|
|
1275
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1276
1276
|
*/
|
|
1277
1277
|
await this.loadMarkets();
|
|
1278
1278
|
const market = this.market(symbol);
|
|
@@ -1500,7 +1500,7 @@ export default class lbank2 extends Exchange {
|
|
|
1500
1500
|
* @see https://www.lbank.info/en-US/docs/index.html#query-order-new
|
|
1501
1501
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1502
1502
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1503
|
-
* @returns {object} An [order structure]{@link https://
|
|
1503
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1504
1504
|
*/
|
|
1505
1505
|
await this.loadMarkets();
|
|
1506
1506
|
let method = this.safeString(params, 'method');
|
|
@@ -1598,7 +1598,7 @@ export default class lbank2 extends Exchange {
|
|
|
1598
1598
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1599
1599
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
1600
1600
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1601
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1601
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1602
1602
|
*/
|
|
1603
1603
|
this.checkRequiredSymbol('fetchMyTrades', symbol);
|
|
1604
1604
|
await this.loadMarkets();
|
|
@@ -1655,7 +1655,7 @@ export default class lbank2 extends Exchange {
|
|
|
1655
1655
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1656
1656
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1657
1657
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1658
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1658
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1659
1659
|
*/
|
|
1660
1660
|
// default query is for canceled and completely filled orders
|
|
1661
1661
|
// does not return open orders unless specified explicitly
|
|
@@ -1713,7 +1713,7 @@ export default class lbank2 extends Exchange {
|
|
|
1713
1713
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1714
1714
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
1715
1715
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1716
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1716
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1717
1717
|
*/
|
|
1718
1718
|
this.checkRequiredSymbol('fetchOpenOrders', symbol);
|
|
1719
1719
|
await this.loadMarkets();
|
|
@@ -1767,7 +1767,7 @@ export default class lbank2 extends Exchange {
|
|
|
1767
1767
|
* @param {string} id order id
|
|
1768
1768
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1769
1769
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1770
|
-
* @returns {object} An [order structure]{@link https://
|
|
1770
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1771
1771
|
*/
|
|
1772
1772
|
this.checkRequiredSymbol('cancelOrder', symbol);
|
|
1773
1773
|
await this.loadMarkets();
|
|
@@ -1806,7 +1806,7 @@ export default class lbank2 extends Exchange {
|
|
|
1806
1806
|
* @see https://www.lbank.info/en-US/docs/index.html#cancel-all-pending-orders-for-a-single-trading-pair
|
|
1807
1807
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
1808
1808
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1809
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1809
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1810
1810
|
*/
|
|
1811
1811
|
this.checkRequiredSymbol('cancelAllOrders', symbol);
|
|
1812
1812
|
await this.loadMarkets();
|
|
@@ -1852,7 +1852,7 @@ export default class lbank2 extends Exchange {
|
|
|
1852
1852
|
* @see https://www.lbank.info/en-US/docs/index.html#the-user-obtains-the-deposit-address
|
|
1853
1853
|
* @param {string} code unified currency code
|
|
1854
1854
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1855
|
-
* @returns {object} an [address structure]{@link https://
|
|
1855
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1856
1856
|
*/
|
|
1857
1857
|
await this.loadMarkets();
|
|
1858
1858
|
let method = this.safeString(params, 'method');
|
|
@@ -1953,7 +1953,7 @@ export default class lbank2 extends Exchange {
|
|
|
1953
1953
|
* @param {string} address the address to withdraw to
|
|
1954
1954
|
* @param {string} tag
|
|
1955
1955
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1956
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1956
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1957
1957
|
*/
|
|
1958
1958
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1959
1959
|
this.checkAddress(address);
|
|
@@ -2118,7 +2118,7 @@ export default class lbank2 extends Exchange {
|
|
|
2118
2118
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2119
2119
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2120
2120
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
2121
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2121
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2122
2122
|
*/
|
|
2123
2123
|
await this.loadMarkets();
|
|
2124
2124
|
const request = {
|
|
@@ -2171,7 +2171,7 @@ export default class lbank2 extends Exchange {
|
|
|
2171
2171
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2172
2172
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2173
2173
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
2174
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2174
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2175
2175
|
*/
|
|
2176
2176
|
await this.loadMarkets();
|
|
2177
2177
|
const request = {
|
|
@@ -2226,7 +2226,7 @@ export default class lbank2 extends Exchange {
|
|
|
2226
2226
|
* @description please use fetchDepositWithdrawFees instead
|
|
2227
2227
|
* @param {string[]|undefined} codes not used by lbank2 fetchTransactionFees ()
|
|
2228
2228
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
2229
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
2229
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
2230
2230
|
*/
|
|
2231
2231
|
// private only returns information for currencies with non-zero balance
|
|
2232
2232
|
await this.loadMarkets();
|
|
@@ -2373,7 +2373,7 @@ export default class lbank2 extends Exchange {
|
|
|
2373
2373
|
* @see https://www.lbank.info/en-US/docs/index.html#withdrawal-configurations
|
|
2374
2374
|
* @param {string[]|undefined} codes array of unified currency codes
|
|
2375
2375
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
2376
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
2376
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
2377
2377
|
*/
|
|
2378
2378
|
await this.loadMarkets();
|
|
2379
2379
|
const isAuthorized = this.checkRequiredCredentials(false);
|
|
@@ -2659,8 +2659,8 @@ export default class lbank2 extends Exchange {
|
|
|
2659
2659
|
if (response === undefined) {
|
|
2660
2660
|
return undefined;
|
|
2661
2661
|
}
|
|
2662
|
-
const success = this.
|
|
2663
|
-
if (success === 'false') {
|
|
2662
|
+
const success = this.safeValue(response, 'result');
|
|
2663
|
+
if (success === 'false' || !success) {
|
|
2664
2664
|
const errorCode = this.safeString(response, 'error_code');
|
|
2665
2665
|
const message = this.safeString({
|
|
2666
2666
|
'10000': 'Internal error',
|
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', []);
|
|
@@ -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);
|
|
@@ -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);
|
|
@@ -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);
|