Skip to main content

Get Key Ratiosโ€‹

API to retrieve the key financial ratios for a company identified by its ISIN. Each ratio includes the company's current value alongside a sector benchmark value, enabling relative valuation comparisons. Ratios returned include P/E, P/B, ROA, ROE, ROCE, and EV/EBITDA.

Path Parametersโ€‹

NameRequiredTypeDescription
isintruestringInternational Securities Identification Number (ISIN) of the company. Example: INE002A01018.

Requestโ€‹

curl --location 'https://api.upstox.com/v2/fundamentals/INE002A01018/key-ratios' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your_access_token}'

For additional samples in various languages, please refer to the Sample code section on this page.

Responses

Response Bodyโ€‹

{
"status": "success",
"data": [
{ "name": "P/E", "company_value": "20.15", "sector_value": "12.46" },
{ "name": "P/B", "company_value": "2.13", "sector_value": "1.53" },
{ "name": "ROA", "company_value": "4.39%", "sector_value": "7.54%" },
{ "name": "ROE", "company_value": "8.94%", "sector_value": "16.46%" },
{ "name": "ROCE", "company_value": "10.39%", "sector_value": "16.9%" },
{ "name": "EV/EBITDA", "company_value": "10.25", "sector_value": "6.94" }
]
}
NameTypeDescription
statusstringA string indicating the outcome of the request. Possible values: success, error.
dataarrayList of key financial ratio entries.
data[].namestringName of the financial ratio. Possible values: P/E, P/B, ROA, ROE, ROCE, EV/EBITDA.
data[].company_valuestringCurrent value of the ratio for the requested company.
data[].sector_valuestringSector benchmark value for the same ratio.

Ratio definitions:

RatioDescription
P/EPrice-to-Earnings ratio โ€” market price per share divided by earnings per share.
P/BPrice-to-Book ratio โ€” market price per share divided by book value per share.
ROAReturn on Assets โ€” net income as a percentage of total assets.
ROEReturn on Equity โ€” net income as a percentage of shareholders' equity.
ROCEReturn on Capital Employed โ€” EBIT as a percentage of capital employed.
EV/EBITDAEnterprise Value divided by Earnings Before Interest, Taxes, Depreciation, and Amortisation.

Sample Codeโ€‹

import requests

url = 'https://api.upstox.com/v2/fundamentals/INE002A01018/key-ratios'
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer {your_access_token}'
}

response = requests.get(url, headers=headers)
print(response.json())
Loading...