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