Files
worldmonitor/scripts
Elie Habib 72b6f9e832 feat(supply-chain): add SCFI, CCFI, and BDI freight indices (#1666)
* feat(supply-chain): add SCFI, CCFI, and BDI freight indices to shipping tab

Transform the Shipping Rates tab from 2 lagging monthly FRED indices into
a real-time freight cost dashboard with container and bulk shipping rates.

Seed script: add fetchSCFI/fetchCCFI (SSE JSON API) and fetchBDI (HandyBulk
HTML scrape) with inline history accumulation using source observation dates.
Handler: make cache-only (seed is sole aggregator, no FRED fallback on miss).
Panel: group indices into Container Rates, Bulk Shipping, Economic Indicators.
Tests: 26 functional tests with fixture data for parsers, history, and handler.

* fix(supply-chain): use raw Redis read and correct SCFI composite unit

- Handler: switch from cachedFetchJson (env-prefixed) to getCachedJson(key, true)
  so preview deployments read the unprefixed seed key correctly
- Seed: SCFI composite is a dimensionless index, not USD/TEU (route-level unit)
- Tests: update assertions to match both fixes
2026-03-15 19:14:11 +04:00
..