Access 10 years of historical earnings dates for S&P 500 and Nasdaq stocks.
Project description
📈 stocks-earnings-dates
A lightweight Python package to query historical earnings release dates for stocks in the S&P 500 and top 100 Nasdaq.
It provides access to the last 10 years of earnings dates (or fewer, if the company is more recently listed).
📦 Installation
Install the package via pip:
pip install stocks-earnings-dates
What’s Inside?
This package uses a built-in SQLite database with over 24,000+ earnings dates collected from public sources, organized by stock ticker.
You can easily:
- Get all historical earnings dates for a given stock.
- List all supported tickers.
Usage
from stocks_earnings_dates import get_earnings, list_all_tickers
# Get earnings dates for a specific ticker
dates = get_earnings("AAPL")
print(dates)
# Output: ['2024-08-01', '2024-05-02', ..., '2014-07-22']
# List all tickers available in the database
tickers = list_all_tickers()
print(tickers)
📁 Data Source
The earnings database was compiled from publicly accessible financial websites.
The CSV was cleaned, normalized and converted to a bundled SQLite database for fast and offline access.
🚧 Limitations
- This is a static dataset. Updates are not (yet) automated.
- Only dates are available — no earnings surprises or results.
📬 Future Plans
- Add CLI interface to query from terminal.
- Automatically update the database monthly from trusted sources.
👤 Author
Made by Albert Pérez
GitHub: AlbertPerez7
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stocks_earnings_dates-0.1.0.tar.gz.
File metadata
- Download URL: stocks_earnings_dates-0.1.0.tar.gz
- Upload date:
- Size: 168.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f3cbb5f512472ee7274b8c7ab262bf526a4e68fea25ff02b9c6630bc22c06ac
|
|
| MD5 |
bd36b4f3664b2977779d2b5b102395a8
|
|
| BLAKE2b-256 |
6d80d01db99eabeedd4a6877302e4da4d6fa9e88f2bf7ae4b92a4a1419fb7bb2
|
File details
Details for the file stocks_earnings_dates-0.1.0-py3-none-any.whl.
File metadata
- Download URL: stocks_earnings_dates-0.1.0-py3-none-any.whl
- Upload date:
- Size: 166.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0091bef69c652a436948264e42e94066041a1b9437af93fdac746d91325924af
|
|
| MD5 |
07044668f6fb620af8ceb0662db8fae0
|
|
| BLAKE2b-256 |
878ff5c3915b66c06ecf490fa5cee5df81c67a6f9037d615998ba29535eaf9a8
|