{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bolsai/json-schema/bolsai-financials-response-schema.json",
  "title": "FinancialsResponse",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bolsai-financials-api-openapi.yml#/components/schemas/FinancialsResponse",
  "properties": {
    "ticker": {
      "type": "string",
      "title": "Ticker"
    },
    "cvm_code": {
      "type": "string",
      "title": "Cvm Code"
    },
    "report_type": {
      "type": "string",
      "title": "Report Type"
    },
    "count": {
      "type": "integer",
      "title": "Count"
    },
    "statements": {
      "items": {
        "$ref": "#/$defs/FinancialLineItem"
      },
      "type": "array",
      "title": "Statements"
    }
  },
  "type": "object",
  "required": [
    "ticker",
    "cvm_code",
    "report_type",
    "count",
    "statements"
  ],
  "$defs": {
    "FinancialLineItem": {
      "properties": {
        "reference_date": {
          "type": "string",
          "format": "date",
          "title": "Reference Date"
        },
        "statement_type": {
          "type": "string",
          "title": "Statement Type"
        },
        "account_code": {
          "type": "string",
          "title": "Account Code"
        },
        "account_name": {
          "type": "string",
          "title": "Account Name"
        },
        "value": {
          "type": "number",
          "title": "Value"
        }
      },
      "type": "object",
      "required": [
        "reference_date",
        "statement_type",
        "account_code",
        "account_name",
        "value"
      ],
      "title": "FinancialLineItem"
    }
  }
}