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

Function klineData

deprecated/node-binance-api.js:2402–2414  ·  view source on GitHub ↗
(symbol, interval, ticks)

Source from the content-addressed store, hash-verified

2400 * @return {undefined}
2401 */
2402 const klineData = (symbol, interval, ticks) => { // Used for /depth
2403 let last_time = 0;
2404 if (isIterable(ticks)) {
2405 for (let tick of ticks) {
2406 // eslint-disable-next-line no-unused-vars
2407 let [time, open, high, low, close, volume, closeTime, assetVolume, trades, buyBaseVolume, buyAssetVolume, ignored] = tick;
2408 Binance.ohlc[symbol][interval][time] = { open: open, high: high, low: low, close: close, volume: volume };
2409 last_time = time;
2410 }
2411
2412 Binance.info[symbol][interval].timestamp = last_time;
2413 }
2414 };
2415
2416 /**
2417 * Combines all OHLC data with latest update

Callers 1

getSymbolKlineSnapshotFunction · 0.85

Calls 1

isIterableFunction · 0.85

Tested by

no test coverage detected