A sophisticated AI-Enhanced trading analysis platform built with modern full-stack architecture. Features real-time market data processing, AI-powered analysis with RAG technology, and Bloomberg Terminal-inspired interface.
- Real-time Market Data: Live price updates with WebSocket connections
- AI-Powered Insights: Sentiment analysis, pattern matching, and news impact analysis
- RAG Technology: Vector-based contextual analysis for enhanced decision making
- Async Worker System: Multi-threaded analysis processing with priority queuing
- Portfolio Management: Real-time position tracking and P&L calculations
- Trading Interface: Bloomberg Terminal-inspired dark theme design
Frontend:
- React 18 with TypeScript
- Tailwind CSS + Shadcn/ui components
- TanStack Query for state management
- Wouter for routing
- Recharts for data visualization
Backend:
- Node.js with Express.js
- TypeScript with ES modules
- WebSocket server for real-time data
- PostgreSQL with Drizzle ORM
Testing & Quality:
- Vitest for unit testing
- Testing Library for React components
- ESLint + Prettier for code quality
- Husky + lint-staged for pre-commit hooks
- GitHub Actions CI/CD pipeline
- Node.js 18+
- PostgreSQL database
- npm or yarn
-
Clone the repository
git clone https://github.com/your-username/ai-trading-platform.git cd ai-trading-platform
-
Install dependencies
npm install
-
Setup environment variables
# Required: PostgreSQL connection string DATABASE_URL=postgresql://username:password@localhost:5432/trading_db
-
Setup database
npm run db:push
-
Start development server
npm run dev
The application will be available at http://localhost:5000
npm run dev
- Start development servernpm run build
- Build for productionnpm run start
- Start production servernpm run test
- Run tests in watch modenpm run test:coverage
- Run tests with coverage reportnpm run lint
- Run ESLintnpm run format
- Format code with Prettiernpm run db:push
- Push database schema changes
The project includes comprehensive testing setup:
# Run all tests
npm test
# Run tests with coverage
npm run test:coverage
# Run tests with UI
npm run test:ui
client/src/test/
- Frontend component testsserver/test/
- Backend API and service testsvitest.config.ts
- Test configuration- Coverage reports generated in
coverage/
directory
Automated GitHub Actions workflow includes:
- ✅ Code Quality: ESLint + Prettier checks
- ✅ Type Safety: TypeScript compilation
- ✅ Testing: Unit tests with coverage reporting
- ✅ Security: Dependency vulnerability scanning
- ✅ Build Verification: Production build testing
- Market data service generates realistic price movements
- Data stored in PostgreSQL with timestamp indexing
- WebSocket server broadcasts updates to connected clients
- React components receive and display live updates
- Automated analysis triggers based on market conditions
- AI service creates sentiment, pattern, and news-based insights
- Vector store performs RAG analysis for contextual responses
- Real-time delivery via WebSocket to connected clients
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- Use TypeScript for all new code
- Follow ESLint configuration
- Write tests for new features
- Update documentation as needed
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by Bloomberg Terminal interface design
- Built with modern React and Node.js ecosystem
- Powered by advanced AI analysis capabilities