ccxt 4.1.64 → 4.1.66
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 +2790 -2607
- 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 +232 -80
- 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 +46 -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.d.ts +20 -1
- package/js/src/base/Exchange.js +232 -80
- 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 +46 -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/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 +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
- package/skip-tests.json +14 -7
|
@@ -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;
|
|
@@ -223,7 +223,7 @@ class coinex extends coinex$1 {
|
|
|
223
223
|
* @method
|
|
224
224
|
* @name coinex#watchBalance
|
|
225
225
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
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 [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
228
228
|
*/
|
|
229
229
|
await this.loadMarkets();
|
|
@@ -403,7 +403,7 @@ class coinex extends coinex$1 {
|
|
|
403
403
|
* @see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot004_websocket007_state_subscribe
|
|
404
404
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
405
405
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
406
|
-
* @param {object} [params] extra parameters specific to the
|
|
406
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
407
407
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
408
408
|
*/
|
|
409
409
|
return await this.watchTickers([symbol], params);
|
|
@@ -415,7 +415,7 @@ class coinex extends coinex$1 {
|
|
|
415
415
|
* @see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot004_websocket007_state_subscribe
|
|
416
416
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
417
417
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
418
|
-
* @param {object} [params] extra parameters specific to the
|
|
418
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
419
419
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
420
420
|
*/
|
|
421
421
|
await this.loadMarkets();
|
|
@@ -449,7 +449,7 @@ class coinex extends coinex$1 {
|
|
|
449
449
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
450
450
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
451
451
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
452
|
-
* @param {object} [params] extra parameters specific to the
|
|
452
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
453
453
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
454
454
|
*/
|
|
455
455
|
await this.loadMarkets();
|
|
@@ -480,7 +480,7 @@ class coinex extends coinex$1 {
|
|
|
480
480
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
481
481
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
482
482
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
483
|
-
* @param {object} [params] extra parameters specific to the
|
|
483
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
484
484
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
485
485
|
*/
|
|
486
486
|
await this.loadMarkets();
|
|
@@ -529,7 +529,7 @@ class coinex extends coinex$1 {
|
|
|
529
529
|
* @param {string} timeframe the length of time each candle represents
|
|
530
530
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
531
531
|
* @param {int} [limit] the maximum amount of candles 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 {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
534
534
|
*/
|
|
535
535
|
await this.loadMarkets();
|
|
@@ -582,7 +582,7 @@ class coinex extends coinex$1 {
|
|
|
582
582
|
* @param {string} timeframe the length of time each candle represents
|
|
583
583
|
* @param {int|undefined} since timestamp in ms of the earliest candle to fetch
|
|
584
584
|
* @param {int|undefined} limit the maximum amount of candles to fetch
|
|
585
|
-
* @param {object} params extra parameters specific to the
|
|
585
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
586
586
|
* @param {int|undefined} params.end the end time for spot markets, this.seconds () is set as default
|
|
587
587
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
588
588
|
*/
|
|
@@ -70,7 +70,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
70
70
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#book-instrument_name
|
|
71
71
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
72
72
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
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 dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
75
75
|
*/
|
|
76
76
|
await this.loadMarkets();
|
|
@@ -87,7 +87,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
87
87
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#book-instrument_name
|
|
88
88
|
* @param {string[]} symbols unified array of symbols
|
|
89
89
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
90
|
-
* @param {object} [params] extra parameters specific to the
|
|
90
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
91
91
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
92
92
|
*/
|
|
93
93
|
await this.loadMarkets();
|
|
@@ -153,7 +153,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
153
153
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
154
154
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
155
155
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
156
|
-
* @param {object} [params] extra parameters specific to the
|
|
156
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
157
157
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
158
158
|
*/
|
|
159
159
|
await this.loadMarkets();
|
|
@@ -175,7 +175,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
175
175
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
176
176
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
177
177
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
178
|
-
* @param {object} [params] extra parameters specific to the
|
|
178
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
179
179
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
|
|
180
180
|
*/
|
|
181
181
|
await this.loadMarkets();
|
|
@@ -253,7 +253,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
253
253
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
254
254
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
255
255
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
256
|
-
* @param {object} [params] extra parameters specific to the
|
|
256
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
257
257
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
258
258
|
*/
|
|
259
259
|
await this.loadMarkets();
|
|
@@ -277,7 +277,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
277
277
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
278
278
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
|
|
279
279
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
280
|
-
* @param {object} [params] extra parameters specific to the
|
|
280
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
281
281
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
282
282
|
*/
|
|
283
283
|
await this.loadMarkets();
|
|
@@ -330,7 +330,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
330
330
|
* @param {string} timeframe the length of time each candle represents
|
|
331
331
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
332
332
|
* @param {int} [limit] the maximum amount of candles 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 {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
335
335
|
*/
|
|
336
336
|
await this.loadMarkets();
|
|
@@ -385,7 +385,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
385
385
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
386
386
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
387
387
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
388
|
-
* @param {object} [params] extra parameters specific to the
|
|
388
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
389
389
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
390
390
|
*/
|
|
391
391
|
await this.loadMarkets();
|
|
@@ -460,7 +460,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
460
460
|
* @description watch all open positions
|
|
461
461
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-position_balance
|
|
462
462
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
463
|
-
* @param {object} params extra parameters specific to the
|
|
463
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
464
464
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
|
|
465
465
|
*/
|
|
466
466
|
await this.loadMarkets();
|
|
@@ -582,7 +582,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
582
582
|
* @name cryptocom#watchBalance
|
|
583
583
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
584
584
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-balance
|
|
585
|
-
* @param {object} [params] extra parameters specific to the
|
|
585
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
586
586
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
587
587
|
*/
|
|
588
588
|
const messageHash = 'user.balance';
|
|
@@ -663,7 +663,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
663
663
|
* @param {string} side 'buy' or 'sell'
|
|
664
664
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
665
665
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
666
|
-
* @param {object} [params] extra parameters specific to the
|
|
666
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
667
667
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
668
668
|
*/
|
|
669
669
|
await this.loadMarkets();
|
|
@@ -700,7 +700,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
700
700
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-order
|
|
701
701
|
* @param {string} id the order id of the order to cancel
|
|
702
702
|
* @param {string} [symbol] unified symbol of the market the order was made in
|
|
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} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
705
705
|
*/
|
|
706
706
|
await this.loadMarkets();
|
|
@@ -721,7 +721,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
721
721
|
* @description cancel all open orders
|
|
722
722
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-all-orders
|
|
723
723
|
* @param {string} symbol unified market symbol of the orders to cancel
|
|
724
|
-
* @param {object} [params] extra parameters specific to the
|
|
724
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
725
725
|
* @returns {object} Returns exchange raw message {@link https://docs.ccxt.com/#/?id=order-structure}
|
|
726
726
|
*/
|
|
727
727
|
await this.loadMarkets();
|
|
@@ -328,7 +328,7 @@ class currencycom extends currencycom$1 {
|
|
|
328
328
|
* @method
|
|
329
329
|
* @name currencycom#watchBalance
|
|
330
330
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
331
|
-
* @param {object} [params] extra parameters specific to the
|
|
331
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
332
332
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
333
333
|
*/
|
|
334
334
|
await this.loadMarkets();
|
|
@@ -340,7 +340,7 @@ class currencycom extends currencycom$1 {
|
|
|
340
340
|
* @name currencycom#watchTicker
|
|
341
341
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
342
342
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
343
|
-
* @param {object} [params] extra parameters specific to the
|
|
343
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
344
344
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
345
345
|
*/
|
|
346
346
|
await this.loadMarkets();
|
|
@@ -371,7 +371,7 @@ class currencycom extends currencycom$1 {
|
|
|
371
371
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
372
372
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
373
373
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
374
|
-
* @param {object} [params] extra parameters specific to the
|
|
374
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
375
375
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
376
376
|
*/
|
|
377
377
|
await this.loadMarkets();
|
|
@@ -389,7 +389,7 @@ class currencycom extends currencycom$1 {
|
|
|
389
389
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
390
390
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
391
391
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
392
|
-
* @param {object} [params] extra parameters specific to the
|
|
392
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
393
393
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
394
394
|
*/
|
|
395
395
|
await this.loadMarkets();
|
|
@@ -406,7 +406,7 @@ class currencycom extends currencycom$1 {
|
|
|
406
406
|
* @param {string} timeframe the length of time each candle represents
|
|
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 {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
411
411
|
*/
|
|
412
412
|
await this.loadMarkets();
|
|
@@ -60,7 +60,7 @@ class deribit extends deribit$1 {
|
|
|
60
60
|
* @name deribit#watchBalance
|
|
61
61
|
* @see https://docs.deribit.com/#user-portfolio-currency
|
|
62
62
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
63
|
-
* @param {object} [params] extra parameters specific to the
|
|
63
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
64
64
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
65
65
|
*/
|
|
66
66
|
await this.authenticate(params);
|
|
@@ -144,7 +144,7 @@ class deribit extends deribit$1 {
|
|
|
144
144
|
* @see https://docs.deribit.com/#ticker-instrument_name-interval
|
|
145
145
|
* @description watches a price ticker, a statistical calculation with the information for a specific market.
|
|
146
146
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
147
|
-
* @param {object} [params] extra parameters specific to the
|
|
147
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
148
148
|
* @param {str} [params.interval] specify aggregation and frequency of notifications. Possible values: 100ms, raw
|
|
149
149
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
150
150
|
*/
|
|
@@ -217,7 +217,7 @@ class deribit extends deribit$1 {
|
|
|
217
217
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
218
218
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
219
219
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
220
|
-
* @param {object} [params] extra parameters specific to the
|
|
220
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
221
221
|
* @param {str} [params.interval] specify aggregation and frequency of notifications. Possible values: 100ms, raw
|
|
222
222
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
223
223
|
*/
|
|
@@ -297,7 +297,7 @@ class deribit extends deribit$1 {
|
|
|
297
297
|
* @param {string} symbol unified symbol of the market to fetch trades for. Use 'any' to watch all trades
|
|
298
298
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
299
299
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
300
|
-
* @param {object} [params] extra parameters specific to the
|
|
300
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
301
301
|
* @param {str} [params.interval] specify aggregation and frequency of notifications. Possible values: 100ms, raw
|
|
302
302
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
303
303
|
*/
|
|
@@ -379,7 +379,7 @@ class deribit extends deribit$1 {
|
|
|
379
379
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
380
380
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
381
381
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
382
|
-
* @param {object} [params] extra parameters specific to the
|
|
382
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
383
383
|
* @param {string} [params.interval] Frequency of notifications. Events will be aggregated over this interval. Possible values: 100ms, raw
|
|
384
384
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
385
385
|
*/
|
|
@@ -510,7 +510,7 @@ class deribit extends deribit$1 {
|
|
|
510
510
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
511
511
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
512
512
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
513
|
-
* @param {object} [params] extra parameters specific to the
|
|
513
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
514
514
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
515
515
|
*/
|
|
516
516
|
await this.loadMarkets();
|
|
@@ -605,7 +605,7 @@ class deribit extends deribit$1 {
|
|
|
605
605
|
* @param {string} timeframe the length of time each candle represents
|
|
606
606
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
607
607
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
608
|
-
* @param {object} [params] extra parameters specific to the
|
|
608
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
609
609
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
610
610
|
*/
|
|
611
611
|
await this.loadMarkets();
|