{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bloomberg-aim/json-schema/bloomberg-aim-historical-data-request-schema.json",
  "title": "HistoricalDataRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bloomberg-aim-historical-data-api-openapi.yml#/components/schemas/HistoricalDataRequest",
  "type": "object",
  "required": [
    "securities",
    "fields",
    "startDate",
    "endDate"
  ],
  "properties": {
    "securities": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of security identifiers"
    },
    "fields": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of Bloomberg field mnemonics"
    },
    "startDate": {
      "type": "string",
      "description": "Start date in YYYYMMDD format"
    },
    "endDate": {
      "type": "string",
      "description": "End date in YYYYMMDD format"
    },
    "periodicitySelection": {
      "type": "string",
      "enum": [
        "DAILY",
        "WEEKLY",
        "MONTHLY",
        "QUARTERLY",
        "SEMI_ANNUALLY",
        "YEARLY"
      ],
      "default": "DAILY"
    },
    "periodicityAdjustment": {
      "type": "string",
      "enum": [
        "ACTUAL",
        "CALENDAR",
        "FISCAL"
      ],
      "default": "ACTUAL"
    },
    "currency": {
      "type": "string",
      "description": "Three-letter currency code for cross-currency conversion"
    },
    "overrides": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Override"
      }
    },
    "nonTradingDayFillOption": {
      "type": "string",
      "enum": [
        "NON_TRADING_WEEKDAYS",
        "ALL_CALENDAR_DAYS",
        "ACTIVE_DAYS_ONLY"
      ],
      "default": "ACTIVE_DAYS_ONLY"
    },
    "nonTradingDayFillMethod": {
      "type": "string",
      "enum": [
        "PREVIOUS_VALUE",
        "NIL_VALUE"
      ],
      "default": "NIL_VALUE"
    },
    "adjustmentNormal": {
      "type": "boolean",
      "default": false
    },
    "adjustmentAbnormal": {
      "type": "boolean",
      "default": false
    },
    "adjustmentSplit": {
      "type": "boolean",
      "default": true
    }
  },
  "$defs": {
    "Override": {
      "type": "object",
      "properties": {
        "fieldId": {
          "type": "string",
          "description": "Bloomberg field mnemonic to override"
        },
        "value": {
          "type": "string",
          "description": "Override value"
        }
      }
    }
  }
}