Skip to content

Fix market data review issues#4

Merged
gsarchioni merged 1 commit intomainfrom
fix/market-data-review-issues
Mar 29, 2026
Merged

Fix market data review issues#4
gsarchioni merged 1 commit intomainfrom
fix/market-data-review-issues

Conversation

@gsarchioni
Copy link
Copy Markdown
Owner

Summary

Addresses all actionable issues from planning/MARKET_DATA_REVIEW.md:

Issues ed-donner#3 (SSE sends all tickers) and ed-donner#9 (GBM dt drift) are noted in the review as acceptable/non-blocking and are not addressed here.

Test plan

  • All 89 tests pass (73 original + 16 new)
  • 6 new tests for SSE stream generator (previously had zero coverage)
  • 5 new tests for PriceCache (version bump on remove, tickers method)
  • 3 new tests for GBMSimulator ticker normalization
  • 2 new tests for SimulatorDataSource ticker normalization

Address issues from MARKET_DATA_REVIEW.md:
- PriceCache.version now acquires lock on read (thread safety)
- PriceCache.remove() bumps version (SSE detects ticker removal)
- GBMSimulator and SimulatorDataSource normalize ticker case
- Add PriceCache.tickers() method for querying tracked symbols
- Move router creation inside create_stream_router() factory
- Add event: price-update field to SSE events
- Type _fetch_snapshots return as list[TickerSnapshot]
- Fix stale CLAUDE.md references to nonexistent files

Adds 16 new tests (89 total, all passing):
- 6 tests for SSE stream generator (previously untested)
- 5 tests for PriceCache (version on remove, tickers method)
- 3 tests for GBMSimulator ticker normalization
- 2 tests for SimulatorDataSource ticker normalization

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gsarchioni gsarchioni merged commit bd98e0a into main Mar 29, 2026
1 check passed
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