{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/backquant-com/json-schema/backquant-com-gex-strike-profile-response-schema.json",
  "title": "GexStrikeProfileResponse",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/backquant-com-api-openapi.json#/components/schemas/GexStrikeProfileResponse",
  "properties": {
    "success": {
      "type": "boolean",
      "const": true,
      "title": "Success",
      "default": true
    },
    "data": {
      "$ref": "#/$defs/GexStrikeProfileData"
    },
    "meta": {
      "$ref": "#/$defs/V2Meta"
    }
  },
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "$defs": {
    "GexRankedLevel": {
      "properties": {
        "rank": {
          "type": "integer",
          "title": "Rank"
        },
        "strike": {
          "type": "number",
          "title": "Strike"
        },
        "gex": {
          "type": "number",
          "title": "Gex"
        },
        "abs_gex": {
          "type": "number",
          "title": "Abs Gex"
        }
      },
      "type": "object",
      "required": [
        "rank",
        "strike",
        "gex",
        "abs_gex"
      ],
      "title": "GexRankedLevel"
    },
    "GexStrikeProfileData": {
      "properties": {
        "expiry": {
          "type": "string",
          "title": "Expiry",
          "description": "`all`, `0dte`, or a specific expiry token."
        },
        "dte": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dte",
          "description": "Days-to-expiry, present for specific-expiry calls."
        },
        "strikes": {
          "items": {
            "type": "number"
          },
          "type": "array",
          "title": "Strikes"
        },
        "net_gex": {
          "items": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "type": "array",
          "title": "Net Gex"
        },
        "call_gex": {
          "anyOf": [
            {
              "items": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Call Gex"
        },
        "put_gex": {
          "anyOf": [
            {
              "items": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Put Gex"
        },
        "call_oi": {
          "anyOf": [
            {
              "items": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Call Oi"
        },
        "put_oi": {
          "anyOf": [
            {
              "items": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Put Oi"
        },
        "total_oi": {
          "anyOf": [
            {
              "items": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Total Oi"
        },
        "ranked_top_10": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/GexRankedLevel"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ranked Top 10",
          "description": "Top-N strikes by |GEX|. Rebuilt post-filter when narrowing."
        },
        "filtered_strike_window": {
          "anyOf": [
            {
              "$ref": "#/$defs/GexStrikeWindow"
            },
            {
              "type": "null"
            }
          ],
          "description": "Echo of the resolved strike window when any strike-axis filter was applied."
        },
        "positioning": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "flow",
                "std"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Positioning"
        },
        "by_venue": {
          "anyOf": [
            {
              "additionalProperties": {
                "$ref": "#/$defs/VenueOI"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "By Venue",
          "description": "Per-venue open interest rolled up over the strikes returned. All ten venues are present (zero-filled); null for a single-expiry request, where no venue split is published (see by_venue_note). Attribution is positioning-independent."
        },
        "by_venue_unattributed": {
          "anyOf": [
            {
              "$ref": "#/$defs/VenueOI"
            },
            {
              "type": "null"
            }
          ],
          "description": "Open interest that could not be attributed to a venue. Null when the split reconciles with the totals - the normal case."
        },
        "by_venue_note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "By Venue Note",
          "description": "Why by_venue is null, when it is."
        }
      },
      "type": "object",
      "required": [
        "expiry",
        "strikes",
        "net_gex"
      ],
      "title": "GexStrikeProfileData"
    },
    "GexStrikeWindow": {
      "properties": {
        "min": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Min"
        },
        "max": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max"
        }
      },
      "type": "object",
      "title": "GexStrikeWindow"
    },
    "V2Meta": {
      "properties": {
        "version": {
          "type": "string",
          "const": "2.0",
          "title": "Version",
          "description": "API version tag."
        },
        "timestamp": {
          "type": "string",
          "title": "Timestamp",
          "description": "ISO 8601 wall-clock when the response was built."
        },
        "request_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Request Id",
          "description": "X-Request-ID for tracing across logs / Sentry."
        },
        "symbol": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Symbol",
          "description": "Symbol the response is about, if applicable."
        },
        "spot_price": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Spot Price",
          "description": "Current spot price for the symbol."
        },
        "computed_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Computed At",
          "description": "ISO 8601 of when the underlying cache value was last written."
        },
        "freshness_seconds": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Freshness Seconds",
          "description": "`now - computed_at` in seconds; useful for staleness alarms."
        },
        "source": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source",
          "description": "Upstream venue list the data flowed through."
        },
        "exchanges_filtered": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Exchanges Filtered",
          "description": "Echo of the `?exchanges=` filter when one was applied."
        },
        "rate_limit": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rate Limit",
          "description": "`{limit, remaining, reset}` echo of the rate-limit headers."
        },
        "extra": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Extra",
          "description": "Open dict for endpoint-specific metadata (filter_hash, etc.)."
        }
      },
      "type": "object",
      "required": [
        "version",
        "timestamp"
      ],
      "title": "V2Meta",
      "description": "The meta block returned alongside every v2 response.\n\nEvery field after `version`/`timestamp` is optional because endpoints\nattach different combinations - e.g. `/v2/status` skips `symbol`, the\nchain endpoint sets `extra.filter_hash`, etc. Listing them here means\nSDKs get a typed accessor for each instead of a generic `meta: dict`."
    },
    "VenueOI": {
      "properties": {
        "call_oi": {
          "type": "number",
          "title": "Call Oi",
          "description": "Call open interest, coin units."
        },
        "put_oi": {
          "type": "number",
          "title": "Put Oi",
          "description": "Put open interest, coin units."
        },
        "total_oi": {
          "type": "number",
          "title": "Total Oi",
          "description": "call_oi + put_oi, coin units."
        },
        "notional_oi_usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Notional Oi Usd",
          "description": "total_oi x spot, using the same spot the response reports."
        }
      },
      "type": "object",
      "required": [
        "call_oi",
        "put_oi",
        "total_oi"
      ],
      "title": "VenueOI",
      "description": "One venue's open interest on a surface. OI is coin-native on every\nvenue, so cross-venue sums need no conversion."
    }
  }
}