investment_buy
Records an exact share quantity acquired and posts total acquisition cost against cash; duplicate references fail atomically.
Instructions
Acquire an exact share quantity and post total acquisition cost against cash. A duplicate reference fails 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>",
"cost": "<cost>",
"date": "<date>",
"asset": "<asset>",
"cash": "<cash>"
},
"name": "investment_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cash | Yes | ||
| cost | Yes | ||
| date | Yes | ||
| asset | Yes | ||
| symbol | Yes | ||
| company | Yes | ||
| quantity | Yes | Positive quantity with up to eight decimal places. | |
| reference | No |