API Almanac
API reference › Markets

Is a market open right now? Session, next open and close, holidays and early closes (NYSE, NASDAQ, LSE, ECB, B3)

GET/v1/markets

GET/v1/markets

Is a market open right now? Session, next open and close, holidays and early closes (NYSE, NASDAQ, LSE, ECB, B3)

Regular sessions only, no pre- or after-hours. ECB means TARGET2 business days, which is what euro settlement and most European contracts key on.

PARAMETERS
marketquery · enumREQUIRED
Market code
one of: NYSE, NASDAQ, LSE, ECB, B3
atquery · string
ISO-8601 instant to evaluate (default now)
e.g. 2026-11-27T18:30:00Z
In the full reference
REQUEST
curl "https://api.apialmanac.com/v1/markets?market=NYSE" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "market": "NYSE",
  "name": "New York Stock Exchange",
  "timezone": "America/New_York",
  "at": {
    "utc": "2026-11-27T18:30:00Z",
    "local": "2026-11-27T13:30:00-05:00"
  },
  "status": "closed",
  "reason": "after the early close (Day after Thanksgiving)",
  "session": {
    "date": "2026-11-27",
    "open": {
      "utc": "2026-11-27T14:30:00Z",
      "local": "2026-11-27T09:30:00-05:00"
    },
    "close": {
      "utc": "2026-11-27T18:00:00Z",
      "local": "2026-11-27T13:00:00-05:00"
    },
    "early_close": "Day after Thanksgiving"
  },
  "next_open": {
    "utc": "2026-11-30T14:30:00Z",
    "local": "2026-11-30T09:30:00-05:00"
  },
  "next_close": {
    "utc": "2026-11-30T21:00:00Z",
    "local": "2026-11-30T16:00:00-05:00"
  },
  "previous_close": {
    "utc": "2026-11-27T18:00:00Z",
    "local": "2026-11-27T13:00:00-05:00"
  },
  "regular_hours": "09:30–16:00 America/New_York",
  "source": "python-holidays financial calendar NYSE"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.