/api/v1/aggregates/{ticker}$0.02Historical price history: OHLC bars over any timespan and date range
The stock price history endpoint. Returns historical OHLCV bars at the requested multiplier and timespan (minute, hour, day, week, month) between `from` and `to`. Use for price history, charting, backtesting, and trend analysis over any date range.
GET /api/v1/aggregates/AAPL
interface AggregatesResponse {
ticker: string;
data: {
bars: Array<{
open: number;
high: number;
low: number;
close: number;
volume: number;
vwap: number;
trade_count: number;
timestamp: string;
}>;
count: number;
adjusted: boolean;
};
source: string;
as_of: string;
}Example response (click to expand)
{
"ticker": "AAPL",
"data": {
"bars": [
{
"open": 278.855,
"high": 287.22,
"low": 278.37,
"close": 280.14,
"volume": 79915442.436216,
"vwap": 282.3707,
"trade_count": 1301741,
"timestamp": "2026-05-01T04:00:00.000Z"
},
{
"open": 279.655,
"high": 280.63,
"low": 274.8601,
"close": 276.83,
"volume": 46668430.403132,
"vwap": 276.913,
"trade_count": 768697,
"timestamp": "2026-05-04T04:00:00.000Z"
},
{
"open": 276.925,
"high": 284.57,
"low": 276.501,
"close": 284.18,
"volume": 49311712.249733,
"vwap": 282.4091,
"trade_count": 779580,
"timestamp": "2026-05-05T04:00:00.000Z"
},
{
"open": 281.915,
"high": 288.02,
"low": 281.07,
"close": 287.51,
"volume": 58321656.83813,
"vwap": 286.3088,
"trade_count": 839415,
"timestamp": "2026-05-06T04:00:00.000Z"
},
{
"open": 289.27,
"high": 292.13,
"low": 285.78,
"close": 287.44,
"volume": 45224300.521764,
"vwap": 288.7495,
"trade_count": 776365,
"timestamp": "2026-05-07T04:00:00.000Z"
},
{
"open": 290.01,
"high": 294.76,
"low": 290,
"close": 293.32,
"volume": 52692761.275784,
"vwap": 293.1208,
"trade_count": 790657,
"timestamp": "2026-05-08T04:00:00.000Z"
},
{
"open": 291.979,
"high": 293.88,
"low": 290.23,
"close": 292.68,
"volume": 42247285.857671,
"vwap": 292.233,
"trade_count": 712441,
"timestamp": "2026-05-11T04:00:00.000Z"
},
{
"open": 292.56,
"high": 295.27,
"low": 292.56,
"close": 294.8,
"volume": 45748110.69675,
"vwap": 294.1897,
"trade_count": 718399,
"timestamp": "2026-05-12T04:00:00.000Z"
},
{
"open": 293.5,
"high": 300.92,
"low": 293.5,
"close": 298.87,
"volume": 52684260.34243,
"vwap": 298.1137,
"trade_count": 777464,
"timestamp": "2026-05-13T04:00:00.000Z"
},
{
"open": 299.82,
"high": 300.45,
"low": 295.38,
"close": 298.21,
"volume": 35324922.433075,
"vwap": 298.2822,
"trade_count": 666775,
"timestamp": "2026-05-14T04:00:00.000Z"
},
{
"open": 297.9,
"high": 303.2,
"low": 296.52,
"close": 300.23,
"volume": 54862836.293122,
"vwap": 300.4335,
"trade_count": 777324,
"timestamp": "2026-05-15T04:00:00.000Z"
},
{
"open": 300.24,
"high": 300.66,
"low": 294.91,
"close": 297.84,
"volume": 34482959.706124,
"vwap": 297.2155,
"trade_count": 732940,
"timestamp": "2026-05-18T04:00:00.000Z"
},
{
"open": 296.97,
"high": 300.51,
"low": 296.35,
"close": 298.97,
"volume": 42243633.013323,
"vwap": 298.3829,
"trade_count": 640857,
"timestamp": "2026-05-19T04:00:00.000Z"
},
{
"open": 298.18,
"high": 302.8,
"low": 298.08,
"close": 302.25,
"volume": 38229843.71746,
"vwap": 301.1324,
"trade_count": 653718,
"timestamp": "2026-05-20T04:00:00.000Z"
},
{
"open": 301.055,
"high": 305.54,
"low": 300.4,
"close": 304.99,
"volume": 42931848.412135,
"vwap": 304.0912,
"trade_count": 652102,
"timestamp": "2026-05-21T04:00:00.000Z"
},
{
"open": 306.12,
"high": 311.4,
"low": 305.84,
"close": 308.82,
"volume": 43670223.711414,
"vwap": 309.1625,
"trade_count": 754581,
"timestamp": "2026-05-22T04:00:00.000Z"
},
{
"open": 309.56,
"high": 311.82,
"low": 307.67,
"close": 308.33,
"volume": 48000493.679542,
"vwap": 309.4794,
"trade_count": 761571,
"timestamp": "2026-05-26T04:00:00.000Z"
},
{
"open": 308.33,
"high": 313.26,
"low": 308.3,
"close": 310.85,
"volume": 50825646.554059,
"vwap": 311.278,
"trade_count": 753827,
"timestamp": "2026-05-27T04:00:00.000Z"
},
{
"open": 310.68,
"high": 312.8,
"low": 309.57,
"close": 312.51,
"volume": 49119581.02302,
"vwap": 311.536,
"trade_count": 715716,
"timestamp": "2026-05-28T04:00:00.000Z"
}
],
"count": 19,
"adjusted": true
},
"source": "x402stock",
"as_of": "2026-05-31T19:20:21.706Z"
}