{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/v3.CompanyProfile",
  "title": "v3.CompanyProfile",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/roic-ai-openapi.json#/components/schemas/v3.CompanyProfile",
  "additionalProperties": false,
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "const": "v3.reference.company_profile",
      "type": "string"
    },
    "primary_symbol": {
      "type": "string"
    },
    "company_symbols": {
      "minItems": 1,
      "description": "Qualified symbols for every listing of the company, with the company's primary listing first.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "exchange": {
      "type": "string"
    },
    "mic": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "exchange_name": {
      "description": "Normalized English display name of the primary listing's exchange, or null when unavailable.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "exchange_local_name": {
      "description": "Local or venue-specific name of the primary listing's exchange, or null when unavailable.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "short_description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "ai_description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "sector": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "industry": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "fundamental_currency": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "cik": {
      "anyOf": [
        {
          "pattern": "^\\d{10}$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "cusip": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "isin": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "ceo": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "founded": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "website": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "phone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "number_of_employees": {
      "anyOf": [
        {
          "anyOf": [
            {
              "format": "integer",
              "default": 0,
              "type": "string"
            },
            {
              "type": "integer"
            }
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "number_of_shareholders": {
      "anyOf": [
        {
          "anyOf": [
            {
              "format": "integer",
              "default": 0,
              "type": "string"
            },
            {
              "type": "integer"
            }
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "address": {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "line1": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "city": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "state": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "postal_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "country": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "country_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "line1",
        "city",
        "state",
        "postal_code",
        "country",
        "country_code"
      ]
    },
    "ipo": {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "date": {
          "anyOf": [
            {
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "price_usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "amount_raised_usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "date",
        "price_usd",
        "amount_raised_usd"
      ]
    },
    "reporting_calendar": {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "current_period": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "current_period_end": {
          "anyOf": [
            {
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "current_fiscal_year": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "current_fiscal_year_end": {
          "anyOf": [
            {
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "reports_per_year": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "format": "integer",
                  "default": 0,
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "current_period",
        "current_period_end",
        "current_fiscal_year",
        "current_fiscal_year_end",
        "reports_per_year"
      ]
    },
    "earnings_schedule": {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "last_release_date": {
          "anyOf": [
            {
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "next_release_date": {
          "anyOf": [
            {
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "last_release_time": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "next_release_time": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "last_release_date",
        "next_release_date",
        "last_release_time",
        "next_release_time"
      ]
    }
  },
  "required": [
    "id",
    "object",
    "primary_symbol",
    "company_symbols",
    "exchange",
    "mic",
    "exchange_name",
    "exchange_local_name",
    "name",
    "description",
    "short_description",
    "ai_description",
    "sector",
    "industry",
    "fundamental_currency",
    "cik",
    "cusip",
    "isin",
    "ceo",
    "founded",
    "website",
    "phone",
    "number_of_employees",
    "number_of_shareholders",
    "address",
    "ipo",
    "reporting_calendar",
    "earnings_schedule"
  ]
}