{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bigdata/json-schema/bigdata-company-ratios-ttmresponse-schema.json",
  "title": "CompanyRatiosTTMResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bigdata-financials-ratios-api-openapi.yml#/components/schemas/CompanyRatiosTTMResponse",
  "properties": {
    "results": {
      "items": {
        "$ref": "#/$defs/CompanyRatiosTTM"
      },
      "type": "array",
      "title": "Results"
    },
    "errors": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/ErrorDetail"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Errors"
    },
    "metadata": {
      "anyOf": [
        {
          "$ref": "#/$defs/Metadata"
        },
        {
          "type": "null"
        }
      ]
    },
    "sources": {
      "items": {
        "$ref": "#/$defs/Source"
      },
      "type": "array",
      "title": "Sources",
      "description": "The content catalog sources the response was built from, one entry per source. Empty when no catalog source contributed."
    },
    "usage": {
      "anyOf": [
        {
          "$ref": "#/$defs/Usage"
        },
        {
          "type": "null"
        }
      ],
      "description": "Tokens the request consumed, per content tier. Present only for API keys billed in tokens."
    }
  },
  "type": "object",
  "required": [
    "results"
  ],
  "$defs": {
    "CompanyRatiosTTM": {
      "properties": {
        "rp_entity_id": {
          "type": "string",
          "title": "Rp Entity Id",
          "description": "RavenPack internal entity identifier."
        },
        "target_identifier_id": {
          "type": "string",
          "title": "Target Identifier Id",
          "description": "The target identifier provided in the request, e.g., stock symbol."
        },
        "gross_profit_margin_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Gross Profit Margin Ttm",
          "description": "Gross profit margin TTM."
        },
        "ebit_margin_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ebit Margin Ttm",
          "description": "EBIT margin TTM."
        },
        "ebitda_margin_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ebitda Margin Ttm",
          "description": "EBITDA margin TTM."
        },
        "operating_profit_margin_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Operating Profit Margin Ttm",
          "description": "Operating profit margin TTM."
        },
        "pretax_profit_margin_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Pretax Profit Margin Ttm",
          "description": "Pretax profit margin TTM."
        },
        "continuous_operations_profit_margin_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Continuous Operations Profit Margin Ttm",
          "description": "Continuous operations profit margin TTM."
        },
        "net_profit_margin_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Net Profit Margin Ttm",
          "description": "Net profit margin TTM."
        },
        "bottom_line_profit_margin_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bottom Line Profit Margin Ttm",
          "description": "Bottom line profit margin TTM."
        },
        "receivables_turnover_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Receivables Turnover Ttm",
          "description": "Receivables turnover TTM."
        },
        "payables_turnover_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Payables Turnover Ttm",
          "description": "Payables turnover TTM."
        },
        "inventory_turnover_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Inventory Turnover Ttm",
          "description": "Inventory turnover TTM."
        },
        "fixed_asset_turnover_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fixed Asset Turnover Ttm",
          "description": "Fixed asset turnover TTM."
        },
        "asset_turnover_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Asset Turnover Ttm",
          "description": "Asset turnover TTM."
        },
        "current_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Current Ratio Ttm",
          "description": "Current ratio TTM."
        },
        "quick_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Quick Ratio Ttm",
          "description": "Quick ratio TTM."
        },
        "solvency_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Solvency Ratio Ttm",
          "description": "Solvency ratio TTM."
        },
        "cash_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cash Ratio Ttm",
          "description": "Cash ratio TTM."
        },
        "price_to_earnings_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Price To Earnings Ratio Ttm",
          "description": "Price-to-earnings ratio TTM."
        },
        "price_to_earnings_growth_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Price To Earnings Growth Ratio Ttm",
          "description": "PEG ratio TTM."
        },
        "forward_price_to_earnings_growth_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Forward Price To Earnings Growth Ratio Ttm",
          "description": "Forward PEG ratio TTM."
        },
        "price_to_book_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Price To Book Ratio Ttm",
          "description": "Price-to-book ratio TTM."
        },
        "price_to_sales_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Price To Sales Ratio Ttm",
          "description": "Price-to-sales ratio TTM."
        },
        "price_to_free_cash_flow_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Price To Free Cash Flow Ratio Ttm",
          "description": "Price-to-free-cash-flow ratio TTM."
        },
        "price_to_operating_cash_flow_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Price To Operating Cash Flow Ratio Ttm",
          "description": "Price-to-operating-cash-flow ratio TTM."
        },
        "debt_to_assets_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Debt To Assets Ratio Ttm",
          "description": "Debt-to-assets ratio TTM."
        },
        "debt_to_equity_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Debt To Equity Ratio Ttm",
          "description": "Debt-to-equity ratio TTM."
        },
        "debt_to_capital_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Debt To Capital Ratio Ttm",
          "description": "Debt-to-capital ratio TTM."
        },
        "long_term_debt_to_capital_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Long Term Debt To Capital Ratio Ttm",
          "description": "Long-term debt-to-capital ratio TTM."
        },
        "financial_leverage_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Financial Leverage Ratio Ttm",
          "description": "Financial leverage ratio TTM."
        },
        "working_capital_turnover_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Working Capital Turnover Ratio Ttm",
          "description": "Working capital turnover ratio TTM."
        },
        "operating_cash_flow_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Operating Cash Flow Ratio Ttm",
          "description": "Operating cash flow ratio TTM."
        },
        "operating_cash_flow_sales_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Operating Cash Flow Sales Ratio Ttm",
          "description": "Operating cash flow/sales ratio TTM."
        },
        "free_cash_flow_operating_cash_flow_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Free Cash Flow Operating Cash Flow Ratio Ttm",
          "description": "FCF/OCF ratio TTM."
        },
        "debt_service_coverage_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Debt Service Coverage Ratio Ttm",
          "description": "Debt service coverage ratio TTM."
        },
        "interest_coverage_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Interest Coverage Ratio Ttm",
          "description": "Interest coverage ratio TTM."
        },
        "short_term_operating_cash_flow_coverage_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Short Term Operating Cash Flow Coverage Ratio Ttm",
          "description": "Short-term OCF coverage ratio TTM."
        },
        "operating_cash_flow_coverage_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Operating Cash Flow Coverage Ratio Ttm",
          "description": "Operating cash flow coverage ratio TTM."
        },
        "capital_expenditure_coverage_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Capital Expenditure Coverage Ratio Ttm",
          "description": "CapEx coverage ratio TTM."
        },
        "dividend_paid_and_capex_coverage_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dividend Paid And Capex Coverage Ratio Ttm",
          "description": "Dividend & CapEx coverage ratio TTM."
        },
        "dividend_payout_ratio_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dividend Payout Ratio Ttm",
          "description": "Dividend payout ratio TTM."
        },
        "dividend_yield_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dividend Yield Ttm",
          "description": "Dividend yield TTM."
        },
        "enterprise_value_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Enterprise Value Ttm",
          "description": "Enterprise value TTM."
        },
        "revenue_per_share_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Revenue Per Share Ttm",
          "description": "Revenue per share TTM."
        },
        "net_income_per_share_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Net Income Per Share Ttm",
          "description": "Net income per share TTM."
        },
        "interest_debt_per_share_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Interest Debt Per Share Ttm",
          "description": "Interest debt per share TTM."
        },
        "cash_per_share_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cash Per Share Ttm",
          "description": "Cash per share TTM."
        },
        "book_value_per_share_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Book Value Per Share Ttm",
          "description": "Book value per share TTM."
        },
        "tangible_book_value_per_share_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tangible Book Value Per Share Ttm",
          "description": "Tangible book value per share TTM."
        },
        "shareholders_equity_per_share_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Shareholders Equity Per Share Ttm",
          "description": "Shareholders' equity per share TTM."
        },
        "operating_cash_flow_per_share_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Operating Cash Flow Per Share Ttm",
          "description": "Operating cash flow per share TTM."
        },
        "capex_per_share_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Capex Per Share Ttm",
          "description": "CapEx per share TTM."
        },
        "free_cash_flow_per_share_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Free Cash Flow Per Share Ttm",
          "description": "Free cash flow per share TTM."
        },
        "net_income_per_ebt_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Net Income Per Ebt Ttm",
          "description": "Net income/EBT TTM."
        },
        "ebt_per_ebit_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ebt Per Ebit Ttm",
          "description": "EBT/EBIT TTM."
        },
        "price_to_fair_value_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Price To Fair Value Ttm",
          "description": "Price-to-fair-value ratio TTM."
        },
        "debt_to_market_cap_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Debt To Market Cap Ttm",
          "description": "Debt-to-market-cap ratio TTM."
        },
        "effective_tax_rate_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Effective Tax Rate Ttm",
          "description": "Effective tax rate TTM."
        },
        "enterprise_value_multiple_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Enterprise Value Multiple Ttm",
          "description": "Enterprise value multiple TTM."
        },
        "dividend_per_share_ttm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dividend Per Share Ttm",
          "description": "Dividend per share TTM."
        }
      },
      "type": "object",
      "required": [
        "rp_entity_id",
        "target_identifier_id"
      ],
      "title": "CompanyRatiosTTM"
    },
    "ErrorDetail": {
      "properties": {
        "message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Message"
        }
      },
      "type": "object",
      "title": "ErrorDetail"
    },
    "Metadata": {
      "properties": {
        "request_id": {
          "type": "string",
          "title": "Request Id"
        },
        "timestamp": {
          "type": "string",
          "title": "Timestamp"
        }
      },
      "type": "object",
      "required": [
        "request_id"
      ],
      "title": "Metadata"
    },
    "Source": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id",
          "description": "Content catalog identifier of the source."
        },
        "name": {
          "type": "string",
          "title": "Name",
          "description": "Catalog name of the dataset the data came from."
        }
      },
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "title": "Source",
      "description": "A content catalog source that contributed data to a structured-data response."
    },
    "Usage": {
      "additionalProperties": {
        "type": "integer"
      },
      "type": "object",
      "title": "Usage",
      "description": "Public structured-data usage for a request, aggregated per content tier.\n\nA flat object keyed per content tier, where each key is derived from the\ncontent tier identifier by dropping the ``content-`` prefix and appending\n``_tokens`` (e.g. ``corporate-fundamentals`` ->\n``corporate_fundamentals_tokens``). It is sparse: only tiers with non-zero\ntokens appear, and an absent key means zero tokens for that tier."
    }
  }
}