Endpoints / Returns, risk and historical multiples
Dividend-reinvested total return
Compounded return series reinvesting independently verified cash dividends on their ex-dates.
/api/v1/total-returnSandbox3 credits 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.
startstringStart date YYYY-MM-DD; anchors to the latest share-basis boundary crossed in the window
endstringEnd date YYYY-MM-DD
limitinteger, 1 to 20,000Maximum number of rows to return.
snapshot_idstringPin the request to one immutable snapshot so a read across several pages stays consistent.
formatjson | csvReturn a JSON page or UTF-8 CSV rows.
Response
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.
symbolstringThe ticker without its market prefix.
windowobjectshare_basis_boundarystringdividend_eventsarraydividend_basisverified_cash_events | no_recorded_dividendsWhat is established about the dividends used in this calculation.
dividend_conventionstringHow dividends were reinvested when computing total return.
price_return_pctnumberThe return from price changes alone, in percent.
total_return_pctnumberThe return with dividends reinvested, in percent.
seriesarray
Research questions
How much did reinvested dividends change Apple’s return over the observed window?
GET https://api.quantset.dev/api/v1/total-return?ticker=us:AAPL&limit=250Compare price_return_pct and total_return_pct on the same returned window. Inspect dividend_events to identify the reinvestments.
How did reinvestment affect a calendar-year comparison?
GET https://api.quantset.dev/api/v1/total-return?ticker=AAPL&start=2024-01-02&end=2024-12-31Compare the response window to the dates requested before quoting the two return percentages.
Reading the results
The difference between these percentages is a percentage-point contribution under the reported dividend convention. It is not an investor’s cash yield on their own purchase price.
Coverage and limits
Check share_basis_boundary and the actual window. Verified events and usable price history can constrain how far the series extends.
Related guides
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/total-return?ticker=us:AAPL&limit=250&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/total-return?ticker=us:AAPL&limit=250&format=csv&apikey=mw_demo")AI agents call this endpoint over HTTP, or read its Markdown version. 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 Dividend-reinvested total return without signing up?
- Yes. Use the sandbox key mw_demo and the sample selectors on this page.
- What does Dividend-reinvested total return cost?
- 3 credits 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.
- 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.