Add official DOL and EIA economic calendar feeds

Collect weekly claims and precise commercial petroleum inventory changes with official schedule exceptions, distinct reporting periods, raw evidence, and revisions.

Extend explicit history backfills without changing their default source scope. Report archive gaps and reject mismatched weeks instead of filling current values into history.
This commit is contained in:
eezd committed 2026-10-30 23:11:40 +08:00
1 parent 62d8c7eb65
commit 8d6cbeeb40
16 files changed
+956 -10

No files matched your search

+4 -1
View File
@@ -187,7 +187,10 @@ def release_rows(row: EconomicRelease, now: datetime) -> list[dict]:
country_name = COUNTRIES[family.country_code]
period_name = ""
if row.period is not None:
period_name = f"第{row.period[-1]}季度" if "-Q" in row.period else f"{int(row.period[5:7])}月"
if len(row.period) == 10:
period_name = f"截至{row.period}当周"
else:
period_name = f"第{row.period[-1]}季度" if "-Q" in row.period else f"{int(row.period[5:7])}月"
for key in family.indicators:
indicator = INDICATORS[key]
value = row.values.get(key, {})