Orcpin · Wash Sale Status

by Orcpin

POSTBase

$0.05

per call · USD Coin on Base

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.

Endpoint

POST https://orcpin.dev/v1/wash-sale-status

1

Calls / 30d

1

Unique payers / 30d

Aug 17

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://orcpin.dev/v1/wash-sale-status", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "order": {
      "side": "buy",
      "symbol": "XYZ",
      "tradeDate": "2026-07-02"
    },
    "recentSales": [
      {
        "account": "taxable",
        "realizedLoss": 450,
        "symbol": "XYZ",
        "tradeDate": "2026-06-12"
      }
    ],
    "salesCoverageFrom": "2026-06-01"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://orcpin.dev/v1/wash-sale-status" \
  -H "Content-Type: application/json" \
  -d '{"order":{"side":"buy","symbol":"XYZ","tradeDate":"2026-07-02"},"recentSales":[{"account":"taxable","realizedLoss":450,"symbol":"XYZ","tradeDate":"2026-06-12"}],"salesCoverageFrom":"2026-06-01"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "coverage": {
    "complete": true,
    "requiredFrom": "2026-06-02",
    "suppliedFrom": "2026-06-01"
  },
  "disclaimer": "Deterministic computation on caller-supplied data. Not tax, legal, or investment advice. …",
  "evaluated_loss_sales": 1,
  "explanation": "Buying XYZ on 2026-07-02 falls within the 30-day window of the 2026-06-12 realized-loss sale …",
  "matches": [
    {
      "account": "taxable",
      "daysFromOrder": -20,
      "realizedLoss": 450,
      "saleDate": "2026-06-12",
      "symbol": "XYZ"
    }
  ],
  "rule_citation": "IRC §1091 (wash sales), ±30-day window — cited as a published rule only",
  "schema_version": "washsale-v1",
  "spec": "wash-sale-status",
  "status": "would_trigger",
  "window": {
    "days": 30,
    "end": "2026-08-01",
    "start": "2026-06-02"
  }
}

Payment details

Pay to0x8b1cf12e7efe6aea59cd1124ebbe7709e3ac6085
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from Orcpin & similar services