Files
The-Ouroboros/tests/test_telegram_commands.py
agentson 18a098d9a6
Some checks failed
CI / test (pull_request) Has been cancelled
fix: resolve Telegram command handler errors for /status and /positions (issue #74)
Fixed AttributeError exceptions in /status and /positions commands:
- Replaced invalid risk.calculate_pnl() with inline P&L calculation from balance dict
- Changed risk.circuit_breaker_threshold to risk._cb_threshold
- Replaced balance.stocks access with account summary from output2 dict
- Updated tests to match new account summary format

All 27 telegram command tests pass. Live bot testing confirms no errors.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-05 18:54:42 +09:00

26 KiB