# Adjusted Close vs. Raw Close: Stock Splits, Dividends & Clean Backtests

> Understand close, split_adj_close, and cross-checked adj_close across forward splits, reverse splits, cash dividends, and 64-year total-return backtests.

Canonical URL: https://quantset.dev/docs/guides/adjusted-close-splits-api
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.

Choose a price series for the question you are asking. A historical closing price, a split-adjusted chart and a return including cash dividends can each have a different value for the same date.
          

          

## Close vs. split_adj_close vs. adj_close

          

Every bar returned by `GET /api/v1/prices` separates three distinct price concepts instead of forcing you to guess which convention a provider used:
          
            
              
                
| Field | What it represents | When to use it |
              
              
                
| `close` | Closing price on the recorded basis. Check `adjustment` on the bar and the quoted currency before interpreting a historical price as an execution level. | Checking historical nominal execution levels, option strikes, or filing-date share-cap cross-checks. |
                
| `split_adj_close` | Adjusted strictly for verified stock splits and reverse splits, excluding cash dividends. | Price-only technical indicators (200-day SMA, RSI, chart continuity) without dividend reinvestment drift. |
                
| `adj_close` | Cross-checked split- *and* dividend-adjusted close, stamped with `adjusted_as_of`. | Total-return backtests, Sharpe/drawdown series, and multi-decade compounding studies. |
              
            
          

          

## Why QuantSet returns null instead of an unverified adjusted close

          

Most low-cost APIs compute `adjClose` blindly from a single corporate-action table. If one split ratio is missing or duplicated, every historical return before that date jumps by +900% or −90%. QuantSet cross-checks split and dividend events against observed price discontinuities: where the evidence reconciles, `adj_close` is populated; where sources disagree or dividend basis is unverified, `adj_close` is returned as `null` and documented in `provenance.limitations`.
          
            
```
curl "https://api.quantset.dev/api/v1/prices?ticker=NVDA&start=2024-06-05&end=2024-06-14" -H "X-API-Key: mw_demo"
```

          
          

Inspect the adjustment label on each side of a split. Where a series has a known basis break, `basis=comparable` can shorten the available history to a comparable segment. Inspect `provenance.comparable_from` and the dates returned. Use a populated `split_adj_close` for split-adjusted prices, or `adj_close` with its `adjusted_as_of` date for a dividend-adjusted series. A null adjusted field leaves the return across that interval unverified.

          

## Query stock split calendars & dividend history directly

          

Inspect exact split ratios, ex-dividend dates, cash dividend amounts, and shareholder-return streaks for an instrument—or scan market-wide split and dividend calendars with a full key:
          
            
```
curl "https://api.quantset.dev/api/v1/calendar/corporate-actions?ticker=NVDA&kind=splits&limit=5" -H "X-API-Key: mw_demo"
```

          
          
            
```
curl "https://api.quantset.dev/api/v1/calendar/corporate-actions?ticker=AAPL&kind=dividends&limit=5" -H "X-API-Key: mw_demo"
```

          

          

## Pre-verified total return, drawdowns & SPX benchmark alpha

          

Instead of hand-rolling CRSP-style compounding loops, query total return, peak-to-trough drawdowns, and S&P 500 benchmark-relative excess returns directly:
          
            
```
curl "https://api.quantset.dev/api/v1/benchmark-relative-returns?ticker=NVDA&benchmark=index:SPX" -H "X-API-Key: mw_demo"
```

---

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