Skip to content

An intelligent cryptocurrency copy trading bot based on Telegram, featuring multi-exchange support, GPT signal analysis, and automated trading execution.

License

Notifications You must be signed in to change notification settings

GentlemanHu/CryptoCopyTradeBot

Repository files navigation

πŸ€– TelegramCopyTradeBot

currently poor version Cornix alternative, only auto order works(Binance), OKX not tested

English | δΈ­ζ–‡

Trading Flow

License: MIT Python 3.9+ Telegram Bot API Code style: black contributions welcome

GitHub stars GitHub forks GitHub issues GitHub pull requests

An intelligent cryptocurrency copy trading bot based on Telegram, featuring multi-exchange support, GPT signal analysis, and automated trading execution.

✨ Key Features

  • πŸ”„ Multi-Exchange Support (Binance, OKX)
  • πŸ“± Telegram Bot Management Interface
  • πŸ€– GPT-Powered Signal Analysis
  • πŸ“Š Automated Trading Signal Monitoring
  • πŸ’° Smart Trade Execution
  • πŸ“ˆ Dynamic Stop Loss & Multi-Level Take Profit
  • ⚠️ Real-time Risk Monitoring
  • πŸ“Š Comprehensive Trading Analytics

πŸš€ Quick Start

Prerequisites

Python 3.9+
pip
Git

Installation

  1. Clone Repository
git clone https://github.com/GentlemanHu/TelegramCopyTradeBot.git
cd TelegramCopyTradeBot
  1. Install Dependencies
pip install -r requirements.txt
  1. Configure Environment Create .env file with the following:
# Telegram Configuration
TELEGRAM_TOKEN=your_telegram_bot_token
API_ID=your_telegram_api_id
API_HASH=your_telegram_api_hash
OWNER_ID=your_telegram_user_id
PHONE_NUMBER=your_phone_number
SESSION_NAME=my_session

# OpenAI Configuration
OPENAI_API_KEY=your_openai_api_key
OPENAI_API_BASE_URL=your_openai_base_url

# Exchange API - Mainnet
BINANCE_API_KEY=your_binance_api_key
BINANCE_API_SECRET=your_binance_api_secret
OKX_API_KEY=your_okx_api_key
OKX_API_SECRET=your_okx_api_secret
OKX_PASSPHRASE=your_okx_passphrase

# Exchange API - Testnet
BINANCE_TESTNET_API_KEY=your_binance_testnet_key
BINANCE_TESTNET_API_SECRET=your_binance_testnet_secret
OKX_TESTNET_API_KEY=your_okx_testnet_key
OKX_TESTNET_API_SECRET=your_okx_testnet_secret
OKX_TESTNET_PASSPHRASE=your_okx_testnet_passphrase

Launch Bot

python main.py

πŸ“± Commands

  • /start - Initialize bot
  • /help - Show help
  • /stats - View trading statistics
  • /balance - Check account balance
  • /positions - View current positions
  • /channels - Manage monitoring channels
  • /settings - Bot settings

πŸ”§ Project Structure

TelegramCopyTradeBot/
β”œβ”€β”€ main.py                # Main entry
β”œβ”€β”€ config.py             # Configuration
β”œβ”€β”€ database.py           # Database operations
β”œβ”€β”€ models.py             # Data models
β”œβ”€β”€ trading_logic.py      # Trading logic
β”œβ”€β”€ exchange_execution.py # Exchange execution
β”œβ”€β”€ message_processor.py  # Message processing
β”œβ”€β”€ channel_management.py # Channel management
β”œβ”€β”€ settings.py          # Settings management
└── button_texts.py      # UI texts

πŸ’‘ Features

GPT Signal Analysis

  • Intelligent trading signal recognition
  • Risk assessment
  • Automated trading suggestions

Multi-Level Take Profit

  • Multiple TP targets
  • Automatic position scaling
  • Dynamic TP adjustment

Risk Control

  • Real-time position monitoring
  • Automatic risk alerts
  • Risk-based position closing

Some usage guide

Monitoring Channels

Monitor Channels

Signal Analysis

Signal Analysis

Help and Commands

Help Commands

🀝 Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/AmazingFeature)
  3. Commit changes (git commit -m 'Add AmazingFeature')
  4. Push to branch (git push origin feature/AmazingFeature)
  5. Open Pull Request

πŸ“œ License

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

🎁 Support the Project

If you find this project helpful, please consider supporting its development:

Digital Asset Address
BTC bc1p6qkthl9jqqgle7xh2savggcfz284953lw8xnyj4z67wswse0runscdyta5
USDT (TRC20) TY1A9McJd6wz1ZgfVHmLEoQGFJX27WSNoN
ETH 0x5aa791a5fe03f823275d7240ebe887d35fdf0f3b

⭐ Star this repo if you find it helpful!


⚠️ Risk Warning and Disclaimer


⚠️ RISK WARNING

- HIGH RISK INVESTMENT WARNING

Trading cryptocurrency involves substantial risk of loss and is not suitable for all investors. Please consider carefully whether such trading is suitable for you based on your financial condition and understanding of cryptocurrency markets.

🚨 Important Notice

  1. High Risk Investment

    • Cryptocurrency trading is highly speculative
    • You may lose all your invested capital
    • Past performance is not indicative of future results
  2. Bot Trading Risks

    • Automated trading systems may malfunction
    • Technical failures could lead to losses
    • Market conditions may change rapidly
  3. No Financial Advice

    • This software is for information purposes only
    • Not financial or investment advice
    • Always conduct your own research

πŸ“œ Disclaimer

By using this software, you acknowledge and agree that:

  1. The creators and contributors of this software:

    • Are not financial advisors
    • Make no guarantees about trading results
    • Accept no responsibility for your trading decisions
  2. You are solely responsible for:

    • Your trading decisions
    • Your API keys security
    • Managing your risk
    • Any resulting profits or losses
  3. This software:

    • May contain bugs or errors
    • Could cease functioning at any time
    • Provides no guarantee of profit

⚠️ USE AT YOUR OWN RISK | ι£Žι™©θ‡ͺ负 ⚠️

The software is provided "as is", without warranty of any kind.

About

An intelligent cryptocurrency copy trading bot based on Telegram, featuring multi-exchange support, GPT signal analysis, and automated trading execution.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages