feat: add stock indicators route and Alpaca account info

- New /stocks route with StockViewer component
- New /api/indicators endpoint with SMA, EMA, RSI, MACD
- New /api/alpaca/account endpoint
- AlpacaAccountInfo component on home page
- Indicator calculation utilities
- Tests for utilities and components
- Vite proxy config for /api
This commit is contained in:
2026-05-12 21:07:18 +02:00
parent aaafe8fa3f
commit 8429db504a
18 changed files with 2811 additions and 6 deletions
+15
View File
@@ -0,0 +1,15 @@
export interface IndicatorData {
symbol: string;
indicators: {
sma: number;
ema: number;
rsi: number;
macd: number;
};
}
export interface AlpacaAccount {
cash: number;
buying_power: number;
portfolio_value: number;
}