Exness — Real-Time Crypto Trading Platform
This is a production-grade, full-stack trading platform designed for real-time cryptocurrency trading. It streams live BTC/USDT prices directly from Binance, providing users with up-to-the-minute market data. The platform features comprehensive order management capabilities, including candlestick charting for technical analysis, leveraged trading options with stop-loss and take-profit settings, and real-time profit and loss tracking.
Key features include:
- Live Price Feed: Utilizes Binance WebSocket streams, processed through Redis pub/sub, and delivered to the browser with a throttle of 5 updates per second for efficient display.
- Candlestick Charts: Implemented using Lightweight-Charts v5, supporting 1m, 5m, 15m, and 30m intervals for detailed market visualization.
- Leveraged Trading: Allows market buy/sell orders with leverage up to 20x, along with configurable stop-loss and take-profit levels.
- Real P&L Tracking: Accurately tracks both unrealized and realized profit and loss for each open position.
- AI Market Analysis: Offers live sentiment analysis (Bullish/Bearish/Neutral) and identifies support/resistance levels. It can optionally leverage Google Gemini LLM for enhanced insights.
- Persistent Storage: Employs PostgreSQL with Prisma for storing user data, balances, and positions, ensuring data persistence across restarts.
- Authentication: Securely handles user authentication using JWT and bcrypt password hashing, with a 7-day token expiry.
- Dockerized Environment: Provides a convenient one-command local setup using Docker Compose, including PostgreSQL, Redis, and all application services.
- CI/CD Pipeline: Integrates GitHub Actions for automated building and deployment to AWS EC2 via SSH and PM2.
The platform is architected with microservices managed by Turborepo, ensuring scalability and maintainability. It prioritizes precision in financial calculations by using Decimal.js for all money-related operations, avoiding floating-point inaccuracies.
Deployment options include a free, zero-cost setup using Vercel for the frontend, Neon for PostgreSQL, Upstash for Redis, and Render for backend services. Alternatively, it can be deployed on AWS EC2 for a more robust, paid solution.