Documentation Index
Fetch the complete documentation index at: https://docs.stratalerts.com/llms.txt
Use this file to discover all available pages before exploring further.
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:readRequest parameters
This endpoint accepts no query parameters.Response fields
The market this status applies to. Currently always
stocks.The timezone used for session timestamps. Always
America/New_York.true if the market is currently in a Regular Trading Hours (RTH) session, false otherwise (pre-market, after-hours, weekend, or holiday).Details of the current or most recent RTH session. All timestamp fields are empty strings when
is_open is false.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.Code examples
Example responses
Market open
Market closed
Error codes
| HTTP status | Error code | Meaning |
|---|---|---|
| 401 | missing_api_key | No API key was provided or the key format is invalid. |
| 403 | inactive_entitlement | Your account does not have an active API entitlement. |
| 403 | missing_scope | Your API key does not have the metadata:read scope. |