Skip to content

Claude/market data backend design u4ewj2 - #158

Closed
alecreichert2-cpu wants to merge 3 commits into
ed-donner:mainfrom
alecreichert2-cpu:claude/market-data-backend-design-u4ewj2
Closed

Claude/market data backend design u4ewj2#158
alecreichert2-cpu wants to merge 3 commits into
ed-donner:mainfrom
alecreichert2-cpu:claude/market-data-backend-design-u4ewj2

Conversation

@alecreichert2-cpu

Copy link
Copy Markdown

No description provided.

Alec Reichert and others added 3 commits August 27, 2026 11:48
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CuqiaCdtYPfMrAzmEW9sYx
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CuqiaCdtYPfMrAzmEW9sYx
Writes planning/MARKET_DATA_DESIGN.md: an implementation-ready design for the
market data subsystem, consolidating MARKET_INTERFACE.md, MARKET_SIMULATOR.md
and MASSIVE_API.md into one document with runnable code for the provider
interface, GBM simulator, Massive REST client, price cache, poll engine, SSE
endpoint and FastAPI wiring.

All eight REVIEW.md findings are resolved in the design, notably:
- grouped-daily fallback now spends at most one HTTP call per fetch (was up
  to five, against a 5 calls/min free tier)
- symbol existence moves out of the fetch contract into validate_ticker(),
  called at watchlist-add time, so both providers honour one contract
- previous_close becomes reference + an explicit basis field
- PriceCache.prune is wired to the engine; poll cadence is deadline-based

Every code block and test in the document was executed before being written
down; the 23 tests in the testing section pass as written.
@alecreichert2-cpu alecreichert2-cpu closed this by deleting the head repository Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant