Orcpin · Settlement Dates

by Orcpin

POSTBase

$0.02

per call · USD Coin on Base

T+1 settlement-date calculator for trading agents: the settlement date for each caller-supplied equity trade and whether it has settled as of a given date, on the versioned NYSE holiday calendar, with SEC Rule 15c6-1 cited as a published rule. Dates and counts only, never a violation determination. Nothing is stored.

Endpoint

POST https://orcpin.dev/v1/settlement-dates

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/settlement-dates", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "asOf": "2026-07-02",
    "trades": [
      {
        "amount": 1200,
        "side": "sell",
        "symbol": "XYZ",
        "tradeDate": "2026-07-02"
      }
    ]
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://orcpin.dev/v1/settlement-dates" \
  -H "Content-Type: application/json" \
  -d '{"asOf":"2026-07-02","trades":[{"amount":1200,"side":"sell","symbol":"XYZ","tradeDate":"2026-07-02"}]}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "as_of": "2026-07-02",
  "calendar_version": "nyse-2024-2027.v1",
  "disclaimer": "Deterministic trading-day arithmetic on caller-supplied trades; nothing is stored. …",
  "explanation": "1 trade evaluated as of 2026-07-02: 0 settled, 1 unsettled under T+1 …",
  "methodology": "https://orcpin.dev/methodology#trade_log",
  "rule_citation": "SEC Rule 15c6-1 (as amended, effective 2024-05-28) … (cited as a published rule only)",
  "schema_version": "settlement-v1",
  "settled_count": 0,
  "spec": "settlement-dates",
  "trades": [
    {
      "amount": 1200,
      "index": 0,
      "settledAsOf": false,
      "settlementDate": "2026-07-06",
      "side": "sell",
      "symbol": "XYZ",
      "tradeDate": "2026-07-02",
      "tradingDaysUntilSettlement": 1
    }
  ],
  "unsettled_count": 1
}

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