{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bloomberg-aim/json-schema/bloomberg-aim-get-fills-response-schema.json",
  "title": "GetFillsResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bloomberg-aim-fills-api-openapi.yml#/components/schemas/GetFillsResponse",
  "type": "object",
  "properties": {
    "fills": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Fill"
      }
    }
  },
  "$defs": {
    "Fill": {
      "type": "object",
      "properties": {
        "EMSX_SEQUENCE": {
          "type": "integer",
          "description": "Parent order sequence number"
        },
        "EMSX_ROUTE_ID": {
          "type": "integer",
          "description": "Route that was filled"
        },
        "EMSX_FILL_ID": {
          "type": "integer",
          "description": "Unique fill identifier"
        },
        "EMSX_TICKER": {
          "type": "string"
        },
        "EMSX_SIDE": {
          "type": "string",
          "enum": [
            "BUY",
            "SELL",
            "SHRT"
          ]
        },
        "EMSX_FILL_AMOUNT": {
          "type": "integer",
          "description": "Quantity filled"
        },
        "EMSX_FILL_PRICE": {
          "type": "number",
          "description": "Fill price"
        },
        "EMSX_FILL_DATE": {
          "type": "string",
          "description": "Fill date (YYYYMMDD)"
        },
        "EMSX_FILL_TIME": {
          "type": "string",
          "description": "Fill time (HHMMSS)"
        },
        "EMSX_BROKER": {
          "type": "string"
        },
        "EMSX_EXCHANGE": {
          "type": "string",
          "description": "Exchange where the fill occurred"
        }
      }
    }
  }
}