feat: add stock detail page with chart, position, and orders
- Add /api/alpaca/orders endpoint for order history - Add TradingView chart component for candlestick visualization - Add /analyze/:ticker route with position and orders display - Make ticker cells in analyze page clickable for navigation
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
test("GET /api/alpaca/orders returns orders list", async ({ page }) => {
|
||||
const res = await page.request.get("/api/alpaca/orders");
|
||||
expect(res.ok()).toBeTruthy();
|
||||
const data = await res.json();
|
||||
expect(data.orders).toBeDefined();
|
||||
});
|
||||
Reference in New Issue
Block a user