MCPcopy
hub / github.com/ChartGPU/ChartGPU / getClose

Function getClose

examples/candlestick-streaming/main.ts:68–68  ·  view source on GitHub ↗
(p: OHLCDataPoint)

Source from the content-addressed store, hash-verified

66
67const getTimestamp = (p: OHLCDataPoint): number => (isTupleOHLCDataPoint(p) ? p[0] : p.timestamp);
68const getClose = (p: OHLCDataPoint): number => (isTupleOHLCDataPoint(p) ? p[2] : p.close);
69
70// Get appropriate dataZoom config based on candle count
71function getDataZoomConfig(candleCount: number) {

Callers 3

initFunction · 0.70
switchTimeframeFunction · 0.70
switchCandleCountFunction · 0.70

Calls 1

isTupleOHLCDataPointFunction · 0.70

Tested by

no test coverage detected