Trade journal
get_journalThe trade journal, newest opened first, as the journal page shows it: each position opened, its price and shares, and once closed the close price and the realized return; what triggered the buy (a strategy signal with its strategy, a price alert, manual, imported, other); the thesis; the stop and target planned at entry and in force now, with the stop changes; the close reason, whether the plan was followed, and the lesson.
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_journal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Opened on or before, YYYY-MM-DD. | |
| tag | No | A label the user gave trades, such as the system or the kind of signal behind them. | |
| from | No | Opened on or after, YYYY-MM-DD. | |
| limit | No | Page size. Default 100. | |
| market | No | hk = Hong Kong, us = United States, cn = China A-shares. | |
| offset | No | Where the page starts; take next_offset from the previous answer. Default 0. | |
| status | No | Default all. | |
| ticker | No | For example 0700.HK or 700 (hk), AAPL (us), 600519.SS or 600519 (cn). | |
| trigger | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| limit | No | ||
| total | No | ||
| offset | No | ||
| entries | No | ||
| warnings | No | ||
| next_offset | No |