feat: instrument analysis

This commit is contained in:
OpenSquared
2026-06-28 23:28:21 +02:00
parent 5a0aa30d60
commit 3d7b3e47c9
2 changed files with 11 additions and 6 deletions

View File

@@ -10,6 +10,9 @@ import InstrumentChart, { TheoPoint } from '../components/InstrumentChart'
const api = axios.create({ baseURL: '/api' })
// Stable empty array — prevents InstrumentChart useEffect from re-running on every render
const NO_CHART_EVENTS: never[] = []
// ── Types ─────────────────────────────────────────────────────────────────────
interface CausalTemplate {
@@ -1283,7 +1286,7 @@ export default function InstrumentDashboard() {
<InstrumentChart
priceData={snapshot.price_data}
indicators={snapshot.indicators}
events={[]}
events={NO_CHART_EVENTS}
height={420}
chartType={chartStyle}
onDateHover={handleDateHover}