Portfolio trades
get_simulation_tradesGet the paper portfolio's closed trades from resolved books, newest first, market-cap-weighted ("cap", the default) or equal-weighted ("equal"): the two trade at the same prices and differ in weight, and so in size and P&L. Open positions never appear. Date bounds apply to the day a trade opened; narrow them to see past the limit. Use this for individual trades, and get_simulation_nav for portfolio value.
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_simulation_trades"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Most trades to return, 1 to 500. Default 500. Older trades are cut off; there is no paging. | |
| to_date | No | Latest date to include, as YYYY-MM-DD. Omit for no upper bound. | |
| from_date | No | Earliest date to include, as YYYY-MM-DD. Omit for no lower bound. | |
| weighting | No | "cap" for market-cap weights against SPY (the default), or "equal" for equal weights against RSP. | cap |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |