-
Notifications
You must be signed in to change notification settings - Fork 0
APIs and Data Sources
Anupam Sinha edited this page Sep 8, 2026
·
1 revision
| API | Role | Key? | Limits / gotchas |
|---|---|---|---|
Yahoo Finance (yfinance) |
primary: quotes, history, fundamentals, news | none | free; bursts can throttle — retry after a pause |
| Alpha Vantage | optional alpha_vantage_overview
|
ALPHA_VANTAGE_API_KEY in .env
|
free tier ~25 req/day, 1 req/sec; NSE/BSE symbols return empty data — US symbols only (verified live) |
| MongoDB | decision journal | none (local) |
MONGODB_URI / MONGODB_DB_NAME env vars; auto JSON-file fallback |
-
dividendYieldis now in percent (e.g.0.46= 0.46%). Do not multiply by 100 — earlier versions of this server did and showed impossible 46% yields. - Some fields can be
NaN— everything passes through_safe()which converts NaN/inf tonull. -
yf.downloadof a single ticker may return a DataFrame, not a Series — always normalize. - Symbols with no data return all-NaN columns — guard before indexing.
Alpha Vantage deprecated Indian fundamentals for free keys. Yahoo Finance covers
NSE (.NS) and BSE (.BO) for prices, fundamentals and news with no key — so it
carries everything except the optional alpha_vantage_overview tool.
A dedicated NSE news-sentiment source would upgrade analyst_reports' sentiment
block from headlines-only to scored sentiment. No free reliable provider identified yet.
🧠 Maintained by FoodForBrains — educational analysis only, not financial advice.
🧠 FoodForBrains
stock_market_mcp
- Home
- Setup-and-Installation
- Tools-Reference
- Architecture
- APIs-and-Data-Sources
- Decision-Journal
- Backtesting
- TradingAgents-Inspiration
- Troubleshooting
- FAQ
Educational analysis — not financial advice.