Journal statistics
get_journal_statsThe journal page's figures for one market: closed trades, the total return after fees, the average holding time, and the win rate and average return of trades bought on a strategy signal, on a price alert and manually, with how they compare, all worked out from the user's own records.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"market": "<market>"
},
"name": "get_journal_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Only positions opened on or after, YYYY-MM-DD. | |
| market | Yes | hk = Hong Kong, us = United States, cn = China A-shares. | |
| group_by | No | tag: the same figures for each tag as well. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | ||
| error | No | ||
| by_gut | No | ||
| by_tag | No | ||
| closed | No | ||
| market | No | ||
| trades | No | ||
| by_rules | No | ||
| warnings | No | ||
| comparison | No | ||
| by_price_alert | No | ||
| avg_hold_trading_days | No | ||
| cumulative_return_pct | No |