Skip to content
المشاريع

حول

Python Package to Extract and plot Financial Data

الأعمال والمالية

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+٢
خلال 15 يومًا
+١٣
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

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

Stockdex logo with three ascending candlesticks

Full documentation: ahnazary.github.io/stockdex

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: Stockdex plots financial data as bar, line and Sankey charts, and multiple plots can be combined in a Dash app.


Installation

Install the package using pip:

pip install stockdex -U

A quick check that the package works:

from stockdex import Ticker

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

Use with Claude

Stockdex ships a local, read-only MCP server with 24 tools so Claude can fetch prices, financial statements, margins, dividends, insider trades, earnings reactions, analyst forecasts, European ETF profiles and more for you.

  • Claude Desktop: download stockdex.mcpb from the latest release and double-click it.

  • Claude Code: install the plugin, which requires uv:

    /plugin marketplace add ahnazary/stockdex
    /plugin install stockdex@stockdex
    
  • Other MCP clients: run uvx --from "stockdex[mcp]" stockdex-mcp.

See Use with Claude for arguments, limits and output format.

Disclaimer

Stockdex is an independent, unofficial open-source project. It is not affiliated with, endorsed by, or sponsored by Yahoo, Nasdaq, Digrin, Macrotrends, JustETF, Finviz or any other data provider it supports. All product names, trademarks and registered trademarks (including "Yahoo" and "Yahoo Finance") belong to their respective owners and are used here only to identify the data sources.

Stockdex does not host, store or redistribute any data. All data belongs to its respective providers, and you are responsible for complying with each provider's terms of use (e.g. Yahoo's Terms of Service). Stockdex is intended for personal, research and educational use only.

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 via Pull Requests or Issues — every contribution helps.

Guidelines

There are no Guidelines as of now :)


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

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…