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

familyrecordsrule pagesscopes
China mainland (cn)2691413105
Hong Kong (hk)75383
United States (us)107282

Verification levels

levelrecordsmeaning (README)
single-source1451one source, or an official source where date or value had to be inferred
unverified1secondary sources only, or sources disagree (the disagreement is recorded in notes)
verified1421≥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.