Skip to content

9 build complete market data backend - #10

Closed
hengky888 wants to merge 2 commits into
mainfrom
9-build-complete-market-data-backend
Closed

9 build complete market data backend#10
hengky888 wants to merge 2 commits into
mainfrom
9-build-complete-market-data-backend

Conversation

@hengky888

Copy link
Copy Markdown
Owner

No description provided.

claude and others added 2 commits August 12, 2026 07:04
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
@hengky888 hengky888 linked an issue Aug 12, 2026 that may be closed by this pull request
@hengky888 hengky888 closed this Aug 12, 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.

Build complete Market Data Backend

2 participants