get_financial_ratios
Financial ratios · salt-okunur
Deterministic ratios with the formula stated per item: margins, current/cash ratio,
debt-to-equity, financial debt-to-equity, net debt (/EBITDA), interest coverage, ROA, ROE,
asset turnover, equity ratio. Flow-based ratios on quarterly data use trailing-12-month sums.
A ratio whose inputs are missing returns value null with a reason — never a guess.
Parametreler
| ad | tip | zorunlu | varsayılan | açıklama |
|---|---|---|---|---|
ticker |
string |
— | — | BIST ticker (Yahoo statements) |
disclosure_id |
integer |
— | — | KAP FR disclosure id to compute ratios on the official filing (TTM-based ratios need 4 quarters and are reported as unavailable) |
period |
string |
— | — | '2026Q2' or '2025'; default latest (for a KAP filing: the cumulative current period) |
frequency |
enum: annual | quarterly |
— | "quarterly" |
|
ratios |
array<enum: gross_margin | operating_margin | ebitda_margin | net_margin | current_ratio | cash_ratio | debt_to_equity | financial_debt_to_equity | net_debt | net_debt_to_ebitda | interest_coverage | roa | roe | asset_turnover | equity_ratio> |
— | — | Subset; default all |
include_market_multiples |
boolean |
— | true |
Add P/E, P/B, EV/EBITDA, dividend yield, market cap from Yahoo quote data |
Girdi şeması
{
"properties": {
"ticker": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "BIST ticker (Yahoo statements)",
"title": "Ticker"
},
"disclosure_id": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "KAP FR disclosure id to compute ratios on the official filing (TTM-based ratios need 4 quarters and are reported as unavailable)",
"title": "Disclosure Id"
},
"period": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "'2026Q2' or '2025'; default latest (for a KAP filing: the cumulative current period)",
"title": "Period"
},
"frequency": {
"default": "quarterly",
"enum": [
"annual",
"quarterly"
],
"title": "Frequency",
"type": "string"
},
"ratios": {
"anyOf": [
{
"items": {
"enum": [
"gross_margin",
"operating_margin",
"ebitda_margin",
"net_margin",
"current_ratio",
"cash_ratio",
"debt_to_equity",
"financial_debt_to_equity",
"net_debt",
"net_debt_to_ebitda",
"interest_coverage",
"roa",
"roe",
"asset_turnover",
"equity_ratio"
],
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Subset; default all",
"title": "Ratios"
},
"include_market_multiples": {
"default": true,
"description": "Add P/E, P/B, EV/EBITDA, dividend yield, market cap from Yahoo quote data",
"title": "Include Market Multiples",
"type": "boolean"
}
},
"title": "get_financial_ratiosArguments",
"type": "object"
}
Çıktı şeması
{
"additionalProperties": true,
"title": "get_financial_ratiosDictOutput",
"type": "object"
}