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
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.
/statusand/status/batchreturnnext_open_*,next_close_*,previous_*andseconds_until_changewithout extrapolating past coverage bounds./joint-sessionscomputes exact UTC intersection (all_open) or union (any_open) windows across up to 10 calendars./joint-business-daysand/joint-adjusthandle multi-calendar settlement arithmetic and ISDA rolling conventions./holidays?format=icsemits RFC 5545 iCalendar feeds;?format=csvexports 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.