feat: implement TelegramClient core module (issue #31)
Some checks failed
CI / test (pull_request) Has been cancelled

Add TelegramClient for real-time trading notifications:
- NotificationPriority enum (LOW/MEDIUM/HIGH/CRITICAL)
- LeakyBucket rate limiter (1 msg/sec)
- 8 notification methods (trade, circuit breaker, fat finger, market open/close, system start/shutdown, errors)
- Graceful degradation (optional API, never crashes)
- Session management pattern from KISBroker
- Comprehensive README with setup guide and troubleshooting

Follows NewsAPI pattern for optional APIs.
Uses existing aiohttp dependency.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
agentson
2026-02-04 21:29:46 +09:00
parent 87556b145e
commit 73e1d0a54e
3 changed files with 543 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
"""Real-time notifications for trading events."""
from src.notifications.telegram_client import TelegramClient
__all__ = ["TelegramClient"]