quantdata.fred.rates#
quantdata.fred.rates
Download SOFR, EFFR and Treasury rates from FRED.
Requires the FRED_API_KEY environment variable.
See https://fred.stlouisfed.org/docs/api/api_key.html
- quantdata.fred.rates.load_fred_rates(start, end)[source]#
Download SOFR, EFFR, DGS1MO, DGS3MO, DGS6MO from FRED and return as unscaled floats.
Adds
oncolumn defined as SOFR when available, otherwise EFFR, otherwise DGS1MO. Only returns dates that have at least one non-zero rate. All rate columns are forward-filled so there are no trailing nulls.Requires
FRED_API_KEYenvironment variable.