Commit Graph
2 Commits
Author SHA1 Message Date
Alby96andClaude Opus 5.5 19a9a049f4 Add the ECB history of the research document as test data
The reference rates of the seven currencies against the euro from
1999-01-04 to 2026-12-02 (7,149 fixings), cut from the ECB history
downloaded on 2026-12-04. These are the data behind the "Forex
1999-2026" column of appendix G that Phase 14 must reproduce; no test
uses the network. SHA-256 f298c1dcc4be41a4545174e3e1b3ba5977f9cab23a7fbde622955404b3b03fd8.

refs #130

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 16:29:51 +01:00
Alby96andClaude Opus 5.5 3b13a4258d Add market data schema, catalogue, bar storage and quality checks (refs #18 #20 #21 #23)
Migration 0002 adds the market data tables on both engines: daily and
one-minute bars, corporate actions, FX rates, the exchange calendar,
calendar events, mood indicators, spread samples, data issues, source
state and universe members, plus the trading rules on instruments.

The data layer is format-independent so the venue clients can build on
it: the instrument catalogue (rules from the venue, delisted kept), bar
upserts with ON CONFLICT, the SPEC 6.4 checks with an issue register
that blocks entries until a second reading, freshness by age of the last
datum (trap 10), research history in .csv.gz with exact decimals, and
adjusted series anchored at the decision day with level and quantity
conversion across splits and dividends.

Recorded API responses from OKX, the Alpaca docs and the free sources
are kept byte for byte as test fixtures; the secret scan now ignores
pagination cursors such as Alpaca's next_page_token.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 14:58:44 +01:00