QuantSet Docs Developer console

Guides & Comparisons · Backtesting & Corporate Actions

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

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.

us:NVDAus:AAPLus:MSFTglobal:SHEL.Lglobal:1301.T

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:

FieldWhat it representsWhen to use it
closeClosing 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_closeAdjusted 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_closeCross-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"

← 13F, Form 4 & Share FloatAnalyst Estimates & Upgrades API →