GET /v1/centab/{ticker}¶
Endpoints¶
GET /v1/centab/{ticker}¶
Run centroid analytics API
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
| flat_eps | query | number | 0.02 | No | Slope size, in strike/min, below which both slopes count as flat for each slice's regime; a finite number above 0 (default 0.02) |
| ticker | path | string | No | Stock/options ticker symbol (e.g. SPY, QQQ, BRK.B) |
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",
"session_date": "2026-07-21",
"session_status": "live",
"generated_at": "2026-07-21T09:45:10-04:00",
"data_status": "complete",
"expiry_date": "2026-07-24",
"spot_last_updated": "2026-07-21T09:40:00-04:00",
"slice_count": 3,
"call_linfit_base_price": 225.99,
"put_linfit_base_price": 222.01,
"slices": [
{
"snapshot_timestamp": "2026-07-21T09:30:00-04:00",
"spot_price": 224.02,
"volume_quality": "nonzero",
"call_centroid_strike": 226.0,
"call_centroid_volume": 6120.0,
"put_centroid_strike": 222.0,
"put_centroid_volume": 5230.0,
"strike_calls_slope": null,
"strike_puts_slope": null,
"strike_calls_roc": null,
"strike_puts_roc": null,
"calls_vol_slope": null,
"puts_vol_slope": null,
"calls_vol_roc": null,
"puts_vol_roc": null,
"call_linfit_eod_price": 226.0,
"put_linfit_eod_price": 222.0,
"regime": "n/a"
},
{
"snapshot_timestamp": "2026-07-21T09:35:00-04:00",
"spot_price": 224.1,
"volume_quality": "nonzero",
"call_centroid_strike": 226.02,
"call_centroid_volume": 12380.01,
"put_centroid_strike": 221.98,
"put_centroid_volume": 10870.01,
"strike_calls_slope": 0.004,
"strike_puts_slope": -0.004,
"strike_calls_roc": null,
"strike_puts_roc": null,
"calls_vol_slope": 1252.002,
"puts_vol_slope": 1128.002,
"calls_vol_roc": null,
"puts_vol_roc": null,
"call_linfit_eod_price": 227.54,
"put_linfit_eod_price": 220.46,
"regime": "flat"
},
{
"snapshot_timestamp": "2026-07-21T09:40:00-04:00",
"spot_price": 224.18,
"volume_quality": "nonzero",
"call_centroid_strike": 226.08,
"call_centroid_volume": 18420.03,
"put_centroid_strike": 221.92,
"put_centroid_volume": 16110.03,
"strike_calls_slope": 0.008,
"strike_puts_slope": -0.008,
"strike_calls_roc": 0.004,
"strike_puts_roc": -0.004,
"calls_vol_slope": 1230.0034,
"puts_vol_slope": 1088.0034,
"calls_vol_roc": -21.9986,
"puts_vol_roc": -39.9986,
"call_linfit_eod_price": 229.07,
"put_linfit_eod_price": 218.93,
"regime": "flat"
}
],
"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"
},
"session_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Session Date",
"description": "ET trading session (YYYY-MM-DD) the slices belong to. It stays on the last session until the next 09:30 ET open."
},
"session_status": {
"anyOf": [
{
"$ref": "#/components/schemas/SessionStatus"
},
{
"type": "null"
}
],
"description": "Where session_date stands now: premarket (not open yet), live (from the 09:30 ET open to the close), or provisional (closed; the data is not final yet). Holidays and early closes follow the exchange calendar."
},
"generated_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Generated At",
"description": "ET ISO 8601 timestamp when this response was generated"
},
"data_status": {
"anyOf": [
{
"$ref": "#/components/schemas/DataStatus"
},
{
"type": "null"
}
],
"description": "What this route is still waiting for: awaiting_first_slice (no slice published yet today), awaiting_second_slice (slope not yet available), awaiting_third_slice (rate of change not yet available), or complete. Only slices whose 5 minutes have ended count. Describes pending data only; published slices are always returned. Not part of error responses, which use the 7000000-family error body."
},
"expiry_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Expiry Date",
"description": "Contract expiry date (YYYY-MM-DD) of the options in this response: the session's 0DTE expiry, or the next listed expiry on a day with no expiry for this ticker."
},
"spot_last_updated": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Spot Last Updated",
"description": "ET ISO 8601 start time of the most recent completed 5-minute slice in the data"
},
"slice_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Slice Count",
"description": "Number of completed 5-minute slices since 09:30 ET"
},
"call_linfit_base_price": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Call Linfit Base Price",
"description": "The call LINFIT line's price at 09:30 ET for the session so far, in strike units"
},
"put_linfit_base_price": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Put Linfit Base Price",
"description": "The put LINFIT line's price at 09:30 ET for the session so far, in strike units"
},
"slices": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/CentabSlice"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Slices",
"description": "Per-snapshot centroid slices ordered by snapshot_timestamp"
},
"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": "CentabResponse",
"description": "Centab API payload.\n\nTop-level ``call/put_linfit_base_price`` give the call (put) LINFIT line's price at\n09:30 ET for the session so far. Each slice in ``slices`` carries that slice's\ncentroid strikes/volumes, slope/rate-of-change metrics, and its own\n``call/put_linfit_eod_price`` — the LINFIT line's projected value at the 15:55\nslice (the last slice of the session; 12:55 on an early close), as of that slice."
}
| 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¶
CentabRegime¶
Type: string
CentabResponse¶
| Name | Type | Description |
|---|---|---|
| call_linfit_base_price | The call LINFIT line's price at 09:30 ET for the session so far, in strike units | |
| data_status | What this route is still waiting for: awaiting_first_slice (no slice published yet today), awaiting_second_slice (slope not yet available), awaiting_third_slice (rate of change not yet available), or complete. Only slices whose 5 minutes have ended count. Describes pending data only; published slices are always returned. Not part of error responses, which use the 7000000-family error body. | |
| error_code | ||
| error_message | ||
| expiry_date | Contract expiry date (YYYY-MM-DD) of the options in this response: the session's 0DTE expiry, or the next listed expiry on a day with no expiry for this ticker. | |
| generated_at | ET ISO 8601 timestamp when this response was generated | |
| metadata | ||
| put_linfit_base_price | The put LINFIT line's price at 09:30 ET for the session so far, in strike units | |
| session_date | ET trading session (YYYY-MM-DD) the slices belong to. It stays on the last session until the next 09:30 ET open. | |
| session_status | Where session_date stands now: premarket (not open yet), live (from the 09:30 ET open to the close), or provisional (closed; the data is not final yet). Holidays and early closes follow the exchange calendar. | |
| slice_count | Number of completed 5-minute slices since 09:30 ET | |
| slices | Per-snapshot centroid slices ordered by snapshot_timestamp | |
| spot_last_updated | ET ISO 8601 start time of the most recent completed 5-minute slice in the data | |
| status | string | Command execution status: completed, failed, etc. |
| ticker |
CentabSlice¶
| Name | Type | Description |
|---|---|---|
| call_centroid_strike | Call centroid: the centre of call volume traded in this slice, in strike units (need not be a listed strike); null when the slice has no call volume | |
| call_centroid_volume | Call centroid volume for this slice, in contracts per strike (not a total); 0 when the slice has no call volume | |
| call_linfit_eod_price | The call LINFIT line's projected value at the 15:55 slice (the last slice of the session; 12:55 on an early close), as of this slice, in strike units; when this slice has no call centroid, the previous slice's projection is repeated | |
| calls_vol_roc | Call volume-centroid slope change since the previous slice, in contracts per strike per minute per slice, to 4 decimal places. Null until two slopes can be compared. A missing volume-centroid value returns zero if a prior slope exists; zero volume participates in the trend. | |
| calls_vol_slope | Call volume-centroid slope, in contracts per strike per minute, to 4 decimal places. Null until two finite volume-centroid values exist. Zero volume participates in the trend; a missing volume-centroid value repeats the previous slope, or null if none is available. | |
| put_centroid_strike | Put centroid: the centre of put volume traded in this slice, in strike units (need not be a listed strike); null when the slice has no put volume | |
| put_centroid_volume | Put centroid volume for this slice, in contracts per strike (not a total); 0 when the slice has no put volume | |
| put_linfit_eod_price | The put LINFIT line's projected value at the 15:55 slice (the last slice of the session; 12:55 on an early close), as of this slice, in strike units; when this slice has no put centroid, the previous slice's projection is repeated | |
| puts_vol_roc | Put volume-centroid slope change since the previous slice, in contracts per strike per minute per slice, to 4 decimal places. Null until two slopes can be compared. A missing volume-centroid value returns zero if a prior slope exists; zero volume participates in the trend. | |
| puts_vol_slope | Put volume-centroid slope, in contracts per strike per minute, to 4 decimal places. Null until two finite volume-centroid values exist. Zero volume participates in the trend; a missing volume-centroid value repeats the previous slope, or null if none is available. | |
| regime | CentabRegime | Direction of the call and put centroid trends as of this slice, read from strike_calls_slope and strike_puts_slope. both+: both rising. both-: both falling. c-p+: calls falling, puts rising. c+p-: calls rising, puts falling. flat: both slopes smaller in size than flat_eps (default 0.02 strike/min). n/a: a slope is not available yet (the first slice). A slope of exactly 0 counts as rising. |
| snapshot_timestamp | string | ET ISO 8601 start time of this 5-minute slice |
| spot_price | number | Underlying spot captured around the end of the five-minute window, with processing lag. For comparison with other bars, align to snapshot_timestamp plus five minutes. |
| strike_calls_roc | Change in the call centroid slope since the previous slice, strike/min per slice. Null at the first two slices; 0 when this slice has no call centroid. | |
| strike_calls_slope | Slope of the call LINFIT line (the trend of the call centroid since 09:30 ET) as of this slice. Units: strike/min. Null until two call centroids exist; when this slice has no call centroid, the previous slice's value is repeated. | |
| strike_puts_roc | Change in the put centroid slope since the previous slice, strike/min per slice. Null at the first two slices; 0 when this slice has no put centroid. | |
| strike_puts_slope | Slope of the put LINFIT line (the trend of the put centroid since 09:30 ET) as of this slice. Units: strike/min. Null until two put centroids exist; when this slice has no put centroid, the previous slice's value is repeated. | |
| volume_quality | VolumeQuality | nonzero, zero, or suspect_zero; suspicion is not proof of bad data |
DataStatus¶
Type: string
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') |
SessionStatus¶
Type: string
VolumeQuality¶
Type: string
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/centab/AAPL" \
--header "X-API-Key: $GAMMAEDGE_API_KEY"
See error handling and rate limits for retry guidance.