update_position
Modify an existing stock position by updating notes, entry price, or share count, or close it by setting status to CLOSED with a close price. Requires position ID and API key.
Instructions
Update position: notes, entryPrice, shares, or close (status CLOSED + closePrice). API key required.
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": {
"id": "<id>"
},
"name": "update_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Position ID (from list_portfolio) | |
| notes | No | Updated notes | |
| shares | No | Updated share count | |
| status | No | Set to 'CLOSED' to close the position | |
| closePrice | No | Close price per share — required when status is 'CLOSED' | |
| entryPrice | No | Updated entry price per share |