Skip to main content

Check whether the market is open

The market status endpoint returns a real-time snapshot of whether the US stock market is open, along with the details of the active session. Use this endpoint to gate time-sensitive logic in your integration — for example, to skip candle or price requests outside Regular Trading Hours (RTH), or to display market open/close countdowns in your UI. GET https://app.stratalerts.com/api/market/v1/market-status
Requires scope: metadata:read

Request parameters

This endpoint accepts no query parameters.

Response fields

string
required
The market this status applies to. Currently always stocks.
string
required
The timezone used for session timestamps. Always America/New_York.
boolean
required
true if the market is currently in a Regular Trading Hours (RTH) session, false otherwise (pre-market, after-hours, weekend, or holiday).
object
required
Details of the current or most recent RTH session. All timestamp fields are empty strings when is_open is false.
string
required
The current server time as an ISO 8601 timestamp in the America/New_York timezone (e.g., 2026-04-10T14:35:00-04:00). Use this to compute time-to-close or time-to-open without worrying about clock skew.
StratAlerts only tracks Regular Trading Hours (RTH) sessions. Pre-market and after-hours periods return is_open: false even when exchange-traded products are actively trading on extended hours.

Code examples

Example responses

Market open

Market closed

Error codes

Error responses use the following shape: