Financial Data Fetcher
Fetches real-time and historical market data, financial news, and fundamental data for trading decisions
By gracefullight
npx skills add gracefullight/stock-checker --skill financial-data-fetcher
Source repository · Upstream listing
Financial Data Fetcher Skill
Provides comprehensive market data access for AI trading agents.
Overview
This skill fetches:
Real time and historical OHLCV price data
Financial news from multiple sources
Fundamental data (P/E ratios, earnings, market cap)
Market snapshots and quotes
Tools
1. get price data
Fetches historical or real time price data for symbols.
Parameters:
symbols (required): List of ticker symbols (e.g., ["AAPL", "MSFT"])
timeframe (optional): "1Min", "5Min", "1Hour", "1Day" (default: "1Day")
start date (optional): Start date in YYYY MM DD format
end date (optional): End date in YYYY MM DD format
limit (optional): Number of bars to fetch (default: 100)
Returns:
Usage:
2. get latest news
Fetches recent financial news for symbols.
Parameters:
symbols (required): List of ticker symbols
limit (optional): Number of news items (default: 10)
sources (optional): News sources to query (default: all)
Returns:
3. get fundamentals
Fetches fundamental data for symbols.
Parameters:
symbols (required): List of ticker symbols
metrics (optional): Specific metrics to fetch (default: all)
Returns:
4. get market snapshot
Gets current market snapshot with real time quotes.
Parameters:
symbols (required): List of ticker symbols
Returns:
Implementation
See scripts/fetch data.py for full implementation using Alpaca API and yfinance.
Rate Limiting
Alpaca API: 200 requests/minute
News API: 25 requests/day (free tier)
Caching: 5 minute cache for real time data
Error Handling
All tools return consistent error format:
Integration Example