New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

stockdex

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stockdex

A package to get stock data from Yahoo Finance

pipPyPI
Version
1.0.8
Maintainers
1

PyPI version Code style: black Code style: isort flake8 ruff

For full documentation, visit here

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: Stockdex provides data from Yahoo Finance and other sources like Digrin, Finviz, Macrotrends and JustETF (for EU ETFs).

  • Historical data: Stockdex provides a wide time range of data, e.g. Digrin and Macrotrends sources provide historical data in a span of years.

  • Numerous data categories: Stockdex provides financials criteria including financial statements, earnings, dividends, stock splits, list of key executives, major shareholders and more.

  • plotting capabilities (new feature): Stockdex provides plotting financial data using bar, line, and sankey plots. Multiple plots can be combined in dash app.


Installation

Install the package using pip:

pip install stockdex -U

do a simple test to verify the package is installed correctly:

from stockdex import Ticker

ticker = Ticker(ticker="NVDA")
result = ticker.yahoo_api_income_statement(frequency='quarterly')

License

This project is licensed under the MIT License.

Contributing

Stockdex is an open-source project, and contributions of any kind are welcome and appreciated!
Whether you want to report a bug, suggest a new feature, improve documentation, or submit code — every contribution helps.

How to contribute

  • Issues
    Found a bug or have an idea for an improvement? Please open an issue on GitHub and describe it clearly.

  • Pull Requests (PRs)
    If you’d like to fix something directly, fork the repository and open a PR.
    Please include a short description of the change and reference any related issues.

Guidelines

There are no Guidelines as of now :)

❤️ Thank you in advance for your contribution! ❤️

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts