- Implemented /status command handler in telegram_command_bot.py - Shows real-time P&L, entry/current prices, TP/SL levels, position info - Added TRADING_BOT_URL and API_SECRET_KEY environment variables - Updated docker-compose.telegram-bot.yml with new env vars - Bot connects to trading-bot-v4:3000 API via internal Docker network - Added comprehensive documentation and testing guides - Command displays formatted position info with emojis (profit/loss indicators) - Shows 'No open positions' message when no trades active
18 lines
681 B
Plaintext
18 lines
681 B
Plaintext
# Telegram Trade Bot Configuration
|
|
|
|
# Get your bot token from @BotFather on Telegram
|
|
TELEGRAM_BOT_TOKEN=8240234365:AAEm6hg_XOm54x8ctnwpNYreFKRAEvWU3uY
|
|
|
|
# Your n8n webhook URL (after importing telegram-manual-trade-FINAL.json, activate it and replace this URL)
|
|
# Your n8n webhook URL (public HTTPS)
|
|
N8N_WEBHOOK_URL=https://flow.egonetix.de/webhook/3371ad7c-0866-4161-90a4-f251de4aceb8
|
|
|
|
# Your Telegram chat ID (already set to 579304651)
|
|
TELEGRAM_CHAT_ID=579304651
|
|
|
|
# Trading Bot API URL (internal Docker network)
|
|
TRADING_BOT_URL=http://trading-bot-v4:3000
|
|
|
|
# API Secret Key (same as in main .env file)
|
|
API_SECRET_KEY=2a344f0149442c857fb56c038c0c7d1b113883b830bec792c76f1e0efa15d6bb
|