the interesting design question here is how the agent decides to stop — most quant agents have hard stop losses but when the agent is calling third-party apis for data that also cost money, the cost accounting gets interesting. does your agent track its own operational costs (api calls, llm tokens) against its trading pnl, or just the trade positions themselves?