Intelligence, Advanced Charting & Trading Platform

1 # VELYQOR Project State
2
3 Last updated: 2026-10-05
4
5 ## Current phase
6 Phase 0 — Foundation & Governance; PostgreSQL core implementation in progress.
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 the MVP.
18 - TypeScript/React/Next.js web application.
19 - PostgreSQL is the canonical datastore; hosting is provider-portable through `DATABASE_URL`.
20 - Neon is the preferred initial managed PostgreSQL provider, but is not a domain dependency.
21 - Cloudflare is edge/runtime/cache/protection; Hyperdrive may front PostgreSQL after credentials exist.
22 - Provider adapters feed immutable raw observations, normalization, quality gates, candle construction, and derived-series calculation.
23 - UTC canonical storage; Asia/Tehran presentation.
24
25 ## Completed
26 - Independent private GitHub repository established.
27 - Phase 0 foundation PR passed CI and was merged to `main`.
28 - Engineering rules, Definition of Done, architecture baseline and canonical market contracts established.
29 - PostgreSQL portability decision recorded in ADR-0002.
30 - Initial PostgreSQL migrations created for instruments, providers, raw observations, normalized ticks, candles, derived values, data-quality events, users, workspaces and drawings.
31 - Six canonical MVP instruments are seeded.
32 - Database invariant test added for canonical instruments and invalid OHLC rejection.
33 - Cloudflare account connection verified; Hyperdrive API is available and currently has no configurations.
34 - Neon plugin is installed in the ChatGPT environment, but its operational actions are not exposed in this conversation yet.
35
36 ## In progress
37 - Provisioning a managed PostgreSQL database for VELYQOR.
38 - Applying and executing database migrations/invariant tests against a real PostgreSQL instance.
39 - Cloudflare Hyperdrive configuration after PostgreSQL credentials exist.
40 - Phase 1 provider research/data proof.
41
42 ## External blocker
43 A live PostgreSQL instance has not yet been provisioned/connected in this conversation. Until a database connection is available, migrations cannot truthfully be reported as executed. Neon is the selected initial provider; the schema itself remains portable PostgreSQL.
44
45 ## Risks
46 - Iranian market-data provider licensing, timestamp quality, anti-bot restrictions, history and reliability.
47 - UI timeframes must reflect actual observation frequency; synthetic precision is prohibited.
48 - XAU/USD and USD/IRT source timestamps require explicit alignment/staleness thresholds.
49
50 ## Next checkpoint
51 1. Provision/connect VELYQOR PostgreSQL.
52 2. Execute migrations and invariant tests.
53 3. Create Cloudflare Hyperdrive against the database.
54 4. Start Phase 1 provider adapters and data-quality proof.