feat: macro series
This commit is contained in:
@@ -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, "
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user