OHLCV price bars for a symbol and resolution
TradingView UDF history bars for one symbol at one resolution,
covering [from, to) (Unix seconds; to is exclusive). Returns column arrays (t, o,
h, l, c, v) of equal length, oldest-first. When the window
holds no bars the response is a 200 with { "s": "no_data" } (plus
nextTime pointing at the nearest earlier bar when one exists), per the
UDF contract. Equity bars also carry sided-volume columns (bv/sv/uv
= buy / sell / unclassified) where available.
Cache-Control tracks data freshness: today max-age=2, the prior
session max-age=60, older complete days immutable.
Authorizations
Skylit API key in the Authorization header
(Authorization: Bearer <key>). X-API-Key is also accepted. The same
key works across Atlas, Heatseeker, and Flowseeker.
Query Parameters
Ticker (e.g. SPY).
"SPY"
Bar size. Intraday minutes or D/W.
1, 2, 3, 5, 15, 30, 60, 240, 480, D, W "D"
Window start, Unix seconds (UTC).
1748131200
Window end, Unix seconds (UTC).
1748736000
When set, return exactly this many bars ending at to (takes
precedence over from, per the UDF spec).
x >= 1Include extended-hours (pre / post-market) bars. Default is regular trading hours only (09:30–16:00 ET).
Response
Bars, or a no_data marker — both 200 per UDF.
- Option 1
- Option 2
Status flag.
ok Bar open times, Unix seconds (UTC), oldest-first.
Opens.
Highs.
Lows.
Closes.
Volumes.
Buy (aggressor) volume per bar, equities where available.
Sell (aggressor) volume per bar.
Unclassified volume per bar.

