Skip to content

feat: separate realtime display prices from strategy candles - #146

Merged
pjy008008 merged 4 commits into
developfrom
feature/realtime-display-and-strategy-candles
Aug 7, 2026
Merged

feat: separate realtime display prices from strategy candles#146
pjy008008 merged 4 commits into
developfrom
feature/realtime-display-and-strategy-candles

Conversation

@pjy008008

Copy link
Copy Markdown
Contributor

Summary

  • Stream Alpaca SIP trades through a 250 ms display coalescer into Redis latest-price state and Pub/Sub.
  • Poll finalized Alpaca 30-minute bars and aggregate only the strategy cadences: 30m, 1h, 4h, and 1d.
  • Keep display-price traffic separate from the durable evaluation stream.
  • Include interval OHLCV in display updates so the browser can build 1m, 5m, and 15m chart bars.
  • Make the worker consume one evaluation-ready event containing the actual finalized strategy candles.

Architecture boundary

1m/5m/15m data is display-only and cannot trigger strategy evaluation. Strategy evaluation remains fixed to finalized 30m/1h/4h/1d candles. Legacy 1m strategy plans are mapped to the existing 30m cadence for compatibility.

Verification

  • ./gradlew.bat test
  • Production-source audit for small-timeframe strategy events
  • git diff --check

@pjy008008
pjy008008 merged commit a9f1bb7 into develop Aug 7, 2026
2 checks passed
@pjy008008
pjy008008 deleted the feature/realtime-display-and-strategy-candles branch August 7, 2026 18:38
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