# Whole-market quote snapshot (QuantSet API)

> Latest price, OHLC, 1-day change %, volume, market cap and trailing P/E across all active US or global listings in a single request.

> ## 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/quotes/market-snapshot` · `get_market_quote_snapshot`

Send a key in the `X-API-Key` header.
Add `format=csv` to get a UTF-8 table.
Price: 10 credits for the first 25 rows, then 5 credits for every 25 more.

## Research questions

### Which latest US stock quotes can I inspect together?

```http
GET https://api.quantset.dev/api/v1/quotes/market-snapshot?namespace=us&asset_type=stock&limit=50
```

Use each row’s instrument_id and date. Compare market_cap_b in billions and change_1d_pct in percent.

### Which Japanese listings appear in the latest market slice?

```http
GET https://api.quantset.dev/api/v1/quotes/market-snapshot?namespace=global&country=Japan&limit=20
```

Check date and instrument_id per row. Use single-listing prices for an actual historical series.

## Reading the results

This is a cross-section of latest available observations. Check dates and asset types before ranking securities by daily move.


## Coverage and limits

A limited result is a bounded slice of the selected universe. A listing’s absence from that slice says nothing about its trading status.


## Parameters

- `namespace` (us | global, optional)
- `country` (string, optional)
- `asset_type` (stock | etf, optional)
- `active_only` (boolean, optional)
- `limit` (integer, 1 to 20,000, optional): Maximum number of rows to return.
- `snapshot_id` (string, optional): Pin the request to one immutable snapshot so a read across several pages stays consistent.
- `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.
- `symbol` (string): The ticker without its market prefix.
- `name` (string): The company, fund or instrument name.
- `exchange` (string): The exchange the listing trades on.
- `asset_type` (string): What kind of instrument it is, such as stock, etf, crypto_pair or index.
- `security_type` (string): The kind of security: common_stock, adr, reit, etf, etn, cef, preferred, warrant or unit.
- `sector` (string): The company's sector, in one standard list used across all markets.
- `date` (string): The trading day or observation date, YYYY-MM-DD.
- `price` (number): The latest price in US dollars.
- `open` (number): The first traded price of the day.
- `high` (number): The highest traded price of the day.
- `low` (number): The lowest traded price of the day.
- `change_1d_pct` (number): The price change over one day, in percent.
- `volume` (number): The amount traded that day, in the unit named by volume_unit.
- `market_cap_b` (number): The company's market value, in billions of US dollars.
- `pe_ttm` (number): Price divided by trailing earnings per share.

## Example

```
curl 'https://api.quantset.dev/api/v1/quotes/market-snapshot?namespace=us&asset_type=stock&limit=50' -H 'X-API-Key: YOUR_API_KEY'
```

## 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.
- 409 Start the read again with the current snapshot.
- 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.

## Questions

**What does Whole-market quote snapshot cost?** 10 credits for the first 25 rows, then 5 credits for every 25 more. 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: Instruments, ETFs and capabilities
Docs page: https://quantset.dev/docs/api/quotes-market-snapshot
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
