This folder lets you update core numbers without editing index.html.
core5.json: controls the Core 5 board and event baseline panel.core5_template.csv: editable import template for quick updates.
- Open
data/core5.json. - Edit
currentValuefor each series. - If needed, edit
refValuefor Brent (used by spread calculation). - Save and refresh the site.
Or use one command (Python, recommended):
python3 scripts/update_core5.py --brent 84.2 --arabl 86.1 --murban 87.3 --omd 85.6 --basram 83.9 --kec 84.4
This command updates all 5 series and recalculates the lead spread input values.
Node version (if you install Node later):
npm run core5:update -- --brent 84.2 --arabl 86.1 --murban 87.3 --omd 85.6 --basram 83.9 --kec 84.4
- Edit
data/core5_template.csv. - Run:
python3 scripts/import_core5_csv.py --csv data/core5_template.csv
Optional:
python3 scripts/import_core5_csv.py --csv data/core5_template.csv --event-date 2026-02-01 --event-name "US-Iran war volatility baseline"
CSV columns:
series_key: must be one oflead,murban,omd,basra,keccurrent_value: latest valueref_value: required forleadrow (Brent reference)feb1_value: event baseline valuesource: source label shown on UIsource_url: optional primary-source link shown as clickablesource
- The page still has safe fallback values in
index.html. - If
core5.jsonis missing or invalid, the site will keep working with fallback values. - Use ISO date format (
YYYY-MM-DD) for the event baseline date. - Optional event update flags in the script:
--event-date 2026-02-01--event-name "US-Iran war volatility baseline"