- 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
25 lines
579 B
YAML
25 lines
579 B
YAML
version: '3.3'
|
|
|
|
services:
|
|
telegram-trade-bot:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.telegram-bot
|
|
container_name: telegram-trade-bot
|
|
restart: unless-stopped
|
|
dns:
|
|
- 8.8.8.8
|
|
- 8.8.4.4
|
|
environment:
|
|
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
|
|
- N8N_WEBHOOK_URL=${N8N_WEBHOOK_URL}
|
|
- TELEGRAM_CHAT_ID=579304651
|
|
- TRADING_BOT_URL=${TRADING_BOT_URL:-http://trading-bot-v4:3000}
|
|
- API_SECRET_KEY=${API_SECRET_KEY}
|
|
networks:
|
|
- traderv4_trading-net
|
|
|
|
networks:
|
|
traderv4_trading-net:
|
|
external: true
|