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

Function futuresKlineData

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

Source from the content-addressed store, hash-verified

2468 * @return {undefined}
2469 */
2470 const futuresKlineData = (symbol, interval, ticks) => {
2471 let last_time = 0;
2472 if (isIterable(ticks)) {
2473 for (let tick of ticks) {
2474 // eslint-disable-next-line no-unused-vars
2475 let [time, open, high, low, close, volume, closeTime, quoteVolume, trades, takerBuyBaseVolume, takerBuyQuoteVolume, ignored] = tick;
2476 Binance.futuresTicks[symbol][interval][time] = { time, closeTime, open, high, low, close, volume, quoteVolume, takerBuyBaseVolume, takerBuyQuoteVolume, trades };
2477 last_time = time;
2478 }
2479 Binance.futuresMeta[symbol][interval].timestamp = last_time;
2480 }
2481 };
2482
2483 /**
2484 * Used by delivery websockets chart cache

Callers 1

getFuturesKlineSnapshotFunction · 0.85

Calls 1

isIterableFunction · 0.85

Tested by

no test coverage detected