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
|
@@ -79,7 +79,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
79
79
|
* @name bitpanda#watchBalance
|
|
80
80
|
* @see https://developers.bitpanda.com/exchange/#account-history-channel
|
|
81
81
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
82
|
-
* @param {object} [params] extra parameters specific to the
|
|
82
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
83
83
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
84
84
|
*/
|
|
85
85
|
await this.authenticate(params);
|
|
@@ -139,7 +139,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
139
139
|
* @see https://developers.bitpanda.com/exchange/#market-ticker-channel
|
|
140
140
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
141
141
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
142
|
-
* @param {object} [params] extra parameters specific to the
|
|
142
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
143
143
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
144
144
|
*/
|
|
145
145
|
await this.loadMarkets();
|
|
@@ -165,7 +165,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
165
165
|
* @see https://developers.bitpanda.com/exchange/#market-ticker-channel
|
|
166
166
|
* @description watches price tickers, a statistical calculation with the information for all markets or those specified.
|
|
167
167
|
* @param {string} symbols unified symbols of the markets to fetch the ticker for
|
|
168
|
-
* @param {object} [params] extra parameters specific to the
|
|
168
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
169
169
|
* @returns {object} an array of [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
170
170
|
*/
|
|
171
171
|
await this.loadMarkets();
|
|
@@ -263,7 +263,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
263
263
|
* @param {string} symbol unified symbol of the market to fetch trades for. Use 'any' to watch all trades
|
|
264
264
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
265
265
|
* @param {int} [limit] the maximum amount of trades 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 {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
268
268
|
*/
|
|
269
269
|
await this.loadMarkets();
|
|
@@ -306,7 +306,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
306
306
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
307
307
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
308
308
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
309
|
-
* @param {object} [params] extra parameters specific to the
|
|
309
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
310
310
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
311
311
|
*/
|
|
312
312
|
await this.loadMarkets();
|
|
@@ -424,7 +424,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
424
424
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
425
425
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
426
426
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
427
|
-
* @param {object} [params] extra parameters specific to the
|
|
427
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
428
428
|
* @param {string} [params.channel] can listen to orders using ACCOUNT_HISTORY or TRADING
|
|
429
429
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
430
430
|
*/
|
|
@@ -1038,7 +1038,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1038
1038
|
* @param {string} timeframe the length of time each candle represents
|
|
1039
1039
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1040
1040
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1041
|
-
* @param {object} [params] extra parameters specific to the
|
|
1041
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1042
1042
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1043
1043
|
*/
|
|
1044
1044
|
await this.loadMarkets();
|
|
@@ -57,7 +57,7 @@ class bitrue extends bitrue$1 {
|
|
|
57
57
|
* @name bitrue#watchBalance
|
|
58
58
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
59
59
|
* @see https://github.com/Bitrue-exchange/Spot-official-api-docs#balance-update
|
|
60
|
-
* @param {object} [params] extra parameters specific to the
|
|
60
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
61
61
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
62
62
|
*/
|
|
63
63
|
const url = await this.authenticate();
|
|
@@ -172,7 +172,7 @@ class bitrue extends bitrue$1 {
|
|
|
172
172
|
* @param {string[]} symbols unified symbols of the market to watch the orders for
|
|
173
173
|
* @param {int} [since] timestamp in ms of the earliest order
|
|
174
174
|
* @param {int} [limit] the maximum amount of orders to return
|
|
175
|
-
* @param {object} [params] extra parameters specific to the
|
|
175
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
176
176
|
* @returns {object} A dictionary of [order structure]{@link https://docs.ccxt.com/#/?id=order-structure} indexed by market symbols
|
|
177
177
|
*/
|
|
178
178
|
await this.loadMarkets();
|
|
@@ -48,7 +48,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
48
48
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
49
49
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
50
50
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
51
|
-
* @param {object} [params] extra parameters specific to the
|
|
51
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
52
52
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
53
53
|
*/
|
|
54
54
|
await this.loadMarkets();
|
|
@@ -160,7 +160,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
160
160
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
161
161
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
162
162
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
163
|
-
* @param {object} [params] extra parameters specific to the
|
|
163
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
164
164
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
165
165
|
*/
|
|
166
166
|
await this.loadMarkets();
|
|
@@ -267,7 +267,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
267
267
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
268
268
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
269
269
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
270
|
-
* @param {object} [params] extra parameters specific to the
|
|
270
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
271
271
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
272
272
|
*/
|
|
273
273
|
if (symbol === undefined) {
|
|
@@ -223,7 +223,7 @@ class bittrex extends bittrex$1 {
|
|
|
223
223
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
224
224
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
225
225
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
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[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
228
228
|
*/
|
|
229
229
|
await this.loadMarkets();
|
|
@@ -279,7 +279,7 @@ class bittrex extends bittrex$1 {
|
|
|
279
279
|
* @method
|
|
280
280
|
* @name bittrex#watchBalance
|
|
281
281
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
282
|
-
* @param {object} [params] extra parameters specific to the
|
|
282
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
283
283
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
284
284
|
*/
|
|
285
285
|
await this.loadMarkets();
|
|
@@ -348,7 +348,7 @@ class bittrex extends bittrex$1 {
|
|
|
348
348
|
* @name bittrex#watchTicker
|
|
349
349
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
350
350
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
351
|
-
* @param {object} [params] extra parameters specific to the
|
|
351
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
352
352
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
353
353
|
*/
|
|
354
354
|
await this.loadMarkets();
|
|
@@ -400,7 +400,7 @@ class bittrex extends bittrex$1 {
|
|
|
400
400
|
* @param {string} timeframe the length of time each candle represents
|
|
401
401
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
402
402
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
403
|
-
* @param {object} [params] extra parameters specific to the
|
|
403
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
404
404
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
405
405
|
*/
|
|
406
406
|
await this.loadMarkets();
|
|
@@ -469,7 +469,7 @@ class bittrex extends bittrex$1 {
|
|
|
469
469
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
470
470
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
471
471
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
472
|
-
* @param {object} [params] extra parameters specific to the
|
|
472
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
473
473
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
474
474
|
*/
|
|
475
475
|
await this.loadMarkets();
|
|
@@ -535,7 +535,7 @@ class bittrex extends bittrex$1 {
|
|
|
535
535
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
536
536
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
537
537
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
538
|
-
* @param {object} [params] extra parameters specific to the
|
|
538
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
539
539
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
540
540
|
*/
|
|
541
541
|
await this.loadMarkets();
|
|
@@ -593,7 +593,7 @@ class bittrex extends bittrex$1 {
|
|
|
593
593
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
594
594
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
595
595
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
596
|
-
* @param {object} [params] extra parameters specific to the
|
|
596
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
597
597
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
598
598
|
*/
|
|
599
599
|
limit = (limit === undefined) ? 25 : limit; // 25 by default
|
|
@@ -65,7 +65,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
65
65
|
* @name bitvavo#watchTicker
|
|
66
66
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
67
67
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
68
|
-
* @param {object} [params] extra parameters specific to the
|
|
68
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
69
69
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
70
70
|
*/
|
|
71
71
|
return await this.watchPublic('ticker24h', symbol, params);
|
|
@@ -114,7 +114,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
114
114
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
115
115
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
116
116
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
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[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
119
119
|
*/
|
|
120
120
|
await this.loadMarkets();
|
|
@@ -161,7 +161,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
161
161
|
* @param {string} timeframe the length of time each candle represents
|
|
162
162
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
163
163
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
164
|
-
* @param {object} [params] extra parameters specific to the
|
|
164
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
165
165
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
166
166
|
*/
|
|
167
167
|
await this.loadMarkets();
|
|
@@ -237,7 +237,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
237
237
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
238
238
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
239
239
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
240
|
-
* @param {object} [params] extra parameters specific to the
|
|
240
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
241
241
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
242
242
|
*/
|
|
243
243
|
await this.loadMarkets();
|
|
@@ -428,7 +428,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
428
428
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
429
429
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
430
430
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
431
|
-
* @param {object} [params] extra parameters specific to the
|
|
431
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
432
432
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
433
433
|
*/
|
|
434
434
|
if (symbol === undefined) {
|
|
@@ -465,7 +465,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
465
465
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
466
466
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
467
467
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
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 list of [trade structures]{@link https://docs.ccxt.com/#/?id=ortradeder-structure
|
|
470
470
|
*/
|
|
471
471
|
if (symbol === undefined) {
|
|
@@ -54,7 +54,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
54
54
|
* @name blockchaincom#watchBalance
|
|
55
55
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
56
56
|
* @see https://exchange.blockchain.com/api/#balances
|
|
57
|
-
* @param {object} [params] extra parameters specific to the
|
|
57
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
58
58
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
59
59
|
*/
|
|
60
60
|
await this.authenticate(params);
|
|
@@ -126,7 +126,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
126
126
|
* @param {string} timeframe the length of time each candle represents. Allows '1m', '5m', '15m', '1h', '6h' '1d'. Can only watch one timeframe per symbol.
|
|
127
127
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
128
128
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
129
|
-
* @param {object} [params] extra parameters specific to the
|
|
129
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
130
130
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
131
131
|
*/
|
|
132
132
|
await this.loadMarkets();
|
|
@@ -204,7 +204,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
204
204
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
205
205
|
* @see https://exchange.blockchain.com/api/#ticker
|
|
206
206
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
207
|
-
* @param {object} [params] extra parameters specific to the
|
|
207
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
208
208
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
209
209
|
*/
|
|
210
210
|
await this.loadMarkets();
|
|
@@ -313,7 +313,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
313
313
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
314
314
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
315
315
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
316
|
-
* @param {object} [params] extra parameters specific to the
|
|
316
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
317
317
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
318
318
|
*/
|
|
319
319
|
await this.loadMarkets();
|
|
@@ -412,7 +412,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
412
412
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
413
413
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
414
414
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
415
|
-
* @param {object} [params] extra parameters specific to the
|
|
415
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
416
416
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
417
417
|
*/
|
|
418
418
|
await this.loadMarkets();
|
|
@@ -625,7 +625,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
625
625
|
* @see https://exchange.blockchain.com/api/#l2-order-book
|
|
626
626
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
627
627
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
628
|
-
* @param {objectConstructor} [params] extra parameters specific to the
|
|
628
|
+
* @param {objectConstructor} [params] extra parameters specific to the exchange API endpoint
|
|
629
629
|
* @param {string} [params.type] accepts l2 or l3 for level 2 or level 3 order book
|
|
630
630
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
631
631
|
*/
|
|
@@ -177,7 +177,7 @@ class bybit extends bybit$1 {
|
|
|
177
177
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/ticker
|
|
178
178
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
|
|
179
179
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
180
|
-
* @param {object} [params] extra parameters specific to the
|
|
180
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
181
181
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
182
182
|
*/
|
|
183
183
|
await this.loadMarkets();
|
|
@@ -203,7 +203,7 @@ class bybit extends bybit$1 {
|
|
|
203
203
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/ticker
|
|
204
204
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
|
|
205
205
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
206
|
-
* @param {object} [params] extra parameters specific to the
|
|
206
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
207
207
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
208
208
|
*/
|
|
209
209
|
await this.loadMarkets();
|
|
@@ -378,7 +378,7 @@ class bybit extends bybit$1 {
|
|
|
378
378
|
* @param {string} timeframe the length of time each candle represents
|
|
379
379
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
380
380
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
381
|
-
* @param {object} [params] extra parameters specific to the
|
|
381
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
382
382
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
383
383
|
*/
|
|
384
384
|
await this.loadMarkets();
|
|
@@ -406,7 +406,7 @@ class bybit extends bybit$1 {
|
|
|
406
406
|
* @param {string[][]} symbolsAndTimeframes array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
|
|
407
407
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
408
408
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
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 list of candles ordered as timestamp, open, high, low, close, volume
|
|
411
411
|
*/
|
|
412
412
|
await this.loadMarkets();
|
|
@@ -521,7 +521,7 @@ class bybit extends bybit$1 {
|
|
|
521
521
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/orderbook
|
|
522
522
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
523
523
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
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 dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
526
526
|
*/
|
|
527
527
|
await this.loadMarkets();
|
|
@@ -558,7 +558,7 @@ class bybit extends bybit$1 {
|
|
|
558
558
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/orderbook
|
|
559
559
|
* @param {string[]} symbols unified array of symbols
|
|
560
560
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
561
|
-
* @param {object} [params] extra parameters specific to the
|
|
561
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
562
562
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
563
563
|
*/
|
|
564
564
|
await this.loadMarkets();
|
|
@@ -675,7 +675,7 @@ class bybit extends bybit$1 {
|
|
|
675
675
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
676
676
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
677
677
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
678
|
-
* @param {object} [params] extra parameters specific to the
|
|
678
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
679
679
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
680
680
|
*/
|
|
681
681
|
await this.loadMarkets();
|
|
@@ -700,7 +700,7 @@ class bybit extends bybit$1 {
|
|
|
700
700
|
* @param {string[]} symbols unified symbol of the market to fetch trades for
|
|
701
701
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
702
702
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
703
|
-
* @param {object} [params] extra parameters specific to the
|
|
703
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
704
704
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
|
|
705
705
|
*/
|
|
706
706
|
await this.loadMarkets();
|
|
@@ -862,7 +862,7 @@ class bybit extends bybit$1 {
|
|
|
862
862
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
863
863
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
864
864
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
865
|
-
* @param {object} [params] extra parameters specific to the
|
|
865
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
866
866
|
* @param {boolean} [params.unifiedMargin] use unified margin account
|
|
867
867
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
868
868
|
*/
|
|
@@ -986,7 +986,7 @@ class bybit extends bybit$1 {
|
|
|
986
986
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/private/position
|
|
987
987
|
* @description watch all open positions
|
|
988
988
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
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 list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
|
|
991
991
|
*/
|
|
992
992
|
await this.loadMarkets();
|
|
@@ -1127,7 +1127,7 @@ class bybit extends bybit$1 {
|
|
|
1127
1127
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1128
1128
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1129
1129
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1130
|
-
* @param {object} [params] extra parameters specific to the
|
|
1130
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1131
1131
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
1132
1132
|
*/
|
|
1133
1133
|
await this.loadMarkets();
|
|
@@ -1410,7 +1410,7 @@ class bybit extends bybit$1 {
|
|
|
1410
1410
|
* @name bybit#watchBalance
|
|
1411
1411
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
1412
1412
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/private/wallet
|
|
1413
|
-
* @param {object} [params] extra parameters specific to the
|
|
1413
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1414
1414
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1415
1415
|
*/
|
|
1416
1416
|
await this.loadMarkets();
|
package/dist/cjs/src/pro/cex.js
CHANGED
|
@@ -46,7 +46,7 @@ class cex extends cex$1 {
|
|
|
46
46
|
* @name cex#watchBalance
|
|
47
47
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
48
48
|
* @see https://cex.io/websocket-api#get-balance
|
|
49
|
-
* @param {object} [params] extra parameters specific to the
|
|
49
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
50
50
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
51
51
|
*/
|
|
52
52
|
await this.authenticate(params);
|
|
@@ -108,7 +108,7 @@ class cex extends cex$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
|
await this.loadMarkets();
|
|
@@ -223,7 +223,7 @@ class cex extends cex$1 {
|
|
|
223
223
|
* @see https://cex.io/websocket-api#ticker-subscription
|
|
224
224
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
225
225
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
226
|
-
* @param {object} [params] extra parameters specific to the
|
|
226
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
227
227
|
* @param {string} [params.method] public or private
|
|
228
228
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
229
229
|
*/
|
|
@@ -259,9 +259,9 @@ class cex extends cex$1 {
|
|
|
259
259
|
* @method
|
|
260
260
|
* @name cex#watchTickers
|
|
261
261
|
* @see https://cex.io/websocket-api#ticker-subscription
|
|
262
|
-
* @description watches price tickers for multiple markets, statistical
|
|
262
|
+
* @description watches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
263
263
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
264
|
-
* @param {object} [params] extra parameters specific to the
|
|
264
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
265
265
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
266
266
|
*/
|
|
267
267
|
await this.loadMarkets();
|
|
@@ -380,7 +380,7 @@ class cex extends cex$1 {
|
|
|
380
380
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
381
381
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
382
382
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
383
|
-
* @param {object} [params] extra parameters specific to the
|
|
383
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
384
384
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
385
385
|
*/
|
|
386
386
|
if (symbol === undefined) {
|
|
@@ -418,7 +418,7 @@ class cex extends cex$1 {
|
|
|
418
418
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
419
419
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
420
420
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
421
|
-
* @param {object} [params] extra parameters specific to the
|
|
421
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
422
422
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
423
423
|
*/
|
|
424
424
|
if (symbol === undefined) {
|
|
@@ -851,7 +851,7 @@ class cex extends cex$1 {
|
|
|
851
851
|
* @see https://cex.io/websocket-api#orderbook-subscribe
|
|
852
852
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
853
853
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
854
|
-
* @param {object} [params] extra parameters specific to the
|
|
854
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
855
855
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
856
856
|
*/
|
|
857
857
|
await this.loadMarkets();
|
|
@@ -979,7 +979,7 @@ class cex extends cex$1 {
|
|
|
979
979
|
* @param {string} timeframe the length of time each candle represents.
|
|
980
980
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
981
981
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
982
|
-
* @param {object} [params] extra parameters specific to the
|
|
982
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
983
983
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
984
984
|
*/
|
|
985
985
|
await this.loadMarkets();
|
|
@@ -54,7 +54,7 @@ class coinbase extends coinbase$1 {
|
|
|
54
54
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-overview#subscribe
|
|
55
55
|
* @param {string} name the name of the channel
|
|
56
56
|
* @param {string|string[]} [symbol] unified market symbol
|
|
57
|
-
* @param {object} [params] extra parameters specific to the
|
|
57
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
58
58
|
* @returns {object} subscription to a websocket channel
|
|
59
59
|
*/
|
|
60
60
|
await this.loadMarkets();
|
|
@@ -93,7 +93,7 @@ class coinbase extends coinbase$1 {
|
|
|
93
93
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
94
94
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#ticker-channel
|
|
95
95
|
* @param {string} [symbol] unified symbol of the market to fetch the ticker for
|
|
96
|
-
* @param {object} [params] extra parameters specific to the
|
|
96
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
97
97
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
98
98
|
*/
|
|
99
99
|
const name = 'ticker';
|
|
@@ -106,7 +106,7 @@ class coinbase extends coinbase$1 {
|
|
|
106
106
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
107
107
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#ticker-batch-channel
|
|
108
108
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
109
|
-
* @param {object} [params] extra parameters specific to the
|
|
109
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
110
110
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
111
111
|
*/
|
|
112
112
|
if (symbols === undefined) {
|
|
@@ -247,7 +247,7 @@ class coinbase extends coinbase$1 {
|
|
|
247
247
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
248
248
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
249
249
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
250
|
-
* @param {object} [params] extra parameters specific to the
|
|
250
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
251
251
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
252
252
|
*/
|
|
253
253
|
await this.loadMarkets();
|
|
@@ -268,7 +268,7 @@ class coinbase extends coinbase$1 {
|
|
|
268
268
|
* @param {string} [symbol] unified market symbol of the market orders were made in
|
|
269
269
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
270
270
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
271
|
-
* @param {object} [params] extra parameters specific to the
|
|
271
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
272
272
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
273
273
|
*/
|
|
274
274
|
await this.loadMarkets();
|
|
@@ -287,7 +287,7 @@ class coinbase extends coinbase$1 {
|
|
|
287
287
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#level2-channel
|
|
288
288
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
289
289
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
290
|
-
* @param {object} [params] extra parameters specific to the
|
|
290
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
291
291
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
292
292
|
*/
|
|
293
293
|
await this.loadMarkets();
|
|
@@ -111,7 +111,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
111
111
|
* @name coinbasepro#watchTicker
|
|
112
112
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
113
113
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
114
|
-
* @param {object} [params] extra parameters specific to the
|
|
114
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
115
115
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
116
116
|
*/
|
|
117
117
|
const name = 'ticker';
|
|
@@ -124,7 +124,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
124
124
|
* @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-ws-tickers-channel
|
|
125
125
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
126
126
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
127
|
-
* @param {object} [params] extra parameters specific to the
|
|
127
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
128
128
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
129
129
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
130
130
|
*/
|
|
@@ -149,7 +149,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
149
149
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
150
150
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
151
151
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
152
|
-
* @param {object} [params] extra parameters specific to the
|
|
152
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
153
153
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
154
154
|
*/
|
|
155
155
|
await this.loadMarkets();
|
|
@@ -169,7 +169,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
169
169
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
170
170
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
171
171
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
172
|
-
* @param {object} [params] extra parameters specific to the
|
|
172
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
173
173
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
|
|
174
174
|
*/
|
|
175
175
|
const symbolsLength = symbols.length;
|
|
@@ -196,7 +196,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
196
196
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
197
197
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
198
198
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
199
|
-
* @param {object} [params] extra parameters specific to the
|
|
199
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
200
200
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
201
201
|
*/
|
|
202
202
|
if (symbol === undefined) {
|
|
@@ -221,7 +221,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
221
221
|
* @param {string[]} symbols unified symbol of the market to fetch trades for
|
|
222
222
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
223
223
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
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 [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
226
226
|
*/
|
|
227
227
|
symbols = this.marketSymbols(symbols, undefined, false);
|
|
@@ -245,7 +245,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
245
245
|
* @param {string[]} symbols unified symbol of the market to fetch orders for
|
|
246
246
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
247
247
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
248
|
-
* @param {object} [params] extra parameters specific to the
|
|
248
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
249
249
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
250
250
|
*/
|
|
251
251
|
symbols = this.marketSymbols(symbols, undefined, false);
|
|
@@ -269,7 +269,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
269
269
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
270
270
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
271
271
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
272
|
-
* @param {object} [params] extra parameters specific to the
|
|
272
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
273
273
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
274
274
|
*/
|
|
275
275
|
if (symbol === undefined) {
|
|
@@ -293,7 +293,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
293
293
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
294
294
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
295
295
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
296
|
-
* @param {object} [params] extra parameters specific to the
|
|
296
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
297
297
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
298
298
|
*/
|
|
299
299
|
const name = 'level2';
|
|
@@ -329,7 +329,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
329
329
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
330
330
|
* @param {string[]} symbols unified array of symbols
|
|
331
331
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
332
|
-
* @param {object} [params] extra parameters specific to the
|
|
332
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
333
333
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
334
334
|
*/
|
|
335
335
|
const symbolsLength = symbols.length;
|