9 build complete market data backend - #10
Closed
hengky888 wants to merge 2 commits into
Closed
Conversation
Single implementation-ready design of record for the market data subsystem, covering the unified data-source API, the GBM simulator, and the Massive REST client, plus the shared price cache, SSE streaming, the FastAPI wiring, and the watchlist/trade routes that consume them. Written against the as-built code rather than as a forward-looking spec: every code snippet is the shipped implementation, and the numeric constants (seed prices, GBM parameters, correlations, simulated universe) were diffed against source to confirm they match. Documents the reasoning behind the non-obvious choices — why the SSE stream emits unconditionally and computes direction per connection, why ensure_priced exists alongside add_ticker, why the no-residue guarantee is achieved by ordering rather than rollback, why the cache rounds at the write boundary, and why there is no runtime failover from Massive to the simulator. The four split documents are superseded. market_data_design.md moves to archive/MARKET_DATA_DESIGN_V2.md (renamed to avoid a case-collision with the existing archive/MARKET_DATA_DESIGN.md on case-insensitive filesystems), and the ten cross-references in the remaining companion docs are repointed at the new sections. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MtZb6BTTzEFNEzR6kq1wJ4
Instructor redo: consolidated market data design doc, rebuilt from clean main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.