# WritersLogic Settlement Date Calculator

> WritersLogic Settlement Date Calculator is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Computes the T+1 US equities settlement date (or custom T+n) for a given trade date, counting only NYSE and Federal Reserve open days, and optionally validates an asserted settlement date.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/settlement-date?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-settlement-date-calculator-5325aa09
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VPk9iTY97UhRuMGFBmBaR

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 writerslogic-settlement-date-calculator-5325aa09 -d '<json body>'
```

Example prompt: What is the T+1 settlement date for a US equities trade placed on 2025-07-10, and can you also verify that 2025-07-14 is the correct settlement date? Use the us-equities-settlement calendar.

## When to prefer this

Use this endpoint when you need programmatic, rule-based computation of US equities T+1 settlement dates per SEC regulation 17 CFR 240.15c6-1 (effective 2024-05-28), especially when you need to account for NYSE holidays and Federal Reserve Bank closures (e.g. Columbus Day, Veterans Day) that standard calendar libraries miss. Also use it for custom T+n settlement calculations with named or caller-supplied holiday calendars. Prefer this over generic business-day calculators when compliance with US equities settlement rules is required, or when you need to validate a broker- or counterparty-asserted settlement date.

## Known failure modes

- Trade date falls outside the supported date range of the named calendar — returns an unsupported/error response
- Invalid date format provided — rejects with schema validation error
- cycleDays missing when settlement=custom — returns a validation error
- Calendar requested is out of supported range (e.g. beyond 2028 for us-equities-settlement) — returns unsupported flag
- Trade date falls on a non-business day — may return error or treat as next business day depending on implementation

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns the computed settlement date as a YYYY-MM-DD string, an indication of whether a claimed settlement date matches, the calendar and version used for the calculation, and any caveats about inferred vs. published rules or unsupported date ranges.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "weekend": {
   "type": "array",
   "items": {
    "type": "integer",
    "maximum": 6,
    "minimum": 0
   },
   "maxItems": 6,
   "description": "Non-business weekdays, 0=Sunday..6=Saturday. Default [0, 6]; use [5, 6] for a Friday/Saturday weekend."
  },
  "calendar": {
   "enum": [
    "us-federal",
    "us-federal-reserve",
    "nyse",
    "us-equities-settlement",
    "uk-england-and-wales",
    "uk-scotland",
    "uk-northern-ireland",
    "weekends-only",
    "caller"
   ],
   "type": "string",
   "description": "Named holiday calendar with a source and supported date range (outside it the answer is unsupported), weekends-only (Saturday/Sunday only), or caller (only the holidays you list)."
  },
  "holidays": {
   "type": "array",
   "items": {
    "type": "string",
    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
    "maxLength": 10
   },
   "maxItems": 400,
   "description": "Extra non-business dates YYYY-MM-DD (company closures, a calendar we do not carry)."
  },
  "cycleDays": {
   "type": "integer",
   "maximum": 30,
   "minimum": 0,
   "description": "custom only."
  },
  "tradeDate": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "maxLength": 10
  },
  "settlement": {
   "enum": [
    "us-equities",
    "custom"
   ],
   "type": "string",
   "description": "us-equities: T+1 since 2024-05-28 on the us-equities-settlement calendar (2026-2028). custom: cycleDays on calendar/holidays/weekend."
  },
  "claimedSettlementDate": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "maxLength": 10
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-settlement-date-calculator-5325aa09/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
