{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "FMP Key Metrics Schema",
  "description": "Schema for FMP Key Metrics endpoint",
  "version": "1.0.0",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "symbol": {
        "type": "string",
        "description": "Stock symbol"
      },
      "date": {
        "type": "string",
        "description": "Date"
      },
      "period": {
        "type": "string",
        "description": "Period (annual or quarter)"
      },
      "revenuePerShare": {
        "type": ["number", "null"],
        "description": "Revenue per share"
      },
      "netIncomePerShare": {
        "type": ["number", "null"],
        "description": "Net income per share"
      },
      "operatingCashFlowPerShare": {
        "type": ["number", "null"],
        "description": "Operating cash flow per share"
      },
      "freeCashFlowPerShare": {
        "type": ["number", "null"],
        "description": "Free cash flow per share"
      },
      "cashPerShare": {
        "type": ["number", "null"],
        "description": "Cash per share"
      },
      "bookValuePerShare": {
        "type": ["number", "null"],
        "description": "Book value per share"
      },
      "tangibleBookValuePerShare": {
        "type": ["number", "null"],
        "description": "Tangible book value per share"
      },
      "shareholdersEquityPerShare": {
        "type": ["number", "null"],
        "description": "Shareholders equity per share"
      },
      "interestDebtPerShare": {
        "type": ["number", "null"],
        "description": "Interest debt per share"
      },
      "marketCap": {
        "type": ["number", "null"],
        "description": "Market capitalization"
      },
      "enterpriseValue": {
        "type": ["number", "null"],
        "description": "Enterprise value"
      },
      "peRatio": {
        "type": ["number", "null"],
        "description": "PE ratio"
      },
      "priceToSalesRatio": {
        "type": ["number", "null"],
        "description": "Price to sales ratio"
      },
      "pocfratio": {
        "type": ["number", "null"],
        "description": "Price to operating cash flow ratio"
      },
      "pfcfRatio": {
        "type": ["number", "null"],
        "description": "Price to free cash flow ratio"
      },
      "pbRatio": {
        "type": ["number", "null"],
        "description": "Price to book ratio"
      },
      "ptbRatio": {
        "type": ["number", "null"],
        "description": "Price to tangible book ratio"
      },
      "evToSales": {
        "type": ["number", "null"],
        "description": "EV to sales"
      },
      "enterpriseValueOverEBITDA": {
        "type": ["number", "null"],
        "description": "Enterprise value over EBITDA"
      },
      "evToOperatingCashFlow": {
        "type": ["number", "null"],
        "description": "EV to operating cash flow"
      },
      "evToFreeCashFlow": {
        "type": ["number", "null"],
        "description": "EV to free cash flow"
      },
      "earningsYield": {
        "type": ["number", "null"],
        "description": "Earnings yield"
      },
      "freeCashFlowYield": {
        "type": ["number", "null"],
        "description": "Free cash flow yield"
      },
      "debtToEquity": {
        "type": ["number", "null"],
        "description": "Debt to equity"
      },
      "debtToAssets": {
        "type": ["number", "null"],
        "description": "Debt to assets"
      },
      "netDebtToEBITDA": {
        "type": ["number", "null"],
        "description": "Net debt to EBITDA"
      },
      "currentRatio": {
        "type": ["number", "null"],
        "description": "Current ratio"
      },
      "interestCoverage": {
        "type": ["number", "null"],
        "description": "Interest coverage"
      },
      "incomeQuality": {
        "type": ["number", "null"],
        "description": "Income quality"
      },
      "dividendYield": {
        "type": ["number", "null"],
        "description": "Dividend yield"
      },
      "payoutRatio": {
        "type": ["number", "null"],
        "description": "Payout ratio"
      },
      "salesGeneralAndAdministrativeToRevenue": {
        "type": ["number", "null"],
        "description": "Sales, general and administrative to revenue"
      },
      "researchAndDevelopmentToRevenue": {
        "type": ["number", "null"],
        "description": "Research and development to revenue"
      },
      "intangiblesToTotalAssets": {
        "type": ["number", "null"],
        "description": "Intangibles to total assets"
      },
      "capexToOperatingCashFlow": {
        "type": ["number", "null"],
        "description": "Capex to operating cash flow"
      },
      "capexToRevenue": {
        "type": ["number", "null"],
        "description": "Capex to revenue"
      },
      "capexToDepreciation": {
        "type": ["number", "null"],
        "description": "Capex to depreciation"
      },
      "stockBasedCompensationToRevenue": {
        "type": ["number", "null"],
        "description": "Stock-based compensation to revenue"
      },
      "grahamNumber": {
        "type": ["number", "null"],
        "description": "Graham number"
      },
      "roic": {
        "type": ["number", "null"],
        "description": "Return on invested capital"
      },
      "returnOnTangibleAssets": {
        "type": ["number", "null"],
        "description": "Return on tangible assets"
      },
      "grahamNetNet": {
        "type": ["number", "null"],
        "description": "Graham net net"
      },
      "workingCapital": {
        "type": ["number", "null"],
        "description": "Working capital"
      },
      "tangibleAssetValue": {
        "type": ["number", "null"],
        "description": "Tangible asset value"
      },
      "netCurrentAssetValue": {
        "type": ["number", "null"],
        "description": "Net current asset value"
      },
      "investedCapital": {
        "type": ["number", "null"],
        "description": "Invested capital"
      },
      "averageReceivables": {
        "type": ["number", "null"],
        "description": "Average receivables"
      },
      "averagePayables": {
        "type": ["number", "null"],
        "description": "Average payables"
      },
      "averageInventory": {
        "type": ["number", "null"],
        "description": "Average inventory"
      },
      "daysSalesOutstanding": {
        "type": ["number", "null"],
        "description": "Days sales outstanding"
      },
      "daysPayablesOutstanding": {
        "type": ["number", "null"],
        "description": "Days payables outstanding"
      },
      "daysOfInventoryOnHand": {
        "type": ["number", "null"],
        "description": "Days of inventory on hand"
      },
      "receivablesTurnover": {
        "type": ["number", "null"],
        "description": "Receivables turnover"
      },
      "payablesTurnover": {
        "type": ["number", "null"],
        "description": "Payables turnover"
      },
      "inventoryTurnover": {
        "type": ["number", "null"],
        "description": "Inventory turnover"
      },
      "roe": {
        "type": ["number", "null"],
        "description": "Return on equity"
      },
      "capexPerShare": {
        "type": ["number", "null"],
        "description": "Capex per share"
      }
    },
    "required": ["symbol", "date", "period"]
  }
}
