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

Function deliveryKlineData

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

Source from the content-addressed store, hash-verified

2488 * @return {undefined}
2489 */
2490 const deliveryKlineData = (symbol, interval, ticks) => {
2491 let last_time = 0;
2492 if (isIterable(ticks)) {
2493 for (let tick of ticks) {
2494 // eslint-disable-next-line no-unused-vars
2495 let [time, open, high, low, close, volume, closeTime, quoteVolume, trades, takerBuyBaseVolume, takerBuyQuoteVolume, ignored] = tick;
2496 Binance.deliveryTicks[symbol][interval][time] = { time, closeTime, open, high, low, close, volume, quoteVolume, takerBuyBaseVolume, takerBuyQuoteVolume, trades };
2497 last_time = time;
2498 }
2499 Binance.deliveryMeta[symbol][interval].timestamp = last_time;
2500 }
2501 };
2502
2503 /**
2504 * Used for /depth endpoint

Callers 1

getDeliveryKlineSnapshotFunction · 0.85

Calls 1

isIterableFunction · 0.85

Tested by

no test coverage detected