GET /v1/bars/{ticker}¶
Endpoints¶
GET /v1/bars/{ticker}¶
Price bars: open, high, low, close and volume
Description
One bar per minute (or 5, 15, 30 or 60 minutes) for a stock, ETF or index, oldest first. Bars are served from stored data and appear shortly after each minute ends. A minute with no trades has no bar. History: the most recent session. The prior session (04:00 to 20:00 ET) stays available until 07:00 ET on the next trading day, and the current session's bars appear from 04:00 ET. An index's premarket and extended requests also return bars from 20:15 ET the evening before, one per update for every interval, before the index's own bars begin at 09:30 ET: source_basis implied where the level comes from overnight option prices (SPXP and RUT from their own options, VIX from the forward implied by its nearest trading expiry, SPX and SPXA from SPXP's level), implied_carried where the newest implied level is carried forward because the root's options do not quote overnight (NDX). Keys with extended bars access can read back to the oldest stored day. If a response is too large, the API returns 400. Use a larger interval, a shorter range, or a smaller bars_back.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
| bars_back | query | integer | No | The last N bars ending at end, 1 to 20000. Cannot be combined with start. | |
| end | query | string | No | Last bar to return (a date covers the whole day). Defaults to now. Range: at most 31 sessions. | |
| interval | query | integer | 1 | No | Minutes per bar for unit=minute: 1, 5, 15, 30 or 60. Longer bars align to the clock and are clipped to the requested session's hours. Implied index bars always use their original capture times. |
| session | query | string | regular | No | New York time. regular runs from 09:30 to 16:00 (13:00 on early-close days). For stocks and ETFs, pre starts at 04:00, post ends at 20:00, and extended includes all three. For indexes, pre and extended start at 20:15 on the preceding trading day, and post is empty. |
| since | query | string | No | Only price bars added or revised after this time (ISO 8601). Older records without a revision time use the bar end. Implied index bars use capture time, so a late capture can fall before the polling cursor. Options-volume updates do not affect this filter. Leave overlap between polls and replace bars by time to account for concurrent writes. | |
| start | query | string | No | First bar to return: a date (YYYY-MM-DD) or an ISO 8601 datetime, New York time if it has no offset. Leave out start, end and bars_back for the current session. Premarket and extended-hours requests can include the prior session while the plan includes it, through 07:00 ET on the next trading day. An index capture from 20:15 ET the prior trading day belongs to the next session. | |
| ticker | path | string | No | Stock/options ticker symbol (e.g. SPY, QQQ, BRK.B) | |
| unit | query | string | minute | No | Bar unit. minute in this release; daily, weekly and monthly are planned. |
Request headers
| Header | Required | Description |
|---|---|---|
X-API-Key |
Required | Your API key, sent on every request. |
X-Correlation-ID |
Optional | Request ID for tracing. If omitted, the server assigns one and returns it in the X-Correlation-ID response header. |
Response 200 OK¶
application/json
{
"status": "completed",
"ticker": "AAPL",
"unit": "minute",
"interval": 1,
"session": "regular",
"generated_at": "2026-07-21T09:32:05-04:00",
"as_of": "2026-07-21T09:32:00-04:00",
"data_status": "live",
"is_end_of_history": false,
"bars": [
{
"time": "2026-07-21T09:30:00-04:00",
"epoch_ms": 1784640600000,
"open": 214.1,
"high": 214.6,
"low": 213.9,
"close": 214.4,
"volume": 412000,
"volume_basis": "partial_live",
"options_volume": 18500,
"options_volume_as_of": "2026-07-21T09:31:00-04:00",
"status": "closed",
"source_basis": "trades"
},
{
"time": "2026-07-21T09:31:00-04:00",
"epoch_ms": 1784640660000,
"open": 214.4,
"high": 214.8,
"low": 214.2,
"close": 214.7,
"volume": 268000,
"volume_basis": "partial_live",
"options_volume": 31200,
"options_volume_as_of": "2026-07-21T09:32:00-04:00",
"status": "closed",
"source_basis": "trades"
}
],
"error_message": null,
"error_code": null,
"metadata": null
}
Schema of the response body
{
"properties": {
"status": {
"type": "string",
"title": "Status",
"description": "Command execution status: completed, failed, etc."
},
"ticker": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ticker"
},
"unit": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Unit",
"description": "`minute`: the only unit in this release"
},
"interval": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Interval",
"description": "Minutes per bar: 1, 5, 15, 30 or 60"
},
"session": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Session",
"description": "Hours returned: `regular`, `pre`, `post` or `extended`"
},
"generated_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Generated At",
"description": "ET ISO 8601 timestamp when this response was generated"
},
"as_of": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "As Of",
"description": "End of the newest stored minute bar or time of the newest implied capture (ET ISO 8601); null with no bars"
},
"data_status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Data Status",
"description": "`live` while today's requested hours are running, `complete` once they have ended, `awaiting_first_bar` when no stored bar was seen for today's session. An index premarket or extended range with a past end is complete."
},
"is_end_of_history": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Is End Of History",
"description": "True when the response reaches the oldest history this key may read"
},
"bars": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/PriceBarModel"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Bars",
"description": "Bars oldest first; a minute with no trades has no bar"
},
"error_message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error Message"
},
"error_code": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error Code"
},
"metadata": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Metadata"
}
},
"type": "object",
"required": [
"status"
],
"title": "BarsResponse",
"description": "Stored price bars for one ticker, oldest first."
}
| Name | Description | Schema |
|---|---|---|
| X-Correlation-ID | Request ID for tracing: the value you sent in X-Correlation-ID, or one the server generated. Returned on every response the API produces; some edge errors (e.g. rate limiting) may omit it. | string |
Schemas¶
BarsResponse¶
| Name | Type | Description |
|---|---|---|
| as_of | End of the newest stored minute bar or time of the newest implied capture (ET ISO 8601); null with no bars | |
| bars | Bars oldest first; a minute with no trades has no bar | |
| data_status | live while today's requested hours are running, complete once they have ended, awaiting_first_bar when no stored bar was seen for today's session. An index premarket or extended range with a past end is complete. |
|
| error_code | ||
| error_message | ||
| generated_at | ET ISO 8601 timestamp when this response was generated | |
| interval | Minutes per bar: 1, 5, 15, 30 or 60 | |
| is_end_of_history | True when the response reaches the oldest history this key may read | |
| metadata | ||
| session | Hours returned: regular, pre, post or extended |
|
| status | string | Command execution status: completed, failed, etc. |
| ticker | ||
| unit | minute: the only unit in this release |
ErrorResponse¶
| Name | Type | Description |
|---|---|---|
| command_name | Command the request mapped to (e.g. 'centab') | |
| error_code | string | Consumer-facing 7000000-family error code |
| error_message | string | Generic, source-agnostic error message |
| status | string | Always 'failed' for an error body |
| target | Offending request field for 7000000 (e.g. 'ticker') |
PriceBarModel¶
| Name | Type | Description |
|---|---|---|
| close | number | Last trade price in the bar (dollars) |
| epoch_ms | integer | Bar start or implied capture time in milliseconds since 1970-01-01 UTC |
| high | number | Highest trade price in the bar (dollars) |
| low | number | Lowest trade price in the bar (dollars) |
| open | number | First trade price in the bar (dollars) |
| options_volume | Session-to-date total option contracts traded across all listed expiries as of options_volume_as_of (a running day total, not the contracts traded in this bar). Series that have expired are not counted. Implied bars use the same capture's total when it was observed by capture time. Other bars use the latest complete total available at the bar's end. Null when the total is unavailable |
|
| options_volume_as_of | Reference Greeks run time (ET ISO 8601), or null when the total is unavailable | |
| source_basis | string | trades for stocks and ETFs; index for index levels during the regular session; implied for an index's overnight and premarket level implied by its own options (SPX, SPXA, SPXP, RUT, and the VIX forward implied by VIX options), one bar per update between 20:15 ET the evening before and the open; implied_carried for the newest option-implied level carried forward while the root's options do not quote overnight (NDX), a flat level until the root's own bars begin at 09:30 ET |
| status | string | closed: the bar's interval has ended. Stored prices or volume can be revised. |
| time | string | Bar start or implied capture time, ISO 8601 in New York time with its offset |
| volume | Shares traded in the bar; null for an index, which has no traded volume | |
| volume_basis | string | partial_live: intraday stock volume from the live tape, which is not the full consolidated volume; consolidated: the full-market volume, once the session is recomputed after the close; index: an index level, which has no traded volume |
Errors¶
| HTTP | Meaning | Body |
|---|---|---|
400 |
That ticker symbol doesn't look valid. Please check it and try again. | ErrorResponse |
401 |
Your API key is missing or invalid. Please check the X-API-Key header. | ErrorResponse |
403 |
This data isn't included in your current plan. | ErrorResponse |
404 |
We don't have data for that ticker. Double-check the symbol. | ErrorResponse |
422 |
We couldn't prepare this data right now. Please try again shortly. | ErrorResponse |
500 |
Something went wrong on our end. Try again, or contact support if it persists. | ErrorResponse |
502 |
We can't reach the market data right now. Please try again shortly. | ErrorResponse |
503 |
The service is briefly unavailable. Please try again in a moment. | ErrorResponse |
504 |
This request took too long. Please try again. | ErrorResponse |
Request example¶
Replace any YOUR_... query values before sending.
curl --request GET "https://api.gammaedge.us/v1/bars/AAPL" \
--header "X-API-Key: $GAMMAEDGE_API_KEY"
See error handling and rate limits for retry guidance.