Historical Stock Aggregates and Indicators API Guide

Daniel Ratke
Research & Engineering
Historical Stock Aggregates and Indicators API Guide
Historical stock aggregates are bar summaries for signals, charts, baselines, and indicator context. Store adjusted state, timespan, bar end timestamp, indicator window, and pagination before using bars in backtests or stock-plus-options workflows.

Term map
Stocks-data vocabulary for this article
Separate stock snapshots, trade prints, bid/ask quotes, adjusted aggregates, ticker reference, market session, and stock/options joins. That distinction keeps stock dashboards and option-research inputs from collapsing into one vague price field.
Follow the linked definitions for Stock snapshots, Stock trades and quotes, Adjusted aggregates, Stock/options join, Access method, Freshness label, Ticker reference, Market movers, Open-close record, Stock quote entitlement, Indicator window, and Corporate-action adjustment.
Historical stock research usually starts with bars. Developers pull one-minute, five-minute, daily, or grouped OHLC data, compute indicators, and then test a strategy. That is a reasonable starting point, but it is not the whole market-data model.
This guide explains how to use Historical Stock Data API, Stocks Data API, Stock Aggregates and Indicators docs, and the new Stock Data Provider Evaluation checklist without confusing bars, trades, quotes, and options fills.
Aggregates are summaries
A stock aggregate is an OHLC-style summary over a requested time window. It can include open, high, low, close, volume, VWAP, and transaction-count style fields depending on the endpoint. Aggregates fit charts, signals, dashboards, and screening. They are not proof that a fill happened at a specific bid or ask.
Key terms:
| Term | Why it matters |
|---|---|
| Timespan | The bar width, such as minute, hour, day, or custom interval |
| Adjusted flag | Whether corporate-action adjustments are reflected in the bar values |
| Open-close record | Session-level open, close, high, low, and related context |
| Grouped bar | Multi-ticker or grouped market bar view for a date |
| Previous-day bar | Fast prior-session baseline for watchlists and comparisons |
| Indicator window | The lookback period used for SMA, EMA, MACD, or RSI |
CuteMarkets documents this layer in Stock Aggregates and Indicators. The commercial overview is Stocks Data API, and the historical buyer page is Historical Stock Data API.
Adjusted versus raw should be explicit
Adjusted bars are convenient for long-window research because splits and other corporate actions can distort raw price paths. Raw bars are useful when the application must reproduce observed market prices exactly. The right answer depends on the workflow.
Record the adjustment setting in every artifact:
{
"ticker": "AAPL",
"endpoint": "stocks/aggs",
"timespan": "5/minute",
"adjusted": true,
"from": "2026-06-01",
"to": "2026-06-04",
"signal_timestamp": "2026-06-04T15:10:00Z"
}
The Corporate Actions and Adjusted Options doc focuses on options deliverables, but the same general discipline applies to stocks: do not publish a backtest without saying whether the underlying bars were adjusted. When stock signals feed option selection, pair that with Stock and Options Data Join Workflow.
Indicators belong to a timestamped window
SMA, EMA, MACD, and RSI summarize recent behavior. They are also easy to misuse if the timestamp boundary is vague.
Use these internal docs when building an indicator workflow:
- SMA docs
- EMA docs
- MACD docs
- RSI docs
- Backtesting Engine Loop
- What to Log Before Optimizing a Backtest
The signal should know the bar end time, the indicator window, the adjustment setting, and the earliest timestamp at which the strategy could act. If the indicator is computed from a completed bar, do not claim a stock or option fill earlier inside that completed bar.
Trades and quotes still matter
An aggregate can tell you the high and low of a five-minute interval. It cannot tell you the current bid/ask spread at the decision timestamp. It cannot prove that an option fill was executable. It cannot explain whether a single late print distorted the close.
Use:
- Stock Trades API for realized stock prints.
- Stock Quotes API for bid/ask market context on quote-enabled plans.
- Options Quotes docs for option fill evidence.
- Options Trades docs for option tape validation.
- Options Aggregates docs for selected option bar context.
This separation is the same principle behind Why Option Quotes Matter More Than Last Price and Quote-Aware Options Backtests. Bars are useful, but they do not replace executable market context.
Historical stock to options workflow
A stock aggregate often creates the signal; an options workflow then tests a derivative expression of that signal.
Example order:
- Pull historical stock aggregates for the underlying.
- Compute the signal after the bar window closes.
- Inspect stock trades or quotes if the strategy needs tape or spread context.
- Request listed option expirations.
- Load the option chain for the selected expiration.
- Select contracts by DTE, moneyness, delta, open interest, volume, and spread.
- Pull option quote windows after the stock signal timestamp.
- Store rejects for stale quotes, wide spreads, no bids, missing contracts, and entitlement gaps.
This connects Historical Stock Data API, Options Expiration Data Workflow, Options Chain API, Historical Options Data API, and Historical Options Replay Runbook.
Example request path
curl "https://api.cutemarkets.com/v1/stocks/aggs/QQQ/5/minute/2026-06-01/2026-06-04/?adjusted=true&limit=5000" \
-H "Authorization: Bearer YOUR_API_KEY"
curl "https://api.cutemarkets.com/v1/stocks/indicators/rsi/QQQ/?timespan=minute&window=14×tamp.gte=2026-06-01T13:30:00Z" \
-H "Authorization: Bearer YOUR_API_KEY"
curl "https://api.cutemarkets.com/v1/tickers/expirations/QQQ/" \
-H "Authorization: Bearer YOUR_OPTIONS_API_KEY"
The first two calls live in the stock product. The expiration call lives in the options product. That product scope should be visible in implementation notes and support logs.
Provider questions for aggregates
When comparing providers, ask:
- Are adjusted and raw bars both clear?
- Are grouped bars and open-close records documented?
- Do custom bars paginate predictably?
- Are indicator windows visible in the request?
- Does the provider explain delayed versus live access?
- Can the stock signal join to option chains and quote windows?
- Are error responses and rate-limit behavior documented?
The broader comparison path is Stock Data Provider Evaluation, Options Data Provider Evaluation, and Best Options Data APIs. Use those pages before treating a bar API as a complete trading-data stack.
What a clean artifact stores
A good historical stock artifact includes:
- ticker reference state
- stock product plan
- adjusted setting
- bar timespan
- signal timestamp
- indicator window
- stock trade or quote evidence if used
- option expiration and OCC ticker if the strategy joins into options
- fill policy
- reject reasons
This is more work than pulling one chart. It is also the difference between a reproducible research artifact and a screenshot-driven strategy note.
How the terminology applies
For Historical Stock Aggregates and Indicators API Guide, the stocks data workflow should treat Stock snapshots, Stock trades and quotes, Adjusted aggregates, Stock/options join, Access method, and Freshness label as operational state rather than glossary decoration. That framing keeps stock state separate from option state so dashboards, screens, and cross-asset research do not collapse every value into one price.
A developer implementing this API Guide idea should persist Ticker reference, Market movers, Open-close record, Stock quote entitlement, Indicator window, and Corporate-action adjustment beside the result, instead of leaving those words in a term card. It also makes the stock-to-options handoff auditable because the stock timestamp and data object remain attached to downstream option requests.
The review artifact for Historical Stock Aggregates and Indicators API Guide becomes more useful when Options data API, OPRA-originating data, OCC option symbol, Bid/ask spread, Midpoint, and Quote/trade condition appear in the same body of evidence as the selected rows. When the page describes a screen or watchlist, these fields should drive freshness labels, row states, and drilldown links.
In production notes for this stocks data workflow, Quote vs trade semantics, REST snapshot, WebSocket stream, Entitlement gate, Quote freshness, and Timestamp semantics define the checks that decide whether the workflow is reproducible. The result is a stock workflow that can explain whether a row came from a snapshot, bar window, trade print, quote, or reference record.
For Historical Stock Aggregates and Indicators API Guide, the practical acceptance test is simple: another developer should be able to read the body, identify the exact inputs, reproduce the request sequence, and explain the accepted and rejected rows without relying on the bottom terminology grid. If a phrase appears in the page vocabulary, it should correspond to a stored field, a validation check, a replay step, or an implementation decision in the stocks data workflow.
This is also the reason the article should not measure success only by the final chart, table, or headline metric. The better standard is whether the data path, timing model, entitlement state, and evidence trail survive review. When those pieces are written directly into the body, the terminology becomes part of the workflow readers can implement.
Terminology
Market-data terms used in this article
These terms keep the article connected to the CuteMarkets knowledge base and to the exact API workflow behind the research.
Stock snapshots
Current stock state used for watchlists, movers, dashboards, and cross-product context.
Stock trades and quotes
Prints and bid/ask records that should stay separate when building spread-aware stock workflows.
Adjusted aggregates
Historical bars where corporate-action handling should be recorded before research results are compared.
Stock/options join
The workflow that ties a stock signal timestamp to listed expirations, chains, contracts, quotes, and selected option legs.
Access method
The delivery mode for market data, such as REST, WebSocket, local cache, export, or provider flat file.
Freshness label
A live, delayed, stale, historical, cached, backfilled, or unavailable state attached to a market-data value.
Ticker reference
The active status, symbol metadata, ticker type, detail, and related-ticker context checked before market data is requested.
Market movers
Snapshot-derived gainers, losers, and active symbols used for watchlists, monitors, and alert candidates.
Open-close record
A session-level stock record useful for daily review, event studies, and baseline chart context.
Stock quote entitlement
The plan boundary that decides whether bid/ask quote fields are present for stock workflows.
Indicator window
The timestamped SMA, EMA, MACD, or RSI lookback that must match the underlying bars.
Corporate-action adjustment
The split, dividend, or symbol-change handling that decides whether historical stock bars are adjusted or raw.
Options data API
The product surface for chains, contracts, quotes, trades, aggregates, Greeks, IV, open interest, and expirations.
OPRA-originating data
The U.S. listed-options source context behind quotes, trades, exchange participation, and consolidated option-market records.
OCC option symbol
The exact option contract identifier that preserves root, expiration, call or put side, and strike.
Bid/ask spread
The execution interval between bid and ask that determines whether a contract is realistically tradable.
Midpoint
The computed center between bid and ask, useful as a reference price but not proof that an order would fill.
Quote/trade condition
The condition-code, exchange, correction, sequence, and timestamp context that explains how a quote or trade row can be used.
Quote vs trade semantics
The distinction between executable bid/ask markets, printed transactions, and bar-level summaries.
REST snapshot
A reproducible request for current or historical market state, used for initialization, backfills, and audit logs.
WebSocket stream
A persistent live connection that needs subscription topics, reconnect tracking, freshness labels, and REST repair paths.
Entitlement gate
The product, plan, quote, live, delayed, historical, or commercial-use boundary checked before data is shown.
Quote freshness
The age, timestamp, and live or delayed state of a bid/ask record before it is used in a scanner, backtest, or UI.
Timestamp semantics
The exchange, provider, ingestion, session, and application time context attached to a market-data record.
FAQ
Related questions
Can stock aggregates prove execution price?
No. Aggregates are OHLC summaries. Use stock trades for prints and stock quotes for bid/ask context when execution evidence matters.
What should a historical stock aggregate artifact store?
Store ticker reference, adjusted flag, timespan, bar end timestamp, indicator window, plan state, pagination cursor, and any option handoff details.

Written by
Daniel Ratke
Research & Engineering
Daniel covers the deeper research notes: options backtesting, execution realism, robustness testing, data engineering, and strategy validation.
Product links
Build the workflow with CuteMarkets
This article is part of the broader CuteMarkets product and research stack. Use the landing pages below to move from the blog into the specific API workflow you want to evaluate.
Stock Aggregates API
Build stock bar, open-close, grouped-bar, previous-day, and indicator workflows.
Historical Stock Data API
Use trades, bars, open-close records, indicators, ticker reference, and lookback rules for research.
Stock Aggregates and Indicators Docs
Read endpoint detail for grouped bars, custom bars, open-close, SMA, EMA, MACD, and RSI.
Stock and Options Join Workflow
Move from stock bars into expirations, chains, contracts, quotes, and replay artifacts.