{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fiatdock-com/json-schema/fiatdock-com-company-financials-schema.json",
  "title": "CompanyFinancials",
  "description": "Paid. Company financials from SEC XBRL.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fiatdock-com-sec-api-openapi.yml#/components/schemas/CompanyFinancials",
  "type": "object",
  "properties": {
    "company": {
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "cik": {
          "type": "string"
        },
        "ticker": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "name",
        "cik",
        "ticker"
      ],
      "description": "The registrant: name, 10-digit CIK, ticker"
    },
    "period": {
      "type": "string",
      "enum": [
        "annual",
        "quarterly"
      ],
      "description": "annual (fiscal years) or quarterly (three-month periods)"
    },
    "currency": {
      "type": "string",
      "description": "USD — only US-dollar facts are read (EPS in USD per share, shares as a count)"
    },
    "periods": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fiscalYear": {
            "type": [
              "number",
              "null"
            ],
            "description": "The company's fiscal year for this period, as its own report states it; null when no report of its own is in the data"
          },
          "fiscalPeriod": {
            "type": [
              "string",
              "null"
            ],
            "description": "FY, or Q1-Q4"
          },
          "periodEnd": {
            "type": "string",
            "description": "The last day of the period (YYYY-MM-DD)"
          },
          "form": {
            "type": [
              "string",
              "null"
            ],
            "description": "The report that covered this period as its own (10-K, 10-Q …)"
          },
          "filed": {
            "type": [
              "string",
              "null"
            ],
            "description": "When that report was filed"
          },
          "accessionNumber": {
            "type": [
              "string",
              "null"
            ]
          },
          "filingUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "latestFiled": {
            "type": [
              "string",
              "null"
            ],
            "description": "The newest filing date among this row's values (a later filing's restated comparative wins)"
          },
          "revenue": {
            "type": [
              "number",
              "null"
            ]
          },
          "netIncome": {
            "type": [
              "number",
              "null"
            ]
          },
          "epsDiluted": {
            "type": [
              "number",
              "null"
            ]
          },
          "totalAssets": {
            "type": [
              "number",
              "null"
            ]
          },
          "totalLiabilities": {
            "type": [
              "number",
              "null"
            ]
          },
          "stockholdersEquity": {
            "type": [
              "number",
              "null"
            ]
          },
          "cashAndEquivalents": {
            "type": [
              "number",
              "null"
            ]
          },
          "operatingCashFlow": {
            "type": [
              "number",
              "null"
            ]
          },
          "sharesOutstanding": {
            "type": [
              "number",
              "null"
            ]
          },
          "concepts": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "For each field, the us-gaap tag this row's value came from (null = not reported)"
          }
        },
        "required": [
          "fiscalYear",
          "fiscalPeriod",
          "periodEnd",
          "form",
          "filed",
          "accessionNumber",
          "filingUrl",
          "latestFiled",
          "revenue",
          "netIncome",
          "epsDiluted",
          "totalAssets",
          "totalLiabilities",
          "stockholdersEquity",
          "cashAndEquivalents",
          "operatingCashFlow",
          "sharesOutstanding",
          "concepts"
        ]
      },
      "description": "The periods, newest first; a value the company did not tag for that period is null"
    },
    "concepts": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "order": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "used": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "order",
          "used"
        ]
      },
      "description": "For each field: the us-gaap tags in fallback order, and the ones this answer used"
    },
    "source": {
      "type": "string",
      "description": "Where the data came from"
    },
    "asOf": {
      "type": "string",
      "description": "ISO time EDGAR was read (cached reads keep their read time)"
    },
    "note": {
      "type": "string",
      "description": "The selection rules, the limits, and the licence"
    },
    "defaulted": {
      "type": "object",
      "properties": {
        "field": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "value": {
          "type": "string"
        },
        "note": {
          "type": "string"
        }
      },
      "required": [
        "field",
        "to",
        "value",
        "note"
      ],
      "description": "Present only when the body named no field: which company the answer is for, and why"
    }
  },
  "required": [
    "company",
    "period",
    "currency",
    "periods",
    "concepts",
    "source",
    "asOf",
    "note"
  ]
}