{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/0si-ai/json-schema/0si-ai-fundamental-history-list-schema.json",
  "title": "FundamentalHistoryList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/0si-ai-companies-api-openapi.yml#/components/schemas/FundamentalHistoryList",
  "type": "object",
  "required": [
    "object",
    "data",
    "meta",
    "pagination"
  ],
  "properties": {
    "object": {
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FundamentalSnapshot"
      }
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    },
    "pagination": {
      "$ref": "#/$defs/Pagination"
    }
  },
  "$defs": {
    "AssetSnapshot": {
      "type": "object",
      "properties": {
        "stock_code": {
          "type": "string"
        },
        "company_name": {
          "type": "string"
        },
        "market": {
          "type": "string"
        },
        "sector": {
          "type": "string"
        },
        "listing_status": {
          "type": "string"
        },
        "instrument_key": {
          "type": "string"
        },
        "country_code": {
          "type": "string",
          "enum": [
            "KR",
            "US"
          ]
        },
        "currency": {
          "type": "string"
        },
        "exchange": {
          "type": "string"
        },
        "cik": {
          "type": "string"
        },
        "metrics": {
          "type": "object",
          "additionalProperties": true
        },
        "shares": {
          "type": "object",
          "additionalProperties": true
        },
        "financials": {
          "type": "object",
          "additionalProperties": true
        },
        "quote": {
          "type": "object",
          "additionalProperties": true
        },
        "basis": {
          "type": "object",
          "additionalProperties": true
        },
        "pending_actions": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "additionalProperties": true
    },
    "FundamentalSnapshot": {
      "allOf": [
        {
          "$ref": "#/$defs/AssetSnapshot"
        },
        {
          "type": "object",
          "properties": {
            "snapshot_id": {
              "type": "string",
              "format": "uuid",
              "description": "Cursor for the next page"
            }
          }
        }
      ]
    },
    "Meta": {
      "type": "object",
      "required": [
        "request_id",
        "generated_at",
        "api_version"
      ],
      "properties": {
        "request_id": {
          "type": "string"
        },
        "generated_at": {
          "type": "string",
          "format": "date-time"
        },
        "api_version": {
          "type": "string",
          "const": "v1"
        }
      }
    },
    "Pagination": {
      "type": "object",
      "required": [
        "count",
        "has_more"
      ],
      "properties": {
        "count": {
          "type": "integer"
        },
        "has_more": {
          "type": "boolean"
        },
        "next_cursor": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}