You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Gets candles regarding the last price converted to the target currency for all symbols or for the specified symbols
562
+
*
563
+
* Candles are used for OHLC representation
564
+
*
565
+
* The result contains candles with non-zero volume only (no trades = no candles).
566
+
*
567
+
* Conversion from the symbol quote currency to the target currency is the mean of "best" bid price and "best" ask price in the order book. If there is no "best" bid or ask price, the last price is returned.
568
+
*
569
+
* Requires no API key Access Rights.
570
+
*
571
+
* https://api.exchange.cryptomkt.com/#candles
572
+
*
573
+
* @param {object} [params]
574
+
* @param {string[]} [params.targetCurrency] Target currency for conversion
575
+
* @param {string[]} [params.symbols] Optional. A list of symbol ids
* Gets candles regarding the last price converted to the target currency for the specified symbol
598
+
*
599
+
* Candles are used for OHLC representation
600
+
*
601
+
* The result contains candles with non-zero volume only (no trades = no candles).
602
+
*
603
+
* Conversion from the symbol quote currency to the target currency is the mean of "best" bid price and "best" ask price in the order book. If there is no "best" bid or ask price, the last price is returned.
604
+
*
605
+
* Requires no API key Access Rights.
606
+
*
607
+
* https://api.exchange.cryptomkt.com/#candles
608
+
*
609
+
* @param {string[]} symbol A symbol id
610
+
* @param {object} params
611
+
* @param {string[]} params.targetCurrency Target currency for conversion
* @param {function} callback a function that recieves notifications as a dict of candles indexed by symbol, and the type of notification (either SNAPSHOT or UPDATE)
* @param {function} callback a function that recieves notifications as a dict of candles indexed by symbol, and the type of notification (either SNAPSHOT or UPDATE)
208
+
* @param {function} params.targetCurrency Target currency for conversion
0 commit comments