Below, we look at one of the entries returned. Any data for future earnings dates will have a None value for EPS actual. Let’s test it out with a few sample tickers.Īapl_earnings_hist = si.get_earnings_history("aapl")ĭepending on the ticker, the data returned may include future earnings dates. Each dictionary contains an earnings date along with EPS actual / expected information. get_earnings_history returns a list of dictionaries. The first method we’ll cover is the get_earnings_history function. If you already have it installed and need to upgrade, you can update your version like this: If you need to install yahoo_fin, you can use pip: The latest version now includes functionality to easily pull earnings calendar information for individual stocks or dates. We will be using yahoo_fin, which was recently updated. In this post, we’ll walk through a few examples for getting stock earnings data with Python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |