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
+9 -1
View File
@@ -1,5 +1,6 @@
import type { Route } from "./+types/home";
import { Welcome } from "../welcome/welcome";
import AlpacaAccountInfo from "../components/AlpacaAccountInfo";
export function meta({}: Route.MetaArgs) {
return [
@@ -9,5 +10,12 @@ export function meta({}: Route.MetaArgs) {
}
export default function Home() {
return <Welcome />;
return (
<>
<Welcome />
<div className="container mx-auto p-4 max-w-2xl">
<AlpacaAccountInfo />
</div>
</>
);
}