A modern, responsive dashboard for monitoring AI trading agent performance in real-time.
- Real-time Account Value Chart: Track portfolio value changes over time
- Trading Decisions Log: View AI trading decisions with reasoning and confidence levels
- Open Positions: Monitor active trading positions with P&L tracking
- Performance Statistics: Key trading metrics including win rate, Sharpe ratio, and drawdown
- Responsive Design: Optimized for desktop trading environments
- Next.js 14: React framework with App Router
- React 18: Frontend framework
- TypeScript: Type safety and developer experience
- Tailwind CSS: Utility-first CSS framework
- shadcn/ui: Modern UI component library
- Recharts: Data visualization library
- IBM Plex Mono: Professional monospace font
Based on the Alpha Arena design concept - a clean, professional trading interface with:
- Black and white color scheme for clarity
- Monospace typography for precision
- Clear data hierarchy and organization
- Real-time data visualization
- Node.js 18+
- pnpm (recommended) or npm
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
pnpm install
-
Start the development server:
pnpm dev
-
Open http://localhost:3000 in your browser
pnpm build
pnpm startfrontend/
├── src/
│ ├── app/ # Next.js App Router pages
│ │ ├── globals.css # Global styles and themes
│ │ ├── layout.tsx # Root layout
│ │ └── page.tsx # Main dashboard page
│ ├── components/ # Reusable UI components
│ │ ├── ui/ # shadcn/ui components
│ │ ├── charts/ # Chart components
│ │ ├── trading/ # Trading-specific components
│ │ └── stats/ # Statistics components
│ └── lib/ # Utilities and types
│ ├── api.ts # API functions and mock data
│ ├── types.ts # TypeScript type definitions
│ └── utils.ts # Utility functions
└── public/ # Static assets
Currently using mock data. To integrate with your backend API:
- Update the
API_BASE_URLinsrc/lib/api.ts - Replace mock functions with actual API calls
- Update type definitions in
src/lib/types.tsas needed
GET /account/history- Account value historyGET /decisions- Trading decisionsGET /positions- Current positionsGET /stats- Trading statistics
- Line chart showing account value over time
- Built with Recharts for smooth performance
- Responsive design with custom styling
- Scrollable list of AI trading decisions
- Shows action, symbol, reasoning, and confidence
- Color-coded status badges
- Current open positions
- Real-time P&L calculations
- Side (LONG/SHORT) indicators
- Modular statistics display
- Supports value, change, and trend indicators
- Consistent styling across metrics
- Global Styles: IBM Plex Mono font, trading-specific themes
- Component Styles: Tailwind CSS with custom trading dashboard classes
- Colors: Professional black/white scheme with accent colors
- Typography: Monospace for precision and readability
- Uses React 18 with concurrent features
- TypeScript strict mode enabled
- ESLint and Prettier configured
- Optimized for fast development iteration
- Mock data for independent frontend development
The frontend can be deployed to any static hosting provider:
- Vercel (recommended for Next.js)
- Netlify
- AWS S3 + CloudFront
- Docker (see Dockerfile if available)
- Optimized bundle size with Next.js
- Lazy loading for charts and heavy components
- Efficient re-renders with React best practices
- Responsive images and assets