# Market status (QuantSet API)

> Whether the US market is open, with the open and close times of the current or next session.

> ## For AI agents
> The QuantSet API is at https://api.quantset.dev. Send the key in the `X-API-Key` header. The sandbox key `mw_demo` needs no signup and reads the sample listings.
> No key yet? An agent can open an account on its own: https://api.quantset.dev/skill.md
> Connect an MCP client to https://api.quantset.dev/mcp. Client setup is at https://api.quantset.dev/agents.md.
> Start with https://api.quantset.dev/llms.txt or read the full reference at https://api.quantset.dev/llms-full.txt. The OpenAPI file is https://api.quantset.dev/openapi.json. Add `.md` to any docs URL to get that page as Markdown.

`GET https://api.quantset.dev/api/v1/market-status` · `get_market_status`

Keyless operation.
Returns JSON.
Price: Free. It uses no credits.

## Research questions

### Is the US equity market open at the time of this call?

```http
GET https://api.quantset.dev/api/v1/market-status
```

Read is_open alongside local_time and the session’s open_utc and close_utc.

### Was the exchange open at this UTC instant?

```http
GET https://api.quantset.dev/api/v1/market-status?at=2026-11-27T19:00:00Z
```

Compare the instant with the returned session boundaries. This also handles holiday schedules and early closes.

## Reading the results

To check an event in another timezone, supply at with an explicit UTC offset. An early close changes the session end even on a trading day.


## Coverage and limits

This calendar describes the US exchange session. It cannot establish whether a particular security is halted, or whether a foreign exchange is open.


## Parameters

- `at` (string, optional): UTC ISO timestamp; default is now

## Response fields

- `schema_version` (string): The version of the response format.
- `snapshot_id` (string): The publication this response was read from. Send it back while paging to stay on one publication.
- `market` (string): The market the row belongs to.
- `timezone` (string): The exchange's time zone.
- `is_open` (boolean): Whether the market is open right now.
- `session` (object)
- `local_time` (string): The current time at the exchange.
- `next_session` (object)

## Example

```
curl 'https://api.quantset.dev/api/v1/market-status'
```

## Responses

- 200 Successful Response
- 422 Correct the named parameter and retry.
- 429 Wait for Retry-After seconds.
- 500 The request could not be completed.
- 503 Retry safe reads after a short delay.

## Questions

**Can I try Market status without signing up?** Yes. This operation is keyless.

**Can an AI agent use this?** Yes. On the QuantSet MCP server it is the get_market_status tool, so Claude, ChatGPT, Cursor and other clients can call it with no code.

**What does null mean in the response?** The value could not be confirmed. It is never a zero, so treat it as missing in your own calculations.

Group: Prices and sessions
Docs page: https://quantset.dev/docs/api/market-status
Integrations & Ecosystem: https://quantset.dev/integrations (Claude/Cursor MCP, LangGraph, PydanticAI, CrewAI, Agno, Vercel AI SDK, Mastra, Sheets =QUANTSET(), Excel, Notion & x402)
Full API guide: https://api.quantset.dev/llms-full.txt
