GET /v1/deltabalance/{ticker}¶
Endpoints¶
GET /v1/deltabalance/{ticker}¶
Run Delta Balance analytics API
Description Delta Balance, left-hand-plane balance and right-hand-plane balance as of the latest pipeline run. With no DTE parameters: the next expiry (matches Discord $db). With min_dte equal to max_dte: that one expiry. With a DTE range: net delta positioning across the expiries in the window, with the window's first and last expiry (expiry_date_from, expiry_date_to, dte_from, dte_to) in place of expiry_date and dte. Per-expiry values for the next listed expiries are on /forward.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
| eval_price | query | number | -1.0 | No | Evaluation price: -1 (default) uses the last reported spot; otherwise a price above 0. |
| max_dte | query | integer | No | Maximum whole days to expiration, inclusive; must not be below min_dte. If only one of min_dte and max_dte is sent, the other is 0 (min_dte) or 2190 (max_dte); equal resulting bounds select one expiry. | |
| min_dte | query | integer | No | Minimum whole days to expiration (0 = the current expiry), counted as of the latest pipeline run, not the request time. Send neither DTE parameter for the next expiry; min_dte equal to max_dte for one expiry; a range for net delta positioning across the expiries in the window. | |
| 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": "QQQ",
"generated_at": "2026-07-21T14:35:00-04:00",
"data_state": "interim",
"eod_pipeline_completed_at": null,
"eval_price": 562.4,
"eval_price_is_default": true,
"spot_last_updated": "2026-07-21T14:35:00-04:00",
"spot_basis": "feed",
"spot_basis_time": "2026-07-21T14:35:00-04:00",
"session_date": "2026-07-21",
"session_status": "live",
"expiry_date": null,
"dte": null,
"expiry_date_from": "2026-07-22",
"expiry_date_to": "2026-07-25",
"dte_from": 1,
"dte_to": 4,
"delta_balance": 0.38,
"lhp_balance": -0.31,
"rhp_balance": 0.69,
"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"
},
"generated_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Generated At",
"description": "ISO 8601 timestamp when this response was generated"
},
"data_state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Data State",
"description": "Source data pipeline state: 'interim' or 'eod'"
},
"eod_pipeline_completed_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Eod Pipeline Completed At",
"description": "ISO 8601 timestamp the EOD pipeline finished; null while interim"
},
"eval_price": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Eval Price",
"description": "Price the balances were computed at"
},
"eval_price_is_default": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Eval Price Is Default",
"description": "True if eval_price is the last reported spot (not caller-supplied)"
},
"spot_last_updated": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Spot Last Updated",
"description": "ISO 8601 timestamp the last reported spot was captured"
},
"spot_basis": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Spot Basis",
"description": "What the spot is: feed (the live price, during the regular session), implied (implied by the options), implied_carried (the last implied price, held since spot_basis_time), last (the underlying's last quote, at spot_basis_time) or prior_close (the last session's close; nothing has traded since). Null when not reported."
},
"spot_basis_time": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Spot Basis Time",
"description": "ET ISO 8601 timestamp of when that price existed. Null when not reported."
},
"session_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Session Date",
"description": "ET trading session (YYYY-MM-DD) the served data belongs to. It moves to the next session with that session's first data update with option quotes from that session: from about 20:15 ET the evening before for SPX and VIX (their options trade overnight); for other tickers with their first premarket option quote, or at the 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."
},
"expiry_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Expiry Date",
"description": "Expiration date the balances are for (YYYY-MM-DD): the next expiry when no DTE parameters are sent, or the expiry at min_dte = max_dte. Null for a DTE range (see expiry_date_from and expiry_date_to)."
},
"dte": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Dte",
"description": "Whole days to expiration of expiry_date as counted by the latest pipeline run, not the request time. After the 16:00 ET close it still reflects that run until the next one, so it can differ from dte on other routes, which count from the request time. Null for a DTE range."
},
"expiry_date_from": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Expiry Date From",
"description": "For a DTE range: the first expiry in the window (YYYY-MM-DD); null otherwise"
},
"expiry_date_to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Expiry Date To",
"description": "For a DTE range: the last expiry in the window (YYYY-MM-DD); null otherwise"
},
"dte_from": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Dte From",
"description": "For a DTE range: dte of expiry_date_from, counted like dte; null otherwise"
},
"dte_to": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Dte To",
"description": "For a DTE range: dte of expiry_date_to, counted like dte; null otherwise"
},
"delta_balance": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Delta Balance",
"description": "Delta Balance (dimensionless); for a DTE range, net delta positioning across the expiries in the window. Null when undefined"
},
"lhp_balance": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lhp Balance",
"description": "Delta balance of the left-hand plane (dimensionless); null when undefined"
},
"rhp_balance": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Rhp Balance",
"description": "Delta balance of the right-hand plane (dimensionless); null when undefined"
},
"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": "DeltaBalanceResponse",
"description": "Delta Balance as of the latest pipeline run: for the next expiry, one expiry, or across a DTE window."
}
| 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¶
DeltaBalanceResponse¶
| Name | Type | Description |
|---|---|---|
| data_state | Source data pipeline state: 'interim' or 'eod' | |
| delta_balance | Delta Balance (dimensionless); for a DTE range, net delta positioning across the expiries in the window. Null when undefined | |
| dte | Whole days to expiration of expiry_date as counted by the latest pipeline run, not the request time. After the 16:00 ET close it still reflects that run until the next one, so it can differ from dte on other routes, which count from the request time. Null for a DTE range. | |
| dte_from | For a DTE range: dte of expiry_date_from, counted like dte; null otherwise | |
| dte_to | For a DTE range: dte of expiry_date_to, counted like dte; null otherwise | |
| eod_pipeline_completed_at | ISO 8601 timestamp the EOD pipeline finished; null while interim | |
| error_code | ||
| error_message | ||
| eval_price | Price the balances were computed at | |
| eval_price_is_default | True if eval_price is the last reported spot (not caller-supplied) | |
| expiry_date | Expiration date the balances are for (YYYY-MM-DD): the next expiry when no DTE parameters are sent, or the expiry at min_dte = max_dte. Null for a DTE range (see expiry_date_from and expiry_date_to). | |
| expiry_date_from | For a DTE range: the first expiry in the window (YYYY-MM-DD); null otherwise | |
| expiry_date_to | For a DTE range: the last expiry in the window (YYYY-MM-DD); null otherwise | |
| generated_at | ISO 8601 timestamp when this response was generated | |
| lhp_balance | Delta balance of the left-hand plane (dimensionless); null when undefined | |
| metadata | ||
| rhp_balance | Delta balance of the right-hand plane (dimensionless); null when undefined | |
| session_date | ET trading session (YYYY-MM-DD) the served data belongs to. It moves to the next session with that session's first data update with option quotes from that session: from about 20:15 ET the evening before for SPX and VIX (their options trade overnight); for other tickers with their first premarket option quote, or at the 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. | |
| spot_basis | What the spot is: feed (the live price, during the regular session), implied (implied by the options), implied_carried (the last implied price, held since spot_basis_time), last (the underlying's last quote, at spot_basis_time) or prior_close (the last session's close; nothing has traded since). Null when not reported. | |
| spot_basis_time | ET ISO 8601 timestamp of when that price existed. Null when not reported. | |
| spot_last_updated | ISO 8601 timestamp the last reported spot was captured | |
| status | string | Command execution status: completed, failed, etc. |
| ticker |
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
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/deltabalance/AAPL" \
--header "X-API-Key: $GAMMAEDGE_API_KEY"
See error handling and rate limits for retry guidance.