Data Sources#
Overview#
Two market data sources plus one small manually-maintained calendar file: Databento for the futures prices, and FRED for the realized EFFR that anchors the forecast, as the published FedWatch tool does. Notebooks never touch the network; they load the cached parquets produced by the pulls.
Datasets#
Dataset |
Source |
Frequency |
Description |
|---|---|---|---|
ZQ daily bars |
Databento, |
Daily |
OHLCV bars for all listed 30-Day Fed Funds futures contracts (parent symbol |
EFFR |
FRED (EFFR, mirroring the NY Fed; no API key) |
Business days |
Realized effective federal funds rate, in percent; published each morning for the previous business day. Anchors the forecast as the pre-meeting rate |
FOMC calendar |
~8 meetings/yr |
Scheduled meeting dates, hand-maintained in |
Data Pipeline#
src/pull_fed_funds_futures.pypulls the ZQ bars. The pull is free under the course’s Databento subscription; the script verifies this with the freemetadata.get_costendpoint first and refuses to download anything whose estimate is not $0.00.src/pull_effr.pypulls EFFR from FRED’s public CSV endpoint (free, no API key).The pulls write
_data/fed_funds_futures.parquetand_data/effr.parquet; refresh withdoit forget pull && doit.src/fedwatch.py(pure functions, unit tested) holds the math;src/fedwatch_monitor.pyassembles it into the EFFR-anchored forecast, whichsrc/fedwatch_chart.pyrenders to_output/fedwatch_latest_forecast.{png,html}.doit monitoris the unattended daily entrypoint: it re-pulls both sources, appends the day’s snapshot to_data/fedwatch_history.parquet, rewrites_output/fedwatch_monitor_latest.csv, and refreshes the charts.