get_performance
Retrieve aggregate trading performance statistics for paper or real trades to analyze strategy effectiveness and inform trading decisions.
Instructions
Get aggregate trading performance statistics.
Args: mode: Portfolio mode: "shadow" for paper trades, "live" for real trades.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | shadow |
Implementation Reference
- src/rekko_mcp/server.py:421-428 (handler)The get_performance tool is registered via the @mcp.tool() decorator and implemented as an asynchronous function that sends a GET request to the /v1/performance endpoint.
@mcp.tool() async def get_performance(mode: str = "shadow") -> str: """Get aggregate trading performance statistics. Args: mode: Portfolio mode: "shadow" for paper trades, "live" for real trades. """ return await _request("GET", "/v1/performance", params={"mode": mode})