gexbot api
general

futures conversion

Returns parameters that put a listed stock or index ticker on a supported futures product's price scale.

GET/futures/conversionClassic Tier

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 TickerOriginal Target FutureDefault Model
SPXESadditive
SPYESaffine
NDXNQadditive
QQQNQaffine
RUTRTYadditive
IWMRTYaffine
DIAYMaffine
GLDGCaffine
SLVSIaffine
USOCLaffine

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_of and an explicit contract. 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

NameTypeDescription
AuthorizationstringRequired. Format: "Bearer <YOUR_API_KEY>"
User-AgentstringRequired. Identify your client application.
AcceptstringRequired. Set to "application/json".

Query Parameters

NameTypeRequiredDescription
tickerstringYesAny listed stock or index ticker, such as SPX, GLD, or AAPL. Synthetic futures tickers are invalid sources.
futurestringYesFutures product code to convert to (e.g. ES, NQ, RTY, YM, GC, SI, CL).
modelstringNoConversion model: additive, multiplicative, or affine. The original SPX/ES, NDX/NQ, and RUT/RTY pairs default to additive; all others default to affine.
as_ofstringNoPast 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.
contractstringNoFutures 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

FieldTypeDescription
future_contractstringThe futures contract used for the calculation, such as ESU6.
multipliernumberMultiplier for converting spot price and strikes to the respective futures scale.
additivenumberAdditive offset for converting spot price and strikes to the respective futures scale.
next_contractstringNext live contract near rollover, when available. Omitted for historical requests.
previous_contractstringPrevious live contract, when available. Omitted for historical requests.
previous_contract_settlement_datestringSettlement 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: false

Errors

StatusWhenExample body
400An 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."}
401The API key is not valid.(no body)
403The 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."}
404The conversion could not be found.{"error": "Not found."}
429The rate limit was exceeded.{"error": "Rate limit exceeded."}
503The service is unavailable.{"error": "Service unavailable."}

On this page