Intelligence, Advanced Charting & Trading Platform

1 # VELYQOR Project State
2
3 Last updated: 2026-10-05
4
5 ## Current phase
6 Phase 1 — Market Domain & Data Proof started. Phase 0 PostgreSQL foundation is merged.
7
8 ## Product scope locked for MVP
9 - Iran free-market USD/IRT
10 - Iran 18K gold/IRT market price
11 - Global XAU/USD
12 - Theoretical 18K gold/IRT
13 - Gold market premium/discount absolute and percentage series
14 - Professional charting, drawing tools, technical indicators, overlays, and persistent user workspaces
15
16 ## Architecture baseline
17 - Modular monolith for MVP, with independently schedulable ingestion workers.
18 - TypeScript/React/Next.js web application.
19 - PostgreSQL is the only canonical database contract. Hosting provider is replaceable through `DATABASE_URL`.
20 - Initial hosting target is Aiven Free PostgreSQL if it can be provisioned without payment credentials; Aiven is infrastructure only, never a domain dependency.
21 - Supabase, Neon, Render and Railway are not architectural dependencies. They remain replaceable hosting alternatives.
22 - Cloudflare is edge/runtime/cache/protection. Hyperdrive can front any compatible reachable PostgreSQL once credentials exist.
23 - Provider adapters feed immutable raw observations, normalization, quality gates, candle construction, and derived-series calculation.
24 - UTC canonical storage; Asia/Tehran presentation.
25 - No UI timeframe may imply precision not supported by source data.
26
27 ## Completed
28 - Independent private GitHub repository established.
29 - Phase 0 foundation merged to `main` with green CI.
30 - Provider-neutral PostgreSQL market core merged to `main` with green CI.
31 - Engineering rules, Definition of Done, architecture baseline and canonical market contracts established.
32 - PostgreSQL migrations exist for instruments, providers, raw observations, normalized ticks, candles, derived values, data-quality events, users, workspaces and drawings.
33 - Six canonical MVP instruments are seeded.
34 - Database invariant test exists for canonical instruments and invalid OHLC rejection.
35 - Cloudflare account connection verified.
36 - Render Free PostgreSQL was tested and rejected for the current zero-cost constraint because provisioning required payment credentials.
37 - Deterministic theoretical 18K gold and premium calculations implemented.
38 - Source timestamp alignment and staleness semantics implemented.
39 - Provider normalization contract implemented, including IRR-to-IRT conversion and refusal to guess unsupported units.
40 - Provider health contract implemented.
41 - Deterministic market-data quality classification implemented for GOOD / DEGRADED / STALE / INVALID.
42 - CI floating-point assertion defect was identified from workflow logs and corrected with tolerance-based numeric assertions.
43
44 ## In progress
45 - Phase 1 provider research/data proof for USD/IRT, GOLD18/IRT and XAU/USD.
46 - Managed PostgreSQL provisioning on a no-card free provider.
47 - Provider-specific adapters only after legal/technical source suitability is documented.
48 - Integration of quality state with ingestion/candle pipeline.
49
50 ## External blocker
51 A live VELYQOR PostgreSQL endpoint is not yet connected. This blocks executing migrations against production-like infrastructure, but it does not block domain implementation, deterministic tests, provider research, or application scaffolding.
52
53 ## Risks
54 - Iranian market-data provider licensing, timestamp quality, anti-bot restrictions, history and reliability.
55 - UI timeframes must reflect actual observation frequency; synthetic precision is prohibited.
56 - XAU/USD and USD/IRT source timestamps require explicit alignment/staleness thresholds.
57 - Free database hosting is temporary infrastructure and must not become a product dependency.
58
59 ## Next checkpoint
60 1. Get Phase 1 domain/provider contract CI green and merge.
61 2. Complete provider source matrix and select primary/secondary candidates for each canonical symbol.
62 3. Connect Aiven or another no-card PostgreSQL endpoint and execute migrations/invariants.
63 4. Configure Cloudflare Hyperdrive only after a real PostgreSQL endpoint exists.
64 5. Start chart application shell after Data Proof gates are satisfied.