Is the exchange in its core session at this instant? (NYSE holidays and 13:00 early closes, or a caller calendar)

$0.005 USDC per call · Business, finance and compliance · POST /api/v1/market-session · Id market-session

For up to 50 caller-supplied instants, reports whether the NYSE core session (09:30-16:00 America/New_York, 13:00 on early-close days) is open, the reason when closed (weekend, named holiday, before open, after close), that day's open and close instants and the next open; or the same for a caller venue (zone, open, close, holidays, early closes). NYSE data is a dated snapshot of nyse.com covering 2026-2028; any instant outside it is `unsupported`. It does not cover pre-market, extended hours, auctions, other exchanges' calendars, halts or unscheduled closures, and never reads the clock: pass the instant you care about.

What you get

An order or a data pull timed for a US holiday or the 13:00 half-day fails or returns stale data.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/market-session. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/market-session \
  -H 'content-type: application/json' \
  -d '{"venue":"nyse","instants":["2026-11-27T17:30:00Z","2026-11-27T19:30:00Z","2026-07-03T15:00:00Z"]}'

Input

FieldTypeRequiredDescription
venuestring; one of "nyse", "caller"yes
instantsarray<string; length 0..36>; max 50 itemsyesRFC 3339 timestamps with Z or offset.
expectstring; one of "open", "closed"noIf given, status is fail for any instant whose state differs.
timeZonestring; length 0..64novenue caller only.
openstring; length 0..5novenue caller only, local HH:MM.
closestring; length 0..5novenue caller only, local HH:MM, after open.
holidaysarray<string; length 0..10>; max 400 itemsnoExtra non-business dates YYYY-MM-DD (company closures, a calendar we do not carry).
weekendarray<integer; 0..6>; max 6 itemsnoNon-business weekdays, 0=Sunday..6=Saturday. Default [0, 6]; use [5, 6] for a Friday/Saturday weekend.
earlyClosesarray<object>; max 100 itemsnovenue caller only.

Example request body

{
  "venue": "nyse",
  "instants": [
    "2026-11-27T17:30:00Z",
    "2026-11-27T19:30:00Z",
    "2026-07-03T15:00:00Z"
  ]
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
statusstring; one of "pass", "fail", "unknown", "unsupported"nopass: every rule held. fail: a rule was violated (see witnesses). unknown: the input lacks the evidence to decide. unsupported: outside what this engine covers. Missing evidence is never a pass.
itemsarray<object>no
reasonstringno
witnessesarray<object>no
versionsobjectnoEvery semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile).
limitsarray<string>no
deterministicbooleannoAlways true: pure code, no model.

Pay and connect

Available through: x402 (USDC on Base), MCP. MCP clients reach it through the calendar-deadline-kit package.

Machine-readable