Workspace/API reference
RESEARCH PREVIEWDocumentation
DEVELOPER REFERENCE

Dates in. Clarity out.

A deterministic API with explicit coverage, phase-aware UTC intervals, multi-calendar settlement arithmetic, source provenance and immutable release snapshots. These endpoints currently expose sample data for development.

The first request

GET /api/v1/status
  ?calendar_id=XNYS.CASH
  &at=2026-12-24T17:59:59Z
  &release=sample-2026.1
Authorization: Bearer td_YOUR_KEY

Create a key in your account. Authenticated backend requests use /api/v1; the website’s public sample proxy uses /api/data. Keys share a 1,000 request daily allowance on preview plans, resetting at midnight UTC. Invalid keys return 401; exhausted quotas return 429 with Retry-After.

Available endpoints

GET/api/v1/calendars?q=&country=&kind=&status=&timezone=
GET/api/v1/calendars/{calendar_id}
GET/api/v1/status
POST/api/v1/status/batch
GET/api/v1/sessions?format=json|csv
GET/api/v1/holidays?format=json|csv|ics
POST/api/v1/business-days
GET/api/v1/business-day-count
POST/api/v1/adjust
POST/api/v1/joint-days
POST/api/v1/joint-sessions
POST/api/v1/joint-business-days
POST/api/v1/joint-adjust
GET/api/v1/coverage
GET/api/v1/sources
GET/api/v1/releases
GET/api/v1/releases/{from_release}/diff/{to_release}
GET/api/v1/exports/{release}

Backend OpenAPI schema: /openapi.json. Interactive backend documentation: /docs. Export downloads support If-None-Match conditional caching (304) verified against the canonical SHA-256 ETag.

Zero-latency offline SDKs

Ship deterministic calendar math inside trading engines and edge workers with zero runtime dependencies. Fetch an immutable release once with automatic ETag caching and evaluate locally with bit-for-bit API parity:

# Python (packages/python-sdk)
from tradingdays import TradingDaysClient
client = TradingDaysClient(api_key="td_YOUR_KEY", base_url="http://localhost:8100")
engine = client.load_offline_engine("sample-2026.1")
print(engine.market_status("XNYS.CASH", "2026-12-24T17:59:59Z")["seconds_until_change"])
// TypeScript (packages/ts-sdk)
import { TradingDaysClient } from "@tradingdays/sdk";
const client = new TradingDaysClient({ apiKey: "td_YOUR_KEY", baseUrl: "http://localhost:8100" });
const engine = await client.loadOfflineEngine("sample-2026.1");
console.log(engine.addBusinessDays("XNYS.CASH", "2026-12-24", 1).result);

Try calendar arithmetic

XNYS.CASH · 2026 sample. Start date excluded. This does not calculate securities settlement.

Explicit boundaries

  • Unknown calendars and unpublished coverage return 404.
  • Dates outside the selected release return 422.
  • /status and /status/batch return next_open_*, next_close_*, previous_* and seconds_until_change without extrapolating past coverage bounds.
  • /joint-sessions computes exact UTC intersection (all_open) or union (any_open) windows across up to 10 calendars.
  • /joint-business-days and /joint-adjust handle multi-calendar settlement arithmetic and ISDA rolling conventions.
  • /holidays?format=ics emits RFC 5545 iCalendar feeds; ?format=csv exports RFC 4180 spreadsheets.
  • Intervals are interpreted as [open, close).
  • Quarantined production sources block only affected calendars plus whole-release coverage, diff and export endpoints.
  • Public preview access has no production SLA or paid entitlement.