crypto_accounting__realized_gain_fifo
Calculate realized gain on crypto asset sales using FIFO method by inputting acquisition lots, units sold, and sale price.
Instructions
[crypto-accounting] lots: (units, unit_cost) in acquisition order.
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": {
"lots": "<lots>",
"units_sold": "<units_sold>",
"sale_price": "<sale_price>"
},
"name": "crypto_accounting__realized_gain_fifo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lots | Yes | ||
| sale_price | Yes | ||
| units_sold | Yes |