marina-rules
Auditable backtests: the exchange trading rules in force on each day, as data with sources. Price limits, fees, trading sessions, ticks, settlement — every record says when a rule took effect and where it was published. A backtest asks for the rule of each trade date instead of hard-coding today's; marina-check then verifies every fill against the rules of its day and, on a strict pass, emits a stamp that anyone holding the same fill log and the same rules version can recompute; citation() names the exact, byte-pinned rules a result ran under.
rules: marina-rules@2026.11.16 sha256:80188ec249ce22ae
Market families
| family | records | rule pages | scopes |
|---|---|---|---|
China mainland (cn) | 2691 | 413 | 105 |
Hong Kong (hk) | 75 | 38 | 3 |
United States (us) | 107 | 28 | 2 |
Verification levels
| level | records | meaning (README) |
|---|---|---|
single-source | 1451 | one source, or an official source where date or value had to be inferred |
unverified | 1 | secondary sources only, or sources disagree (the disagreement is recorded in notes) |
verified | 1421 | ≥1 official primary source (exchange / ministry / depository) states this value and date, or ≥2 independent authoritative sources agree. Every source carries a verbatim quote and a content hash of the fetched document (text for HTML, bytes for PDF) — mandatory, enforced at load time |
Install and query
pip install marina-rules
marina-rules query <rule> <date> <scope> [market]
Every rule page as text: llms.txt. Manifest: site.json.
marina-rules — point-in-time trading rules as data. Install from PyPI · source, data and how to cite · CC0 data, MIT code.