feat: macro series

This commit is contained in:
OpenSquared
2026-07-01 15:58:47 +02:00
parent 292d2c6413
commit 776c19e1ae
3 changed files with 133 additions and 80 deletions

View File

@@ -658,13 +658,11 @@ def series_history(
ts_params,
).fetchall()
# ── FF events for this series ─────────────────────────────────────
ff_where = ["series_id = ?", "currency = 'USD'"]
# ── FF events for this series (no date ceiling — include future releases) ──
ff_where = ["series_id = ?"]
ff_params: list = [series_id]
if from_date:
ff_where.append("event_date >= ?"); ff_params.append(from_date)
if to_date:
ff_where.append("event_date <= ?"); ff_params.append(to_date)
ff_rows = conn.execute(
f"SELECT event_date, event_time, event_name, actual_value, "

View File

@@ -41,7 +41,7 @@ SUPPORTED_CURRENCIES = {"USD", "EUR", "GBP", "JPY", "AUD", "CAD", "NZD", "CHF",
FF_TO_FRED: dict[str, str] = {
# Employment
"Non-Farm Employment Change": "PAYEMS",
"ADP Non-Farm Employment Change": "PAYEMS",
"ADP Non-Farm Employment Change": "ADP_NFP",
"Unemployment Rate": "UNRATE",
"Unemployment Claims": "ICSA",
# Inflation — CPI