{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bloomberg-proprietary-technologies/json-schema/bloomberg-proprietary-technologies-filter-request-schema.json",
  "title": "FilterRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bloomberg-proprietary-technologies-openfigi-openapi.yml#/components/schemas/FilterRequest",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/SearchRequest"
    }
  ],
  "$defs": {
    "CommonSearchMappingRequest": {
      "type": "object",
      "properties": {
        "exchCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "micCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "currency": {
          "type": [
            "string",
            "null"
          ]
        },
        "marketSecDes": {
          "type": [
            "string",
            "null"
          ]
        },
        "securityType": {
          "type": [
            "string",
            "null"
          ]
        },
        "securityType2": {
          "type": [
            "string",
            "null"
          ]
        },
        "includeUnlistedEquities": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "optionType": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "Put",
            "Call"
          ]
        },
        "strike": {
          "$ref": "#/$defs/NullableNumberInterval"
        },
        "contractSize": {
          "$ref": "#/$defs/NullableNumberInterval"
        },
        "coupon": {
          "$ref": "#/$defs/NullableNumberInterval"
        },
        "expiration": {
          "$ref": "#/$defs/NullableDateInterval"
        },
        "maturity": {
          "$ref": "#/$defs/NullableDateInterval"
        },
        "stateCode": {
          "$ref": "#/$defs/StateCode"
        }
      }
    },
    "NullableDateInterval": {
      "maxItems": 2,
      "minItems": 2,
      "type": [
        "array",
        "null"
      ],
      "description": "At least one entry should be non-null.",
      "items": {
        "type": [
          "string",
          "null"
        ],
        "format": "date"
      }
    },
    "NullableNumberInterval": {
      "maxItems": 2,
      "minItems": 2,
      "type": [
        "array",
        "null"
      ],
      "description": "At least one entry should be non-null.",
      "items": {
        "type": [
          "number",
          "null"
        ]
      }
    },
    "SearchRequest": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string"
        },
        "start": {
          "type": "string",
          "description": "The number of results returned for any given request is fixed. When more results are accessible, the response will contain a next property whose value should be sent in succeeding requests as the value of the start property. This will notify the API to return the next \"page\" of results."
        }
      },
      "description": "At least one property in the request object must be populated.",
      "allOf": [
        {
          "$ref": "#/$defs/CommonSearchMappingRequest"
        }
      ]
    },
    "StateCode": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "AB",
        "AC",
        "AH",
        "AK",
        "AL",
        "AM",
        "AR",
        "AS",
        "AT",
        "AZ",
        "BC",
        "BJ",
        "CA",
        "CB",
        "CO",
        "CQ",
        "CT",
        "CZ",
        "DC",
        "DE",
        "EH",
        "FH",
        "FI",
        "FJ",
        "FL",
        "FO",
        "FS",
        "GA",
        "GD",
        "GF",
        "GM",
        "GS",
        "GU",
        "GX",
        "GZ",
        "HA",
        "HB",
        "HE",
        "HG",
        "HI",
        "HL",
        "HN",
        "HO",
        "HS",
        "IA",
        "ID",
        "IG",
        "IK",
        "IL",
        "IN",
        "IT",
        "JL",
        "JS",
        "JX",
        "KA",
        "KC",
        "KN",
        "KO",
        "KS",
        "KT",
        "KU",
        "KY",
        "LA",
        "LN",
        "MA",
        "MB",
        "MD",
        "ME",
        "MG",
        "MI",
        "MN",
        "MO",
        "MS",
        "MT",
        "MZ",
        "NB",
        "NC",
        "ND",
        "NE",
        "NG",
        "NH",
        "NJ",
        "NL",
        "NM",
        "NN",
        "NR",
        "NS",
        "NT",
        "NU",
        "NV",
        "NW",
        "NX",
        "NY",
        "OH",
        "OK",
        "ON",
        "OR",
        "OS",
        "OT",
        "OY",
        "PA",
        "PE",
        "PR",
        "QC",
        "QH",
        "QL",
        "RI",
        "SA",
        "SC",
        "SD",
        "SH",
        "SI",
        "SK",
        "SN",
        "ST",
        "SX",
        "SZ",
        "TA",
        "TG",
        "TJ",
        "TK",
        "TN",
        "TS",
        "TT",
        "TX",
        "TY",
        "UT",
        "VA",
        "VI",
        "VT",
        "WA",
        "WI",
        "WK",
        "WV",
        "WY",
        "XJ",
        "XZ",
        "YA",
        "YN",
        "YT",
        "YU",
        "ZJ"
      ]
    }
  }
}