Ratings and Recommendations
Get the rating of the specified tickers. These scores and recommendations are categorized as follows:
-
An overall rating
-
Discounted Cash Flow (DCF)
-
Return on Equity (ROE)
-
Return on Assets (ROA)
-
Debt to Equity (DE)
-
Price Earnings (PE)
-
Price to Book (PB)
Also known as: analyst consensus, buy sell hold recommendation.
Ratings and Recommendations in Python
get_rating is part of the Toolkit module of the open-source Finance Toolkit. Install it with:
pip install financetoolkit -U
Then call get_rating as shown below.
from financetoolkit import Toolkit
toolkit = Toolkit(["AMZN", "TSLA"], api_key="FINANCIAL_MODELING_PREP_KEY")
rating = toolkit.get_rating()
rating.loc['AMZN'].tail()
Which returns:
| date | Rating | Rating Score | DCF Score | ROE Score | ROA Score | DE Score | PE Score | PB Score |
|---|---|---|---|---|---|---|---|---|
| 2025-09-23 00:00:00 | B+ | 3 | 2 | 5 | 5 | 3 | 2 | 1 |
| 2025-09-24 00:00:00 | B+ | 3 | 2 | 5 | 5 | 3 | 2 | 1 |
| 2025-09-25 00:00:00 | B+ | 3 | 2 | 5 | 5 | 3 | 2 | 1 |
| 2025-09-26 00:00:00 | B+ | 3 | 2 | 5 | 5 | 3 | 2 | 1 |
| 2025-09-29 00:00:00 | B+ | 3 | 2 | 5 | 5 | 3 | 2 | 1 |