Some checks failed
CI / test (pull_request) Has been cancelled
Add real-time status and portfolio monitoring via Telegram. Changes: - Implement /status handler (mode, markets, P&L, trading state) - Implement /positions handler (holdings with grouping by market) - Integrate with Broker API and RiskManager - Add 5 comprehensive tests for status commands Features: - /status: Shows trading mode, enabled markets, pause state, P&L, circuit breaker - /positions: Lists holdings grouped by market (domestic/overseas) - Error handling: Graceful degradation on API failures - Empty state: Handles portfolios with no positions Integration: - Uses broker.get_balance() for account data - Uses risk.calculate_pnl() for P&L calculation - Accesses pause_trading.is_set() for trading state - Groups positions by market for better readability Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>