Screens & ownership
reachablehybrid Fresh evidence
Stock Detail
A large multi-section destination combines quote/chart, order book, broker, fundamentals, analysis, financials, and order entry.
Screen

Entry points and state
- App route
- AppRoute.stockDetail(ticker:) from Watchlist, Market, Trade, or Portfolio
- Engineering owner
- Trading experience
- KYC boundary
- Viewing is open; Buy/Sell checks TradingOrderAccess and redirects to KYC or demo/live availability messaging.
Entry points
- Watchlist row
- Market search/theme
- Trade quick pick
- Portfolio holding
- Report detail
State ownership
- StockDetailView local section/chart/sheet/load state
- child feature ViewModels where present
Data provenance
Read this boundary before interpreting realistic market, identity, order, or portfolio presentation as production data.
- Mode
- hybrid
- Primary source
- RapidAPI quote, order book, and charts where supported
- Fallback
- Input stock plus deterministic feature-specific providers
- Persistence
- Transient view state and shared response caches
- Network boundary
- RapidAPI called from iOS; embedded TradingView route for advanced chart
- Production ready
- No
- Operational caveat
- A live quote header can coexist with mock fundamentals, broker, seasonality, comparison, or analysis sections.
Dependencies and tests
Dependencies
- RapidAPIMarketDataRepository
- MockMarketDataProvider
- multiple mock feature providers
- SocialRepository (stream hidden in IC-Trade)
Characterization evidence
- StockDetailSectionPolicyTests
- IDX symbol/logo routing tests
- AppSecrets missing-key degradation tests
- SwiftUI previews
Audited source evidence
These are small, sanitized excerpts—not complete source files. A changed hash must be reviewed before this record is marked fresh again.
Alva Online Trading/Features/StockDetail/StockDetailView.swift fresh
Symbol: StockDetailView
The screen coordinates numerous local states, market requests, sections, and protected order actions.
- Audited SHA-256
4b797479804a9f5db1955e2a9d54d26dc19385a4e22ecda4a850a60b2ca4b01c
Alva Online Trading/Features/StockDetail/RapidAPIMarketDataAPIClient.swift fresh
Symbol: RapidAPIMarketDataRepository
Quote, order-book, and chart calls are centralized in the market-data repository.
- Audited SHA-256
39d168db557d379e1b24b8018166b72f44a3238503c72a2d4459ff727941b573