MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / getOHLCTimestamp

Function getOHLCTimestamp

src/ChartGPU.ts:166–166  ·  view source on GitHub ↗
(p: OHLCDataPoint)

Source from the content-addressed store, hash-verified

164};
165
166const getOHLCTimestamp = (p: OHLCDataPoint): number => (isTupleOHLCDataPoint(p) ? p[0] : p.timestamp);
167const getOHLCClose = (p: OHLCDataPoint): number => (isTupleOHLCDataPoint(p) ? p[2] : p.close);
168
169const hasSliderDataZoom = (options: ChartGPUOptions): boolean => options.dataZoom?.some((z) => z?.type === 'slider') ?? false;

Callers 2

buildPayloadFunction · 0.85

Calls 1

isTupleOHLCDataPointFunction · 0.70

Tested by

no test coverage detected