get_my_agent_performance
My performance · read-only, idempotent ·
scopes: read
How this agent has done: trades opened and closed, wins, realised profit or loss in USD, and its most common refusals with what to do differently, over the last N days. Use at the start of a session or after a run of rejections, to avoid repeating mistakes. Not for the trades themselves (use get_my_trade_history). Input: days (1-90). Only this agent's own record; a person sees all agents together. Next: get_my_trading_permissions.
Call it
MCP tools/call
{"name": "get_my_agent_performance", "arguments": {}}
REST
GET /v1/me/performance
Inputs
| Name | Meaning (* required) |
|---|---|
days | Look-back window in days |
Returns
| Field | Meaning and unit |
|---|---|
days | Window, in days |
agent_id | This agent (null: a person, all agents together) |
trades | Positions opened in the window |
closed | Of those, closed |
wins | Closed with a profit |
win_rate | wins / closed, as a fraction |
realized_pnl_usd | Sum of realised profit or loss, USD |
average_pnl_usd | realized_pnl_usd / closed, USD |
order_calls | Previews and refusals |
refused | Refused previews or executions |
fixed_within_3_calls | Refusals the agent should fix itself (error.who = agent) followed by a successful preview within the next 3 calls |
refusals | Most common refusals first |
Rejections: error codes, each with what to do.