get_market_stats
Use this when the user asks for aggregate market stats (positions, PNL, win rate), optionally scoped by source and period.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_market_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Time period for closed position stats | |
| source | No | Exchange filter | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| avgRoi | No | ||
| period | No | ||
| winRate | No | Percentage of closed positions in profit; null when none closed | |
| byExchange | No | Per-exchange { totalPositions, openPositions }, keyed by exchange | |
| realizedPnl | No | ||
| openPositions | No | ||
| closedInPeriod | No | ||
| totalPositions | No |