run fundamentals weekly, not daily — it's quarterly-ish data
Pulled the fundamental collector out of the daily pipeline (where it re-fetched near-identical numbers every day and burned free-tier API quota) and made it an independent weekly job. P/E/market-cap drift with price but the score buckets them coarsely; revenue growth and earnings surprise only change at quarterly earnings. Added "weekly" to the frequency map; fundamental_fetch_frequency now defaults to weekly (configurable). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -23,8 +23,11 @@ class TestParseFrequency:
|
||||
assert _parse_frequency("Hourly") == {"hours": 1}
|
||||
assert _parse_frequency("DAILY") == {"hours": 24}
|
||||
|
||||
def test_weekly_maps_to_one_week(self):
|
||||
assert _parse_frequency("weekly") == {"weeks": 1}
|
||||
|
||||
def test_unknown_defaults_to_daily(self):
|
||||
assert _parse_frequency("weekly") == {"hours": 24}
|
||||
assert _parse_frequency("monthly") == {"hours": 24}
|
||||
assert _parse_frequency("") == {"hours": 24}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user