Unrealised holdings snapshot
crypto-tax_unrealized-snapshotReplay a ledger to a date with a cost-basis method and report holdings, basis, unrealised gain, dust and unpriced assets at caller prices. Price $0.04 USDC. POST /api/v1/crypto-tax/unrealized-snapshot. 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": {
"ledger": "<ledger>",
"asOf": "<asOf>",
"prices": "<prices>"
},
"name": "crypto-tax_unrealized-snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | Yes | ts, string, date-time. Required. | |
| ledger | Yes | ledger, array. Required. | |
| method | No | method, string, one of FIFO, LIFO, HIFO, AVERAGE. Required. | FIFO |
| prices | Yes | prices, object. Required. | |
| feePolicy | No | feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required. | add_to_basis_and_deduct_from_proceeds |
| fiatCurrency | No | fiatCurrency, string, length 3 to 3. Required. | USD |
| dustThresholdFiat | No | dustThresholdFiat, integer, from 0 to 9007199254740991. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | asOf. String. | |
| dust | No | dust. Array. | |
| method | No | method. String. | |
| sources | No | sources. Array. | |
| holdings | No | holdings. Array. | |
| openLots | No | openLots. Array. | |
| unpriced | No | unpriced. Array. | |
| limitations | No | limitations. Array. |