Files
AI-Trader/agent_tools
Bill 8521f685c7 fix: improve error handling in buy/sell functions
Add proper exception handling around get_latest_position() calls in both
buy() and sell() functions. Previously, exceptions were caught but code
continued execution with undefined variables, causing "variable referenced
before assignment" errors.

Now returns error dict with context when position lookup fails.

Related to context injection implementation for concurrent simulations.
2025-11-02 20:38:55 -05:00
..
2025-10-30 14:40:42 +08:00
2025-10-24 00:35:21 +08:00
2025-10-24 00:35:21 +08:00