numeraire_dataset.builders.fredmd.download#

numeraire_dataset.builders.fredmd.download(vintages: list[str], dest: str | Path, *, timeout: int = 120) list[Path][source]#

Download recent FRED-MD single vintages (YYYY-MM) into dest; return local paths.

Tries three names in order — new site YYYY-MM-md.csv (2025-04+), new site YYYY-MM.csv (2025-01..03), then legacy S3 YYYY-MM.csv; earlier vintages live in the zip archives (see download_archive()). A 200-OK response that isn’t a FRED-MD CSV (e.g. an HTML placeholder for an unpublished month) is treated as a failure. Public data (cite McCracken & Ng 2016).