PyPI version Code style: blackCode style: isort flake8 ruff

Stock Data Extractor (Stockdex)

Stockdex is a Python package that provides a simple interface to get financial data from various sources in pandas DataFrames and Plotly figures.

Advantages of Stockdex over similar packages

  • Various data sources: Data from various sources like Yahoo Finance, Digrin, Finviz, Macrotrends and JustETF (for EU ETFs).

  • Historical data: A wide time range of historical data is available. For example, Digrin and Macrotrends sources provide historical data over many years.

  • Numerous data categories: Various financial criteria including financial statements, earnings, dividends, stock splits, list of key executives, major shareholders, and more are available.

  • Plotting capabilities: Plotting financial data using bar, line, and Sankey plots is supported to some extent. Multiple plots can be combined into an interactive Dash app.

Installation

Install the package using pip:

pip install stockdex -U

Walkthrough

This documentation provides a walkthrough of the main features of the package.

You can check out Data Sources section for details on available data sources and their functionalities with examples.

You can also check out Plots and figures section for details on plotting functions with examples.