Batched Yahoo quotes #13
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
epic:E1-foundation
epic:E2-correct-metrics
epic:E3-fast-jobs
epic:E4-cli
epic:E5-web-ui
epic:E6-history
good first issue
help wanted
invalid
question
sprint-tracking
story
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/screener#13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fetch ~100 symbols per request instead of 1 request/second for each company.
Acceptance criteria
Definition of Done
bun testpasses; new logic has testsbun checkis clean andbun fmt --checkpassesCloses #<this issue>Considerations
enrich-prices.tsmakes onequoteSummarycall per company, with a 1-second sleep between calls. For about 4,900 companies that's roughly 80 minutes.yahoo-finance2'squote([...symbols])accepts many symbols per request, so prices for everyone would take about 50 requests and well under a minute.The catch: batched
quote()returnsregularMarketPriceandmarketCapbut not sector or industry. Those only come fromquoteSummary'ssummaryProfile, one symbol at a time. And sector isn't cosmetic: src/eligibility.ts:51 uses it to exclude financials and utilities.🤖 Claude: Proposed changes to the acceptance criteria (backlog refinement)
Two things have changed since this was written:
quote()has no sector, so this story can't ship before #14 (the sector cache) without dropping every company from the ranking. I propose moving "Sector and industry are fetched only when missing" to #14, so this story is only about prices.Acceptance criteria (revised)
quote()in batches of up to 100 symbols.quoteSummarycalls of its own.quoteSummarypath. Any difference is listed and explained in the PR.Questions
Dependencies
Needs #14 first.
🤖 Claude: Recording Chris's answers from the session: