Trades
get_tradesRecorded buys and sells, newest first. fees is what the broker charged, when the user gave it (fees_source provided); otherwise fees is null and estimated_fees is the estimate from the user's own trading-cost settings, as their P&L counts it.
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_trades"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Traded on or before, YYYY-MM-DD. | |
| from | No | Traded on or after, YYYY-MM-DD. | |
| limit | No | Default 100. | |
| market | No | hk = Hong Kong, us = United States, cn = China A-shares. | |
| offset | No | Default 0. | |
| ticker | No | For example 0700.HK or 700 (hk), AAPL (us), 600519.SS or 600519 (cn). | |
| external_id | No | Only the trade recorded with this external_id. |