@davoodmehraban89 / VELYQOR / commits / 5b5bb9a
Fork 0

Intelligence, Advanced Charting & Trading Platform

docs: add verified Phase 1 provider source matrix

davoodmehraban89 committed Oct 5, 2026 at 16:19 UTC 5b5bb9afd3c166eba38805176265f6b2a33f1b77
1 file changed +116
docs/data/provider-source-matrix.md new
+116
@@ -0,0 +1,116 @@
1 +# Provider Source Matrix — Phase 1 Data Proof
2 +
3 +Research date: 2026-10-05
4 +
5 +This matrix is an engineering gate, not a provider endorsement. A provider is not promoted to production solely because an API is reachable. Licensing/commercial rights, timestamp quality, update frequency, history, reliability, and reproducibility must all be acceptable.
6 +
7 +## Canonical symbols
8 +
9 +| Canonical symbol | Needed for MVP | Data requirement |
10 +|---|---:|---|
11 +| USD_IRT_FREE | Yes | Iranian free-market USD/IRT, timestamped observations |
12 +| GOLD18_IRT | Yes | Iranian 18K gold/IRT, timestamped observations |
13 +| XAU_USD | Yes | Global gold spot USD/troy ounce |
14 +| GOLD18_THEORETICAL_IRT | Derived | Calculated internally |
15 +| GOLD18_PREMIUM_IRT | Derived | Calculated internally |
16 +| GOLD18_PREMIUM_PCT | Derived | Calculated internally |
17 +
18 +## Current candidates
19 +
20 +### Navasan
21 +Official source: https://www.navasan.tech/en/api
22 +
23 +Observed capabilities:
24 +- Iranian currency prices in IRR.
25 +- Latest rates and historical updates.
26 +- Historical OHLC is documented.
27 +- Free tier currently advertises 120 calls/month and update rate every two hours.
28 +- Paid Standard tier advertises instantaneous updates with higher call limits.
29 +
30 +Engineering ruling:
31 +- Suitable for schema/integration proof and possibly low-frequency reference/backfill.
32 +- Free tier is NOT sufficient for a genuine 1-minute/live chart.
33 +- Never expose a 1m timeframe from this source alone.
34 +- Commercial use/plan terms must be confirmed before production dependency.
35 +
36 +Candidate role:
37 +REFERENCE / DEVELOPMENT PROOF
38 +
39 +### Bon-bast
40 +Official docs: https://www.bon-bast.com/docs
41 +
42 +Observed capabilities:
43 +- Near-real-time Iran open-market FX plus gold/silver/coin.
44 +- Historical data is advertised.
45 +- Bon-bast states its displayed rates are in toman.
46 +- Official commercial API is paid; current Basic plan is advertised at USD 469/year with 10,000 API calls/month.
47 +- The service explicitly directs businesses to its API for commercial use.
48 +
49 +Engineering ruling:
50 +- Strong production candidate from a licensing/official-API perspective if/when budget is approved.
51 +- Does not satisfy the current zero-foreign-spend MVP constraint.
52 +- Do not scrape the public site as a substitute for commercial API rights.
53 +
54 +Candidate role:
55 +FUTURE PRODUCTION / COMMERCIAL REFERENCE
56 +
57 +### Alpha Vantage — XAU/USD
58 +Official docs: https://www.alphavantage.co/documentation/
59 +
60 +Observed capabilities:
61 +- Dedicated Gold & Silver Spot endpoint.
62 +- Historical gold/silver daily/weekly/monthly endpoint.
63 +- Free API keys are offered.
64 +- Suitable as an immediately testable global-XAU source, subject to actual free quota and freshness observed during Data Proof.
65 +
66 +Engineering ruling:
67 +- Good initial XAU/USD candidate for development and validation.
68 +- Production/live suitability must be measured, not assumed.
69 +- If free quota/frequency is insufficient for desired chart resolution, replace behind the provider adapter without domain changes.
70 +
71 +Candidate role:
72 +PRIMARY DEVELOPMENT CANDIDATE FOR XAU_USD
73 +
74 +## Rejected assumptions
75 +
76 +- Binance market streams are useful for crypto/futures streams, but they are not adopted here as the canonical XAU/USD source without explicit evidence for the required spot-gold instrument.
77 +- Unofficial scrapers/wrappers are not production truth sources.
78 +- A source that updates every two hours cannot truthfully support a 1m candle.
79 +- Missing observations are not synthesized into fake ticks.
80 +
81 +## Selection gates
82 +
83 +A provider can become PRIMARY only after all applicable gates pass:
84 +
85 +1. Legal/commercial usage path is documented.
86 +2. Unit convention is explicit (IRR vs IRT, gram vs ounce, purity).
87 +3. Provider timestamp is present or a documented receive-time fallback is used.
88 +4. Update frequency is measured over a continuous test window.
89 +5. Duplicate/out-of-order behavior is measured.
90 +6. Outage/recovery behavior is known.
91 +7. Historical depth and OHLC semantics are verified if used for backfill.
92 +8. Cross-provider divergence can be observed where a reference source exists.
93 +9. Credentials are server-side only.
94 +10. The UI exposes only timeframes justified by observed source frequency.
95 +
96 +## Current Phase 1 source plan
97 +
98 +USD_IRT_FREE:
99 +- Navasan as immediate integration/reference candidate.
100 +- Bon-bast retained as future commercial-quality candidate.
101 +- Continue searching for a second zero-cost legally usable reference before calling the source stack resilient.
102 +
103 +GOLD18_IRT:
104 +- Evaluate Navasan's gold instruments/units in the same proof harness.
105 +- Bon-bast retained as future commercial candidate.
106 +- Reject any source whose gold definition (18K / mesghal / ounce / rial/toman) is ambiguous.
107 +
108 +XAU_USD:
109 +- Implement Alpha Vantage adapter first for proof.
110 +- Measure actual freshness/quota.
111 +- Keep adapter replaceable.
112 +
113 +## Exit condition for provider selection
114 +
115 +No provider is marked production-ready in this document yet.
116 +Phase 1 Data Proof exits only when USD_IRT_FREE, GOLD18_IRT, and XAU_USD each have a tested ingestion path with observed timestamps, units, freshness, failure behavior, and documented usage constraints.