is_market_open
Check whether an exchange is currently open — a cheap routing helper.
An unknown or wrong-case code returns a 400 "Exchange not found." error.
Returns `exchanges`, a one-element list; the answer is its `isMarketOpen` boolean.
The record also carries the session hours (`openingHour`/`closingHour` with UTC
offsets), `timezone`, and any additional-session bounds.
Use it to route between the market-hours tools: when the market is CLOSED,
extended-hours data lives in `get_aftermarket_data`;
when OPEN, `detect_intraday_outlier_jumps` gives the live intraday read.
No auth required.
Unsure which exchange a ticker trades on? `get_company_snapshot` returns an
`exchange` field whose value can be passed here as-is.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exchange | No | CASE-SENSITIVE uppercase exchange code, e.g. "NYSE", "NASDAQ", "LSE" (not full names). NYSE is right for US equities. | NYSE |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exchanges | Yes | One record for the requested exchange; read its isMarketOpen. |