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.
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) |