Market · Status, sessions and calendar
Market status
/v1/market/statusmarketStatusWhether the US equity market is open, closed or in extended hours, with the state of each venue group and flags for pre-market and after-hours trading, merged with the health of the platform's data areas: options, futures, stocks and indices (operational, degraded or outage). Cached for 2 seconds. Fields that could not be determined are null and meta.coverage.complete is false.
Example request
curl -sS "https://api.ordermap.si/v1/market/status" \
-H "Authorization: Bearer $ORDERMAP_API_KEY"const res = await fetch("https://api.ordermap.si/v1/market/status", {
headers: { Authorization: `Bearer ${process.env.ORDERMAP_API_KEY}` },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const { data, meta } = await res.json();
console.log(data, meta.coverage);Set ORDERMAP_API_KEY to your key. Replace the dates with a recent trading date.
Parameters
This endpoint takes no parameters.
Response
| Status | Meaning | Body |
|---|---|---|
200 | Successful response. | Schema below |
400 | Invalid, unknown or repeated parameters, or an invalid cursor. | Error object |
401 | Missing or invalid API key. | Error object |
403 | The plan, dataset release or account state does not allow this request. | Error object |
429 | Rate limit, burst limit or cooldown; wait Retry-After seconds.Retry-After | Error object |
500 | Internal error. | Error object |
503 | Data temporarily unavailable; retry after Retry-After seconds.Retry-After | Error object |
504 | The request timed out. | Error object |
Authenticated responses carry the X-RateLimit-* headers (see rate limits); 429 and 503 add Retry-After.
200 response body
dataobjectrequiredMarket state.11 fields insideafter_hoursboolean | nullrequiredAfter-hours trading is in session.componentsarray<object>requiredHealth of the data areas.2 fields insidenamestringrequiredData area.optionsfuturesstocksindicesstatusstringrequiredHealth.operationaldegradedoutage
early_hoursboolean | nullrequiredPre-market trading is in session.exchangesobjectrequiredState of the venue groups.3 fields insidenasdaqstring | nullrequiredNasdaq state.openclosedextended_hoursnullnysestring | nullrequiredNYSE state.openclosedextended_hoursnullotcstring | nullrequiredOTC markets state.openclosedextended_hoursnull
marketstring | nullrequiredUS equity market state.openclosedextended_hoursnullserver_timeinteger | nullunix-msrequiredTime of the state. Unix epoch milliseconds (UTC).
metaobjectrequiredMeta object
Example response
{
"data": {
"after_hours": false,
"components": [
{
"name": "options",
"status": "operational"
},
{
"name": "stocks",
"status": "operational"
}
],
"early_hours": false,
"exchanges": {
"nasdaq": "open",
"nyse": "open",
"otc": "open"
},
"market": "open",
"server_time": 1792159200000
},
"meta": {
"as_of": 1760659200123,
"coverage": {
"complete": true
},
"delay_ms": 0,
"delayed": false,
"request_id": "0199f0c2-5a1e-7c3b-9d4e-2b6f8a1c3d5e",
"source": "derived"
}
}Values are illustrative. Missing values are null, never 0.