ccxt 4.1.63 → 4.1.65
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 +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +33 -3
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +27 -28
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +162 -123
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- 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 +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +12 -9
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- 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 +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +33 -3
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +48 -30
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +27 -28
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +162 -123
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +12 -9
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- 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 +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/js/src/kuna.js
CHANGED
|
@@ -406,7 +406,7 @@ export default class kuna extends Exchange {
|
|
|
406
406
|
* @name kuna#fetchTime
|
|
407
407
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
408
408
|
* @see https://docs.kuna.io/docs/get-time-on-the-server
|
|
409
|
-
* @param {object} [params] extra parameters specific to the
|
|
409
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
410
410
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
411
411
|
*/
|
|
412
412
|
const response = await this.v4PublicGetPublicTimestamp(params);
|
|
@@ -427,7 +427,7 @@ export default class kuna extends Exchange {
|
|
|
427
427
|
* @name kuna#fetchCurrencies
|
|
428
428
|
* @description fetches all available currencies on an exchange
|
|
429
429
|
* @see https://docs.kuna.io/docs/get-information-about-available-currencies
|
|
430
|
-
* @param {object} [params] extra parameters specific to the
|
|
430
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
431
431
|
* @returns {object} an associative dictionary of currencies
|
|
432
432
|
*/
|
|
433
433
|
const response = await this.v4PublicGetPublicCurrencies(params);
|
|
@@ -522,7 +522,7 @@ export default class kuna extends Exchange {
|
|
|
522
522
|
* @name kuna#fetchMarkets
|
|
523
523
|
* @description retrieves data on all markets for kuna
|
|
524
524
|
* @see https://docs.kuna.io/docs/get-all-traded-markets
|
|
525
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
525
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
526
526
|
* @returns {object[]} an array of objects representing market data
|
|
527
527
|
*/
|
|
528
528
|
const response = await this.v4PublicGetMarketsPublicGetAll(params);
|
|
@@ -617,7 +617,7 @@ export default class kuna extends Exchange {
|
|
|
617
617
|
* @see https://docs.kuna.io/docs/get-public-orders-book
|
|
618
618
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
619
619
|
* @param {int} [limit] 5, 10, 20, 50, 100, 500, or 1000 (default)
|
|
620
|
-
* @param {object} [params] extra parameters specific to the
|
|
620
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
621
621
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
622
622
|
*/
|
|
623
623
|
await this.loadMarkets();
|
|
@@ -700,10 +700,10 @@ export default class kuna extends Exchange {
|
|
|
700
700
|
/**
|
|
701
701
|
* @method
|
|
702
702
|
* @name kuna#fetchTickers
|
|
703
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
703
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market. The average is not returned in the response, but the median can be accessed via response['info']['price']
|
|
704
704
|
* @see https://docs.kuna.io/docs/get-market-info-by-tickers
|
|
705
705
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
706
|
-
* @param {object} [params] extra parameters specific to the
|
|
706
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
707
707
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
708
708
|
*/
|
|
709
709
|
await this.loadMarkets();
|
|
@@ -746,7 +746,7 @@ export default class kuna extends Exchange {
|
|
|
746
746
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
747
747
|
* @see https://docs.kuna.io/docs/get-market-info-by-tickers
|
|
748
748
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
749
|
-
* @param {object} [params] extra parameters specific to the
|
|
749
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
750
750
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
751
751
|
*/
|
|
752
752
|
await this.loadMarkets();
|
|
@@ -787,7 +787,7 @@ export default class kuna extends Exchange {
|
|
|
787
787
|
* @description fetches level 3 information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
788
788
|
* @param {string} symbol unified market symbol
|
|
789
789
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
790
|
-
* @param {object} [params] extra parameters specific to the
|
|
790
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
791
791
|
* @returns {object} an [order book structure]{@link https://docs.ccxt.com/#/?id=order-book-structure}
|
|
792
792
|
*/
|
|
793
793
|
return await this.fetchOrderBook(symbol, limit, params);
|
|
@@ -801,7 +801,7 @@ export default class kuna extends Exchange {
|
|
|
801
801
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
802
802
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
803
803
|
* @param {int} [limit] between 1 and 100, 25 by default
|
|
804
|
-
* @param {object} [params] extra parameters specific to the
|
|
804
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
805
805
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
806
806
|
*/
|
|
807
807
|
await this.loadMarkets();
|
|
@@ -915,7 +915,7 @@ export default class kuna extends Exchange {
|
|
|
915
915
|
* @method
|
|
916
916
|
* @name kuna#fetchBalance
|
|
917
917
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
918
|
-
* @param {object} [params] extra parameters specific to the
|
|
918
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
919
919
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
920
920
|
*/
|
|
921
921
|
await this.loadMarkets();
|
|
@@ -943,7 +943,7 @@ export default class kuna extends Exchange {
|
|
|
943
943
|
* @param {string} side 'buy' or 'sell'
|
|
944
944
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
945
945
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
946
|
-
* @param {object} [params] extra parameters specific to the
|
|
946
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
947
947
|
* @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
|
|
948
948
|
*
|
|
949
949
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
@@ -1000,7 +1000,7 @@ export default class kuna extends Exchange {
|
|
|
1000
1000
|
* @description cancels an open order
|
|
1001
1001
|
* @param {string} id order id
|
|
1002
1002
|
* @param {string} symbol unified market symbol
|
|
1003
|
-
* @param {object} [params] extra parameters specific to the
|
|
1003
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1004
1004
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1005
1005
|
*/
|
|
1006
1006
|
await this.loadMarkets();
|
|
@@ -1031,7 +1031,7 @@ export default class kuna extends Exchange {
|
|
|
1031
1031
|
* @description cancels an open order
|
|
1032
1032
|
* @param {string} ids order ids
|
|
1033
1033
|
* @param {string} symbol not used by kuna cancelOrder
|
|
1034
|
-
* @param {object} [params] extra parameters specific to the
|
|
1034
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1035
1035
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1036
1036
|
*/
|
|
1037
1037
|
await this.loadMarkets();
|
|
@@ -1150,7 +1150,7 @@ export default class kuna extends Exchange {
|
|
|
1150
1150
|
* @description fetches information on an order made by the user
|
|
1151
1151
|
* @see https://docs.kuna.io/docs/get-order-details-by-id
|
|
1152
1152
|
* @param {string} symbol not used by kuna fetchOrder
|
|
1153
|
-
* @param {object} [params] extra parameters specific to the
|
|
1153
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1154
1154
|
*
|
|
1155
1155
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
1156
1156
|
* @param {boolean} [params.withTrades] default == true, specify if the response should include trades associated with the order
|
|
@@ -1208,7 +1208,7 @@ export default class kuna extends Exchange {
|
|
|
1208
1208
|
* @param {string} symbol unified market symbol
|
|
1209
1209
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1210
1210
|
* @param {int} [limit] 1-100, the maximum number of open orders structures to retrieve
|
|
1211
|
-
* @param {object} [params] extra parameters specific to the
|
|
1211
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1212
1212
|
* @param {int} [params.until] the latest timestamp (ms) to fetch orders for
|
|
1213
1213
|
*
|
|
1214
1214
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
@@ -1267,7 +1267,7 @@ export default class kuna extends Exchange {
|
|
|
1267
1267
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1268
1268
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1269
1269
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1270
|
-
* @param {object} [params] extra parameters specific to the
|
|
1270
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1271
1271
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
1272
1272
|
*
|
|
1273
1273
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
@@ -1286,7 +1286,7 @@ export default class kuna extends Exchange {
|
|
|
1286
1286
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1287
1287
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1288
1288
|
* @param {int} [limit] 1-100, the maximum number of open orders structures to retrieve
|
|
1289
|
-
* @param {object} [params] extra parameters specific to the
|
|
1289
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1290
1290
|
* @param {int} [params.until] the latest timestamp (ms) to fetch orders for
|
|
1291
1291
|
*
|
|
1292
1292
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
@@ -1351,7 +1351,7 @@ export default class kuna extends Exchange {
|
|
|
1351
1351
|
* @param {string} symbol unified market symbol
|
|
1352
1352
|
* @param {int} [since] not used by kuna fetchMyTrades
|
|
1353
1353
|
* @param {int} [limit] not used by kuna fetchMyTrades
|
|
1354
|
-
* @param {object} [params] extra parameters specific to the
|
|
1354
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1355
1355
|
*
|
|
1356
1356
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
1357
1357
|
* @param {string} [params.orderId] UUID of an order, to receive trades for this order only
|
|
@@ -1398,7 +1398,7 @@ export default class kuna extends Exchange {
|
|
|
1398
1398
|
* @param {float} amount the amount to withdraw
|
|
1399
1399
|
* @param {string} address the address to withdraw to
|
|
1400
1400
|
* @param {string} tag
|
|
1401
|
-
* @param {object} [params] extra parameters specific to the
|
|
1401
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1402
1402
|
* @param {string} [params.chain] the chain to withdraw to
|
|
1403
1403
|
*
|
|
1404
1404
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
@@ -1450,7 +1450,7 @@ export default class kuna extends Exchange {
|
|
|
1450
1450
|
* @param {string} code unified currency code
|
|
1451
1451
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1452
1452
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1453
|
-
* @param {object} [params] extra parameters specific to the
|
|
1453
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1454
1454
|
* @param {int} [params.until] the latest time in ms to fetch deposits for
|
|
1455
1455
|
*
|
|
1456
1456
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
@@ -1517,7 +1517,7 @@ export default class kuna extends Exchange {
|
|
|
1517
1517
|
* @see https://docs.kuna.io/docs/get-withdraw-details-by-id
|
|
1518
1518
|
* @param {string} id withdrawal id
|
|
1519
1519
|
* @param {string} code not used by kuna.fetchWithdrawal
|
|
1520
|
-
* @param {object} [params] extra parameters specific to the
|
|
1520
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1521
1521
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1522
1522
|
*/
|
|
1523
1523
|
await this.loadMarkets();
|
|
@@ -1556,7 +1556,7 @@ export default class kuna extends Exchange {
|
|
|
1556
1556
|
* @description create a currency deposit address
|
|
1557
1557
|
* @see https://docs.kuna.io/docs/generate-a-constant-crypto-address-for-deposit
|
|
1558
1558
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1559
|
-
* @param {object} [params] extra parameters specific to the
|
|
1559
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1560
1560
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1561
1561
|
*/
|
|
1562
1562
|
await this.loadMarkets();
|
|
@@ -1584,7 +1584,7 @@ export default class kuna extends Exchange {
|
|
|
1584
1584
|
* @description fetch the deposit address for a currency associated with this account
|
|
1585
1585
|
* @see https://docs.kuna.io/docs/find-crypto-address-for-deposit
|
|
1586
1586
|
* @param {string} code unified currency code
|
|
1587
|
-
* @param {object} [params] extra parameters specific to the
|
|
1587
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1588
1588
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1589
1589
|
*/
|
|
1590
1590
|
await this.loadMarkets();
|
|
@@ -1644,7 +1644,7 @@ export default class kuna extends Exchange {
|
|
|
1644
1644
|
* @param {string} code unified currency code
|
|
1645
1645
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1646
1646
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1647
|
-
* @param {object} [params] extra parameters specific to the
|
|
1647
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1648
1648
|
* @param {int} [params.until] the latest time in ms to fetch deposits for
|
|
1649
1649
|
*
|
|
1650
1650
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
@@ -1711,7 +1711,7 @@ export default class kuna extends Exchange {
|
|
|
1711
1711
|
* @see https://docs.kuna.io/docs/get-deposit-details-by-id
|
|
1712
1712
|
* @param {string} id deposit id
|
|
1713
1713
|
* @param {string} code filter by currency code
|
|
1714
|
-
* @param {object} [params] extra parameters specific to the
|
|
1714
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1715
1715
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1716
1716
|
*/
|
|
1717
1717
|
await this.loadMarkets();
|
package/js/src/latoken.js
CHANGED
|
@@ -230,7 +230,7 @@ export default class latoken extends Exchange {
|
|
|
230
230
|
* @method
|
|
231
231
|
* @name latoken#fetchTime
|
|
232
232
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
233
|
-
* @param {object} [params] extra parameters specific to the
|
|
233
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
234
234
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
235
235
|
*/
|
|
236
236
|
const response = await this.publicGetTime(params);
|
|
@@ -246,7 +246,7 @@ export default class latoken extends Exchange {
|
|
|
246
246
|
* @method
|
|
247
247
|
* @name latoken#fetchMarkets
|
|
248
248
|
* @description retrieves data on all markets for latoken
|
|
249
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
249
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
250
250
|
* @returns {object[]} an array of objects representing market data
|
|
251
251
|
*/
|
|
252
252
|
const currencies = await this.fetchCurrenciesFromCache(params);
|
|
@@ -396,7 +396,7 @@ export default class latoken extends Exchange {
|
|
|
396
396
|
* @method
|
|
397
397
|
* @name latoken#fetchCurrencies
|
|
398
398
|
* @description fetches all available currencies on an exchange
|
|
399
|
-
* @param {object} [params] extra parameters specific to the
|
|
399
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
400
400
|
* @returns {object} an associative dictionary of currencies
|
|
401
401
|
*/
|
|
402
402
|
const response = await this.fetchCurrenciesFromCache(params);
|
|
@@ -482,7 +482,7 @@ export default class latoken extends Exchange {
|
|
|
482
482
|
* @method
|
|
483
483
|
* @name latoken#fetchBalance
|
|
484
484
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
485
|
-
* @param {object} [params] extra parameters specific to the
|
|
485
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
486
486
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
487
487
|
*/
|
|
488
488
|
await this.loadMarkets();
|
|
@@ -550,7 +550,7 @@ export default class latoken extends Exchange {
|
|
|
550
550
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
551
551
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
552
552
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
553
|
-
* @param {object} [params] extra parameters specific to the
|
|
553
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
554
554
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
555
555
|
*/
|
|
556
556
|
await this.loadMarkets();
|
|
@@ -634,7 +634,7 @@ export default class latoken extends Exchange {
|
|
|
634
634
|
* @name latoken#fetchTicker
|
|
635
635
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
636
636
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
637
|
-
* @param {object} [params] extra parameters specific to the
|
|
637
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
638
638
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
639
639
|
*/
|
|
640
640
|
await this.loadMarkets();
|
|
@@ -670,9 +670,9 @@ export default class latoken extends Exchange {
|
|
|
670
670
|
/**
|
|
671
671
|
* @method
|
|
672
672
|
* @name latoken#fetchTickers
|
|
673
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
673
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
674
674
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
675
|
-
* @param {object} [params] extra parameters specific to the
|
|
675
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
676
676
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
677
677
|
*/
|
|
678
678
|
await this.loadMarkets();
|
|
@@ -796,7 +796,7 @@ export default class latoken extends Exchange {
|
|
|
796
796
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
797
797
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
798
798
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
799
|
-
* @param {object} [params] extra parameters specific to the
|
|
799
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
800
800
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
801
801
|
*/
|
|
802
802
|
await this.loadMarkets();
|
|
@@ -826,7 +826,7 @@ export default class latoken extends Exchange {
|
|
|
826
826
|
* @name latoken#fetchTradingFee
|
|
827
827
|
* @description fetch the trading fees for a market
|
|
828
828
|
* @param {string} symbol unified market symbol
|
|
829
|
-
* @param {object} [params] extra parameters specific to the
|
|
829
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
830
830
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
831
831
|
*/
|
|
832
832
|
let method = this.safeString(params, 'method');
|
|
@@ -891,7 +891,7 @@ export default class latoken extends Exchange {
|
|
|
891
891
|
* @param {string} symbol unified market symbol
|
|
892
892
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
893
893
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
894
|
-
* @param {object} [params] extra parameters specific to the
|
|
894
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
895
895
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
896
896
|
*/
|
|
897
897
|
await this.loadMarkets();
|
|
@@ -1073,7 +1073,7 @@ export default class latoken extends Exchange {
|
|
|
1073
1073
|
* @param {string} symbol unified market symbol
|
|
1074
1074
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1075
1075
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1076
|
-
* @param {object} [params] extra parameters specific to the
|
|
1076
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1077
1077
|
* @param {boolean} [params.trigger] true if fetching trigger orders
|
|
1078
1078
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1079
1079
|
*/
|
|
@@ -1132,7 +1132,7 @@ export default class latoken extends Exchange {
|
|
|
1132
1132
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1133
1133
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1134
1134
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1135
|
-
* @param {object} [params] extra parameters specific to the
|
|
1135
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1136
1136
|
* @param {boolean} [params.trigger] true if fetching trigger orders
|
|
1137
1137
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1138
1138
|
*/
|
|
@@ -1201,7 +1201,7 @@ export default class latoken extends Exchange {
|
|
|
1201
1201
|
* @see https://api.latoken.com/doc/v2/#tag/Order/operation/getOrderById
|
|
1202
1202
|
* @see https://api.latoken.com/doc/v2/#tag/StopOrder/operation/getStopOrderById
|
|
1203
1203
|
* @param {string} [symbol] not used by latoken fetchOrder
|
|
1204
|
-
* @param {object} [params] extra parameters specific to the
|
|
1204
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1205
1205
|
* @param {boolean} [params.trigger] true if fetching a trigger order
|
|
1206
1206
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1207
1207
|
*/
|
|
@@ -1252,7 +1252,7 @@ export default class latoken extends Exchange {
|
|
|
1252
1252
|
* @param {string} side 'buy' or 'sell'
|
|
1253
1253
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1254
1254
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1255
|
-
* @param {object} [params] extra parameters specific to the
|
|
1255
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1256
1256
|
* @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
|
|
1257
1257
|
*
|
|
1258
1258
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
@@ -1311,7 +1311,7 @@ export default class latoken extends Exchange {
|
|
|
1311
1311
|
* @see https://api.latoken.com/doc/v2/#tag/StopOrder/operation/cancelStopOrder // stop
|
|
1312
1312
|
* @param {string} id order id
|
|
1313
1313
|
* @param {string} symbol not used by latoken cancelOrder ()
|
|
1314
|
-
* @param {object} [params] extra parameters specific to the
|
|
1314
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1315
1315
|
* @param {boolean} [params.trigger] true if cancelling a trigger order
|
|
1316
1316
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1317
1317
|
*/
|
|
@@ -1347,7 +1347,7 @@ export default class latoken extends Exchange {
|
|
|
1347
1347
|
* @see https://api.latoken.com/doc/v2/#tag/Order/operation/cancelAllOrders
|
|
1348
1348
|
* @see https://api.latoken.com/doc/v2/#tag/Order/operation/cancelAllOrdersByPair
|
|
1349
1349
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
1350
|
-
* @param {object} [params] extra parameters specific to the
|
|
1350
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1351
1351
|
* @param {boolean} [params.trigger] true if cancelling trigger orders
|
|
1352
1352
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1353
1353
|
*/
|
|
@@ -1396,7 +1396,7 @@ export default class latoken extends Exchange {
|
|
|
1396
1396
|
* @param {string} code unified currency code for the currency of the transactions, default is undefined
|
|
1397
1397
|
* @param {int} [since] timestamp in ms of the earliest transaction, default is undefined
|
|
1398
1398
|
* @param {int} [limit] max number of transactions to return, default is undefined
|
|
1399
|
-
* @param {object} [params] extra parameters specific to the
|
|
1399
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1400
1400
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1401
1401
|
*/
|
|
1402
1402
|
await this.loadMarkets();
|
|
@@ -1524,7 +1524,7 @@ export default class latoken extends Exchange {
|
|
|
1524
1524
|
* @param {string} code unified currency code of the currency transferred
|
|
1525
1525
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
1526
1526
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
1527
|
-
* @param {object} [params] extra parameters specific to the
|
|
1527
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1528
1528
|
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1529
1529
|
*/
|
|
1530
1530
|
await this.loadMarkets();
|
|
@@ -1573,7 +1573,7 @@ export default class latoken extends Exchange {
|
|
|
1573
1573
|
* @param {float} amount amount to transfer
|
|
1574
1574
|
* @param {string} fromAccount account to transfer from
|
|
1575
1575
|
* @param {string} toAccount account to transfer to
|
|
1576
|
-
* @param {object} [params] extra parameters specific to the
|
|
1576
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1577
1577
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1578
1578
|
*/
|
|
1579
1579
|
await this.loadMarkets();
|
package/js/src/lbank.js
CHANGED
|
@@ -300,7 +300,7 @@ export default class lbank extends Exchange {
|
|
|
300
300
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
301
301
|
* @see https://www.lbank.info/en-US/docs/index.html#get-timestamp
|
|
302
302
|
* @see https://www.lbank.com/en-US/docs/contract.html#get-the-current-time
|
|
303
|
-
* @param {object} [params] extra parameters specific to the
|
|
303
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
304
304
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
305
305
|
*/
|
|
306
306
|
let type = undefined;
|
|
@@ -341,7 +341,7 @@ export default class lbank extends Exchange {
|
|
|
341
341
|
* @description retrieves data on all markets for lbank2
|
|
342
342
|
* @see https://www.lbank.com/en-US/docs/index.html#trading-pairs
|
|
343
343
|
* @see https://www.lbank.com/en-US/docs/contract.html#query-contract-information-list
|
|
344
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
344
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
345
345
|
* @returns {object[]} an array of objects representing market data
|
|
346
346
|
*/
|
|
347
347
|
const marketsPromises = [
|
|
@@ -595,7 +595,7 @@ export default class lbank extends Exchange {
|
|
|
595
595
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
596
596
|
* @see https://www.lbank.info/en-US/docs/index.html#query-current-market-data-new
|
|
597
597
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
598
|
-
* @param {object} [params] extra parameters specific to the
|
|
598
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
599
599
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
600
600
|
*/
|
|
601
601
|
await this.loadMarkets();
|
|
@@ -637,11 +637,11 @@ export default class lbank extends Exchange {
|
|
|
637
637
|
/**
|
|
638
638
|
* @method
|
|
639
639
|
* @name lbank2#fetchTickers
|
|
640
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
640
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
641
641
|
* @see https://www.lbank.info/en-US/docs/index.html#query-current-market-data-new
|
|
642
642
|
* @see https://www.lbank.com/en-US/docs/contract.html#query-contract-market-list
|
|
643
643
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
644
|
-
* @param {object} [params] extra parameters specific to the
|
|
644
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
645
645
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
646
646
|
*/
|
|
647
647
|
await this.loadMarkets();
|
|
@@ -722,7 +722,7 @@ export default class lbank extends Exchange {
|
|
|
722
722
|
* @see https://www.lbank.com/en-US/docs/contract.html#get-handicap
|
|
723
723
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
724
724
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
725
|
-
* @param {object} [params] extra parameters specific to the
|
|
725
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
726
726
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
727
727
|
*/
|
|
728
728
|
await this.loadMarkets();
|
|
@@ -912,7 +912,7 @@ export default class lbank extends Exchange {
|
|
|
912
912
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
913
913
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
914
914
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
915
|
-
* @param {object} [params] extra parameters specific to the
|
|
915
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
916
916
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
917
917
|
*/
|
|
918
918
|
await this.loadMarkets();
|
|
@@ -985,7 +985,7 @@ export default class lbank extends Exchange {
|
|
|
985
985
|
* @param {string} timeframe the length of time each candle represents
|
|
986
986
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
987
987
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
988
|
-
* @param {object} [params] extra parameters specific to the
|
|
988
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
989
989
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
990
990
|
*/
|
|
991
991
|
// endpoint doesnt work
|
|
@@ -1168,7 +1168,7 @@ export default class lbank extends Exchange {
|
|
|
1168
1168
|
* @see https://www.lbank.info/en-US/docs/index.html#asset-information
|
|
1169
1169
|
* @see https://www.lbank.info/en-US/docs/index.html#account-information
|
|
1170
1170
|
* @see https://www.lbank.info/en-US/docs/index.html#get-all-coins-information
|
|
1171
|
-
* @param {object} [params] extra parameters specific to the
|
|
1171
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1172
1172
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1173
1173
|
*/
|
|
1174
1174
|
await this.loadMarkets();
|
|
@@ -1234,7 +1234,7 @@ export default class lbank extends Exchange {
|
|
|
1234
1234
|
* @description fetch the trading fees for a market
|
|
1235
1235
|
* @see https://www.lbank.info/en-US/docs/index.html#transaction-fee-rate-query
|
|
1236
1236
|
* @param {string} symbol unified market symbol
|
|
1237
|
-
* @param {object} [params] extra parameters specific to the
|
|
1237
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1238
1238
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1239
1239
|
*/
|
|
1240
1240
|
const market = this.market(symbol);
|
|
@@ -1247,7 +1247,7 @@ export default class lbank extends Exchange {
|
|
|
1247
1247
|
* @name lbank2#fetchTradingFees
|
|
1248
1248
|
* @description fetch the trading fees for multiple markets
|
|
1249
1249
|
* @see https://www.lbank.info/en-US/docs/index.html#transaction-fee-rate-query
|
|
1250
|
-
* @param {object} [params] extra parameters specific to the
|
|
1250
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1251
1251
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1252
1252
|
*/
|
|
1253
1253
|
await this.loadMarkets();
|
|
@@ -1274,7 +1274,7 @@ export default class lbank extends Exchange {
|
|
|
1274
1274
|
* @param {string} side 'buy' or 'sell'
|
|
1275
1275
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1276
1276
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1277
|
-
* @param {object} [params] extra parameters specific to the
|
|
1277
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1278
1278
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1279
1279
|
*/
|
|
1280
1280
|
await this.loadMarkets();
|
|
@@ -1502,7 +1502,7 @@ export default class lbank extends Exchange {
|
|
|
1502
1502
|
* @see https://www.lbank.info/en-US/docs/index.html#query-order
|
|
1503
1503
|
* @see https://www.lbank.info/en-US/docs/index.html#query-order-new
|
|
1504
1504
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1505
|
-
* @param {object} [params] extra parameters specific to the
|
|
1505
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1506
1506
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1507
1507
|
*/
|
|
1508
1508
|
await this.loadMarkets();
|
|
@@ -1607,7 +1607,7 @@ export default class lbank extends Exchange {
|
|
|
1607
1607
|
* @param {string} symbol unified market symbol
|
|
1608
1608
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1609
1609
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
1610
|
-
* @param {object} [params] extra parameters specific to the
|
|
1610
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1611
1611
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1612
1612
|
*/
|
|
1613
1613
|
if (symbol === undefined) {
|
|
@@ -1666,7 +1666,7 @@ export default class lbank extends Exchange {
|
|
|
1666
1666
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1667
1667
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1668
1668
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1669
|
-
* @param {object} [params] extra parameters specific to the
|
|
1669
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1670
1670
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1671
1671
|
*/
|
|
1672
1672
|
// default query is for canceled and completely filled orders
|
|
@@ -1726,7 +1726,7 @@ export default class lbank extends Exchange {
|
|
|
1726
1726
|
* @param {string} symbol unified market symbol
|
|
1727
1727
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1728
1728
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
1729
|
-
* @param {object} [params] extra parameters specific to the
|
|
1729
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1730
1730
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1731
1731
|
*/
|
|
1732
1732
|
if (symbol === undefined) {
|
|
@@ -1782,7 +1782,7 @@ export default class lbank extends Exchange {
|
|
|
1782
1782
|
* @see https://www.lbank.info/en-US/docs/index.html#cancel-order-new
|
|
1783
1783
|
* @param {string} id order id
|
|
1784
1784
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1785
|
-
* @param {object} [params] extra parameters specific to the
|
|
1785
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1786
1786
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1787
1787
|
*/
|
|
1788
1788
|
if (symbol === undefined) {
|
|
@@ -1823,7 +1823,7 @@ export default class lbank extends Exchange {
|
|
|
1823
1823
|
* @description cancel all open orders in a market
|
|
1824
1824
|
* @see https://www.lbank.info/en-US/docs/index.html#cancel-all-pending-orders-for-a-single-trading-pair
|
|
1825
1825
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
1826
|
-
* @param {object} [params] extra parameters specific to the
|
|
1826
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1827
1827
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1828
1828
|
*/
|
|
1829
1829
|
if (symbol === undefined) {
|
|
@@ -1871,7 +1871,7 @@ export default class lbank extends Exchange {
|
|
|
1871
1871
|
* @see https://www.lbank.info/en-US/docs/index.html#get-deposit-address
|
|
1872
1872
|
* @see https://www.lbank.info/en-US/docs/index.html#the-user-obtains-the-deposit-address
|
|
1873
1873
|
* @param {string} code unified currency code
|
|
1874
|
-
* @param {object} [params] extra parameters specific to the
|
|
1874
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1875
1875
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1876
1876
|
*/
|
|
1877
1877
|
await this.loadMarkets();
|
|
@@ -1972,7 +1972,7 @@ export default class lbank extends Exchange {
|
|
|
1972
1972
|
* @param {float} amount the amount to withdraw
|
|
1973
1973
|
* @param {string} address the address to withdraw to
|
|
1974
1974
|
* @param {string} tag
|
|
1975
|
-
* @param {object} [params] extra parameters specific to the
|
|
1975
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1976
1976
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1977
1977
|
*/
|
|
1978
1978
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -2137,7 +2137,7 @@ export default class lbank extends Exchange {
|
|
|
2137
2137
|
* @param {string} code unified currency code
|
|
2138
2138
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2139
2139
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2140
|
-
* @param {object} [params] extra parameters specific to the
|
|
2140
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2141
2141
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2142
2142
|
*/
|
|
2143
2143
|
await this.loadMarkets();
|
|
@@ -2190,7 +2190,7 @@ export default class lbank extends Exchange {
|
|
|
2190
2190
|
* @param {string} code unified currency code
|
|
2191
2191
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2192
2192
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2193
|
-
* @param {object} [params] extra parameters specific to the
|
|
2193
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2194
2194
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2195
2195
|
*/
|
|
2196
2196
|
await this.loadMarkets();
|
|
@@ -2245,7 +2245,7 @@ export default class lbank extends Exchange {
|
|
|
2245
2245
|
* @deprecated
|
|
2246
2246
|
* @description please use fetchDepositWithdrawFees instead
|
|
2247
2247
|
* @param {string[]|undefined} codes not used by lbank2 fetchTransactionFees ()
|
|
2248
|
-
* @param {object} [params] extra parameters specific to the
|
|
2248
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2249
2249
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2250
2250
|
*/
|
|
2251
2251
|
// private only returns information for currencies with non-zero balance
|
|
@@ -2392,7 +2392,7 @@ export default class lbank extends Exchange {
|
|
|
2392
2392
|
* @see https://www.lbank.info/en-US/docs/index.html#get-all-coins-information
|
|
2393
2393
|
* @see https://www.lbank.info/en-US/docs/index.html#withdrawal-configurations
|
|
2394
2394
|
* @param {string[]|undefined} codes array of unified currency codes
|
|
2395
|
-
* @param {object} [params] extra parameters specific to the
|
|
2395
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2396
2396
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2397
2397
|
*/
|
|
2398
2398
|
await this.loadMarkets();
|