investment_sell
Sell shares by FIFO (default), LIFO, or a specific lot and atomically post proceeds, cost-basis relief, and realized gain or loss to the books.
Instructions
Sell shares with FIFO by default, LIFO, or one specific lot; post proceeds, basis relief and realized gain or loss atomically.
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": {
"company": "<company>",
"symbol": "<symbol>",
"quantity": "<quantity>",
"proceeds": "<proceeds>",
"date": "<date>",
"asset": "<asset>",
"cash": "<cash>",
"gain": "<gain>"
},
"name": "investment_sell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lot | No | ||
| cash | Yes | ||
| date | Yes | ||
| gain | Yes | ||
| asset | Yes | ||
| method | No | ||
| symbol | Yes | ||
| company | Yes | ||
| proceeds | Yes | ||
| quantity | Yes | Positive quantity with up to eight decimal places. | |
| reference | No |