{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nomior-com/json-schema/nomior-com-market-conditions-schema.json",
  "title": "MarketConditions",
  "description": "Informational market stress percentile (0-100, higher = more stress) of one market against each statistic’s own prior five-year reference, with its band, families, components, coverage, what the index did after past sessions in this band beside its whole history, the nearest past periods, the next-month volatility range with its live score, the components and risk-topic stories that moved it, a bounded trailing history and provenance. Descriptive research context only: past paths are context, never a forecast, and the reading never enters a company score.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/invest-openapi.json#/components/schemas/MarketConditions",
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": "string",
      "enum": [
        "market-conditions-read.v2"
      ]
    },
    "market": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "ready",
        "unavailable"
      ]
    },
    "asOfSession": {
      "type": [
        "string",
        "null"
      ]
    },
    "composite": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 100
    },
    "band": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "key": {
          "type": "string",
          "enum": [
            "calm",
            "settled",
            "unsettled",
            "stormy",
            "severe"
          ]
        },
        "label": {
          "type": "string"
        }
      },
      "required": [
        "key",
        "label"
      ]
    },
    "formulaVersion": {
      "type": "string"
    },
    "scale": {
      "type": "object",
      "properties": {
        "min": {
          "type": "number",
          "enum": [
            0
          ]
        },
        "max": {
          "type": "number",
          "enum": [
            100
          ]
        },
        "meaning": {
          "type": "string"
        }
      },
      "required": [
        "min",
        "max",
        "meaning"
      ]
    },
    "families": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "stressScore": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "maximum": 100
          },
          "componentsPresent": {
            "type": "integer"
          },
          "componentsTotal": {
            "type": "integer"
          }
        },
        "required": [
          "key",
          "label",
          "stressScore",
          "componentsPresent",
          "componentsTotal"
        ],
        "description": "Informational market stress percentile (0-100, higher = more stress) relative to prior reference distributions; descriptive research context only, never an input to any entity score, and a description of current conditions rather than of future outcomes."
      }
    },
    "components": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "family": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "rawStat": {
            "type": [
              "number",
              "null"
            ]
          },
          "stressScore": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "maximum": 100
          },
          "referenceCount": {
            "type": [
              "integer",
              "null"
            ]
          },
          "observationDate": {
            "type": [
              "string",
              "null"
            ]
          },
          "observationAgeDays": {
            "type": [
              "integer",
              "null"
            ]
          },
          "weight": {
            "type": "number"
          },
          "missingReason": {
            "type": [
              "string",
              "null"
            ]
          },
          "sourceLabel": {
            "type": "string"
          },
          "sourceKind": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "family",
          "label",
          "rawStat",
          "stressScore",
          "referenceCount",
          "observationDate",
          "observationAgeDays",
          "weight",
          "missingReason",
          "sourceLabel",
          "sourceKind"
        ],
        "description": "Informational market stress percentile (0-100, higher = more stress) relative to prior reference distributions; descriptive research context only, never an input to any entity score, and a description of current conditions rather than of future outcomes."
      }
    },
    "coverage": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "familiesPresent": {
          "type": "integer"
        },
        "familiesRequired": {
          "type": "integer"
        },
        "componentsPresent": {
          "type": "integer"
        },
        "componentsTotal": {
          "type": "integer"
        }
      },
      "required": [
        "familiesPresent",
        "familiesRequired",
        "componentsPresent",
        "componentsTotal"
      ]
    },
    "missingReasons": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "attribution": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "history": {
      "type": "object",
      "properties": {
        "points": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string"
              },
              "composite": {
                "type": [
                  "number",
                  "null"
                ],
                "minimum": 0,
                "maximum": 100
              },
              "reconstructed": {
                "type": "boolean"
              }
            },
            "required": [
              "date",
              "composite",
              "reconstructed"
            ]
          }
        },
        "windowSessions": {
          "type": "integer"
        }
      },
      "required": [
        "points",
        "windowSessions"
      ]
    },
    "outcomes": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "band": {
          "type": "string",
          "enum": [
            "calm",
            "settled",
            "unsettled",
            "stormy",
            "severe"
          ]
        },
        "horizons": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "horizonSessions": {
                "type": "integer"
              },
              "band": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "measured",
                      "too_few"
                    ]
                  },
                  "independentPeriods": {
                    "type": "integer"
                  },
                  "returnP10": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "returnMedian": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "returnP90": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "drawdownMedian": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "required": [
                  "status",
                  "independentPeriods",
                  "returnP10",
                  "returnMedian",
                  "returnP90",
                  "drawdownMedian"
                ]
              },
              "fullHistory": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "measured",
                      "too_few"
                    ]
                  },
                  "independentPeriods": {
                    "type": "integer"
                  },
                  "returnP10": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "returnMedian": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "returnP90": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "drawdownMedian": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "required": [
                  "status",
                  "independentPeriods",
                  "returnP10",
                  "returnMedian",
                  "returnP90",
                  "drawdownMedian"
                ]
              }
            },
            "required": [
              "horizonSessions",
              "band",
              "fullHistory"
            ]
          }
        },
        "minIndependentPeriods": {
          "type": "integer"
        },
        "sample": {
          "type": "object",
          "properties": {
            "from": {
              "type": "string"
            },
            "to": {
              "type": "string"
            }
          },
          "required": [
            "from",
            "to"
          ]
        },
        "provenance": {
          "type": "object",
          "properties": {
            "datasetId": {
              "type": "string",
              "minLength": 1
            },
            "source": {
              "type": "string"
            },
            "formulaVersion": {
              "type": "string"
            },
            "computedAt": {
              "type": "string",
              "format": "date-time"
            },
            "snapshotDate": {
              "type": "string"
            },
            "missingDataHandling": {
              "type": "string",
              "enum": [
                "reported",
                "derived",
                "interpolated",
                "missing"
              ]
            },
            "rawSources": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "sourceLabel": {
              "type": "string",
              "minLength": 1
            },
            "sourceKind": {
              "type": "string",
              "minLength": 1
            },
            "documentUrl": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            },
            "sourceProviderVersion": {
              "type": "string"
            },
            "runId": {
              "type": "string"
            },
            "dataOrigin": {
              "type": "string",
              "enum": [
                "consensus",
                "extrapolated",
                "ai_synthesized",
                "tiered",
                "carried_forward",
                "year_inferred"
              ]
            },
            "forecastConfidenceScore": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            },
            "currencyCode": {
              "type": "string"
            },
            "nativeValue": {
              "type": "number"
            },
            "fxRate": {
              "type": "number"
            },
            "fxAsOf": {
              "type": "string"
            },
            "fxSource": {
              "type": "string"
            },
            "basis": {
              "type": "string",
              "enum": [
                "per_share",
                "aggregate"
              ]
            },
            "priceAsOf": {
              "type": "string"
            },
            "valuationPrice": {
              "type": "number",
              "minimum": 0,
              "exclusiveMinimum": true
            },
            "balanceSheetAsOf": {
              "type": "string"
            },
            "depositaryRatio": {
              "type": "object",
              "properties": {
                "ratio": {
                  "type": "number",
                  "minimum": 0,
                  "exclusiveMinimum": true
                },
                "accessionNo": {
                  "type": "string",
                  "minLength": 1
                },
                "filingDate": {
                  "type": "string"
                },
                "documentUrl": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri"
                }
              },
              "required": [
                "ratio",
                "accessionNo",
                "filingDate",
                "documentUrl"
              ]
            },
            "trustTier": {
              "type": "string",
              "enum": [
                "trusted_pit",
                "verified_recent",
                "aggregator_reported"
              ]
            },
            "sourceAsOf": {
              "type": "string"
            },
            "attribution": {
              "type": "string",
              "minLength": 1
            },
            "sourceSnapshotDate": {
              "type": "string"
            },
            "ageDays": {
              "type": "integer",
              "minimum": 0
            },
            "freshnessPenalty": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "periodWindow": {
              "type": "object",
              "properties": {
                "periodStart": {
                  "type": "string"
                },
                "periodEnd": {
                  "type": "string"
                },
                "firstQuarter": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "fiscalYear": {
                      "type": "integer"
                    },
                    "issuerFiscalYear": {
                      "type": "integer"
                    },
                    "fiscalQuarter": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 4
                    }
                  },
                  "required": [
                    "fiscalYear",
                    "fiscalQuarter"
                  ]
                },
                "lastQuarter": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "fiscalYear": {
                      "type": "integer"
                    },
                    "issuerFiscalYear": {
                      "type": "integer"
                    },
                    "fiscalQuarter": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 4
                    }
                  },
                  "required": [
                    "fiscalYear",
                    "fiscalQuarter"
                  ]
                },
                "label": {
                  "type": "string",
                  "minLength": 1
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "four_quarters",
                    "annual_roll_forward",
                    "vendor_trailing",
                    "fiscal_year"
                  ]
                },
                "filings": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "accession": {
                        "type": "string",
                        "minLength": 1
                      },
                      "form": {
                        "type": "string",
                        "minLength": 1
                      },
                      "filed": {
                        "type": "string"
                      },
                      "role": {
                        "type": "string",
                        "enum": [
                          "annual",
                          "quarter",
                          "prior_year_quarter"
                        ]
                      },
                      "periodStart": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "periodEnd": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "accession",
                      "form",
                      "filed",
                      "role",
                      "periodStart",
                      "periodEnd"
                    ]
                  }
                }
              },
              "required": [
                "periodStart",
                "periodEnd",
                "firstQuarter",
                "lastQuarter",
                "label",
                "method",
                "filings"
              ]
            },
            "missingReason": {
              "type": "string",
              "enum": [
                "not_disclosed",
                "input_not_disclosed",
                "not_meaningful",
                "not_yet_published",
                "currency_mismatch",
                "share_basis_unproven",
                "not_in_consensus",
                "consensus_basis_mismatch",
                "negative_denominator",
                "implausible_value",
                "fx_unavailable"
              ]
            },
            "missingInputs": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "source",
            "formulaVersion",
            "computedAt",
            "snapshotDate",
            "missingDataHandling",
            "rawSources"
          ]
        }
      },
      "required": [
        "band",
        "horizons",
        "minIndependentPeriods",
        "sample",
        "provenance"
      ]
    },
    "analogs": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "asOfSession": {
          "type": "string"
        },
        "components": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "session": {
                "type": "string"
              },
              "windowEnd": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "distance": {
                "type": "number"
              },
              "band": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "calm",
                  "settled",
                  "unsettled",
                  "stormy",
                  "severe",
                  null
                ]
              },
              "reconstructed": {
                "type": "boolean"
              },
              "outcomes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "horizonSessions": {
                      "type": "integer"
                    },
                    "return": {
                      "type": "number"
                    },
                    "drawdown": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "horizonSessions",
                    "return",
                    "drawdown"
                  ]
                }
              }
            },
            "required": [
              "session",
              "windowEnd",
              "distance",
              "band",
              "reconstructed",
              "outcomes"
            ]
          }
        },
        "provenance": {
          "type": "object",
          "properties": {
            "datasetId": {
              "type": "string",
              "minLength": 1
            },
            "source": {
              "type": "string"
            },
            "formulaVersion": {
              "type": "string"
            },
            "computedAt": {
              "type": "string",
              "format": "date-time"
            },
            "snapshotDate": {
              "type": "string"
            },
            "missingDataHandling": {
              "type": "string",
              "enum": [
                "reported",
                "derived",
                "interpolated",
                "missing"
              ]
            },
            "rawSources": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "sourceLabel": {
              "type": "string",
              "minLength": 1
            },
            "sourceKind": {
              "type": "string",
              "minLength": 1
            },
            "documentUrl": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            },
            "sourceProviderVersion": {
              "type": "string"
            },
            "runId": {
              "type": "string"
            },
            "dataOrigin": {
              "type": "string",
              "enum": [
                "consensus",
                "extrapolated",
                "ai_synthesized",
                "tiered",
                "carried_forward",
                "year_inferred"
              ]
            },
            "forecastConfidenceScore": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            },
            "currencyCode": {
              "type": "string"
            },
            "nativeValue": {
              "type": "number"
            },
            "fxRate": {
              "type": "number"
            },
            "fxAsOf": {
              "type": "string"
            },
            "fxSource": {
              "type": "string"
            },
            "basis": {
              "type": "string",
              "enum": [
                "per_share",
                "aggregate"
              ]
            },
            "priceAsOf": {
              "type": "string"
            },
            "valuationPrice": {
              "type": "number",
              "minimum": 0,
              "exclusiveMinimum": true
            },
            "balanceSheetAsOf": {
              "type": "string"
            },
            "depositaryRatio": {
              "type": "object",
              "properties": {
                "ratio": {
                  "type": "number",
                  "minimum": 0,
                  "exclusiveMinimum": true
                },
                "accessionNo": {
                  "type": "string",
                  "minLength": 1
                },
                "filingDate": {
                  "type": "string"
                },
                "documentUrl": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri"
                }
              },
              "required": [
                "ratio",
                "accessionNo",
                "filingDate",
                "documentUrl"
              ]
            },
            "trustTier": {
              "type": "string",
              "enum": [
                "trusted_pit",
                "verified_recent",
                "aggregator_reported"
              ]
            },
            "sourceAsOf": {
              "type": "string"
            },
            "attribution": {
              "type": "string",
              "minLength": 1
            },
            "sourceSnapshotDate": {
              "type": "string"
            },
            "ageDays": {
              "type": "integer",
              "minimum": 0
            },
            "freshnessPenalty": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "periodWindow": {
              "type": "object",
              "properties": {
                "periodStart": {
                  "type": "string"
                },
                "periodEnd": {
                  "type": "string"
                },
                "firstQuarter": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "fiscalYear": {
                      "type": "integer"
                    },
                    "issuerFiscalYear": {
                      "type": "integer"
                    },
                    "fiscalQuarter": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 4
                    }
                  },
                  "required": [
                    "fiscalYear",
                    "fiscalQuarter"
                  ]
                },
                "lastQuarter": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "fiscalYear": {
                      "type": "integer"
                    },
                    "issuerFiscalYear": {
                      "type": "integer"
                    },
                    "fiscalQuarter": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 4
                    }
                  },
                  "required": [
                    "fiscalYear",
                    "fiscalQuarter"
                  ]
                },
                "label": {
                  "type": "string",
                  "minLength": 1
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "four_quarters",
                    "annual_roll_forward",
                    "vendor_trailing",
                    "fiscal_year"
                  ]
                },
                "filings": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "accession": {
                        "type": "string",
                        "minLength": 1
                      },
                      "form": {
                        "type": "string",
                        "minLength": 1
                      },
                      "filed": {
                        "type": "string"
                      },
                      "role": {
                        "type": "string",
                        "enum": [
                          "annual",
                          "quarter",
                          "prior_year_quarter"
                        ]
                      },
                      "periodStart": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "periodEnd": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "accession",
                      "form",
                      "filed",
                      "role",
                      "periodStart",
                      "periodEnd"
                    ]
                  }
                }
              },
              "required": [
                "periodStart",
                "periodEnd",
                "firstQuarter",
                "lastQuarter",
                "label",
                "method",
                "filings"
              ]
            },
            "missingReason": {
              "type": "string",
              "enum": [
                "not_disclosed",
                "input_not_disclosed",
                "not_meaningful",
                "not_yet_published",
                "currency_mismatch",
                "share_basis_unproven",
                "not_in_consensus",
                "consensus_basis_mismatch",
                "negative_denominator",
                "implausible_value",
                "fx_unavailable"
              ]
            },
            "missingInputs": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "source",
            "formulaVersion",
            "computedAt",
            "snapshotDate",
            "missingDataHandling",
            "rawSources"
          ]
        }
      },
      "required": [
        "asOfSession",
        "components",
        "items",
        "provenance"
      ]
    },
    "index": {
      "type": "object",
      "properties": {
        "points": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string"
              },
              "value": {
                "type": "number"
              }
            },
            "required": [
              "date",
              "value"
            ]
          }
        }
      },
      "required": [
        "points"
      ]
    },
    "volatility": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "served",
            "not_reliable"
          ]
        },
        "reason": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "insufficient_track_record",
            "loses_to_naive",
            "coverage_outside_band",
            null
          ]
        },
        "asOfSession": {
          "type": "string"
        },
        "horizonSessions": {
          "type": "integer"
        },
        "low": {
          "type": [
            "number",
            "null"
          ]
        },
        "high": {
          "type": [
            "number",
            "null"
          ]
        },
        "naive": {
          "type": "number"
        },
        "score": {
          "type": "object",
          "properties": {
            "scored": {
              "type": "integer"
            },
            "windowForecasts": {
              "type": "integer"
            },
            "meanQlike": {
              "type": [
                "number",
                "null"
              ]
            },
            "meanNaiveQlike": {
              "type": [
                "number",
                "null"
              ]
            },
            "coverage": {
              "type": [
                "number",
                "null"
              ]
            }
          },
          "required": [
            "scored",
            "windowForecasts",
            "meanQlike",
            "meanNaiveQlike",
            "coverage"
          ]
        },
        "provenance": {
          "type": "object",
          "properties": {
            "datasetId": {
              "type": "string",
              "minLength": 1
            },
            "source": {
              "type": "string"
            },
            "formulaVersion": {
              "type": "string"
            },
            "computedAt": {
              "type": "string",
              "format": "date-time"
            },
            "snapshotDate": {
              "type": "string"
            },
            "missingDataHandling": {
              "type": "string",
              "enum": [
                "reported",
                "derived",
                "interpolated",
                "missing"
              ]
            },
            "rawSources": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "sourceLabel": {
              "type": "string",
              "minLength": 1
            },
            "sourceKind": {
              "type": "string",
              "minLength": 1
            },
            "documentUrl": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            },
            "sourceProviderVersion": {
              "type": "string"
            },
            "runId": {
              "type": "string"
            },
            "dataOrigin": {
              "type": "string",
              "enum": [
                "consensus",
                "extrapolated",
                "ai_synthesized",
                "tiered",
                "carried_forward",
                "year_inferred"
              ]
            },
            "forecastConfidenceScore": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            },
            "currencyCode": {
              "type": "string"
            },
            "nativeValue": {
              "type": "number"
            },
            "fxRate": {
              "type": "number"
            },
            "fxAsOf": {
              "type": "string"
            },
            "fxSource": {
              "type": "string"
            },
            "basis": {
              "type": "string",
              "enum": [
                "per_share",
                "aggregate"
              ]
            },
            "priceAsOf": {
              "type": "string"
            },
            "valuationPrice": {
              "type": "number",
              "minimum": 0,
              "exclusiveMinimum": true
            },
            "balanceSheetAsOf": {
              "type": "string"
            },
            "depositaryRatio": {
              "type": "object",
              "properties": {
                "ratio": {
                  "type": "number",
                  "minimum": 0,
                  "exclusiveMinimum": true
                },
                "accessionNo": {
                  "type": "string",
                  "minLength": 1
                },
                "filingDate": {
                  "type": "string"
                },
                "documentUrl": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri"
                }
              },
              "required": [
                "ratio",
                "accessionNo",
                "filingDate",
                "documentUrl"
              ]
            },
            "trustTier": {
              "type": "string",
              "enum": [
                "trusted_pit",
                "verified_recent",
                "aggregator_reported"
              ]
            },
            "sourceAsOf": {
              "type": "string"
            },
            "attribution": {
              "type": "string",
              "minLength": 1
            },
            "sourceSnapshotDate": {
              "type": "string"
            },
            "ageDays": {
              "type": "integer",
              "minimum": 0
            },
            "freshnessPenalty": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "periodWindow": {
              "type": "object",
              "properties": {
                "periodStart": {
                  "type": "string"
                },
                "periodEnd": {
                  "type": "string"
                },
                "firstQuarter": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "fiscalYear": {
                      "type": "integer"
                    },
                    "issuerFiscalYear": {
                      "type": "integer"
                    },
                    "fiscalQuarter": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 4
                    }
                  },
                  "required": [
                    "fiscalYear",
                    "fiscalQuarter"
                  ]
                },
                "lastQuarter": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "fiscalYear": {
                      "type": "integer"
                    },
                    "issuerFiscalYear": {
                      "type": "integer"
                    },
                    "fiscalQuarter": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 4
                    }
                  },
                  "required": [
                    "fiscalYear",
                    "fiscalQuarter"
                  ]
                },
                "label": {
                  "type": "string",
                  "minLength": 1
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "four_quarters",
                    "annual_roll_forward",
                    "vendor_trailing",
                    "fiscal_year"
                  ]
                },
                "filings": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "accession": {
                        "type": "string",
                        "minLength": 1
                      },
                      "form": {
                        "type": "string",
                        "minLength": 1
                      },
                      "filed": {
                        "type": "string"
                      },
                      "role": {
                        "type": "string",
                        "enum": [
                          "annual",
                          "quarter",
                          "prior_year_quarter"
                        ]
                      },
                      "periodStart": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "periodEnd": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "accession",
                      "form",
                      "filed",
                      "role",
                      "periodStart",
                      "periodEnd"
                    ]
                  }
                }
              },
              "required": [
                "periodStart",
                "periodEnd",
                "firstQuarter",
                "lastQuarter",
                "label",
                "method",
                "filings"
              ]
            },
            "missingReason": {
              "type": "string",
              "enum": [
                "not_disclosed",
                "input_not_disclosed",
                "not_meaningful",
                "not_yet_published",
                "currency_mismatch",
                "share_basis_unproven",
                "not_in_consensus",
                "consensus_basis_mismatch",
                "negative_denominator",
                "implausible_value",
                "fx_unavailable"
              ]
            },
            "missingInputs": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "source",
            "formulaVersion",
            "computedAt",
            "snapshotDate",
            "missingDataHandling",
            "rawSources"
          ]
        }
      },
      "required": [
        "status",
        "reason",
        "asOfSession",
        "horizonSessions",
        "low",
        "high",
        "naive",
        "score",
        "provenance"
      ]
    },
    "drivers": {
      "type": "object",
      "properties": {
        "since": {
          "type": [
            "string",
            "null"
          ]
        },
        "components": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "family": {
                "type": "string"
              },
              "stressScore": {
                "type": "number"
              },
              "priorStressScore": {
                "type": "number"
              },
              "change": {
                "type": "number"
              }
            },
            "required": [
              "key",
              "label",
              "family",
              "stressScore",
              "priorStressScore",
              "change"
            ]
          }
        },
        "stories": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "publishedAt": {
                "type": "string"
              },
              "sourceCount": {
                "type": "integer"
              },
              "topics": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "id",
              "title",
              "source",
              "publishedAt",
              "sourceCount",
              "topics"
            ]
          }
        }
      },
      "required": [
        "since",
        "components",
        "stories"
      ]
    },
    "provenance": {
      "type": "object",
      "properties": {
        "datasetId": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string"
        },
        "formulaVersion": {
          "type": "string"
        },
        "computedAt": {
          "type": "string",
          "format": "date-time"
        },
        "snapshotDate": {
          "type": "string"
        },
        "missingDataHandling": {
          "type": "string",
          "enum": [
            "reported",
            "derived",
            "interpolated",
            "missing"
          ]
        },
        "rawSources": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "sourceLabel": {
          "type": "string",
          "minLength": 1
        },
        "sourceKind": {
          "type": "string",
          "minLength": 1
        },
        "documentUrl": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "sourceProviderVersion": {
          "type": "string"
        },
        "runId": {
          "type": "string"
        },
        "dataOrigin": {
          "type": "string",
          "enum": [
            "consensus",
            "extrapolated",
            "ai_synthesized",
            "tiered",
            "carried_forward",
            "year_inferred"
          ]
        },
        "forecastConfidenceScore": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "currencyCode": {
          "type": "string"
        },
        "nativeValue": {
          "type": "number"
        },
        "fxRate": {
          "type": "number"
        },
        "fxAsOf": {
          "type": "string"
        },
        "fxSource": {
          "type": "string"
        },
        "basis": {
          "type": "string",
          "enum": [
            "per_share",
            "aggregate"
          ]
        },
        "priceAsOf": {
          "type": "string"
        },
        "valuationPrice": {
          "type": "number",
          "minimum": 0,
          "exclusiveMinimum": true
        },
        "balanceSheetAsOf": {
          "type": "string"
        },
        "depositaryRatio": {
          "type": "object",
          "properties": {
            "ratio": {
              "type": "number",
              "minimum": 0,
              "exclusiveMinimum": true
            },
            "accessionNo": {
              "type": "string",
              "minLength": 1
            },
            "filingDate": {
              "type": "string"
            },
            "documentUrl": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            }
          },
          "required": [
            "ratio",
            "accessionNo",
            "filingDate",
            "documentUrl"
          ]
        },
        "trustTier": {
          "type": "string",
          "enum": [
            "trusted_pit",
            "verified_recent",
            "aggregator_reported"
          ]
        },
        "sourceAsOf": {
          "type": "string"
        },
        "attribution": {
          "type": "string",
          "minLength": 1
        },
        "sourceSnapshotDate": {
          "type": "string"
        },
        "ageDays": {
          "type": "integer",
          "minimum": 0
        },
        "freshnessPenalty": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "periodWindow": {
          "type": "object",
          "properties": {
            "periodStart": {
              "type": "string"
            },
            "periodEnd": {
              "type": "string"
            },
            "firstQuarter": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "fiscalYear": {
                  "type": "integer"
                },
                "issuerFiscalYear": {
                  "type": "integer"
                },
                "fiscalQuarter": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 4
                }
              },
              "required": [
                "fiscalYear",
                "fiscalQuarter"
              ]
            },
            "lastQuarter": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "fiscalYear": {
                  "type": "integer"
                },
                "issuerFiscalYear": {
                  "type": "integer"
                },
                "fiscalQuarter": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 4
                }
              },
              "required": [
                "fiscalYear",
                "fiscalQuarter"
              ]
            },
            "label": {
              "type": "string",
              "minLength": 1
            },
            "method": {
              "type": "string",
              "enum": [
                "four_quarters",
                "annual_roll_forward",
                "vendor_trailing",
                "fiscal_year"
              ]
            },
            "filings": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "accession": {
                    "type": "string",
                    "minLength": 1
                  },
                  "form": {
                    "type": "string",
                    "minLength": 1
                  },
                  "filed": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "annual",
                      "quarter",
                      "prior_year_quarter"
                    ]
                  },
                  "periodStart": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "periodEnd": {
                    "type": "string"
                  }
                },
                "required": [
                  "accession",
                  "form",
                  "filed",
                  "role",
                  "periodStart",
                  "periodEnd"
                ]
              }
            }
          },
          "required": [
            "periodStart",
            "periodEnd",
            "firstQuarter",
            "lastQuarter",
            "label",
            "method",
            "filings"
          ]
        },
        "missingReason": {
          "type": "string",
          "enum": [
            "not_disclosed",
            "input_not_disclosed",
            "not_meaningful",
            "not_yet_published",
            "currency_mismatch",
            "share_basis_unproven",
            "not_in_consensus",
            "consensus_basis_mismatch",
            "negative_denominator",
            "implausible_value",
            "fx_unavailable"
          ]
        },
        "missingInputs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "source",
        "formulaVersion",
        "computedAt",
        "snapshotDate",
        "missingDataHandling",
        "rawSources"
      ]
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "schemaVersion",
    "market",
    "status",
    "asOfSession",
    "composite",
    "band",
    "formulaVersion",
    "scale",
    "families",
    "components",
    "coverage",
    "missingReasons",
    "attribution",
    "outcomes",
    "analogs",
    "volatility",
    "drivers",
    "provenance",
    "limitations"
  ]
}