# How QuantSet Verifies Market Data

> The checks behind every QuantSet response: statements matched to SEC filings, real quarters, evidence-checked price adjustments, honest currencies, and nulls that are never zeros.

Canonical URL: https://quantset.dev/docs/data-quality
Full LLM API Contract: https://api.quantset.dev/llms-full.txt

> ## 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.

A number is published when it passes its checks, labeled when it passes only some, and left empty when it passes none. This page lists the checks and explains which response field records each result.

          

## Empty means unknown, never zero

          

A value that could not be confirmed is `null`. It is never filled with `0`, carried forward from an earlier period, or estimated. Look for `null` in `values`: each one is a figure that did not pass.
          
            
```
curl "https://api.quantset.dev/api/v1/financial-statements/income?tickers=us:NVDA&period=annual&limit_per_instrument=1" -H "X-API-Key: mw_demo"
```

          
          

**In your own code,** treat `null` as missing. A ratio built on a missing input should be missing too.

          

## Statements trace back to the filing

          

US statements are matched against the company's own SEC filing. A row counts as matched when at least two of its money figures agree with the filing to within one part in 100,000. A matched row then carries the filed numbers exactly, and says where each one came from. The response above shows it.
          
            
              
| Field | What it tells you |
              
                
| `accession` | The SEC accession number of the filing the row was matched to. |
                
| `form` | The filing type, such as `10-K` or `10-Q`. |
                
| `available_at` | The day the filing became public. Use it, not `period_end`, to decide what was knowable on a given date. |
                
| `concepts` | The XBRL tag behind each figure, for example `Revenues` behind `revenue`. |
                
| `quality_issues` | Anything about the row that did not pass. An empty list means nothing was flagged. |
              
            
          
          

A row that could not be matched to a filing is still served, with its accession empty and the reason in `quality_issues`.
          
            
              
| In `quality_issues` | Meaning |
              
                
| `fiscal_date_is_provider_label` | The row is not matched to an SEC filing, so its period end is a label, not a filed date. |
                
| `reporting_currency_unverified` | The currency the company reported in could not be confirmed. |
                
| `balance_sheet_not_reconciled` | Assets do not equal liabilities plus equity on this row. |
                
| `not_eligible_for_ttm_sum` | The row mixes year-to-date and single-quarter figures. Do not add four of these into a trailing year. |
              
            
          

          

## A quarter is a real quarter

          

Companies report cash flow year to date, so a "quarterly" row can hold three, six or nine months. Each row says which it is in `period_basis`. Only `discrete_quarter` rows cover a single three-month period, and only those feed quarter-over-quarter growth and trailing-twelve-month sums.
          
            
```
curl "https://api.quantset.dev/api/v1/financial-statements/cash_flow?tickers=us:NVDA&period=quarterly&limit_per_instrument=2" -H "X-API-Key: mw_demo"
```

          

          

## Price adjustments are checked against evidence

          

Every recorded split is tested against the prices around it. The result is the `adjustment` label on each bar, so you know what kind of series you are holding before you compute a return across a split.
          
            
```
curl "https://api.quantset.dev/api/v1/prices?ticker=AAPL&limit=3" -H "X-API-Key: mw_demo"
```

          
          
            
              
| `adjustment` | Meaning |
              
                
| `observed-continuous` | At every recorded split the prices run straight through. The series is already on one share basis. |
                
| `observed-split-gap` | At every recorded split the prices show the gap. The series is as traded. |
                
| `provider-reported` | There was no split to test against. The series is served as reported. |
                
| `unverified` | The evidence was mixed. Treat returns across a split with care. |
              
            
          
          

Each bar carries up to three closes.
          
            
              
| Field | What it is |
              
                
| `close` | The close on the basis the `adjustment` label describes. |
                
| `split_adj_close` | The close on today's share basis, comparable across every split. |
                
| `adj_close` | The close adjusted for splits and dividends. It is published only for a listing that passes all three checks below, and is `null` otherwise. |
              
            
          
          
            
- The adjusted series' own raw closes agree with our primary prices on at least 99% of days, to within 0.1% or one cent, over at least twenty shared days.
            
- Each split factor accounts for the price gap actually seen on that date, to within 10%.
            
- Every dividend we have separately confirmed is implied by the ratio of adjusted to raw close.
          
          

A listing that fails keeps `adj_close` empty. No adjustment factor is guessed. [More on adjusted and raw closes](/docs/guides/adjusted-close-splits-api)

          

## Share-count breaks are marked

          

When a split or a change of unit makes older bars not comparable with newer ones, the response says where the break is. `provenance.comparable_from` is the first date on the current basis, and `provenance.share_basis_breaks` lists each break. Ask for `basis=comparable` to get only the bars after the latest one.
          
            
```
curl "https://api.quantset.dev/api/v1/prices?ticker=AAPL&basis=comparable&limit=3" -H "X-API-Key: mw_demo"
```

          

          

## Currencies are never mixed silently

          

Prices stay in the currency they trade in, and statements stay in the currency the company reports in. Where a dollar figure is derived, the response shows the rate and the day it is from, so you can reproduce it. Here `native_close` is pence, `usd_rate` is the rate applied, and `fx_date` is the rate's date.
          
            
```
curl "https://api.quantset.dev/api/v1/snapshots?ticker=SHEL.L" -H "X-API-Key: mw_demo"
```

          

          

## Every response says what it is

          

Each `/api/v1` response ends with a `provenance` block. It answers the questions you would otherwise have to ask us.
          
            
              
| Field | Answers |
              
                
| `as_of` | The date the data describes, where one date applies to the whole response. |
                
| `currency`, `unit`, `scale` | What the numbers are in. `scale` is always 1: amounts are in whole units, never thousands or millions. |
                
| `basis` | How the rows were built, for example reported daily bars or an annual statement. |
                
| `point_in_time` | Whether each row is dated by when it became public. |
                
| `comparable_from`, `share_basis_breaks` | Where the series stops being comparable with older bars. |
                
| `limitations` | What has not been verified about this response, in plain words. |
              
            
          

          

## A long read stays on one snapshot

          

Data is published as a complete snapshot, and every response names it in `snapshot_id`. Send that ID back while paging and all pages come from the same publication. If a new snapshot lands in the middle of a read, the API answers `409` so you start that read again, and two publications never get mixed. [How paging works](/docs/quickstart#paging)

          

## Where to go next

          
            [SEC EDGAR and XBRLStatements, segments and as-filed facts by ticker or CIK.](/docs/guides/sec-edgar-xbrl-api)
            [Adjusted close and splitsWhich close to use for charts, returns and backtests.](/docs/guides/adjusted-close-splits-api)
            [Global marketsLocal currencies, dollar conversion and non-US financials.](/docs/global-markets)
            [All endpointsInspect the response schema and its provenance fields.](/docs/api)

---

## QuantSet Ecosystem & Integrations (https://quantset.dev/integrations)

- **MCP Clients & 7 Skills:** `npx quantset init` & `npx skills add quantset/skills` (Claude, Claude Code, Cursor, ChatGPT, Codex, Hermes, OpenClaw, Block Goose, Cline, Docker MCP Toolkit — `https://api.quantset.dev/mcp`)
- **Python SDK & Agent Frameworks:** `pip install "quantset[pandas]"` · `from quantset.tools import build_agent_functions, langchain_tools, crewai_tools` (PydanticAI, LangGraph, LangChain, CrewAI, Agno, AutoGen, Google ADK, OpenAI Agents SDK)
- **TypeScript SDK & Vercel AI / Mastra:** `npm install quantset` · `import { createQuantsetTools } from "quantset/tools"` (Node 20+, Bun, Deno, Cloudflare Workers, Vercel Edge)
- **Spreadsheets & Workspaces:** Google Sheets (`=QUANTSET()` & `=IMPORTDATA()`), Microsoft Excel Power Query (`?format=csv`), Notion MCP & n8n/Make webhooks (`https://quantset.dev/docs/guides/google-sheets-excel-notion-stock-templates`)
- **Drop-In Migrations & Machine Payments:** FMP `/stable/*` & `/v3/*` adapter (`https://quantset.dev/docs/switch/fmp`), `yfinance` migration (`https://quantset.dev/docs/switch/yfinance`), autonomous signup (`https://api.quantset.dev/skill.md`), and `x402` Base USDC.
