stats: core-7 economy page with CPI index levels, rebase and categories
All checks were successful
Deploy production / deploy (push) Successful in 1m13s
All checks were successful
Deploy production / deploy (push) Successful in 1m13s
- /stats/economy defaults multi-country charts to CAN KOR CHN JPN USA NLD CUW, with add-a-country chips and an EU 27 comparison line - CPI index levels rebased to a chosen base year, index/YoY toggle, categories (food, energy, housing, core) where the source has them - new no-key collectors: oecd (CPI categories, 10y yields), statcan (CPI); bis WS_LONG_CPI, FRED US CPI categories, Eurostat prc_hicp_minr, WB FP.CPI.TOTL - Canada added as a region; CBS Curacao fallbacks for growth/unemployment - timers stats-oecd and stats-statcan
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
// bun scripts/stats-fetch.ts eurostat [--only=nrg_pc_204]
|
||||
// bun scripts/stats-fetch.ts fred [--only=DCOILBRENTEU]
|
||||
// bun scripts/stats-fetch.ts bis
|
||||
// bun scripts/stats-fetch.ts oecd [--only=cpi,irlt] OECD SDMX (CPI categories, 10y yields)
|
||||
// bun scripts/stats-fetch.ts statcan Statistics Canada CPI (WDS)
|
||||
// bun scripts/stats-fetch.ts worldbank|imf|owid [--only=…]
|
||||
// bun scripts/stats-fetch.ts energycharts|rijksfinancien|ustreasury [--backfill]
|
||||
// bun scripts/stats-fetch.ts usaspending
|
||||
@@ -21,6 +23,8 @@ import { cbs, normaliseCbs } from './stats/cbs';
|
||||
import { eurostat } from './stats/eurostat';
|
||||
import { fred } from './stats/fred';
|
||||
import { bis } from './stats/bis';
|
||||
import { oecd } from './stats/oecd';
|
||||
import { statcan } from './stats/statcan';
|
||||
import { worldbank } from './stats/worldbank';
|
||||
import { imf } from './stats/imf';
|
||||
import { owid } from './stats/owid';
|
||||
@@ -63,6 +67,12 @@ try {
|
||||
case 'bis':
|
||||
await bis({ job });
|
||||
break;
|
||||
case 'oecd':
|
||||
await oecd({ only: value('only'), job });
|
||||
break;
|
||||
case 'statcan':
|
||||
await statcan({ job });
|
||||
break;
|
||||
case 'worldbank':
|
||||
await worldbank({ only: value('only'), job });
|
||||
break;
|
||||
@@ -119,7 +129,7 @@ try {
|
||||
break;
|
||||
default:
|
||||
throw new Error(
|
||||
`Unknown source "${source}" (cbs, eurostat, fred, bis, worldbank, imf, owid, energycharts, rijksfinancien, ustreasury, usaspending, eponline, cbscw, cwintl, elections, parties, wikipolls, eurobarometer, whr, gtrends, gdelt, history, normalise-cbs)`
|
||||
`Unknown source "${source}" (cbs, eurostat, fred, bis, oecd, statcan, worldbank, imf, owid, energycharts, rijksfinancien, ustreasury, usaspending, eponline, cbscw, cwintl, elections, parties, wikipolls, eurobarometer, whr, gtrends, gdelt, history, normalise-cbs)`
|
||||
);
|
||||
}
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user