Technical Docs

Reference documentation for the mi-casa codebase.

NoteDescription
Architecture OverviewFull stack table, request flow, directory structure, path aliases, DI pattern
Authentication FlowLogin, invite signup, token refresh, change password — sequence diagrams + security properties
Frontend State ManagementRedux store shape, RTK Query slice pattern, re-auth interceptor, localStorage persistence
Database SchemaAll tables, column types, relationships, migration workflow, repository layer
Environment VariablesEvery env var, type, default, and which service uses it
Error Handling PatternsErrorOr<T>, AppError types, HTTP status mapping, response shapes, validation
OHLC Feature EnhancementsNew pattern types (Cypher, Three Drives, ABCD), composite signal score, multi-timeframe confirmation, backtest improvements, indicator overlays, live alerts, BTC/ETH symbols
OHLC Phase 2 — Actionability & ObservabilityDesktop/email notifications, analytics dashboard, chart drawing tools, watchlist, paper portfolio
Broker Options for Live Trading IntegrationOanda, IBKR, and split-broker approach evaluated for execution, streaming, and historical data