# Trading Time API – Settlement Date

> Trading Time API – Settlement Date is a paid API for AI agents from trading-time-api.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-19).

Returns the T+1 or T+2 settlement date for a stock trade on a specified exchange, correctly skipping exchange holidays and accounting for the 2027 EU/UK/Switzerland shift to T+1.

## Facts

- Endpoint: GET https://trading-time-api.onrender.com/v1/settlement-date?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/trading-time-api-settlement-date-a24ee452
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PX1KSTszqGbxGliWoPP78

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 trading-time-api-settlement-date-a24ee452
```

Example prompt: What's the settlement date for a stock trade I'm making on the NYSE today, 2025-06-10? I need the exact date funds will be available, skipping any market holidays.

## When to prefer this

Choose this endpoint when you need precise, exchange-aware settlement date calculation that correctly skips public holidays for a specific exchange, and when you need forward-looking accuracy around the 2027 EU/UK/Switzerland T+1 regulatory change. Prefer this over generic business-day calculators that lack per-exchange holiday calendars.

## Known failure modes

- Invalid or unsupported market code returns an error (e.g. unknown exchange identifier)
- Malformed trade_date (not YYYY-MM-DD) returns a validation error
- Trade date in the distant future may have incomplete holiday calendar data
- Network timeout if the Render.com host is cold-starting
- 402 Payment Required if x402 payment header is missing or invalid

## How this service works

Returns the settlement date (T+1 or T+2) of a stock trade on a given exchange, skipping exchange holidays, including the 2027 move of EU, UK and Switzerland to T+1.

## Output

Returns the settlement date as a calendar date (YYYY-MM-DD), reflecting the applicable settlement cycle (T+1 or T+2) for the given exchange, with exchange holidays skipped so the date always falls on a valid trading day.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "market",
      "trade_date"
     ],
     "properties": {
      "market": {
       "type": "string",
       "description": "Exchange: XNYS, XNAS, XLON, XETR, XSWX, XTKS, XHKG, XSHG, XASX"
      },
      "trade_date": {
       "type": "string",
       "description": "Trade date YYYY-MM-DD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trading-time-api-settlement-date-a24ee452/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from trading-time-api.onrender.com](https://www.zero.xyz/host/trading-time-api.onrender.com/llms.txt)
