# Live market session (QuantSet API)

> Current session quote or 5-minute intraday points with a 60-second cache. This operation uses live observations and reports provenance.observed_at in UTC. Historical generation replay is unavailable.

> ## 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-session` · `get_market_session`

Send a key in the `X-API-Key` header. Try `mw_demo` with the sample selectors.
Add `format=csv` to get a UTF-8 table.
Price: 1 credit for each successful request.

## Research questions

### Where is Nvidia trading relative to the previous close?

```http
GET https://api.quantset.dev/api/v1/market-session?ticker=us:NVDA&interval=quote
```

Inspect quote together with previousClose, date and timezone before calculating a session move.

### How did the price evolve within the session?

```http
GET https://api.quantset.dev/api/v1/market-session?ticker=NVDA&interval=5m
```

Read the points in time order. Keep the session date and timezone with the series when comparing it with news.

## Reading the results

Use interval=5m to inspect the sequence of points for the current session. A session quote and a completed daily close answer different questions.


## Coverage and limits

The live session can be closed or lack observations. Use the historical bars endpoint for a past session.


## Related guides

- [Choose a listing across exchanges](https://quantset.dev/docs/guides/instrument-ids)

## Parameters

- `ticker` (string, required): Catalog selector, such as NVDA, 7203.T, or a canonical ID such as us:NVDA.
- `interval` (quote | 5m, optional)
- `format` (json | csv, optional): Return a JSON page or UTF-8 CSV rows.
- `X-Max-Credits` (integer, 0 to 999,999,999,999, optional, in header): Refuse the request if its maximum charge exceeds this ceiling.
- `X-Workflow-Id` (string, optional, in header): Optional printable identifier for grouping charges in a research workflow.

## Response fields

- `instrument_id` (string): The listing's ID: a market prefix, a colon, then the ticker. For example us:NVDA, global:SHEL.L, crypto:BTCUSDT or index:SPX.
- `date` (string): The trading day or observation date, YYYY-MM-DD.
- `timezone` (string): The exchange's time zone.
- `currency` (string): The currency the amounts on this row are in.
- `previousClose` (number)
- `daily` (string)
- `quote` (string)
- `points` (array)

## Example

```
curl 'https://api.quantset.dev/api/v1/market-session?ticker=us:NVDA&interval=quote' -H 'X-API-Key: mw_demo'
```

## Responses

- 200 Successful Response
- 400 Supply one credential.
- 401 Supply a valid API key.
- 402 Reduce the request ceiling or refill your credits.
- 403 Your key does not have the required access.
- 404 The requested listing is absent from the catalog.
- 413 Reduce the page size before requesting CSV again.
- 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.

## Which price endpoint to use

- `/api/v1/quotes` (Latest quotes): The latest daily bar for up to 100 listings in one call.
- `/api/v1/prices` (Price history): Daily history for one listing.
- `/api/v1/intraday` (Intraday bars): Hourly bars for a US listing.
- `/api/v1/market-session` (Live market session): The quote during today's session, or its 5-minute points.

## Questions

**Can I try Live market session without signing up?** Yes. Use the sandbox key mw_demo and the sample selectors on this page.

**What does Live market session cost?** 1 credit for each successful request. A request that fails costs nothing.

**Which plan includes it?** Every account. Free credits, credit packs and subscriptions all read this data.

**Can I get it as CSV or in a spreadsheet?** Yes. Add format=csv to the request. In Google Sheets, put that URL inside IMPORTDATA with a data-only key in apikey.

**Can an AI agent use this?** Yes. An agent calls it over HTTP like any client. Add .md to this page's address for a version written for agents.

**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-session
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
