Skip to main content

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 all stocks in the S&P 500 and in the 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 earnings expected eps vs actual eps to see the % of surprises that every earnigs had
  • Automatically update the database monthly from trusted sources.

Author

Made by Albert Pérez
GitHub: AlbertPerez7


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stocks_earnings_dates-0.1.1.tar.gz (168.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stocks_earnings_dates-0.1.1-py3-none-any.whl (166.9 kB view details)

Uploaded Python 3

File details

Details for the file stocks_earnings_dates-0.1.1.tar.gz.

File metadata

  • Download URL: stocks_earnings_dates-0.1.1.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

Hashes for stocks_earnings_dates-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5fccca31ed2bf385a23770767cbb2054ed38d2eac770b9ffc9e86ffab61e849e
MD5 c69dfc8625f34cdf810dc8efe7fbbce3
BLAKE2b-256 60f113e94206666a0d35a10d57abc6a768762fc6ae463879e7764128c13f6f5b

See more details on using hashes here.

File details

Details for the file stocks_earnings_dates-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for stocks_earnings_dates-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7cf7d4576609bde5ac6a28c2fcb9f952a2401c0687ffa275629cbaa6905130e
MD5 bc4f4543f535265599b35018eebbe926
BLAKE2b-256 abaa0ed259e294414eab20d41c26b55c75525d973eb10de0945d5cfa5cdfb24f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page