ccxt 4.1.64 → 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 +3 -3
- package/dist/ccxt.browser.js +2558 -2534
- package/dist/ccxt.browser.min.js +2 -2
- 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 +1 -0
- 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 +28 -28
- package/dist/cjs/src/krakenfutures.js +9 -9
- 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 +17 -17
- 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 +32 -32
- 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 +8 -8
- 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 +21 -21
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +15 -15
- 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/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 +1 -0
- 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 +28 -28
- package/js/src/krakenfutures.js +9 -9
- 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 +17 -17
- 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 +32 -32
- 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 +8 -8
- 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/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +21 -21
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +15 -15
- 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
|
@@ -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,7 +401,7 @@ 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
406
|
* @returns {object} a object of wallet types each with a balance structure {@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
407
407
|
*/
|
|
@@ -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();
|
package/dist/cjs/src/pro/ndax.js
CHANGED
|
@@ -41,7 +41,7 @@ class ndax extends ndax$1 {
|
|
|
41
41
|
* @name ndax#watchTicker
|
|
42
42
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
43
43
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
44
|
-
* @param {object} [params] extra parameters specific to the
|
|
44
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
45
45
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
46
46
|
*/
|
|
47
47
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -108,7 +108,7 @@ class ndax extends ndax$1 {
|
|
|
108
108
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
109
109
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
110
110
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
111
|
-
* @param {object} [params] extra parameters specific to the
|
|
111
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
112
112
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
113
113
|
*/
|
|
114
114
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -190,7 +190,7 @@ class ndax extends ndax$1 {
|
|
|
190
190
|
* @param {string} timeframe the length of time each candle represents
|
|
191
191
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
192
192
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
193
|
-
* @param {object} [params] extra parameters specific to the
|
|
193
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
194
194
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
195
195
|
*/
|
|
196
196
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -320,7 +320,7 @@ class ndax extends ndax$1 {
|
|
|
320
320
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
321
321
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
322
322
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
323
|
-
* @param {object} [params] extra parameters specific to the
|
|
323
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
324
324
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
325
325
|
*/
|
|
326
326
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -70,7 +70,7 @@ class okcoin extends okcoin$1 {
|
|
|
70
70
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
71
71
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
72
72
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
73
|
-
* @param {object} [params] extra parameters specific to the
|
|
73
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
74
74
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
75
75
|
*/
|
|
76
76
|
await this.loadMarkets();
|
|
@@ -89,7 +89,7 @@ class okcoin extends okcoin$1 {
|
|
|
89
89
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
90
90
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
91
91
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
92
|
-
* @param {object} [params] extra parameters specific to the
|
|
92
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
93
93
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
94
94
|
*/
|
|
95
95
|
await this.loadMarkets();
|
|
@@ -173,7 +173,7 @@ class okcoin extends okcoin$1 {
|
|
|
173
173
|
* @name okcoin#watchTicker
|
|
174
174
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
175
175
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
176
|
-
* @param {object} [params] extra parameters specific to the
|
|
176
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
177
177
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
178
178
|
*/
|
|
179
179
|
return await this.subscribe('ticker', symbol, params);
|
|
@@ -256,7 +256,7 @@ class okcoin extends okcoin$1 {
|
|
|
256
256
|
* @param {string} timeframe the length of time each candle represents
|
|
257
257
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
258
258
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
259
|
-
* @param {object} [params] extra parameters specific to the
|
|
259
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
260
260
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
261
261
|
*/
|
|
262
262
|
await this.loadMarkets();
|
|
@@ -321,7 +321,7 @@ class okcoin extends okcoin$1 {
|
|
|
321
321
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
322
322
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
323
323
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
324
|
-
* @param {object} [params] extra parameters specific to the
|
|
324
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
325
325
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
326
326
|
*/
|
|
327
327
|
const options = this.safeValue(this.options, 'watchOrderBook', {});
|
|
@@ -482,7 +482,7 @@ class okcoin extends okcoin$1 {
|
|
|
482
482
|
* @method
|
|
483
483
|
* @name okcoin#watchBalance
|
|
484
484
|
* @description watch 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
|
const defaultType = this.safeString2(this.options, 'watchBalance', 'defaultType');
|
package/dist/cjs/src/pro/okx.js
CHANGED
|
@@ -162,7 +162,7 @@ class okx extends okx$1 {
|
|
|
162
162
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
163
163
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
164
164
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
165
|
-
* @param {object} [params] extra parameters specific to the
|
|
165
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
166
166
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
167
167
|
*/
|
|
168
168
|
await this.loadMarkets();
|
|
@@ -181,7 +181,7 @@ class okx extends okx$1 {
|
|
|
181
181
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
182
182
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
183
183
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
184
|
-
* @param {object} [params] extra parameters specific to the
|
|
184
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
185
185
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
|
|
186
186
|
*/
|
|
187
187
|
const symbolsLength = symbols.length;
|
|
@@ -257,7 +257,7 @@ class okx extends okx$1 {
|
|
|
257
257
|
* @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-ws-tickers-channel
|
|
258
258
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
259
259
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
260
|
-
* @param {object} [params] extra parameters specific to the
|
|
260
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
261
261
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
262
262
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
263
263
|
*/
|
|
@@ -274,7 +274,7 @@ class okx extends okx$1 {
|
|
|
274
274
|
* @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-ws-tickers-channel
|
|
275
275
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
276
276
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
277
|
-
* @param {object} [params] extra parameters specific to the
|
|
277
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
278
278
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
279
279
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
280
280
|
*/
|
|
@@ -349,7 +349,7 @@ class okx extends okx$1 {
|
|
|
349
349
|
* @param {string} timeframe the length of time each candle represents
|
|
350
350
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
351
351
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
352
|
-
* @param {object} [params] extra parameters specific to the
|
|
352
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
353
353
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
354
354
|
*/
|
|
355
355
|
await this.loadMarkets();
|
|
@@ -409,7 +409,7 @@ class okx extends okx$1 {
|
|
|
409
409
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
410
410
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
411
411
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
412
|
-
* @param {object} [params] extra parameters specific to the
|
|
412
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
413
413
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
414
414
|
*/
|
|
415
415
|
const options = this.safeValue(this.options, 'watchOrderBook', {});
|
|
@@ -450,7 +450,7 @@ class okx extends okx$1 {
|
|
|
450
450
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
451
451
|
* @param {string[]} symbols unified array of symbols
|
|
452
452
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
453
|
-
* @param {object} [params] extra parameters specific to the
|
|
453
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
454
454
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
455
455
|
*/
|
|
456
456
|
await this.loadMarkets();
|
|
@@ -725,7 +725,7 @@ class okx extends okx$1 {
|
|
|
725
725
|
* @method
|
|
726
726
|
* @name okx#watchBalance
|
|
727
727
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
728
|
-
* @param {object} [params] extra parameters specific to the
|
|
728
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
729
729
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
730
730
|
*/
|
|
731
731
|
await this.loadMarkets();
|
|
@@ -818,7 +818,7 @@ class okx extends okx$1 {
|
|
|
818
818
|
* @param {string} [symbol] unified market symbol of the market trades were made in
|
|
819
819
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
820
820
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
821
|
-
* @param {object} [params] extra parameters specific to the
|
|
821
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
822
822
|
* @param {bool} [params.stop] true if fetching trigger or conditional trades
|
|
823
823
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
824
824
|
*/
|
|
@@ -858,7 +858,7 @@ class okx extends okx$1 {
|
|
|
858
858
|
* @see https://www.okx.com/docs-v5/en/#trading-account-websocket-positions-channel
|
|
859
859
|
* @description watch all open positions
|
|
860
860
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
861
|
-
* @param {object} params extra parameters specific to the
|
|
861
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
862
862
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
|
|
863
863
|
*/
|
|
864
864
|
if (this.isEmpty(symbols)) {
|
|
@@ -979,7 +979,7 @@ class okx extends okx$1 {
|
|
|
979
979
|
* @param {string} [symbol] unified market symbol of the market orders were made in
|
|
980
980
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
981
981
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
982
|
-
* @param {object} [params] extra parameters specific to the
|
|
982
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
983
983
|
* @param {bool} [params.stop] true if fetching trigger or conditional orders
|
|
984
984
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
985
985
|
*/
|
|
@@ -1197,7 +1197,7 @@ class okx extends okx$1 {
|
|
|
1197
1197
|
* @param {string} side 'buy' or 'sell'
|
|
1198
1198
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1199
1199
|
* @param {float|undefined} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1200
|
-
* @param {object} [params] extra parameters specific to the
|
|
1200
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1201
1201
|
* @param {boolean} params.test test order, default false
|
|
1202
1202
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1203
1203
|
*/
|
|
@@ -1267,7 +1267,7 @@ class okx extends okx$1 {
|
|
|
1267
1267
|
* @param {string} side 'buy' or 'sell'
|
|
1268
1268
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
1269
1269
|
* @param {float|undefined} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1270
|
-
* @param {object} [params] extra parameters specific to the
|
|
1270
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1271
1271
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1272
1272
|
*/
|
|
1273
1273
|
await this.loadMarkets();
|
|
@@ -1292,7 +1292,7 @@ class okx extends okx$1 {
|
|
|
1292
1292
|
* @description cancel multiple orders
|
|
1293
1293
|
* @param {string} id order id
|
|
1294
1294
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1295
|
-
* @param {object} [params] extra parameters specific to the
|
|
1295
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1296
1296
|
* @param {string} [params.clOrdId] client order id
|
|
1297
1297
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1298
1298
|
*/
|
|
@@ -1329,7 +1329,7 @@ class okx extends okx$1 {
|
|
|
1329
1329
|
* @description cancel multiple orders
|
|
1330
1330
|
* @param {string[]} ids order ids
|
|
1331
1331
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1332
|
-
* @param {object} [params] extra parameters specific to the
|
|
1332
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1333
1333
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1334
1334
|
*/
|
|
1335
1335
|
const idsLength = ids.length;
|
|
@@ -1365,7 +1365,7 @@ class okx extends okx$1 {
|
|
|
1365
1365
|
* @see https://docs.okx.com/websockets/#message-cancelAll
|
|
1366
1366
|
* @description cancel all open orders of a type. Only applicable to Option in Portfolio Margin mode, and MMP privilege is required.
|
|
1367
1367
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1368
|
-
* @param {object} [params] extra parameters specific to the
|
|
1368
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1369
1369
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1370
1370
|
*/
|
|
1371
1371
|
if (symbol === undefined) {
|
|
@@ -298,7 +298,7 @@ class phemex extends phemex$1 {
|
|
|
298
298
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Contract-API-en.md#subscribe-account-order-position-aop
|
|
299
299
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Spot-API-en.md#subscribe-wallet-order-messages
|
|
300
300
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
301
|
-
* @param {object} [params] extra parameters specific to the
|
|
301
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
302
302
|
* @param {string} [params.settle] set to USDT to use hedged perpetual api
|
|
303
303
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
304
304
|
*/
|
|
@@ -494,7 +494,7 @@ class phemex extends phemex$1 {
|
|
|
494
494
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Spot-API-en.md#subscribe-24-hours-ticker
|
|
495
495
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
496
496
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
497
|
-
* @param {object} [params] extra parameters specific to the
|
|
497
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
498
498
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
499
499
|
*/
|
|
500
500
|
await this.loadMarkets();
|
|
@@ -529,7 +529,7 @@ class phemex extends phemex$1 {
|
|
|
529
529
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
530
530
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
531
531
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
532
|
-
* @param {object} [params] extra parameters specific to the
|
|
532
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
533
533
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
534
534
|
*/
|
|
535
535
|
await this.loadMarkets();
|
|
@@ -566,7 +566,7 @@ class phemex extends phemex$1 {
|
|
|
566
566
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
567
567
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
568
568
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
569
|
-
* @param {object} [params] extra parameters specific to the
|
|
569
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
570
570
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
571
571
|
*/
|
|
572
572
|
await this.loadMarkets();
|
|
@@ -602,7 +602,7 @@ class phemex extends phemex$1 {
|
|
|
602
602
|
* @param {string} timeframe the length of time each candle represents
|
|
603
603
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
604
604
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
605
|
-
* @param {object} [params] extra parameters specific to the
|
|
605
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
606
606
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
607
607
|
*/
|
|
608
608
|
await this.loadMarkets();
|
|
@@ -724,7 +724,7 @@ class phemex extends phemex$1 {
|
|
|
724
724
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
725
725
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
726
726
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
727
|
-
* @param {object} [params] extra parameters specific to the
|
|
727
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
728
728
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
729
729
|
*/
|
|
730
730
|
await this.loadMarkets();
|
|
@@ -887,7 +887,7 @@ class phemex extends phemex$1 {
|
|
|
887
887
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
888
888
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
889
889
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
890
|
-
* @param {object} [params] extra parameters specific to the
|
|
890
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
891
891
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
892
892
|
*/
|
|
893
893
|
await this.loadMarkets();
|