Production-ready automated trading platform with multi-language support, multi-strategy execution, and multi-exchange connectivity
Features β’ Quick Start β’ Documentation β’ Architecture β’ Contributing
ABTPro i18n is a comprehensive automated trading platform designed for professional cryptocurrency trading. Built with security, scalability, and flexibility in mind, it provides a complete solution for deploying and managing trading strategies across multiple exchanges.
Key Capabilities:
- π Enterprise Security: AES-GCM encryption for API keys, OAuth 2.0 authentication
- π Multi-Language: Support for Thai, English, Chinese, and Japanese
- π Multi-Strategy: Pluggable strategy architecture with backtesting and paper trading
- π± Multi-Exchange: CCXT-based connectivity to multiple cryptocurrency exchanges
- π Notifications: Telegram bot integration for real-time alerts
- π° Monetization: Built-in rental system and PromptPay payment integration
- π€ ML-Powered: Machine learning signal scoring and reinforcement learning tuning
- FastAPI Backend with Celery worker loops for distributed task execution
- Next.js Frontend with App Router and react-i18next for seamless i18n
- Strategy Engine with plug-in architecture (includes RSI Cross, Mean Reversion, Breakout, VWAP)
- TradingView Integration with webhook support for external alerts and strategies
- Risk Management with max drawdown tracking and circuit breakers
- Real-time Market Data via WebSocket streaming
- API Key Encryption: Immediate AES-GCM encryption for all exchange credentials
- Google OAuth 2.0: Secure user authentication
- Audit Trail System: Complete logging of all API actions
- Static Code Scanning: Automated security checks with Bandit and Semgrep
- Secret Rotation: Automated credential rotation workflow
- DR/Failover Strategy: Multi-region disaster recovery planning
- Rental Contracts: Subscription-based access control with expiry enforcement
- PromptPay Integration: QR code payment processing with callbacks
- Module Plugin Loader: Dynamic loading of custom trading modules
- Portfolio Aggregation: Multi-account portfolio management
- Backtesting & Paper Trading: Test strategies without risking capital
- ML Signal Quality Scoring: Evaluate trading signals with machine learning
- Reinforcement Learning: Strategy parameter optimization
- Predictive Volatility: Volatility estimation for better risk management
- Prometheus & Grafana: Comprehensive monitoring and metrics
flowchart LR
FE[Frontend: Next.js i18n] --> API[FastAPI Backend]
API --> SEC[Security Service: AES-GCM]
SEC --> DB[(PostgreSQL)]
API --> CELERY[Celery Dispatcher]
CELERY --> WORKER[Worker Loop]
WORKER --> STRAT[Strategy Engine]
STRAT --> RISK[Risk Manager]
RISK --> CCXT[CCXT Adapter]
CCXT --> EXCH[(Exchange APIs)]
STRAT --> LOGS[TradeLog β DB]
API --> RENTAL[Rental Module]
API --> PAYMENT[PromptPay]
API --> TELE[Telegram Hook]
| Component | Technology | Purpose |
|---|---|---|
| Frontend | Next.js + react-i18next | Multi-language dashboard with App Router |
| Backend | FastAPI + Prisma | REST API with ORM for PostgreSQL |
| Worker | Celery + Redis | Distributed task queue for trading loops |
| Database | PostgreSQL | Persistent storage for users, trades, and configs |
| Security | AES-GCM | API key encryption service |
| Auth | Google OAuth 2.0 | User authentication and authorization |
| Notifications | Telegram Bot API | Real-time trade alerts and notifications |
| Monitoring | Prometheus + Grafana | Metrics collection and visualization |
| Deployment | Docker Compose | Multi-container orchestration |
- Docker & Docker Compose
- Python 3.11+
- Node.js 18+
- PostgreSQL 14+
- Redis 7+
-
Clone the repository
git clone https://github.com/ZeaZDev/ABTPi18n.git cd ABTPi18n -
Set up environment variables
cp .env.example .env # Edit .env with your configuration -
Run the installation script
./install.sh
-
Access the application
- Frontend: http://localhost:3000/en/dashboard
- Backend API: http://localhost:8000/docs
- Monitoring: http://localhost:9090 (Prometheus) / http://localhost:3001 (Grafana)
- Sign in: Navigate to http://localhost:3000/en/login and sign in with Google
- Add API Keys: Go to Settings β Exchange Keys β Add your exchange API credentials
- Connect Telegram: Settings β Telegram Integration β Link your account
- Customize Theme: Settings β Theme Customizer β Choose colors and mode
- Select Language: Use the language selector (π¬π§ πΉπ π¨π³ π―π΅)
- Start Trading: Dashboard β Configure Strategy β Start Bot
- Monitor Performance: View real-time PnL and trade history on the Dashboard
# Example: Configure and start a trading bot via API
POST /bot/start
{
"strategy": "RSI_CROSS",
"exchange": "binance",
"symbol": "BTC/USDT",
"parameters": {
"rsi_period": 14,
"oversold": 30,
"overbought": 70
}
}Add new strategy files to apps/backend/src/trading/strategies/ and register them:
from src.trading.strategies.base import BaseStrategy
class MyCustomStrategy(BaseStrategy):
def analyze(self, market_data):
# Your strategy logic here
pass
def execute(self, signal):
# Execute trades based on signals
pass
# Register the strategy
StrategyRegistry.register(MyCustomStrategy)See the Strategy Development Guide for detailed instructions.
All documentation is organized in the docs/ directory and is also available on the GitHub Wiki for easier browsing.
- Contributing Guide - Development setup and workflow
- Roadmap - Project phases and progress
- Security Guide - Security model and best practices
- Release Process - Creating releases and publishing packages
- GitHub Setup - Configuring GitHub Secrets
- Platform Requirements - System requirements
- TradingView Integration - Connect TradingView alerts
- Strategy Guide - Building trading strategies
- DR/Failover Strategy - Disaster recovery planning
- Picture Overview Program - Automated screenshot capture for all pages across all languages
- Phase 1 (Foundation): Guide | Summary | Implementation
- Phase 2 (Strategy Engine): Guide | Summary | Implementation
- Phase 3 (i18n & Auth): Guide | Summary | Implementation
- Phase 4 (Monetization): Guide | Summary | Implementation
- Phase 5 (Compliance): Guide | Summary | Implementation | Quick Start | Migration
- Phase 6 (ML/Intelligence): Guide | Summary | Implementation | Quick Start
π View Complete Documentation Index
Security is a top priority for ABTPro. Key security features include:
- API Key Encryption: All exchange API keys are encrypted using AES-GCM before storage
- OAuth 2.0: Secure user authentication via Google
- Audit Logging: Complete audit trail of all API actions
- Static Analysis: Automated security scanning with Bandit and Semgrep
- Secret Rotation: Automated credential rotation mechanisms
- CodeQL: Continuous security vulnerability scanning
For detailed security information, see SECURITY.md.
Current Version: 1.0.1 - View Release Notes
./release.sh <version>
# Example: ./release.sh 1.1.0See the Release Guide for detailed instructions.
We welcome contributions! Please see our Contributing Guide for details on:
- Development environment setup
- Code style and standards
- Pull request process
- Testing requirements
This project is licensed under the MIT License - see the LICENSE file for details.
Built with:
- FastAPI - Modern Python web framework
- Next.js - React framework for production
- CCXT - Cryptocurrency exchange library
- Prisma - Next-generation ORM
- Celery - Distributed task queue
For issues, questions, or feature requests:
- Open an issue on GitHub Issues
- Check the documentation
- Review the FAQ (if available)
Made with β€οΈ by ZeaZDev
Website β’ Documentation β’ Changelog