MCPcopy Create free account
hub / github.com/ccxt/node-binance-api / candles

Method candles

src/node-binance-api.ts:4341–4343  ·  view source on GitHub ↗

* Gets the candles information for a given symbol * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#klinecandlestick-data * intervals: 1m,3m,5m,15m,30m,1h,2h,4h,6h,8h,12h,1d,3d,1w,1M * @param {string} symbol - the symbol * @param {functio

(symbol: string, interval: Interval = '5m', params: Dict = {})

Source from the content-addressed store, hash-verified

4339 * @return {promise or undefined} - omitting the callback returns a promise
4340 */
4341 async candles(symbol: string, interval: Interval = '5m', params: Dict = {}): Promise<Candle[]> {
4342 return await this.candlesticks(symbol, interval, params); // make name consistent with futures
4343 }
4344
4345 parseCandles(candles: any[]): Candle[] {
4346 const res: Candle[] = [];

Callers

nothing calls this directly

Calls 1

candlesticksMethod · 0.95

Tested by

no test coverage detected