/v2/stocks/{symbol}/bars Stock bars
bars_getBars
OHLCV bars for one stock over [from, to), ascending, at one-second to daily resolution.
Path parameters
symbolstring requiredStock symbol, e.g.
SPY
Query parameters
fromstring epoch msRange start, inclusive (required): epoch ms,
YYYY-MM-DDorYYYY-MM-DDTHH:MM[:SS].tostringRange end, exclusive (required), in the same forms as
from.tzstringIANA time zone for date and time strings (default
America/New_York).timeframestringBar size:
1s,1m,5m,1hor1d(default1m). With an API key:5m,1hor1d(default5m).tfstringAlias for
timeframe, which wins if both are sent.limitinteger · int32Bars per page: default 10,000, at most 50,000, or 1,000 with an API key. A larger value is clamped.
cursorstringThe
meta.cursorof the previous page.adjstringPrice axis:
split(default; every bar rescaled to today's share count) ornone(as traded).totalis400until dividends are stored;asofis an evaluation-time basis and is never served.
Details
With an API key the finest resolution is five minutes: 1s and 1m are 400 invalid_params, and an omitted timeframe is 5m.
Page through a long range by repeating the request with cursor set to meta.cursor until it is absent. meta.complete_through is the last complete bar; the bar after it can still change.
Units
volume is shares. Prices are on the axis meta.adjustment names, with the last corporate action it accounts for: split (the default) rescales every bar to today's share count, and adj=none serves bars as traded. meta.basis names the price source and meta.coverage_end whether a daily bar ends at the regular close (rth) or the extended one (extended). Bars of unequal basis are never stitched silently: meta.seam says where they meet, or which rows were left out.
Limits
With an API key the minimum timeframe is 5m: 5m, 1h and 1d are served, and 1s or 1m is 400 invalid_params.
Requests with an API key get at most 1,000 bars per page and a span of at most 30 days at 5m, 90 days at 1h or 2 years at 1d. A longer span or larger limit is clamped, and meta.caps.applied lists range_clamped or limit_clamped. A key may have 6 history reads in flight at once (14 on Pro), shared across stock bars, GEX session history and at= reads of the GEX grid and the option chain; a seventh (fifteenth on Pro) gets 429 rate_limited.
Empty results
A real ticker with no bars in the range returns an empty data list. An unknown ticker is 404 not_found.
Example
GET /v2/stocks/SPY/bars?timeframe=1d&from=2026-09-21&to=2026-09-26{
"data": [
{
"symbol": "SPY",
"timeframe": "1d",
"ts_ms": 1790035200000,
"open": 774.03,
"high": 775.14,
"low": 772.57,
"close": 773.38,
"volume": 34802336,
"trade_count": 470399
},
{
"symbol": "SPY",
"timeframe": "1d",
"ts_ms": 1790121600000,
"open": 772.79,
"high": 773.05,
"low": 766.5,
"close": 767.81,
"volume": 54931688,
"trade_count": 614754
}
],
"meta": {
"caps": { "tier": "pro", "applied": [] },
"complete_through": 1790308800000,
"row_count": 5
}
}Response
Prices are dollars, timestamps epoch milliseconds, strikes integer thousandths of a dollar; null means unknown. Units →
200application/jsonapplication/x-protobuf
Bars in data; meta.cursor, meta.complete_through and meta.caps.applied. Protobuf with Accept: application/x-protobuf (/v2/rest-protocol.proto).
object
A successful response: data, plus meta about the response.
data array<object> required
close number · double required high number · double required low number · double required open number · double required symbol string required timeframe string required Bar size.
1s1m5m1h1dtrade_count integer · int64 nullable ts_ms integer · int64 required epoch ms volume integer · int64 required vwap number · double nullable meta object required
Response metadata.
caps object nullable
The entitlement caps that shaped this response.
applied array<string> required Caps that changed this response, such as range_clamped. Empty when none did.
darkpool boolean nullable Whether this account has Off-Exchange in the ITMatrixHQ apps.
flow boolean nullable Whether this account has options flow in the ITMatrixHQ apps: Basic or Pro plus a market-data declaration, except on a professional trial. Reported by the account operations.
gexDepth string nullable GEX data depth, on routes that report it.
tier string required The plan tier the request was served under.
cursor string nullable Opaque continuation cursor (pass back as ?cursor=); absent when there is nothing more to read.
plane string nullable Which serving tier answered the read (meta.plane). Informational provenance: treat it as an opaque label, because new values may appear.
Send Accept: application/x-protobuf for a protobuf body instead of JSON — see Protobuf. Errors stay JSON.
Errors
Every error is the JSON error envelope; branch on error.code.
| Status | Meaning |
|---|---|
| 400 |
|
| 401 |
|
| 403 |
|
| 404 |
|
| 502 |
|
| 503 |
|