A simple bot that monitors your Bitget copy trades and sends notifications to Telegram when the trader you follow opens or closes positions. the .yaml is if you want to directly deploy it on render.com with their blueprint feature
- Real-time notifications when your followed trader opens a new position
- Detailed information about each trade (symbol, direction, size, price, leverage)
- Simple web interface to check bot status
- Test endpoint to verify connections
- Free deployment options
- Bitget account with API access
- Telegram account
- GitHub account (for deployment)
- Open Telegram and search for
@BotFather - Send the command
/newbot - Follow instructions to name your bot
- Save the API token provided (will look like
123456789:ABCDefGhIJKlmNoPQRsTUVwxyZ) - Start a conversation with your new bot by searching for it and pressing Start
- Send a message to your bot
- Visit
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates - Look for a number in the format
"chat":{"id":123456789} - Copy this number as your TELEGRAM_CHAT_ID
- Log in to your Bitget account
- Go to "API Management" in your account settings
- Click "Create API Key"
- Set the following permissions:
- Futures → Orders (read)
- Futures → Holdings (read)
- Copy trading → Trade (read)
- Complete security verification if required
- Save your API Key, Secret Key, and Passphrase securely
- Fork or clone this repository
- Sign up for Render.com (free tier)
- Create a new Web Service
- Connect your GitHub repository
- Set up the service:
- Name: bitget-notification-bot
- Environment: Python 3
- Build Command:
pip install -r requirements.txt - Start Command:
gunicorn bot:app
- Add Environment Variables:
- BITGET_API_KEY: Your Bitget API key
- BITGET_SECRET_KEY: Your Bitget Secret key
- BITGET_PASSPHRASE: Your Bitget API passphrase
- TELEGRAM_BOT_TOKEN: Your Telegram bot token
- TELEGRAM_CHAT_ID: Your Telegram chat ID
- TRADER_ID: The ID of the trader you want to follow
- Deploy the service
- Sign up for UptimeRobot.com (free)
- Add a new monitor
- Select "HTTP(s)"
- Name it "Bitget Bot"
- Enter your Render URL
- Set check interval to 5 minutes
- Save the monitor
- Visit your bot URL to check if it's running
- Visit your-bot-url/test to test API connections
- Your bot will automatically send notifications to Telegram when your followed trader opens or closes positions
- If Telegram notifications aren't working, verify your bot token and chat ID
- If you're monitoring a group chat, make sure you have the correct chat ID (may start with a minus sign)
- For supergroups, the chat ID typically starts with -100 followed by numbers
- Check the /test endpoint for specific error messages
- Your API keys are stored as environment variables and not exposed in the code
- The Bitget API permissions are read-only, so the bot cannot make trades
- Always use read-only API permissions when possible