Endpoints / Prices and sessions
Price history
Read daily OHLCV for one listing across US, international, crypto and index markets. The latest available window comes first, with ascending dates within each page. Use latest quotes for a batch of recent daily observations.
/api/v1/pricesSandbox1 credit per 250 bars Try the sample free with mw_demo.
Parameters
tickerstringrequiredCatalog selector, such as NVDA, 7203.T, or a canonical ID such as us:NVDA.
limitinteger, 1 to 20,000Maximum number of rows to return.
Optional parameters (6)
basisraw | comparableraw preserves all bars; comparable starts at the latest split or unit discontinuity.
formatjson | csvResponse format: json or csv.
startstringFirst date to include, as an ISO date (YYYY-MM-DD).
endstringLast date to include, as an ISO date (YYYY-MM-DD).
cursorstringOpaque continuation. Pass it unchanged with the original filters and snapshot_id.
snapshot_idstringPin the request to one immutable snapshot so a read across several pages stays consistent.
Response
Response fields (17)
Each row has these fields. Rows arrive in data, next to schema_version, snapshot_id, total_count, next_cursor, provenance.
instrument_idstringThe listing's ID: a market prefix, a colon, then the ticker. For example us:NVDA, global:SHEL.L, crypto:BTCUSDT or index:SPX.
quote_currencystringThe currency prices are quoted in. London listings quote in pence, shown as GBp.
datestringThe trading day or observation date, YYYY-MM-DD.
opennumberThe first traded price of the day.
highnumberThe highest traded price of the day.
lownumberThe lowest traded price of the day.
closenumberThe last traded price of the day, on the basis the adjustment label describes.
split_adj_closenumberThe close restated on today's share basis, so it is comparable across every split.
adj_closenumberThe close adjusted for splits and dividends. Published only for listings that pass all three evidence checks, and null otherwise.
adjusted_as_ofstringThe date the adjusted close series was last rebuilt. Adjusted values change after each new dividend or split.
change_pctnumberThe change from the previous close, in percent.
volumenumberThe amount traded that day, in the unit named by volume_unit.
dollar_volumenumberThe value traded that day in US dollars: close times volume.
market_capnumberThe company's market value on that date, in US dollars.
shares_outstandingnumberThe number of shares in issue.
volume_unitshares | base_asset_units | index_pointsWhat volume counts: shares, base asset units for crypto, or index points.
adjustmentstringWhat has been established about splits in this price series: observed-continuous, observed-split-gap, provider-reported or unverified.
Research questions
What did Nvidia close at over its last five available trading days?
GET https://api.quantset.dev/api/v1/prices?ticker=NVDA&limit=5Read date, close and quote_currency together. The page presents those five observations in ascending order.
Does my split-window comparison have a consistent share basis?
GET https://api.quantset.dev/api/v1/prices?ticker=NVDA&basis=comparable&start=2024-06-03&end=2024-06-14Inspect the adjustment labels and comparable_from against the requested window. Use verified adjusted fields when the calculation requires them.
Reading the results
For a chart across splits, inspect adjustment and split_adj_close. For a return series including cash dividends, check adj_close and adjusted_as_of before using it.
Coverage and limits
The limit counts observed bars. Holidays, missing sessions and a comparable-basis boundary can shorten the requested window.
Related guides
Which price endpoint to use
CSV, spreadsheets and agents
The same rows as a spreadsheet-ready table. Add format=csv to the request.
curl "https://api.quantset.dev/api/v1/prices?ticker=NVDA&limit=5&format=csv" -H "X-API-Key: mw_demo"
Or pull it straight into Google Sheets with one formula. Excel and larger pulls
=IMPORTDATA("https://api.quantset.dev/api/v1/prices?ticker=NVDA&limit=5&format=csv&apikey=mw_demo")AI agents reach this dataset through the get_price_history tool on the MCP server, with no code. Connect Claude, ChatGPT, Cursor or your own agent
Errors
| Status | Code | What to do |
|---|---|---|
| 400 | conflicting_credentials | Supply one credential. |
| 401 | invalid_credentials | Supply a valid API key. |
| 402 | insufficient_credits | Reduce the request ceiling or refill your credits. |
| 403 | insufficient_access | Your key does not have the required access. |
| 404 | unknown_instrument | The requested listing is absent from the catalog. |
| 409 | snapshot_changed | Start the read again with the current snapshot. |
| 413 | export_too_large | Reduce the page size before requesting CSV again. |
| 422 | invalid_parameter, ambiguous_instrument | Correct the named parameter and retry. |
| 429 | rate_limited | Wait for Retry-After seconds. |
| 500 | internal_error | The request could not be completed. |
| 503 | temporarily_unavailable | Retry safe reads after a short delay. |
Questions
- Can I try Price history without signing up?
- Yes. Use the sandbox key mw_demo and the sample selectors on this page.
- What does Price history cost?
- 1 credit for every 250 bars returned. A request that fails costs nothing.
- Which plan includes it?
- Every account. Free credits, credit packs and subscriptions all read this data.
- How do I read more than one page?
- When next_cursor is not null, send it back as cursor together with the same snapshot_id, and repeat until it is null.
- 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. On the QuantSet MCP server it is the get_price_history 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.
- Which close should I use for returns?
- Use split_adj_close to compare prices across splits. Use adj_close for returns that include dividends, where it is published. The adjustment label says what has been established about the series.