MCPcopy Create free account
hub / github.com/AmazingAng/PolyWorld / ChartData

Interface ChartData

src/components/ChartPanel.tsx:49–53  ·  view source on GitHub ↗

Cached data from fetch — survives mode/indicator changes

Source from the content-addressed store, hash-verified

47
48/** Cached data from fetch — survives mode/indicator changes */
49interface ChartData {
50 key: string; // "marketId:timeRange" to identify cache validity
51 multi: { label: string; points: { time: number; value: number }[] }[] | null;
52 bars: OHLCBar[];
53}
54
55function computeMA(bars: OHLCBar[], period: number): { time: number; value: number }[] {
56 const result: { time: number; value: number }[] = [];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected