feat: Add /status command to Telegram bot for position monitoring

- 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
This commit is contained in:
mindesbunister
2025-10-27 12:40:10 +01:00
parent 4ae9c38ad8
commit 97ba6a9856
8 changed files with 571 additions and 3 deletions

View File

@@ -9,3 +9,9 @@ N8N_WEBHOOK_URL=https://flow.egonetix.de/webhook/3371ad7c-0866-4161-90a4-f251de4
# 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