Skip to main content

GET /v1/market/calendar

Return market calendar sessions for supported exchanges with source coverage metadata
Audience: application and coding agent.

Canonical metadata

  • requestId
  • traceparent
  • supportedMarkets
  • per-row provenance

Example request

curl -X GET \
  -H "x-api-key: $OMNI_DATASTREAM_API_KEY" \
  -H "omni-version: 2026-03-19" \
  "https://api.secapi.ai/v1/market/calendar?market=XNYS&duration=2"

Example response

{
  "object": "list",
  "data": [
    {
      "object": "market_calendar_day",
      "id": "mkt_xnys_20260318",
      "createdAt": "2026-03-18T16:00:00.000Z",
      "livemode": false,
      "market": "XNYS",
      "marketName": "New York Stock Exchange",
      "date": "2026-03-18",
      "timezone": "America/New_York",
      "sessionStatus": "open",
      "opensAt": "2026-03-18T09:30:00",
      "closesAt": "2026-03-18T16:00:00",
      "holidayName": null,
      "coverage": "configured_holidays",
      "confidence": "confirmed",
      "statusNote": null,
      "provenance": {
        "source": "exchange",
        "accessionNumber": null,
        "filingUrl": "https://www.nyse.com/markets/hours-calendars",
        "retrievedAt": "2026-03-18T16:00:00.000Z",
        "parserVersion": "2026-03-16.1"
      }
    }
  ],
  "hasMore": false,
  "nextCursor": null,
  "supportedMarkets": [
    {
      "code": "XNYS",
      "name": "New York Stock Exchange",
      "region": "North America",
      "countryCode": "US",
      "timezone": "America/New_York",
      "coverage": "configured_holidays",
      "sourceUrl": "https://www.nyse.com/markets/hours-calendars",
      "rightsStatus": "public_source_documented",
      "syncCadence": "daily_midnight_local",
      "lastReviewedAt": "2026-03-17"
    }
  ],
  "requestId": "req_example_123",
  "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01"
}

Give this prompt to your agent

Failure posture

  • treat non-2xx responses as contract-aware failures, not free-form errors
  • preserve requestId and traceparent in logs and downstream reports
  • if provenance or freshness metadata is present, return it unchanged so trust is not lost in the handoff