Smoke Tests: 010 Pricing Awareness and Market Data
- Primary smoke script:
scripts/test-state-007-pricing-awareness-market-data.sh(planned)
Required Checksβ
- Runtime startup includes healthy
nats-broker. - Runtime startup includes healthy
price-publisher. - Price lookup endpoint returns quote payload with numeric
price. - Trade submission still accepted on existing REST path and includes stamped
price. - Trade service publish event reaches trade-processor through NATS.
- Processed trade and position updates are published on account-scoped subjects.
- Frontend stream subscriber receives account-scoped updates via websocket ingress path.
- Pricing stream (
pricing.<TICKER>) is observable via websocket ingress path. - Persisted trades include
price; persisted positions includeaverageCostBasis. - Unknown account/ticker validations remain unchanged from prior state.
- Supported symbol coverage check:
- every symbol returned by
reference-data /stockshas quote support fromprice-publisher.
- Symbol normalization check:
reference-data /stocks/METAreturns200,reference-data /stocks/FBreturns404.
- Price publisher health check reports publish cadence configuration (
minMs,maxMs,ratio). - UI manual/automation check:
- position blotter market-price marker (
β²/βΌ/β) reflects relation to open, - market price, position value, and P&L apply expected red/green highlight semantics.
- Financial-services sample coverage check:
reference-data /stocksincludesMS,UBS,C,GS,DB,JPM,COF,DFS,FNMA, and at least one Fidelity-related symbol (FIS/FNF),price-publisher /prices/{ticker}returns200for each of those supported symbols.