wash-sale
section-1091
tax-lot
window
disallowed-loss
ira-trap
carryforward
wealthtech
zero network
zero-PII

Wash-Sale Window Guard

Deterministic wash-sale window arithmetic over caller-declared synthetic inputs: the declared 61-day acquisition window (sale date minus 30 days through sale date plus 30 days, inclusive) is applied to a declared lot sale and a declared replacement-purchase list; the node totals the disallowed loss at 2dp half-up, flags a replacement account declared tax-deferred inside the window, and raises a basis-carryforward flag on the flagged taxable path. Arithmetic of a named rule only — never advice, never an optimizer. Zero storage, zero network, no runtime clock.

Tool URL: https://ainumbers.co/chaingraph/art-687-wash-sale-window-guard.html AP2/Policy Mandate export: yes

post/v1/tools/compute_wash_sale_window_guard

Request

  • Base URL: https://ainumbers.co
  • URL: https://ainumbers.co/v1/tools/compute_wash_sale_window_guard
  • Auth: none declared

Request body

saleobject required

declared lot sale with lot_id, sale_date, realized_loss

Response

Successful tool execution result

window_startstring required

Sale date minus 30 days, ISO yyyy-mm-dd; window endpoint is inclusive.

window_endstring required

Sale date plus 30 days, ISO yyyy-mm-dd; window endpoint is inclusive.

replacements_in_windowinteger required

Count of declared replacement purchases with dates inside the inclusive 61-day window.

disallowed_lossnumber required

The declared realized loss rounded 2dp half-up when the window is non-empty, otherwise 0.

ira_trapboolean required

True when an in-window replacement purchase is declared in a tax-deferred account.

tracestring required

Human-readable restatement of the declared arithmetic.

overall'WASH_SALE_FLAGGED' | 'WASH_SALE_CLEAR' required

Sign-of-arithmetic verdict over the declared window arithmetic only.

warningsstring[]

Conditional warning flags mirrored into the payload; present only when one fired (WSG_IRA_TRAP).

Changes

No recorded changes to this operation across all 1 revision of this API.