Detect potential US wash sales
portfolio-analytics_wash-sale-detectFlag IRC §1091 wash sales in caller transactions with FIFO lots, disallowed losses and replacement basis adjustments per IRS Publication 550. Price $0.04 USDC. POST /api/v1/portfolio-analytics/wash-sale-detect. 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": {
"transactions": "<transactions>"
},
"name": "portfolio-analytics_wash-sale-detect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lotMethod | No | lotMethod, string, one of fifo. Required. | fifo |
| transactions | Yes | transactions, array. Required. | |
| identicalGroups | No | identicalGroups, array. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sources | No | sources. Array. | |
| washSales | No | washSales. Array. | |
| limitations | No | limitations. Array. | |
| allowedLosses | No | allowedLosses. Array. |