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

Function getMaxCandles

examples/candlestick-streaming/main.ts:86–88  ·  view source on GitHub ↗
(candleCount: number)

Source from the content-addressed store, hash-verified

84
85// Get max candles based on current count (allow some growth for streaming)
86function getMaxCandles(candleCount: number): number {
87 return Math.max(candleCount + 1000, candleCount * 1.5);
88}
89
90async function init() {
91 const container = document.getElementById('chart')!;

Callers 1

handleTickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected