AINumbers.co Wash Sale API

The wash-sale API from AINumbers.co — 1 operation(s) for wash-sale.

Operations 1

POST /v1/tools/compute_wash_sale_window_guard Wash-Sale Window Guard #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ainumbers-co:ainumbers-co-wash-sale-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ainumbers-co-wash-sale-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AINumbers.co Fintech Intelligence Suite Wash Sale API
  version: 1.0.0
  description: '**1255 fintech intelligence tools** covering ISO 20022, A2A payments, CFPB §1033, EU AI Act, DORA, MiCA, AML/KYC, BaaS, DLT/tokenization, ESG/climate finance, agentic payments (AP2, ACP, x402, Visa TAP, Mastercard Agent Pay), PQC migration, sanctions screening, and OpenChainGraph v0.4 computation chains.


    ## Transport


    > **The live transport is MCP JSON-RPC 2.0 at `https://mcp.ainumbers.co/mcp` — not REST.**

    >

    > This OpenAPI file is a **descriptive data-room artifact** — a machine-readable index of all tools and their input/output schemas. The REST paths (`POST /v1/tools/{name}`) described here are a projection; they become functional only if the optional REST shim (Area 2 Path B) is deployed.

    >

    > To call tools today, connect via the official MCP client SDKs. TypeScript: `@modelcontextprotocol/sdk`. Python: `mcp`.


    ## Architecture


    All tools run **entirely client-side** (browser JavaScript). Zero PII. Zero server calls after page load. Deterministic, reproducible outputs. Licensed CC BY 4.0.


    OpenChainGraph v0.4 compute-binding nodes additionally run **server-side on the MCP Worker** and emit verifiable artifacts with `execution_hash` (WebCrypto SHA-256 over RFC 8785 canonical JSON).'
  contact:
    name: Post Oak Labs
    url: https://postoaklabs.com
    email: tim@postoaklabs.com
  license:
    name: CC BY 4.0
    url: https://creativecommons.org/licenses/by/4.0/
servers:
- url: https://ainumbers.co
  description: Static browser-based tool host (DreamHost). Tools run client-side — no REST gateway is active on this origin. See x-mcp for the live MCP endpoint.
tags:
- name: wash-sale
paths:
  /v1/tools/compute_wash_sale_window_guard:
    post:
      operationId: compute_wash_sale_window_guard
      summary: Wash-Sale Window Guard
      description: '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'
      tags:
      - wash-sale
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                sale:
                  type: object
                  description: declared lot sale with lot_id, sale_date, realized_loss
                replacement_purchases:
                  type: array
                  description: declared replacement purchases, each with date and account_type
              required:
              - sale
              - replacement_purchases
      responses:
        '200':
          description: Successful tool execution result
          content:
            application/json:
              schema:
                type: object
                properties:
                  window_start:
                    type: string
                    description: Sale date minus 30 days, ISO yyyy-mm-dd; window endpoint is inclusive.
                  window_end:
                    type: string
                    description: Sale date plus 30 days, ISO yyyy-mm-dd; window endpoint is inclusive.
                  replacements_in_window:
                    type: integer
                    description: Count of declared replacement purchases with dates inside the inclusive 61-day window.
                  disallowed_loss:
                    type: number
                    description: The declared realized loss rounded 2dp half-up when the window is non-empty, otherwise 0.
                  ira_trap:
                    type: boolean
                    description: True when an in-window replacement purchase is declared in a tax-deferred account.
                  trace:
                    type: string
                    description: Human-readable restatement of the declared arithmetic.
                  overall:
                    type: string
                    enum:
                    - WASH_SALE_FLAGGED
                    - WASH_SALE_CLEAR
                    description: Sign-of-arithmetic verdict over the declared window arithmetic only.
                  warnings:
                    type: array
                    items:
                      type: string
                    description: Conditional warning flags mirrored into the payload; present only when one fired (WSG_IRA_TRAP).
                required:
                - window_start
                - window_end
                - replacements_in_window
                - disallowed_loss
                - ira_trap
                - trace
                - overall
      x-mcp-tool-name: compute_wash_sale_window_guard
      x-tool-url: https://ainumbers.co/chaingraph/art-687-wash-sale-window-guard.html
      x-source: manifest
      x-ap2-export: true
x-mcp:
  transport: MCP JSON-RPC 2.0 (streamable HTTP)
  endpoint: https://mcp.ainumbers.co/mcp
  protocol_version: '2025-11-25'
  authentication: none
  registry: co.ainumbers/tools (official MCP registry)
  note: Connect any MCP-compatible client (Claude, ChatGPT, custom agent) directly to this endpoint. The REST paths in this file are descriptive only — they do not exist on the live server unless the REST shim is deployed.