Match disposals to acquisition lots
crypto-tax_cost-basis-lotsMatch disposals to acquisition lots by FIFO, LIFO, HIFO or average cost and compute gains from a caller-supplied ledger and fiat values. No market prices are fetched. Price $0.05 USDC. POST /api/v1/crypto-tax/cost-basis-lots. An unpaid call returns the x402 payment terms and does not run.
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": {
"fiatCurrency": "<fiatCurrency>",
"method": "<method>",
"ledger": "<ledger>"
},
"name": "crypto-tax_cost-basis-lots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ledger | Yes | ledger, array. Required. | |
| method | Yes | method, string, one of FIFO, LIFO, HIFO, AVERAGE. Required. | |
| feePolicy | No | feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required. | add_to_basis_and_deduct_from_proceeds |
| fiatCurrency | Yes | fiatCurrency, string, length 3 to 3. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | method. String. | |
| sources | No | sources. Array. | |
| openLots | No | openLots. Array. | |
| warnings | No | warnings. Array. | |
| disposals | No | disposals. Array. | |
| limitations | No | limitations. Array. | |
| fiatCurrency | No | fiatCurrency. String. |