Intelligence, Advanced Charting & Trading Platform
feature/paper-trading-risk-controls-2026-10-14
diagnostics/chartnova-blank-screen-2026-10-15
diagnostics/chartnova-stage2-v27-preview-2026-10-15
docs/chartnova-stage1-reconcile-manifest-2026-10-15
feature/chartnova-ios-widget
feature/chartnova-light-catalog-lazy-series-2026-10-15
feature/chartnova-market-terminal
feature/chartnova-multimarket-chart-ws-foundation
feature/chartnova-neon-direct-history
feature/chartnova-neon-history
feature/paper-trading-risk-controls-2026-10-14
fix/alpha-vantage-live-payload
fix/chartnova-progressive-loading-2026-10-15
fix/live-proof-runner-cwd-2026-10-14
foundation/phase-0
foundation/postgres-core
main
ops/chartnova-emergency-rollback-2026-10-15
phase-1/candle-builder
phase-1/data-proof-artifact
phase-1/data-proof-metrics
phase-1/data-proof-report
phase-1/external-gates-state
phase-1/gold-api-fallback
phase-1/ingestion-pipeline
phase-1/live-proof-runner
phase-1/market-calendar
phase-1/market-domain
phase-1/neon-live-proof
phase-1/persistence-contract
phase-1/postgres-ci
phase-1/provider-adapters
phase-1/provider-recovery
phase-1/quality-propagation
phase-1/spike-detection
phase-1/xau-provider-adapter
risk/chartnova-alert-runtime-atomic-2026-10-22
risk/chartnova-atomic-outbox-2026-10-22
risk/chartnova-seven-track-safety-2026-10-21
safety/p0-triage-2026-10-13
| 1 | # ChartNova chart presentation package |
| 2 | |
| 3 | This is a **client-only React/TypeScript package**, not a deployed ChartNova web application. |
| 4 | |
| 5 | ## Purpose |
| 6 | |
| 7 | - Uses `lightweight-charts` v5 and HTML5 Canvas (`CandlestickSeries` for provider OHLC; `LineSeries` for reference/price points). |
| 8 | - Historical data are loaded from a server-side REST URL (`historyEndpoint`); the component does not contact market vendors or Neon directly. |
| 9 | - Optional `wss://` stream applies `series.update` on sequential messages; on reconnect or sequence gaps, it refetches history. |
| 10 | - No data will render unless a server provides a valid shape with public-use entitlement. No local or synthetic candles are embedded. |
| 11 | - The chart includes a TradingView attribution link. Verify the complete NOTICE requirement before commercial release. |
| 12 | |
| 13 | ## Install and type-check isolated package |
| 14 | |
| 15 | ```sh |
| 16 | cd packages/chart-ui |
| 17 | corepack pnpm install |
| 18 | corepack pnpm exec tsc --noEmit |
| 19 | ``` |
| 20 | |
| 21 | For a future Next.js app, import the component from a `"use client"` host, or dynamically with SSR disabled: |
| 22 | |
| 23 | ```tsx |
| 24 | import {LightweightMarketChart} from "../packages/chart-ui/src/LightweightMarketChart"; |
| 25 | |
| 26 | export function MarketPanel() { |
| 27 | return <LightweightMarketChart |
| 28 | symbol="BTC_USD" |
| 29 | from="2025-10-12" |
| 30 | to="2026-10-12" |
| 31 | timeframe="1d" |
| 32 | historyEndpoint="/api/v2/history" |
| 33 | websocketUrl="wss://YOUR-AUTHORIZED-GATEWAY/ws/market" |
| 34 | />; |
| 35 | } |
| 36 | ``` |
| 37 | |
| 38 | This example is **integration wiring only**: the v2 REST route is still an unmounted repository port, and the WebSocket gateway is not provisioned. No claim is made that the example returns real BTC data today. |
| 39 | |
| 40 | ## Required server response and separation |
| 41 | |
| 42 | `source_ohlc` must be sourced from genuine licensed provider bars with units, timestamp, quality and `approved_public` rights. A `reference_point` has `time/price` only, not artificial OHLC. The currently deployed ECB `/api/history` endpoint has its own legacy response format; bridge it explicitly instead of pretending it supplies source candles. |
| 43 | |
| 44 | ## Release requirements |
| 45 | |
| 46 | A real React app integration, signed market-data contracts, provider entitlements, secure server secret deployment, successful API+WS integration tests, accessible/responsive UI QA and rollback. Never expose database or provider credentials in JavaScript sent to browsers. |