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/dist/cjs/src/pro/htx.js
CHANGED
|
@@ -131,7 +131,7 @@ class htx extends htx$1 {
|
|
|
131
131
|
* @name huobi#watchTicker
|
|
132
132
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
133
133
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
134
|
-
* @param {object} [params] extra parameters specific to the
|
|
134
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
135
135
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
136
136
|
*/
|
|
137
137
|
await this.loadMarkets();
|
|
@@ -201,7 +201,7 @@ class htx extends htx$1 {
|
|
|
201
201
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
202
202
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
203
203
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
204
|
-
* @param {object} [params] extra parameters specific to the
|
|
204
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
205
205
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
206
206
|
*/
|
|
207
207
|
await this.loadMarkets();
|
|
@@ -265,7 +265,7 @@ class htx extends htx$1 {
|
|
|
265
265
|
* @param {string} timeframe the length of time each candle represents
|
|
266
266
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
267
267
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
268
|
-
* @param {object} [params] extra parameters specific to the
|
|
268
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
269
269
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
270
270
|
*/
|
|
271
271
|
await this.loadMarkets();
|
|
@@ -326,7 +326,7 @@ class htx extends htx$1 {
|
|
|
326
326
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
327
327
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
328
328
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
329
|
-
* @param {object} [params] extra parameters specific to the
|
|
329
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
330
330
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
331
331
|
*/
|
|
332
332
|
await this.loadMarkets();
|
|
@@ -663,7 +663,7 @@ class htx extends htx$1 {
|
|
|
663
663
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
664
664
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
665
665
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
666
|
-
* @param {object} [params] extra parameters specific to the
|
|
666
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
667
667
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
668
668
|
*/
|
|
669
669
|
this.checkRequiredCredentials();
|
|
@@ -766,7 +766,7 @@ class htx extends htx$1 {
|
|
|
766
766
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
767
767
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
768
768
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
769
|
-
* @param {object} [params] extra parameters specific to the
|
|
769
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
770
770
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
771
771
|
*/
|
|
772
772
|
await this.loadMarkets();
|
|
@@ -1216,7 +1216,7 @@ class htx extends htx$1 {
|
|
|
1216
1216
|
* @see https://www.huobi.com/en-in/opend/newApiPages/?id=5d5156b5-77b6-11ed-9966-0242ac110003
|
|
1217
1217
|
* @description watch all open positions. Note: huobi has one channel for each marginMode and type
|
|
1218
1218
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1219
|
-
* @param {object} params extra parameters specific to the
|
|
1219
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
1220
1220
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
|
|
1221
1221
|
*/
|
|
1222
1222
|
await this.loadMarkets();
|
|
@@ -1332,7 +1332,7 @@ class htx extends htx$1 {
|
|
|
1332
1332
|
* @method
|
|
1333
1333
|
* @name huobi#watchBalance
|
|
1334
1334
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
1335
|
-
* @param {object} [params] extra parameters specific to the
|
|
1335
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1336
1336
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1337
1337
|
*/
|
|
1338
1338
|
let type = undefined;
|
|
@@ -49,7 +49,7 @@ class huobijp extends huobijp$1 {
|
|
|
49
49
|
* @name huobijp#watchTicker
|
|
50
50
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
51
51
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
52
|
-
* @param {object} [params] extra parameters specific to the
|
|
52
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
53
53
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
54
54
|
*/
|
|
55
55
|
await this.loadMarkets();
|
|
@@ -113,7 +113,7 @@ class huobijp extends huobijp$1 {
|
|
|
113
113
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
114
114
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
115
115
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
116
|
-
* @param {object} [params] extra parameters specific to the
|
|
116
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
117
117
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
118
118
|
*/
|
|
119
119
|
await this.loadMarkets();
|
|
@@ -191,7 +191,7 @@ class huobijp extends huobijp$1 {
|
|
|
191
191
|
* @param {string} timeframe the length of time each candle represents
|
|
192
192
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
193
193
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
194
|
-
* @param {object} [params] extra parameters specific to the
|
|
194
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
195
195
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
196
196
|
*/
|
|
197
197
|
await this.loadMarkets();
|
|
@@ -263,7 +263,7 @@ class huobijp extends huobijp$1 {
|
|
|
263
263
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
264
264
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
265
265
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
266
|
-
* @param {object} [params] extra parameters specific to the
|
|
266
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
267
267
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
268
268
|
*/
|
|
269
269
|
if ((limit !== undefined) && (limit !== 150)) {
|
package/dist/cjs/src/pro/idex.js
CHANGED
|
@@ -69,7 +69,7 @@ class idex extends idex$1 {
|
|
|
69
69
|
* @name idex#watchTicker
|
|
70
70
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
71
71
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
72
|
-
* @param {object} [params] extra parameters specific to the
|
|
72
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
73
73
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
74
74
|
*/
|
|
75
75
|
await this.loadMarkets();
|
|
@@ -143,7 +143,7 @@ class idex extends idex$1 {
|
|
|
143
143
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
144
144
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
145
145
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
146
|
-
* @param {object} [params] extra parameters specific to the
|
|
146
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
147
147
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
148
148
|
*/
|
|
149
149
|
await this.loadMarkets();
|
|
@@ -238,7 +238,7 @@ class idex extends idex$1 {
|
|
|
238
238
|
* @param {string} timeframe the length of time each candle represents
|
|
239
239
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
240
240
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
241
|
-
* @param {object} [params] extra parameters specific to the
|
|
241
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
242
242
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
243
243
|
*/
|
|
244
244
|
await this.loadMarkets();
|
|
@@ -406,7 +406,7 @@ class idex extends idex$1 {
|
|
|
406
406
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
407
407
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
408
408
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
409
|
-
* @param {object} [params] extra parameters specific to the
|
|
409
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
410
410
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
411
411
|
*/
|
|
412
412
|
await this.loadMarkets();
|
|
@@ -510,7 +510,7 @@ class idex extends idex$1 {
|
|
|
510
510
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
511
511
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
512
512
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
513
|
-
* @param {object} [params] extra parameters specific to the
|
|
513
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
514
514
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
515
515
|
*/
|
|
516
516
|
await this.loadMarkets();
|
|
@@ -40,7 +40,7 @@ class independentreserve extends independentreserve$1 {
|
|
|
40
40
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
41
41
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
42
42
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
43
|
-
* @param {object} [params] extra parameters specific to the
|
|
43
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
44
44
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
45
45
|
*/
|
|
46
46
|
await this.loadMarkets();
|
|
@@ -123,7 +123,7 @@ class independentreserve extends independentreserve$1 {
|
|
|
123
123
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
124
124
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
125
125
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
126
|
-
* @param {object} [params] extra parameters specific to the
|
|
126
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
127
127
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
128
128
|
*/
|
|
129
129
|
await this.loadMarkets();
|
|
@@ -114,7 +114,7 @@ class kraken extends kraken$1 {
|
|
|
114
114
|
* @param {string} side 'buy' or 'sell'
|
|
115
115
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
116
116
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
117
|
-
* @param {object} [params] extra parameters specific to the
|
|
117
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
118
118
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
119
119
|
*/
|
|
120
120
|
await this.loadMarkets();
|
|
@@ -171,7 +171,7 @@ class kraken extends kraken$1 {
|
|
|
171
171
|
* @param {string} side 'buy' or 'sell'
|
|
172
172
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
173
173
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
174
|
-
* @param {object} [params] extra parameters specific to the
|
|
174
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
175
175
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
176
176
|
*/
|
|
177
177
|
await this.loadMarkets();
|
|
@@ -199,7 +199,7 @@ class kraken extends kraken$1 {
|
|
|
199
199
|
* @description cancel multiple orders
|
|
200
200
|
* @param {string[]} ids order ids
|
|
201
201
|
* @param {string} symbol unified market symbol, default is undefined
|
|
202
|
-
* @param {object} [params] extra parameters specific to the
|
|
202
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
203
203
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
204
204
|
*/
|
|
205
205
|
await this.loadMarkets();
|
|
@@ -223,7 +223,7 @@ class kraken extends kraken$1 {
|
|
|
223
223
|
* @description cancels an open order
|
|
224
224
|
* @param {string} id order id
|
|
225
225
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
226
|
-
* @param {object} [params] extra parameters specific to the
|
|
226
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
227
227
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
228
228
|
*/
|
|
229
229
|
await this.loadMarkets();
|
|
@@ -260,7 +260,7 @@ class kraken extends kraken$1 {
|
|
|
260
260
|
* @see https://docs.kraken.com/websockets/#message-cancelAll
|
|
261
261
|
* @description cancel all open orders
|
|
262
262
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
263
|
-
* @param {object} [params] extra parameters specific to the
|
|
263
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
264
264
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
265
265
|
*/
|
|
266
266
|
if (symbol !== undefined) {
|
|
@@ -465,7 +465,7 @@ class kraken extends kraken$1 {
|
|
|
465
465
|
* @name kraken#watchTicker
|
|
466
466
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
467
467
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
468
|
-
* @param {object} [params] extra parameters specific to the
|
|
468
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
469
469
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
470
470
|
*/
|
|
471
471
|
return await this.watchPublic('ticker', symbol, params);
|
|
@@ -478,7 +478,7 @@ class kraken extends kraken$1 {
|
|
|
478
478
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
479
479
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
480
480
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
481
|
-
* @param {object} [params] extra parameters specific to the
|
|
481
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
482
482
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
483
483
|
*/
|
|
484
484
|
await this.loadMarkets();
|
|
@@ -497,7 +497,7 @@ class kraken extends kraken$1 {
|
|
|
497
497
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
498
498
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
499
499
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
500
|
-
* @param {object} [params] extra parameters specific to the
|
|
500
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
501
501
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
502
502
|
*/
|
|
503
503
|
const name = 'book';
|
|
@@ -524,7 +524,7 @@ class kraken extends kraken$1 {
|
|
|
524
524
|
* @param {string} timeframe the length of time each candle represents
|
|
525
525
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
526
526
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
527
|
-
* @param {object} [params] extra parameters specific to the
|
|
527
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
528
528
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
529
529
|
*/
|
|
530
530
|
await this.loadMarkets();
|
|
@@ -829,7 +829,7 @@ class kraken extends kraken$1 {
|
|
|
829
829
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
830
830
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
831
831
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
832
|
-
* @param {object} [params] extra parameters specific to the
|
|
832
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
833
833
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
834
834
|
*/
|
|
835
835
|
return await this.watchPrivate('ownTrades', symbol, since, limit, params);
|
|
@@ -991,7 +991,7 @@ class kraken extends kraken$1 {
|
|
|
991
991
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
992
992
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
993
993
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
994
|
-
* @param {object} [params] extra parameters specific to the
|
|
994
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
995
995
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
996
996
|
*/
|
|
997
997
|
return await this.watchPrivate('openOrders', symbol, since, limit, params);
|
|
@@ -155,7 +155,7 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
155
155
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
156
156
|
* @see https://docs.futures.kraken.com/#websocket-api-public-feeds-ticker
|
|
157
157
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
158
|
-
* @param {object} [params] extra parameters specific to the
|
|
158
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
159
159
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
160
160
|
*/
|
|
161
161
|
const options = this.safeValue(this.options, 'watchTicker');
|
|
@@ -171,7 +171,7 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
171
171
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
172
172
|
* @see https://docs.futures.kraken.com/#websocket-api-public-feeds-ticker-lite
|
|
173
173
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
174
|
-
* @param {object} [params] extra parameters specific to the
|
|
174
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
175
175
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
176
176
|
*/
|
|
177
177
|
const method = this.safeString(this.options, 'watchTickerMethod', 'ticker'); // or ticker_lite
|
|
@@ -189,7 +189,7 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
189
189
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
190
190
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
191
191
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
192
|
-
* @param {object} [params] extra parameters specific to the
|
|
192
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
193
193
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
194
194
|
*/
|
|
195
195
|
await this.loadMarkets();
|
|
@@ -208,7 +208,7 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
208
208
|
* @see https://docs.futures.kraken.com/#websocket-api-public-feeds-book
|
|
209
209
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
210
210
|
* @param {int} [limit] not used by krakenfutures watchOrderBook
|
|
211
|
-
* @param {object} [params] extra parameters specific to the
|
|
211
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
212
212
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
213
213
|
*/
|
|
214
214
|
const orderbook = await this.subscribePublic('book', [symbol], params);
|
|
@@ -221,7 +221,7 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
221
221
|
* @see https://docs.futures.kraken.com/#websocket-api-private-feeds-open-positions
|
|
222
222
|
* @description watch all open positions
|
|
223
223
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
224
|
-
* @param {object} params extra parameters specific to the
|
|
224
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
225
225
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
|
|
226
226
|
*/
|
|
227
227
|
await this.loadMarkets();
|
|
@@ -351,7 +351,7 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
351
351
|
* @param {string} symbol not used by krakenfutures watchOrders
|
|
352
352
|
* @param {int} [since] not used by krakenfutures watchOrders
|
|
353
353
|
* @param {int} [limit] not used by krakenfutures watchOrders
|
|
354
|
-
* @param {object} [params] extra parameters specific to the
|
|
354
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
355
355
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
356
356
|
*/
|
|
357
357
|
await this.loadMarkets();
|
|
@@ -376,7 +376,7 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
376
376
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
377
377
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
378
378
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
379
|
-
* @param {object} [params] extra parameters specific to the
|
|
379
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
380
380
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
381
381
|
*/
|
|
382
382
|
await this.loadMarkets();
|
|
@@ -401,9 +401,9 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
401
401
|
* @param {string} symbol not used by krakenfutures watchBalance
|
|
402
402
|
* @param {int} [since] not used by krakenfutures watchBalance
|
|
403
403
|
* @param {int} [limit] not used by krakenfutures watchBalance
|
|
404
|
-
* @param {object} [params] extra parameters specific to the
|
|
404
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
405
405
|
* @param {string} [params.account] can be either 'futures' or 'flex_futures'
|
|
406
|
-
* @returns {object
|
|
406
|
+
* @returns {object} a object of wallet types each with a balance structure {@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
407
407
|
*/
|
|
408
408
|
await this.loadMarkets();
|
|
409
409
|
const name = 'balances';
|
|
@@ -1268,6 +1268,7 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
1268
1268
|
holdingResult[code] = newAccount;
|
|
1269
1269
|
}
|
|
1270
1270
|
this.balance['cash'] = holdingResult;
|
|
1271
|
+
this.balance['cash'] = this.safeBalance(this.balance['cash']);
|
|
1271
1272
|
client.resolve(holdingResult, messageHash);
|
|
1272
1273
|
}
|
|
1273
1274
|
if (futures !== undefined) {
|
|
@@ -1291,6 +1292,7 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
1291
1292
|
futuresResult[symbol][code] = newAccount;
|
|
1292
1293
|
}
|
|
1293
1294
|
this.balance['margin'] = futuresResult;
|
|
1295
|
+
this.balance['margin'] = this.safeBalance(this.balance['margin']);
|
|
1294
1296
|
client.resolve(this.balance['margin'], messageHash + 'futures');
|
|
1295
1297
|
}
|
|
1296
1298
|
if (flexFutures !== undefined) {
|
|
@@ -1312,6 +1314,7 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
1312
1314
|
flexFuturesResult[code] = newAccount;
|
|
1313
1315
|
}
|
|
1314
1316
|
this.balance['flex'] = flexFuturesResult;
|
|
1317
|
+
this.balance['flex'] = this.safeBalance(this.balance['flex']);
|
|
1315
1318
|
client.resolve(this.balance['flex'], messageHash + 'flex_futures');
|
|
1316
1319
|
}
|
|
1317
1320
|
client.resolve(this.balance, messageHash);
|
|
@@ -127,7 +127,7 @@ class kucoin extends kucoin$1 {
|
|
|
127
127
|
* @name kucoin#watchTicker
|
|
128
128
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
129
129
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
130
|
-
* @param {object} [params] extra parameters specific to the
|
|
130
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
131
131
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
132
132
|
*/
|
|
133
133
|
await this.loadMarkets();
|
|
@@ -145,7 +145,7 @@ class kucoin extends kucoin$1 {
|
|
|
145
145
|
* @name kucoin#watchTickers
|
|
146
146
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
147
147
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
148
|
-
* @param {object} [params] extra parameters specific to the
|
|
148
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
149
149
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
150
150
|
*/
|
|
151
151
|
await this.loadMarkets();
|
|
@@ -263,7 +263,7 @@ class kucoin extends kucoin$1 {
|
|
|
263
263
|
* @param {string} timeframe the length of time each candle represents
|
|
264
264
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
265
265
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
266
|
-
* @param {object} [params] extra parameters specific to the
|
|
266
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
267
267
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
268
268
|
*/
|
|
269
269
|
await this.loadMarkets();
|
|
@@ -330,7 +330,7 @@ class kucoin extends kucoin$1 {
|
|
|
330
330
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
331
331
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
332
332
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
333
|
-
* @param {object} [params] extra parameters specific to the
|
|
333
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
334
334
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
335
335
|
*/
|
|
336
336
|
await this.loadMarkets();
|
|
@@ -353,7 +353,7 @@ class kucoin extends kucoin$1 {
|
|
|
353
353
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
354
354
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
355
355
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
356
|
-
* @param {object} [params] extra parameters specific to the
|
|
356
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
357
357
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
|
|
358
358
|
*/
|
|
359
359
|
const symbolsLength = symbols.length;
|
|
@@ -417,7 +417,7 @@ class kucoin extends kucoin$1 {
|
|
|
417
417
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
418
418
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
419
419
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
420
|
-
* @param {object} [params] extra parameters specific to the
|
|
420
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
421
421
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
422
422
|
*/
|
|
423
423
|
//
|
|
@@ -461,7 +461,7 @@ class kucoin extends kucoin$1 {
|
|
|
461
461
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
462
462
|
* @param {string[]} symbols unified array of symbols
|
|
463
463
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
464
|
-
* @param {object} [params] extra parameters specific to the
|
|
464
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
465
465
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
466
466
|
*/
|
|
467
467
|
const symbolsLength = symbols.length;
|
|
@@ -636,7 +636,7 @@ class kucoin extends kucoin$1 {
|
|
|
636
636
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
637
637
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
638
638
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
639
|
-
* @param {object} [params] extra parameters specific to the
|
|
639
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
640
640
|
* @param {boolean} [params.stop] trigger orders are watched if true
|
|
641
641
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
642
642
|
*/
|
|
@@ -801,7 +801,7 @@ class kucoin extends kucoin$1 {
|
|
|
801
801
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
802
802
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
803
803
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
804
|
-
* @param {object} [params] extra parameters specific to the
|
|
804
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
805
805
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
806
806
|
*/
|
|
807
807
|
await this.loadMarkets();
|
|
@@ -891,7 +891,7 @@ class kucoin extends kucoin$1 {
|
|
|
891
891
|
* @method
|
|
892
892
|
* @name kucoin#watchBalance
|
|
893
893
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
894
|
-
* @param {object} [params] extra parameters specific to the
|
|
894
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
895
895
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
896
896
|
*/
|
|
897
897
|
await this.loadMarkets();
|
|
@@ -143,7 +143,7 @@ class kucoinfutures extends kucoinfutures$1 {
|
|
|
143
143
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
144
144
|
* @see https://docs.kucoin.com/futures/#get-real-time-symbol-ticker-v2
|
|
145
145
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
146
|
-
* @param {object} [params] extra parameters specific to the
|
|
146
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
147
147
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
148
148
|
*/
|
|
149
149
|
await this.loadMarkets();
|
|
@@ -191,7 +191,7 @@ class kucoinfutures extends kucoinfutures$1 {
|
|
|
191
191
|
* @description watch open positions for a specific symbol
|
|
192
192
|
* @see https://docs.kucoin.com/futures/#position-change-events
|
|
193
193
|
* @param {string|undefined} symbol unified market symbol
|
|
194
|
-
* @param {object} params extra parameters specific to the
|
|
194
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
195
195
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
|
|
196
196
|
*/
|
|
197
197
|
if (symbol === undefined) {
|
|
@@ -367,7 +367,7 @@ class kucoinfutures extends kucoinfutures$1 {
|
|
|
367
367
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
368
368
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
369
369
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
370
|
-
* @param {object} [params] extra parameters specific to the
|
|
370
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
371
371
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
372
372
|
*/
|
|
373
373
|
await this.loadMarkets();
|
|
@@ -390,7 +390,7 @@ class kucoinfutures extends kucoinfutures$1 {
|
|
|
390
390
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
391
391
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
392
392
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
393
|
-
* @param {object} [params] extra parameters specific to the
|
|
393
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
394
394
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
|
|
395
395
|
*/
|
|
396
396
|
const symbolsLength = symbols.length;
|
|
@@ -462,7 +462,7 @@ class kucoinfutures extends kucoinfutures$1 {
|
|
|
462
462
|
* @see https://docs.kucoin.com/futures/#level-2-market-data
|
|
463
463
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
464
464
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
465
|
-
* @param {object} [params] extra parameters specific to the
|
|
465
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
466
466
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
467
467
|
*/
|
|
468
468
|
if (limit !== undefined) {
|
|
@@ -491,7 +491,7 @@ class kucoinfutures extends kucoinfutures$1 {
|
|
|
491
491
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
492
492
|
* @param {string[]} symbols unified array of symbols
|
|
493
493
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
494
|
-
* @param {object} [params] extra parameters specific to the
|
|
494
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
495
495
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
496
496
|
*/
|
|
497
497
|
const symbolsLength = symbols.length;
|
|
@@ -669,7 +669,7 @@ class kucoinfutures extends kucoinfutures$1 {
|
|
|
669
669
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
670
670
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
671
671
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
672
|
-
* @param {object} [params] extra parameters specific to the
|
|
672
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
673
673
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
674
674
|
*/
|
|
675
675
|
await this.loadMarkets();
|
|
@@ -791,7 +791,7 @@ class kucoinfutures extends kucoinfutures$1 {
|
|
|
791
791
|
* @name kucoinfutures#watchBalance
|
|
792
792
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
793
793
|
* @see https://docs.kucoin.com/futures/#account-balance-events
|
|
794
|
-
* @param {object} [params] extra parameters specific to the
|
|
794
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
795
795
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
796
796
|
*/
|
|
797
797
|
await this.loadMarkets();
|
package/dist/cjs/src/pro/luno.js
CHANGED
|
@@ -39,10 +39,10 @@ class luno extends luno$1 {
|
|
|
39
39
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
40
40
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
41
41
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
42
|
-
* @param {object} [params] extra parameters specific to the
|
|
42
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
43
43
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
this.checkRequiredCredentials();
|
|
46
46
|
await this.loadMarkets();
|
|
47
47
|
const market = this.market(symbol);
|
|
48
48
|
symbol = market['symbol'];
|
|
@@ -135,11 +135,11 @@ class luno extends luno$1 {
|
|
|
135
135
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
136
136
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
137
137
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
138
|
-
* @param {objectConstructor} [params] extra parameters specific to the
|
|
138
|
+
* @param {objectConstructor} [params] extra parameters specific to the exchange API endpoint
|
|
139
139
|
* @param {string} [params.type] accepts l2 or l3 for level 2 or level 3 order book
|
|
140
140
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
141
141
|
*/
|
|
142
|
-
|
|
142
|
+
this.checkRequiredCredentials();
|
|
143
143
|
await this.loadMarkets();
|
|
144
144
|
const market = this.market(symbol);
|
|
145
145
|
symbol = market['symbol'];
|
package/dist/cjs/src/pro/mexc.js
CHANGED
|
@@ -72,7 +72,7 @@ class mexc extends mexc$1 {
|
|
|
72
72
|
* @name mexc3#watchTicker
|
|
73
73
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
74
74
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
75
|
-
* @param {object} [params] extra parameters specific to the
|
|
75
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
76
76
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
77
77
|
*/
|
|
78
78
|
await this.loadMarkets();
|
|
@@ -209,7 +209,7 @@ class mexc extends mexc$1 {
|
|
|
209
209
|
* @param {string} timeframe the length of time each candle represents
|
|
210
210
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
211
211
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
212
|
-
* @param {object} [params] extra parameters specific to the
|
|
212
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
213
213
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
214
214
|
*/
|
|
215
215
|
await this.loadMarkets();
|
|
@@ -353,7 +353,7 @@ class mexc extends mexc$1 {
|
|
|
353
353
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
354
354
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
355
355
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
356
|
-
* @param {object} [params] extra parameters specific to the
|
|
356
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
357
357
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
358
358
|
*/
|
|
359
359
|
await this.loadMarkets();
|
|
@@ -521,7 +521,7 @@ class mexc extends mexc$1 {
|
|
|
521
521
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
522
522
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
523
523
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
524
|
-
* @param {object} [params] extra parameters specific to the
|
|
524
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
525
525
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
526
526
|
*/
|
|
527
527
|
await this.loadMarkets();
|
|
@@ -610,7 +610,7 @@ class mexc extends mexc$1 {
|
|
|
610
610
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
611
611
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
612
612
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
613
|
-
* @param {object} [params] extra parameters specific to the
|
|
613
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
614
614
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
615
615
|
*/
|
|
616
616
|
await this.loadMarkets();
|
|
@@ -738,7 +738,7 @@ class mexc extends mexc$1 {
|
|
|
738
738
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
739
739
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
740
740
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
741
|
-
* @param {object} [params] extra parameters specific to the
|
|
741
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
742
742
|
* @params {string|undefined} params.type the type of orders to retrieve, can be 'spot' or 'margin'
|
|
743
743
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
744
744
|
*/
|
|
@@ -986,7 +986,7 @@ class mexc extends mexc$1 {
|
|
|
986
986
|
* @name mexc3#watchBalance
|
|
987
987
|
* @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#spot-account-upadte
|
|
988
988
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
989
|
-
* @param {object} [params] extra parameters specific to the
|
|
989
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
990
990
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
991
991
|
*/
|
|
992
992
|
await this.loadMarkets();
|