log_trade
Record buy and sell trades for capital gains tracking. Sell trades calculate realized gain or loss using cost basis.
Instructions
Log a buy or sell trade for capital gains tracking. Sell trades return realized gain/loss with cost basis.
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": {
"asset_symbol": "<asset_symbol>",
"trade_type": "<trade_type>",
"quantity": "<quantity>",
"price_per_unit": "<price_per_unit>"
},
"name": "log_trade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Free-text notes about the trade | |
| quantity | Yes | Number of units | |
| trade_type | Yes | Buy or sell | |
| asset_symbol | Yes | Asset identifier (e.g. COMPUTE, GPU_HOUR, ETH) | |
| price_per_unit | Yes | Price per unit in USD | |
| resident_state | No | 2-letter state code for state capital gains tax estimate | |
| specific_lot_id | No | Lot ID for specific identification method | |
| accounting_method | No | Cost basis method (default: fifo) |