futures conversion
Returns parameters that put a listed stock or index ticker on a supported futures product's price scale.
Returns conversion parameters for any listed stock or index ticker and any supported futures product. Without as_of, the service selects the live contract. If a conversion is unavailable, it returns 404.
Every pair accepts the additive, multiplicative and affine models. The original SPX/ES, NDX/NQ, and RUT/RTY pairs default to additive. All other combinations default to affine. Any active gexbot data subscription (Classic, State, Orderflow or Quant) can call this endpoint. Send a gexbot API key in the Authorization header. A Research API key is not accepted.
Source Tickers and Futures Targets
| Original Source Ticker | Original Target Future | Default Model |
|---|---|---|
SPX | ES | additive |
SPY | ES | affine |
NDX | NQ | additive |
QQQ | NQ | affine |
RUT | RTY | additive |
IWM | RTY | affine |
DIA | YM | affine |
GLD | GC | affine |
SLV | SI | affine |
USO | CL | affine |
This table records the original defaults. Any stock or index ticker listed by the ticker API can use ES, NQ, RTY, YM, GC, SI, or CL. For example, SPX/NQ and GLD/ES default to affine. A cross-market conversion aligns price scales; it does not establish a relationship between the two markets.
Request
Live example: /futures/conversion?ticker=SPX&future=ES&model=additive
Historical example (Unix seconds): /futures/conversion?ticker=SPX&future=ES&model=additive&as_of=1754407800&contract=ESU5
The same request with ISO 8601: /futures/conversion?ticker=SPX&future=ES&model=additive&as_of=2025-08-05T15%3A30%3A00Z&contract=ESU5
Both timestamps mean August 5, 2025, at 15:30 UTC. Send Unix seconds, not milliseconds.
For a historical request:
- Send a past
as_ofand an explicitcontract. The service does not choose a historical contract. - The conversion uses the 30 most recent completed one-minute bars of the regular Eastern session before
as_of. Only minutes with both a spot bar and a futures bar count. - Shortly after the open, fewer than 30 minutes may exist. The service then fills the window with the last minutes of the previous session.
- Outside the session, it uses the final 30 minutes of the most recent completed session.
- If fewer than 10 minutes match, the request returns 404.
- The session calendar includes holidays and early closes.
- Lookup is available from February 14, 2023.
- The anonymous, unprefixed v1 GET route does not accept
as_of.
The website's historical charts do not use as_of. They use a separate 15-minute timeline limited to the last 100 days. See historical futures conversion.
Headers
| Name | Type | Description |
|---|---|---|
Authorization | string | Required. Format: "Bearer <YOUR_API_KEY>" |
User-Agent | string | Required. Identify your client application. |
Accept | string | Required. Set to "application/json". |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | Yes | Any listed stock or index ticker, such as SPX, GLD, or AAPL. Synthetic futures tickers are invalid sources. |
future | string | Yes | Futures product code to convert to (e.g. ES, NQ, RTY, YM, GC, SI, CL). |
model | string | No | Conversion model: additive, multiplicative, or affine. The original SPX/ES, NDX/NQ, and RUT/RTY pairs default to additive; all others default to affine. |
as_of | string | No | Past Unix timestamp in seconds (for example, 1754407800) or ISO 8601 timestamp with an explicit UTC offset (for example, 2025-08-05T15:30:00Z). Milliseconds are not accepted. Requires contract. |
contract | string | No | Futures contract such as ESU5. Required with as_of. Live requests accept the active contract, the previous contract through settlement, or the next contract near rollover. |
Response
| Field | Type | Description |
|---|---|---|
future_contract | string | The futures contract used for the calculation, such as ESU6. |
multiplier | number | Multiplier for converting spot price and strikes to the respective futures scale. |
additive | number | Additive offset for converting spot price and strikes to the respective futures scale. |
next_contract | string | Next live contract near rollover, when available. Omitted for historical requests. |
previous_contract | string | Previous live contract, when available. Omitted for historical requests. |
previous_contract_settlement_date | string | Settlement date of the available previous contract. Omitted for historical requests. |
{
"future_contract": "ESU6",
"multiplier": 1,
"additive": 12.345
}{
"type": "object",
"properties": {
"future_contract": {
"type": "string",
"description": "The futures contract used for the calculation."
},
"multiplier": {
"type": "number",
"format": "double",
"description": "Multiplier for converting spot price and strikes to the respective futures scale."
},
"additive": {
"type": "number",
"format": "double",
"description": "Additive offset for converting spot price and strikes to the respective futures scale."
},
"next_contract": { "type": "string" },
"previous_contract": { "type": "string" },
"previous_contract_settlement_date": { "type": "string", "format": "date" }
},
"required": ["future_contract", "multiplier", "additive"],
"additionalProperties": false
}type: object
properties:
future_contract:
type: string
description: The futures contract used for the calculation.
multiplier:
type: number
format: double
description: Multiplier for converting spot price and strikes to the respective futures scale.
additive:
type: number
format: double
description: Additive offset for converting spot price and strikes to the respective futures scale.
next_contract:
type: string
previous_contract:
type: string
previous_contract_settlement_date:
type: string
format: date
required: [future_contract, multiplier, additive]
additionalProperties: falseErrors
| Status | When | Example body |
|---|---|---|
400 | An unknown source or futures product, invalid model, timestamp, or contract; as_of without contract; a missing User-Agent or Authorization header. | {"error": "Invalid future."} or {"error": "Synthetic futures tickers are not valid futures conversion source tickers."} |
401 | The API key is not valid. | (no body) |
403 | The key is not a gexbot API key (no body), or the account has no active Classic or higher subscription. | {"error": "User does not have permission to access this endpoint."} |
404 | The conversion could not be found. | {"error": "Not found."} |
429 | The rate limit was exceeded. | {"error": "Rate limit exceeded."} |
503 | The service is unavailable. | {"error": "Service unavailable."} |