Intelligence, Advanced Charting & Trading Platform
docs(state): record multimarket frontend, REST/WS scaffold, tests and production blockers
davoodmehraban89 committed
Oct 12, 2026 at 00:27 UTC
6922c6400dcffccc04c219846a5024bb6832e501
1 file changed
+13
PROJECT_STATE.md
+13
@@ -98,3 +98,16 @@ With explicit user approval, the unused overprivileged Neon role `chartnova_hist
98
- Local isolated-worktree results remain **85/85 domain** and **14/14 Worker/history** PASS, with Worker syntax PASS. These results **do not replace a green remote CI**.
99
- The connected Windows device has Corepack-managed `pnpm 10.17.1` but no standalone `pnpm` on PATH, so `corepack pnpm verify` stopped when its nested `pnpm` command was unavailable. The device has no available `psql` or `docker` CLI for locally reproducing the PostgreSQL CI job. Do not treat this as a proven application defect or green full verify.
100
- **Release gate:** keep PR #23 draft and do not merge/deploy on the strength of local tests; recover CI logs or reproducible runner diagnostics and resolve both jobs first. GitHub run: https://github.com/davoodmehraban89/VELYQOR/actions/runs/38172295674
101
+
102
+## 2026-10-12 — requested multi-market REST/WS/Canvas foundation (isolated branch)
103
+
104
+- User requested React + TradingView Lightweight Charts v5 (Canvas), bounded REST historical APIs, WebSocket live architecture, and candidates CoinGecko, Binance, yfinance, Polygon, Navasan and Bonbast. Original local Git worktree, ECB history and deployed Market/Widget APIs left unchanged.
105
+- Branch `feature/chartnova-multimarket-chart-ws-foundation` is based on `feature/chartnova-neon-direct-history`, separate from `main` and **not deployed**.
106
+- Added `packages/market-feed` canonical reference-point vs source-OHLC contracts; CoinGecko point adapter + bounded hourly query-window planner; Binance spot-kline adapter; yfinance research-only adapter; provider registry; versioned WS subscription/sequence guard; and `/api/v2/history` bounded/paginated REST repository-port handler (unmounted; fails closed if no licensed repository).
107
+- Added standalone `packages/chart-ui` React/TypeScript Lightweight Charts v5 component. Candles render only for `source_ohlc`; ECB and CoinGecko price points use a line. The component expects a future React/Next.js host and already links TradingView. Installed its isolated package's dependencies only in an isolated test worktree; did not change the existing user's app.
108
+- Added `deploy/chartnova/realtime-gateway.mjs` Cloudflare Durable Object WebSocket gateway scaffold with subscription allowlist/limits and authenticated private publisher, plus a non-deployed Wrangler example. **No live feed publishers, durable object instance, Cloudflare secret or public WebSocket deployment exist.**
109
+- Reference documentation: `docs/architecture/ADR-0004-multimarket-rest-ws-charts.md`; `docs/data/multimarket-provider-matrix.md`.
110
+- Local verification on an isolated worktree: **30/30 market-feed tests PASS**, **115/115 total domain+market-feed tests PASS**, new WebSocket gateway `node --check` PASS and client chart `tsc --noEmit` PASS. These are pure behavior tests / type validation; provider availability, live WebSocket latency, DB I/O and license entitlement have NOT been proved.
111
+- Important guardrails: CoinGecko `market_chart` only produces price points, not OHLC; annual hourly planning ≠ Demo-tier entitlement. Binance API previously geoblocked (451). yfinance is research/personal-data-use only absent licensing. Navasan OHLC requires commercial rights and independent IRR/IRT/quote-side verification; Bonbast developer contract/API schema unavailable; Polygon WS plan not provisioned.
112
+- Neon production remained 762 ECB reference observations and zero OHLC candles at the last direct verification; no imports were triggered by this work. Existing `chartnova_history_ro` is still NOLOGIN, so direct read-only Neon Worker history is not activated.
113
+- Next checkpoint: written redistribution rights + provider keys via secure server-side secret manager; select initial requested instruments and quote-side/currency conventions; integrate a real React host and licensed read-only Neon repository; deploy a staging WS gateway under explicit authorization; run integration/latency/quota/staleness/reconnection/rollback tests and obtain green CI before public release.