Skip to content

cvsz/ABTPi18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

235 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Auto Bot Trader Pro (ABTPro) i18n

Version License Python Node

Production-ready automated trading platform with multi-language support, multi-strategy execution, and multi-exchange connectivity

Features β€’ Quick Start β€’ Documentation β€’ Architecture β€’ Contributing


πŸ“– About

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

✨ Features

Core Trading Platform

  • 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

Security & Compliance

  • 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

Business Features

  • 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

Intelligence & Analytics

  • 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

πŸ— Architecture

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]
Loading

Component Overview

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

πŸš€ Quick Start

Prerequisites

  • Docker & Docker Compose
  • Python 3.11+
  • Node.js 18+
  • PostgreSQL 14+
  • Redis 7+

Installation

  1. Clone the repository

    git clone https://github.com/ZeaZDev/ABTPi18n.git
    cd ABTPi18n
  2. Set up environment variables

    cp .env.example .env
    # Edit .env with your configuration
  3. Run the installation script

    ./install.sh
  4. Access the application

First Steps

  1. Sign in: Navigate to http://localhost:3000/en/login and sign in with Google
  2. Add API Keys: Go to Settings β†’ Exchange Keys β†’ Add your exchange API credentials
  3. Connect Telegram: Settings β†’ Telegram Integration β†’ Link your account
  4. Customize Theme: Settings β†’ Theme Customizer β†’ Choose colors and mode
  5. Select Language: Use the language selector (πŸ‡¬πŸ‡§ πŸ‡ΉπŸ‡­ πŸ‡¨πŸ‡³ πŸ‡―πŸ‡΅)
  6. Start Trading: Dashboard β†’ Configure Strategy β†’ Start Bot
  7. Monitor Performance: View real-time PnL and trade history on the Dashboard

πŸ’» Usage

Starting a Trading Bot

# 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
  }
}

Developing Custom Strategies

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.

πŸ“š Documentation

All documentation is organized in the docs/ directory and is also available on the GitHub Wiki for easier browsing.

Core Documentation

Setup & Configuration

Strategy Development & DR

Tools & Utilities

Phase Documentation

πŸ“– View Complete Documentation Index

πŸ”’ Security

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.

🚒 Releases

Current Version: 1.0.1 - View Release Notes

Creating a New Release

./release.sh <version>
# Example: ./release.sh 1.1.0

See the Release Guide for detailed instructions.

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details on:

  • Development environment setup
  • Code style and standards
  • Pull request process
  • Testing requirements

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

🌟 Acknowledgments

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

πŸ“ž Support

For issues, questions, or feature requests:


Made with ❀️ by ZeaZDev

Website β€’ Documentation β€’ Changelog

About

ZeaZDev-ABTPi18n Auto Bot Trader Pro i18n

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors