# Orcpin Wash-Sale Preflight Check

> Orcpin Wash-Sale Preflight Check is a paid API for AI agents from orcpin.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Evaluates a proposed buy against realized-loss sales across all caller-supplied accounts for the 61-day IRC §1091 wash-sale window, returning would_trigger, clear, or insufficient_data with matched loss sales cited.

## Facts

- Endpoint: POST https://orcpin.dev/v1/wash-sale-status
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/orcpin-wash-sale-preflight-check-73a0c163
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2HhxTJfe4zZOuNgUByJAh

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability orcpin-wash-sale-preflight-check-73a0c163 -d '<json body>'
```

Example prompt: Before I buy 50 shares of TSLA today, check across all three of my brokerage accounts — Schwab (acct #1234), Fidelity (acct #5678), and TD Ameritrade (acct #9012) — whether any of my realized losses from the past 61 days would be disallowed as a wash sale under IRC §1091.

## When to prefer this

Choose this endpoint when a trading agent needs to verify cross-account wash-sale exposure before executing a buy — especially when the agent's own account silos prevent it from seeing the full 61-day IRC §1091 window across all of a user's brokerage accounts. Prefer this over generic tax APIs when you need a precise, stateless, per-call wash-sale determination with the matched loss sales and rule citation returned explicitly.

## Known failure modes

- insufficient_data returned when caller-supplied account data does not cover the full 61-day window
- ticker mismatch if symbol has changed or is non-standard (v1 is exact-ticker only)
- incorrect result if caller omits one or more accounts with relevant loss sales
- no storage means repeated calls require re-supplying all account data each time
- ambiguous results if lot-level trade data is incomplete or missing cost basis

## How this service works

Wash-sale preflight for trading agents: evaluates a proposed buy against the operator's realized-loss sales across ALL accounts (caller-supplied) for the 61-day IRC §1091 window — would_trigger with the matched loss sales, an honest clear, or insufficient_data naming the gap. Tax status with the rule cited, never advisability; a disallowed loss defers, not forfeits. Exact-ticker v1; nothing stored. Agent account silos can't see the cross-account window — this check can.

## Output

Returns a status of would_trigger (with matched loss sales listed), clear (no wash-sale conflict found), or insufficient_data (with the specific account or date-range gap named). Includes the IRC §1091 rule citation. Reports tax status only — not trade advisability. Notes that a disallowed loss defers rather than forfeits.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "order": {
   "type": "object",
   "required": [
    "symbol",
    "side",
    "tradeDate"
   ],
   "properties": {
    "side": {
     "enum": [
      "buy",
      "sell"
     ],
     "type": "string"
    },
    "symbol": {
     "type": "string"
    },
    "quantity": {
     "type": "number"
    },
    "tradeDate": {
     "type": "string",
     "description": "Intended trade date, YYYY-MM-DD (UTC calendar days)."
    }
   },
   "description": "The proposed order. v1 evaluates buys; a sell returns not_applicable with guidance."
  },
  "recentSales": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "symbol",
     "tradeDate"
    ],
    "properties": {
     "symbol": {
      "type": "string"
     },
     "account": {
      "type": "string",
      "description": "Free-form label, echoed in matches."
     },
     "quantity": {
      "type": "number"
     },
     "tradeDate": {
      "type": "string",
      "description": "YYYY-MM-DD"
     },
     "realizedLoss": {
      "type": "number"
     }
    }
   },
   "description": "The operator's realized-loss sales across ALL accounts. realizedLoss is a positive USD magnitude; zero/absent = not a loss sale (ignored)."
  },
  "salesCoverageFrom": {
   "type": "string",
   "description": "Earliest date the supplied sales cover (YYYY-MM-DD); short coverage is flagged, never hidden."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/orcpin-wash-sale-preflight-check-73a0c163/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from orcpin.dev](https://www.zero.xyz/host/orcpin.dev/llms.txt)
