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
|
@@ -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();
|
package/dist/cjs/src/pro/exmo.js
CHANGED
|
@@ -45,7 +45,7 @@ class exmo extends exmo$1 {
|
|
|
45
45
|
* @method
|
|
46
46
|
* @name exmo#watchBalance
|
|
47
47
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
48
|
-
* @param {object} [params] extra parameters specific to the
|
|
48
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
49
49
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
50
50
|
*/
|
|
51
51
|
await this.authenticate(params);
|
|
@@ -201,7 +201,7 @@ class exmo extends exmo$1 {
|
|
|
201
201
|
* @name exmo#watchTicker
|
|
202
202
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
203
203
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
204
|
-
* @param {object} [params] extra parameters specific to the
|
|
204
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
205
205
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
206
206
|
*/
|
|
207
207
|
await this.loadMarkets();
|
|
@@ -258,7 +258,7 @@ class exmo extends exmo$1 {
|
|
|
258
258
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
259
259
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
260
260
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
261
|
-
* @param {object} [params] extra parameters specific to the
|
|
261
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
262
262
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
263
263
|
*/
|
|
264
264
|
await this.loadMarkets();
|
|
@@ -322,7 +322,7 @@ class exmo extends exmo$1 {
|
|
|
322
322
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
323
323
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
324
324
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
325
|
-
* @param {object} [params] extra parameters specific to the
|
|
325
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
326
326
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
327
327
|
*/
|
|
328
328
|
await this.loadMarkets();
|
|
@@ -451,7 +451,7 @@ class exmo extends exmo$1 {
|
|
|
451
451
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
452
452
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
453
453
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
454
|
-
* @param {object} [params] extra parameters specific to the
|
|
454
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
455
455
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
456
456
|
*/
|
|
457
457
|
await this.loadMarkets();
|
package/dist/cjs/src/pro/gate.js
CHANGED
|
@@ -97,7 +97,7 @@ class gate extends gate$1 {
|
|
|
97
97
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
98
98
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
99
99
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
100
|
-
* @param {object} [params] extra parameters specific to the
|
|
100
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
101
101
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
102
102
|
*/
|
|
103
103
|
await this.loadMarkets();
|
|
@@ -274,7 +274,7 @@ class gate extends gate$1 {
|
|
|
274
274
|
* @name gate#watchTicker
|
|
275
275
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
276
276
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
277
|
-
* @param {object} [params] extra parameters specific to the
|
|
277
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
278
278
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
279
279
|
*/
|
|
280
280
|
await this.loadMarkets();
|
|
@@ -295,7 +295,7 @@ class gate extends gate$1 {
|
|
|
295
295
|
* @name gate#watchTickers
|
|
296
296
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
297
297
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
298
|
-
* @param {object} [params] extra parameters specific to the
|
|
298
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
299
299
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
300
300
|
*/
|
|
301
301
|
await this.loadMarkets();
|
|
@@ -382,7 +382,7 @@ class gate extends gate$1 {
|
|
|
382
382
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
383
383
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
384
384
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
385
|
-
* @param {object} [params] extra parameters specific to the
|
|
385
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
386
386
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
387
387
|
*/
|
|
388
388
|
await this.loadMarkets();
|
|
@@ -408,7 +408,7 @@ class gate extends gate$1 {
|
|
|
408
408
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
409
409
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
410
410
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
411
|
-
* @param {object} [params] extra parameters specific to the
|
|
411
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
412
412
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
|
|
413
413
|
*/
|
|
414
414
|
await this.loadMarkets();
|
|
@@ -473,7 +473,7 @@ class gate extends gate$1 {
|
|
|
473
473
|
* @param {string} timeframe the length of time each candle represents
|
|
474
474
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
475
475
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
476
|
-
* @param {object} [params] extra parameters specific to the
|
|
476
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
477
477
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
478
478
|
*/
|
|
479
479
|
await this.loadMarkets();
|
|
@@ -556,7 +556,7 @@ class gate extends gate$1 {
|
|
|
556
556
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
557
557
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
558
558
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
559
|
-
* @param {object} [params] extra parameters specific to the
|
|
559
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
560
560
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
561
561
|
*/
|
|
562
562
|
await this.loadMarkets();
|
|
@@ -646,7 +646,7 @@ class gate extends gate$1 {
|
|
|
646
646
|
* @method
|
|
647
647
|
* @name gate#watchBalance
|
|
648
648
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
649
|
-
* @param {object} [params] extra parameters specific to the
|
|
649
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
650
650
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
651
651
|
*/
|
|
652
652
|
await this.loadMarkets();
|
|
@@ -764,7 +764,7 @@ class gate extends gate$1 {
|
|
|
764
764
|
* @see https://www.gate.io/docs/developers/options/ws/en/#positions-channel
|
|
765
765
|
* @description watch all open positions
|
|
766
766
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
767
|
-
* @param {object} params extra parameters specific to the
|
|
767
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
768
768
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
|
|
769
769
|
*/
|
|
770
770
|
await this.loadMarkets();
|
|
@@ -902,7 +902,7 @@ class gate extends gate$1 {
|
|
|
902
902
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
903
903
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
904
904
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
905
|
-
* @param {object} [params] extra parameters specific to the
|
|
905
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
906
906
|
* @param {string} [params.type] spot, margin, swap, future, or option. Required if listening to all symbols.
|
|
907
907
|
* @param {boolean} [params.isInverse] if future, listen to inverse or linear contracts
|
|
908
908
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
@@ -41,7 +41,7 @@ class gemini extends gemini$1 {
|
|
|
41
41
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
42
42
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
43
43
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
44
|
-
* @param {object} [params] extra parameters specific to the
|
|
44
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
45
45
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
46
46
|
*/
|
|
47
47
|
await this.loadMarkets();
|
|
@@ -193,7 +193,7 @@ class gemini extends gemini$1 {
|
|
|
193
193
|
* @param {string} timeframe the length of time each candle represents
|
|
194
194
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
195
195
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
196
|
-
* @param {object} [params] extra parameters specific to the
|
|
196
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
197
197
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
198
198
|
*/
|
|
199
199
|
await this.loadMarkets();
|
|
@@ -282,7 +282,7 @@ class gemini extends gemini$1 {
|
|
|
282
282
|
* @see https://docs.gemini.com/websocket-api/#market-data-version-2
|
|
283
283
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
284
284
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
285
|
-
* @param {object} [params] extra parameters specific to the
|
|
285
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
286
286
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
287
287
|
*/
|
|
288
288
|
await this.loadMarkets();
|
|
@@ -378,7 +378,7 @@ class gemini extends gemini$1 {
|
|
|
378
378
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
379
379
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
380
380
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
381
|
-
* @param {object} [params] extra parameters specific to the
|
|
381
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
382
382
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
383
383
|
*/
|
|
384
384
|
const url = this.urls['api']['ws'] + '/v1/order/events?eventTypeFilter=initial&eventTypeFilter=accepted&eventTypeFilter=rejected&eventTypeFilter=fill&eventTypeFilter=cancelled&eventTypeFilter=booked';
|
|
@@ -185,7 +185,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
185
185
|
* @see https://api.hitbtc.com/#subscribe-to-top-of-book-in-batches
|
|
186
186
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
187
187
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
188
|
-
* @param {object} [params] extra parameters specific to the
|
|
188
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
189
189
|
* @param {string} [params.method] 'orderbook/full', 'orderbook/{depth}/{speed}', 'orderbook/{depth}/{speed}/batch', 'orderbook/top/{speed}', or 'orderbook/top/{speed}/batch'
|
|
190
190
|
* @param {int} [params.depth] 5 , 10, or 20 (default)
|
|
191
191
|
* @param {int} [params.speed] 100 (default), 500, or 1000
|
|
@@ -290,7 +290,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
290
290
|
* @see https://api.hitbtc.com/#subscribe-to-mini-ticker
|
|
291
291
|
* @see https://api.hitbtc.com/#subscribe-to-mini-ticker-in-batches
|
|
292
292
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
293
|
-
* @param {object} [params] extra parameters specific to the
|
|
293
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
294
294
|
* @param {string} [params.method] 'ticker/{speed}' (default), or 'ticker/price/{speed}'
|
|
295
295
|
* @param {string} [params.speed] '1s' (default), or '3s'
|
|
296
296
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -315,7 +315,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
315
315
|
* @name hitbtc#watchTicker
|
|
316
316
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
317
317
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
318
|
-
* @param {object} params extra parameters specific to the
|
|
318
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
319
319
|
* @param {string} params.method 'ticker/{speed}' (default),'ticker/price/{speed}', 'ticker/{speed}/batch', or 'ticker/{speed}/price/batch''
|
|
320
320
|
* @param {string} params.speed '1s' (default), or '3s'
|
|
321
321
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/en/latest/manual.html#ticker-structure}
|
|
@@ -481,7 +481,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
481
481
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
482
482
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
483
483
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
484
|
-
* @param {object} [params] extra parameters specific to the
|
|
484
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
485
485
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
486
486
|
*/
|
|
487
487
|
await this.loadMarkets();
|
|
@@ -609,7 +609,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
609
609
|
* @param {string} [timeframe] the length of time each candle represents
|
|
610
610
|
* @param {int} [since] not used by hitbtc watchOHLCV
|
|
611
611
|
* @param {int} [limit] 0 – 1000, default value = 0 (no history returned)
|
|
612
|
-
* @param {object} [params] extra parameters specific to the
|
|
612
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
613
613
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
614
614
|
*/
|
|
615
615
|
const period = this.safeString(this.timeframes, timeframe, timeframe);
|
|
@@ -721,7 +721,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
721
721
|
* @param {string} [symbol] unified CCXT market symbol
|
|
722
722
|
* @param {int} [since] timestamp in ms of the earliest order to fetch
|
|
723
723
|
* @param {int} [limit] the maximum amount of orders to fetch
|
|
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[]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
|
|
726
726
|
*/
|
|
727
727
|
await this.loadMarkets();
|
|
@@ -958,7 +958,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
958
958
|
* @description watches balance updates, cannot subscribe to margin account balances
|
|
959
959
|
* @see https://api.hitbtc.com/#subscribe-to-spot-balances
|
|
960
960
|
* @see https://api.hitbtc.com/#subscribe-to-futures-balances
|
|
961
|
-
* @param {object} [params] extra parameters specific to the
|
|
961
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
962
962
|
* @param {string} [params.type] 'spot', 'swap', or 'future'
|
|
963
963
|
*
|
|
964
964
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
@@ -993,7 +993,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
993
993
|
* @param {string} side 'buy' or 'sell'
|
|
994
994
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
995
995
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
996
|
-
* @param {object} [params] extra parameters specific to the
|
|
996
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
997
997
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported for spot-margin, swap supports both, default is 'cross'
|
|
998
998
|
* @param {bool} [params.margin] true for creating a margin order
|
|
999
999
|
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
@@ -1030,7 +1030,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1030
1030
|
* @description cancels an open order
|
|
1031
1031
|
* @param {string} id order id
|
|
1032
1032
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1033
|
-
* @param {object} [params] extra parameters specific to the
|
|
1033
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1034
1034
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1035
1035
|
* @param {bool} [params.margin] true for canceling a margin order
|
|
1036
1036
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1065,7 +1065,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1065
1065
|
* @see https://api.hitbtc.com/#cancel-futures-order-3
|
|
1066
1066
|
* @description cancel all open orders
|
|
1067
1067
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1068
|
-
* @param {object} [params] extra parameters specific to the
|
|
1068
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1069
1069
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1070
1070
|
* @param {bool} [params.margin] true for canceling margin orders
|
|
1071
1071
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1100,7 +1100,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1100
1100
|
* @param {string} symbol unified market symbol
|
|
1101
1101
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1102
1102
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1103
|
-
* @param {object} [params] extra parameters specific to the
|
|
1103
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1104
1104
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1105
1105
|
* @param {bool} [params.margin] true for fetching open margin orders
|
|
1106
1106
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -57,7 +57,7 @@ class hollaex extends hollaex$1 {
|
|
|
57
57
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
58
58
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
59
59
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
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 dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
62
62
|
*/
|
|
63
63
|
await this.loadMarkets();
|
|
@@ -116,7 +116,7 @@ class hollaex extends hollaex$1 {
|
|
|
116
116
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
117
117
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
118
118
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
119
|
-
* @param {object} [params] extra parameters specific to the
|
|
119
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
120
120
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
121
121
|
*/
|
|
122
122
|
await this.loadMarkets();
|
|
@@ -172,7 +172,7 @@ class hollaex extends hollaex$1 {
|
|
|
172
172
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
173
173
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
174
174
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
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 list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
177
177
|
*/
|
|
178
178
|
await this.loadMarkets();
|
|
@@ -252,7 +252,7 @@ class hollaex extends hollaex$1 {
|
|
|
252
252
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
253
253
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
254
254
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
255
|
-
* @param {object} [params] extra parameters specific to the
|
|
255
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
256
256
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
257
257
|
*/
|
|
258
258
|
await this.loadMarkets();
|
|
@@ -370,7 +370,7 @@ class hollaex extends hollaex$1 {
|
|
|
370
370
|
* @method
|
|
371
371
|
* @name hollaex#watchBalance
|
|
372
372
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
373
|
-
* @param {object} [params] extra parameters specific to the
|
|
373
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
374
374
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
375
375
|
*/
|
|
376
376
|
const messageHash = 'wallet';
|