Some checks failed
CI / test (pull_request) Has been cancelled
Integrate Telegram notifications throughout the main trading loop to provide real-time alerts for critical events and trading activities. Changes: - Add TelegramClient initialization in run() function - Send system startup notification on agent start - Send market open/close notifications when markets change state - Send trade execution notifications for BUY/SELL orders - Send fat finger rejection notifications when orders are blocked - Send circuit breaker notifications when loss threshold is exceeded - Pass telegram client to trading_cycle() function - Add tests for all notification scenarios in test_main.py All notifications wrapped in try/except to ensure trading continues even if Telegram API fails. Notifications are non-blocking and do not affect core trading logic. Test coverage: 273 tests passed, overall coverage 79% Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
12 KiB
12 KiB