{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "FMP Historical Price EOD Full Schema",
  "description": "Schema for FMP Daily Historical Prices (Full) endpoint",
  "version": "1.0.0",
  "type": "object",
  "properties": {
    "symbol": {
      "type": "string",
      "description": "Stock symbol"
    },
    "historical": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "Date (YYYY-MM-DD)"
          },
          "open": {
            "type": "number",
            "description": "Opening price"
          },
          "high": {
            "type": "number",
            "description": "High price"
          },
          "low": {
            "type": "number",
            "description": "Low price"
          },
          "close": {
            "type": "number",
            "description": "Closing price"
          },
          "adjClose": {
            "type": "number",
            "description": "Adjusted closing price"
          },
          "volume": {
            "type": "number",
            "description": "Trading volume"
          },
          "unadjustedVolume": {
            "type": ["number", "null"],
            "description": "Unadjusted volume"
          },
          "change": {
            "type": ["number", "null"],
            "description": "Price change"
          },
          "changePercent": {
            "type": ["number", "null"],
            "description": "Price change percentage"
          },
          "vwap": {
            "type": ["number", "null"],
            "description": "Volume weighted average price"
          },
          "label": {
            "type": ["string", "null"],
            "description": "Label"
          },
          "changeOverTime": {
            "type": ["number", "null"],
            "description": "Change over time"
          }
        },
        "required": ["date", "open", "high", "low", "close", "adjClose", "volume"]
      }
    }
  },
  "required": ["symbol", "historical"]
}
