ccxt 4.0.74 → 4.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.js +2635 -2383
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +11 -11
- package/dist/cjs/src/alpaca.js +7 -7
- package/dist/cjs/src/ascendex.js +25 -25
- package/dist/cjs/src/base/Exchange.js +4 -4
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +56 -56
- package/dist/cjs/src/bingx.js +85 -40
- package/dist/cjs/src/bit2c.js +12 -12
- package/dist/cjs/src/bitbank.js +13 -13
- package/dist/cjs/src/bitbns.js +14 -14
- package/dist/cjs/src/bitfinex.js +21 -21
- package/dist/cjs/src/bitfinex2.js +29 -29
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +11 -11
- package/dist/cjs/src/bitget.js +39 -39
- package/dist/cjs/src/bithumb.js +11 -11
- package/dist/cjs/src/bitmart.js +44 -31
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +21 -21
- package/dist/cjs/src/bitpanda.js +21 -21
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +21 -21
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bitstamp1.js +8 -8
- package/dist/cjs/src/bittrex.js +27 -27
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/bkex.js +21 -21
- package/dist/cjs/src/bl3p.js +8 -8
- package/dist/cjs/src/blockchaincom.js +21 -21
- package/dist/cjs/src/btcalpha.js +15 -15
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +17 -17
- package/dist/cjs/src/btctradeua.js +8 -8
- package/dist/cjs/src/btcturk.js +11 -11
- package/dist/cjs/src/bybit.js +153 -121
- package/dist/cjs/src/cex.js +14 -14
- package/dist/cjs/src/coinbase.js +23 -23
- package/dist/cjs/src/coinbasepro.js +24 -24
- package/dist/cjs/src/coincheck.js +12 -12
- package/dist/cjs/src/coinex.js +87 -41
- package/dist/cjs/src/coinfalcon.js +16 -16
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +12 -12
- package/dist/cjs/src/coinsph.js +27 -22
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +29 -29
- package/dist/cjs/src/currencycom.js +20 -20
- package/dist/cjs/src/delta.js +25 -25
- package/dist/cjs/src/deribit.js +30 -30
- package/dist/cjs/src/digifinex.js +31 -31
- package/dist/cjs/src/exmo.js +26 -26
- package/dist/cjs/src/gate.js +38 -38
- package/dist/cjs/src/gemini.js +17 -17
- package/dist/cjs/src/hitbtc.js +34 -34
- package/dist/cjs/src/hollaex.js +23 -23
- package/dist/cjs/src/huobi.js +45 -45
- package/dist/cjs/src/huobijp.js +20 -20
- package/dist/cjs/src/idex.js +19 -19
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +27 -27
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +33 -33
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +12 -12
- package/dist/cjs/src/latoken.js +17 -17
- package/dist/cjs/src/lbank.js +12 -12
- package/dist/cjs/src/lbank2.js +23 -23
- package/dist/cjs/src/luno.js +16 -16
- package/dist/cjs/src/lykke.js +16 -16
- package/dist/cjs/src/mercado.js +12 -12
- package/dist/cjs/src/mexc.js +44 -42
- package/dist/cjs/src/ndax.js +20 -20
- package/dist/cjs/src/novadax.js +20 -20
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okcoin.js +21 -21
- package/dist/cjs/src/okx.js +52 -52
- package/dist/cjs/src/paymium.js +11 -11
- package/dist/cjs/src/phemex.js +26 -26
- package/dist/cjs/src/poloniex.js +237 -136
- package/dist/cjs/src/poloniexfutures.js +18 -18
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +4 -4
- package/dist/cjs/src/pro/binance.js +16 -16
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +6 -6
- package/dist/cjs/src/pro/bitget.js +6 -6
- package/dist/cjs/src/pro/bitmart.js +4 -4
- package/dist/cjs/src/pro/bitmex.js +6 -6
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +6 -6
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +6 -6
- package/dist/cjs/src/pro/bitvavo.js +5 -5
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/bybit.js +6 -6
- package/dist/cjs/src/pro/cex.js +7 -7
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +6 -6
- package/dist/cjs/src/pro/coinex.js +5 -5
- package/dist/cjs/src/pro/cryptocom.js +10 -10
- package/dist/cjs/src/pro/currencycom.js +4 -4
- package/dist/cjs/src/pro/deribit.js +6 -6
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +7 -7
- package/dist/cjs/src/pro/gemini.js +3 -3
- package/dist/cjs/src/pro/hitbtc.js +3 -3
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/huobi.js +6 -6
- package/dist/cjs/src/pro/huobijp.js +3 -3
- package/dist/cjs/src/pro/idex.js +4 -4
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +12 -12
- package/dist/cjs/src/pro/krakenfutures.js +7 -7
- package/dist/cjs/src/pro/kucoin.js +6 -6
- package/dist/cjs/src/pro/kucoinfutures.js +6 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +6 -6
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okcoin.js +5 -5
- package/dist/cjs/src/pro/okx.js +19 -18
- package/dist/cjs/src/pro/phemex.js +6 -6
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +6 -6
- package/dist/cjs/src/pro/whitebit.js +6 -6
- package/dist/cjs/src/probit.js +19 -19
- package/dist/cjs/src/tidex.js +13 -13
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +18 -18
- package/dist/cjs/src/upbit.js +20 -20
- package/dist/cjs/src/wavesexchange.js +16 -16
- package/dist/cjs/src/wazirx.js +12 -12
- package/dist/cjs/src/whitebit.js +24 -24
- package/dist/cjs/src/woo.js +30 -24
- package/dist/cjs/src/yobit.js +16 -16
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +15 -15
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bingx.d.ts +2 -0
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/coinsph.d.ts +5 -0
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +11 -11
- package/js/src/alpaca.js +7 -7
- package/js/src/ascendex.js +25 -25
- package/js/src/base/Exchange.js +4 -4
- package/js/src/bigone.js +19 -19
- package/js/src/binance.js +56 -56
- package/js/src/bingx.d.ts +1 -0
- package/js/src/bingx.js +85 -40
- package/js/src/bit2c.js +12 -12
- package/js/src/bitbank.js +13 -13
- package/js/src/bitbns.js +14 -14
- package/js/src/bitfinex.js +21 -21
- package/js/src/bitfinex2.js +29 -29
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +11 -11
- package/js/src/bitget.js +39 -39
- package/js/src/bithumb.js +11 -11
- package/js/src/bitmart.js +44 -31
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.js +21 -21
- package/js/src/bitpanda.js +21 -21
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.js +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bitstamp1.js +8 -8
- package/js/src/bittrex.js +27 -27
- package/js/src/bitvavo.js +19 -19
- package/js/src/bkex.js +21 -21
- package/js/src/bl3p.js +8 -8
- package/js/src/blockchaincom.js +21 -21
- package/js/src/btcalpha.js +15 -15
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.js +17 -17
- package/js/src/btctradeua.js +8 -8
- package/js/src/btcturk.js +11 -11
- package/js/src/bybit.js +153 -121
- package/js/src/cex.js +14 -14
- package/js/src/coinbase.js +23 -23
- package/js/src/coinbasepro.js +24 -24
- package/js/src/coincheck.js +12 -12
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +87 -41
- package/js/src/coinfalcon.js +16 -16
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +12 -12
- package/js/src/coinsph.js +27 -22
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.js +29 -29
- package/js/src/currencycom.js +20 -20
- package/js/src/delta.js +25 -25
- package/js/src/deribit.js +30 -30
- package/js/src/digifinex.js +31 -31
- package/js/src/exmo.js +26 -26
- package/js/src/gate.js +38 -38
- package/js/src/gemini.js +17 -17
- package/js/src/hitbtc.js +34 -34
- package/js/src/hollaex.js +23 -23
- package/js/src/huobi.js +45 -45
- package/js/src/huobijp.js +20 -20
- package/js/src/idex.js +19 -19
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.js +27 -27
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +33 -33
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +12 -12
- package/js/src/latoken.js +17 -17
- package/js/src/lbank.js +12 -12
- package/js/src/lbank2.js +23 -23
- package/js/src/luno.js +16 -16
- package/js/src/lykke.js +16 -16
- package/js/src/mercado.js +12 -12
- package/js/src/mexc.js +45 -43
- package/js/src/ndax.js +20 -20
- package/js/src/novadax.js +20 -20
- package/js/src/oceanex.js +16 -16
- package/js/src/okcoin.js +21 -21
- package/js/src/okx.js +52 -52
- package/js/src/paymium.js +11 -11
- package/js/src/phemex.js +26 -26
- package/js/src/poloniex.d.ts +1 -1
- package/js/src/poloniex.js +237 -136
- package/js/src/poloniexfutures.js +18 -18
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +4 -4
- package/js/src/pro/binance.js +16 -16
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +6 -6
- package/js/src/pro/bitmart.js +4 -4
- package/js/src/pro/bitmex.js +6 -6
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +6 -6
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +6 -6
- package/js/src/pro/bitvavo.js +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/bybit.js +6 -6
- package/js/src/pro/cex.js +7 -7
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +6 -6
- package/js/src/pro/coinex.js +5 -5
- package/js/src/pro/cryptocom.js +10 -10
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.js +3 -3
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/huobi.js +6 -6
- package/js/src/pro/huobijp.js +3 -3
- package/js/src/pro/idex.js +4 -4
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +12 -12
- package/js/src/pro/krakenfutures.js +7 -7
- package/js/src/pro/kucoin.js +6 -6
- package/js/src/pro/kucoinfutures.js +6 -5
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.js +6 -6
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okcoin.js +5 -5
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +19 -18
- package/js/src/pro/phemex.js +6 -6
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +6 -6
- package/js/src/pro/whitebit.js +6 -6
- package/js/src/probit.js +19 -19
- package/js/src/tidex.js +13 -13
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.js +18 -18
- package/js/src/upbit.js +20 -20
- package/js/src/wavesexchange.js +16 -16
- package/js/src/wazirx.js +12 -12
- package/js/src/whitebit.js +24 -24
- package/js/src/woo.js +30 -24
- package/js/src/yobit.js +16 -16
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +15 -15
- package/package.json +1 -1
- package/skip-tests.json +2 -0
package/js/src/kuna.js
CHANGED
|
@@ -415,7 +415,7 @@ export default class kuna extends Exchange {
|
|
|
415
415
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
416
416
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
417
417
|
* @param {object} [params] extra parameters specific to the kuna api endpoint
|
|
418
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
418
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
419
419
|
*/
|
|
420
420
|
await this.loadMarkets();
|
|
421
421
|
const market = this.market(symbol);
|
|
@@ -464,7 +464,7 @@ export default class kuna extends Exchange {
|
|
|
464
464
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
465
465
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
466
466
|
* @param {object} [params] extra parameters specific to the kuna api endpoint
|
|
467
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
467
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
468
468
|
*/
|
|
469
469
|
await this.loadMarkets();
|
|
470
470
|
symbols = this.marketSymbols(symbols);
|
|
@@ -486,7 +486,7 @@ export default class kuna extends Exchange {
|
|
|
486
486
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
487
487
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
488
488
|
* @param {object} [params] extra parameters specific to the kuna api endpoint
|
|
489
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
489
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
490
490
|
*/
|
|
491
491
|
await this.loadMarkets();
|
|
492
492
|
const market = this.market(symbol);
|
|
@@ -504,7 +504,7 @@ export default class kuna extends Exchange {
|
|
|
504
504
|
* @param {string} symbol unified market symbol
|
|
505
505
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
506
506
|
* @param {object} [params] extra parameters specific to the kuna api endpoint
|
|
507
|
-
* @returns {object} an [order book structure]{@link https://
|
|
507
|
+
* @returns {object} an [order book structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure}
|
|
508
508
|
*/
|
|
509
509
|
return await this.fetchOrderBook(symbol, limit, params);
|
|
510
510
|
}
|
|
@@ -517,7 +517,7 @@ export default class kuna extends Exchange {
|
|
|
517
517
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
518
518
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
519
519
|
* @param {object} [params] extra parameters specific to the kuna api endpoint
|
|
520
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
520
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
521
521
|
*/
|
|
522
522
|
await this.loadMarkets();
|
|
523
523
|
const market = this.market(symbol);
|
|
@@ -653,7 +653,7 @@ export default class kuna extends Exchange {
|
|
|
653
653
|
* @name kuna#fetchBalance
|
|
654
654
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
655
655
|
* @param {object} [params] extra parameters specific to the kuna api endpoint
|
|
656
|
-
* @returns {object} a [balance structure]{@link https://
|
|
656
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
657
657
|
*/
|
|
658
658
|
await this.loadMarkets();
|
|
659
659
|
const response = await this.privateGetMembersMe(params);
|
|
@@ -668,9 +668,9 @@ export default class kuna extends Exchange {
|
|
|
668
668
|
* @param {string} type 'market' or 'limit'
|
|
669
669
|
* @param {string} side 'buy' or 'sell'
|
|
670
670
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
671
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
671
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
672
672
|
* @param {object} [params] extra parameters specific to the kuna api endpoint
|
|
673
|
-
* @returns {object} an [order structure]{@link https://
|
|
673
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
674
674
|
*/
|
|
675
675
|
await this.loadMarkets();
|
|
676
676
|
const market = this.market(symbol);
|
|
@@ -694,7 +694,7 @@ export default class kuna extends Exchange {
|
|
|
694
694
|
* @param {string} id order id
|
|
695
695
|
* @param {string} symbol not used by kuna cancelOrder ()
|
|
696
696
|
* @param {object} [params] extra parameters specific to the kuna api endpoint
|
|
697
|
-
* @returns {object} An [order structure]{@link https://
|
|
697
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
698
698
|
*/
|
|
699
699
|
await this.loadMarkets();
|
|
700
700
|
const request = {
|
|
@@ -756,7 +756,7 @@ export default class kuna extends Exchange {
|
|
|
756
756
|
* @description fetches information on an order made by the user
|
|
757
757
|
* @param {string} symbol not used by kuna fetchOrder
|
|
758
758
|
* @param {object} [params] extra parameters specific to the kuna api endpoint
|
|
759
|
-
* @returns {object} An [order structure]{@link https://
|
|
759
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
760
760
|
*/
|
|
761
761
|
await this.loadMarkets();
|
|
762
762
|
const request = {
|
|
@@ -774,7 +774,7 @@ export default class kuna extends Exchange {
|
|
|
774
774
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
775
775
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
776
776
|
* @param {object} [params] extra parameters specific to the kuna api endpoint
|
|
777
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
777
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
778
778
|
*/
|
|
779
779
|
if (symbol === undefined) {
|
|
780
780
|
throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -799,7 +799,7 @@ export default class kuna extends Exchange {
|
|
|
799
799
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
800
800
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
801
801
|
* @param {object} [params] extra parameters specific to the kuna api endpoint
|
|
802
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
802
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
803
803
|
*/
|
|
804
804
|
if (symbol === undefined) {
|
|
805
805
|
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
package/js/src/latoken.js
CHANGED
|
@@ -472,7 +472,7 @@ export default class latoken extends Exchange {
|
|
|
472
472
|
* @name latoken#fetchBalance
|
|
473
473
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
474
474
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
475
|
-
* @returns {object} a [balance structure]{@link https://
|
|
475
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
476
476
|
*/
|
|
477
477
|
await this.loadMarkets();
|
|
478
478
|
const response = await this.privateGetAuthAccount(params);
|
|
@@ -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);
|
|
@@ -764,7 +764,7 @@ export default class latoken extends Exchange {
|
|
|
764
764
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
765
765
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
766
766
|
* @param {object} [params] extra parameters specific to the latoken api endpoint
|
|
767
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
767
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
768
768
|
*/
|
|
769
769
|
await this.loadMarkets();
|
|
770
770
|
const market = this.market(symbol);
|
|
@@ -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;
|
|
@@ -397,7 +397,7 @@ export default class lbank extends Exchange {
|
|
|
397
397
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
398
398
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
399
399
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
400
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
400
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
401
401
|
*/
|
|
402
402
|
await this.loadMarkets();
|
|
403
403
|
const market = this.market(symbol);
|
|
@@ -499,7 +499,7 @@ export default class lbank extends Exchange {
|
|
|
499
499
|
* @name lbank#fetchBalance
|
|
500
500
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
501
501
|
* @param {object} [params] extra parameters specific to the lbank api endpoint
|
|
502
|
-
* @returns {object} a [balance structure]{@link https://
|
|
502
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
503
503
|
*/
|
|
504
504
|
await this.loadMarkets();
|
|
505
505
|
const response = await this.privatePostUserInfo(params);
|
|
@@ -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);
|
|
@@ -910,7 +910,7 @@ export default class lbank2 extends Exchange {
|
|
|
910
910
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
911
911
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
912
912
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
913
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
913
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
914
914
|
*/
|
|
915
915
|
await this.loadMarkets();
|
|
916
916
|
const market = this.market(symbol);
|
|
@@ -1166,7 +1166,7 @@ export default class lbank2 extends Exchange {
|
|
|
1166
1166
|
* @see https://www.lbank.info/en-US/docs/index.html#account-information
|
|
1167
1167
|
* @see https://www.lbank.info/en-US/docs/index.html#get-all-coins-information
|
|
1168
1168
|
* @param {object} [params] extra parameters specific to the lbank2 api endpoint
|
|
1169
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1169
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1170
1170
|
*/
|
|
1171
1171
|
await this.loadMarkets();
|
|
1172
1172
|
let method = this.safeString(params, 'method');
|
|
@@ -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',
|