quantlab.acquisition.fred.refresh_raw_tier#

quantlab.acquisition.fred.refresh_raw_tier(download_dir, *, series, start, end=None)[source]#

Download FRED series into <download_dir>/fred, each from its watermark.

A first refresh downloads each series from start; a later one only what is past its watermark (<download_dir>/_watermarks/fred). The FRED stores read the raw tier from <download_dir>/fred. Registered on FRED_SOURCE.

Parameters:
download_dirstr or Path

The download root.

seriessequence of str

The series ids, such as ["DTB3"].

startstr

The first observation day a first download asks for, YYYY-MM-DD.

enddate or None, default None

The last observation day; today when omitted.

Returns:
RawTierRefreshResult

One part per series, a failed one with FRED’s error.

Examples

Needs the network (no key):

refresh_raw_tier("/data/quantlab/downloads", series=["DTB3"], start="1954-01-04")