Wash Window Check
wash_window_checkFlag loss disposals with a repurchase of the same asset inside the window. FREE.
Typical input {"disposals": , "acquisitions": [{"asset": "ETH", "ts": "2026-02-10T10:00:00Z", "qty": "2"}]} returns {"flags": [{"row": "cb7", "asset": "ETH", "loss": "-410.00", "repurchases": [...]}], "rule_status": "..."}. The 30-day window before and after the sale is the one IRC 1091 uses for stock or securities; as checked on the verification date that statute had not been extended to digital assets that are not securities, so the output is a heads-up for planning, not an adjustment. Use when reviewing loss harvesting. Not a determination that any rule applies. Errors: on invalid, missing, or malformed input this tool never raises a protocol error — it returns {"error": ""} (for example {"error": "disposals and acquisitions must be lists"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| disposals | Yes | rows from build_lots (uses asset, disposed_at, gain, row). | |
| window_days | No | days before and after the loss disposal to scan (default 30). | |
| acquisitions | Yes | purchases/income rows with asset, ts, qty (ledger rows work as-is). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||