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 codeone of: NYSE, NASDAQ, LSE, ECB, B3
- atquery · string
- ISO-8601 instant to evaluate (default now)e.g. 2026-11-27T18:30:00Z
REQUEST
curl "https://api.apialmanac.com/v1/markets?market=NYSE" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://api.apialmanac.com/v1/markets?market=NYSE", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://api.apialmanac.com/v1/markets?market=NYSE", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
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"
}