ahnazary/stockdex
关于
Python Package to Extract and plot Financial Data
商业与金融实测星标增长
- 24小时
- 0
- 7天
- +2
- 15天
- +13
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
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:
Stockdexprovides data from Yahoo Finance and other sources like Digrin, Finviz, Macrotrends and JustETF (for EU ETFs).Historical data:
Stockdexprovides a wide time range of data, e.g. Digrin and Macrotrends sources provide historical data in a span of years.Numerous data categories:
Stockdexprovides financials criteria including financial statements, earnings, dividends, stock splits, list of key executives, major shareholders and more.Plotting:
Stockdexplots 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.mcpbfrom the latest release and double-click it.Claude Code: install the plugin, which requires uv:
/plugin marketplace add ahnazary/stockdex /plugin install stockdex@stockdexOther 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! ❤️
探索相关项目
加载中…