Fetches stock prices, company fundamentals from SEC EDGAR, FX/crypto/commodity data from FRED, and computes technical indicators (SMA, EMA, RSI, MACD, Bollinger Bands) without an API key. Optionally uses Alpha Vantage for news sentiment, earnings transcripts, and options data.
Ships in alterlab-finance-economics. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Market and company data for research without any API key: 20+ years of daily prices with splits
and dividends, fundamentals from the companies' own SEC filings, FX, crypto, commodity and macro
series from FRED, and technical indicators computed locally from those prices. Alpha Vantage
itself has no keyless access (its demo key answers only the documented demo symbols, e.g.
GLOBAL_QUOTE for IBM; AAPL returns an "Information" refusal), so its REST API is the optional
extra described further down.
| Scenario | Use Instead |
|---|---|
Macro series by FRED ID (UNRATE, GDPC1), server-side pc1 transforms, ALFRED vintages | alterlab-fred |
| Line items from the actual 10-K/10-Q, XBRL facts, Form 4/13F filings from SEC EDGAR | alterlab-edgartools |
| Treasury debt to the penny, Daily/Monthly Treasury Statements, auction results | alterlab-usfiscaldata |
| Aggregate hedge-fund leverage / SEC Form PF statistics | alterlab-hedgefund-monitor |
| Fitting ARIMA/regression models to the series you downloaded | alterlab-statsmodels |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-fred) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
| Need | Keyless source | Alpha Vantage equivalent (optional key) |
|---|---|---|
| Daily/weekly/monthly OHLCV, 20+ years | Yahoo chart query1.finance.yahoo.com/v8/finance/chart/AAPL?period1=<epoch>&interval=1d&events=div,split | TIME_SERIES_DAILY(_ADJUSTED) |
| Splits and dividends | same response, events.splits / events.dividends | SPLITS, DIVIDENDS |
| SMA, EMA, RSI, MACD, BBANDS | computed locally from the prices (market_data.py rsi / indicators) | SMA, EMA, RSI, MACD*, BBANDS |
| Revenue, net income, EPS, shares | SEC EDGAR: ticker → CIK from efts.sec.gov/LATEST/search-index?keysTyped=MSFT, then data.sec.gov/api/xbrl/companyfacts/CIK##########.json | INCOME_STATEMENT, EARNINGS, OVERVIEW |
| P/E, market cap | latest close ÷ diluted EPS (say which: last fiscal year, or TTM from four 10-Qs); shares outstanding (dei) × close | OVERVIEW PERatio, MarketCapitalization |
| FX | FRED DEXUSEU (USD per EUR), DEXJPUS, DEXUSUK; Yahoo EURUSD=X | FX_DAILY, CURRENCY_EXCHANGE_RATE |
| Crypto | FRED CBBTCUSD (Coinbase BTC-USD); Yahoo BTC-USD | DIGITAL_CURRENCY_DAILY |
| Commodities | FRED DCOILWTICO (WTI), DCOILBRENTEU (Brent), DHHNGSP (Henry Hub gas); Yahoo GC=F (gold futures) | WTI, BRENT, NATURAL_GAS, GOLD_SILVER_* |
| Macro (CPI, GDP, yields) | FRED CSV CPIAUCSL, GDPC1, DGS10 (alterlab-fred has the full keyless toolkit) | CPI, REAL_GDP, TREASURY_YIELD |
| News sentiment | WebSearch/WebFetch the headlines (and the company's 8-Ks), then score each article yourself with a stated rubric (e.g. -1/0/+1, with the quote that justifies it) and label the scores as your own coding | NEWS_SENTIMENT |
| Insider trades | SEC Form 4 (alterlab-edgartools) | INSIDER_TRANSACTIONS |
| Options chains, call transcripts | no verified keyless source; say so and offer the optional key | HISTORICAL_OPTIONS*, EARNINGS_CALL_TRANSCRIPT |
python scripts/market_data.py prices AAPL --start 2000-01-01 --csv aapl.csv # + splits, dividends on stderr
python scripts/market_data.py rsi AAPL --period 14 --start 2024-01-01 # Wilder RSI on adjclose
python scripts/market_data.py indicators SPY --start 2025-01-01 --csv spy_ta.csv # SMA/EMA20, RSI14, MACD, BB(20,2)
python scripts/market_data.py fundamentals MSFT --years 3 # no key, no e-mail
python scripts/market_data.py fred DCOILWTICO --frequency m --aggregation avg --start 2015-01-01
market_data.py needs only the Python standard library; in Python, import prices, rsi,
sma, ema, macd, bbands, fundamentals, fred from it.
Disclose the sources. Yahoo's chart endpoint is unofficial and undocumented: no SLA, it can
change or rate-limit without notice, and Yahoo's terms allow personal use, so say so in the
answer, keep request rates low, and for a publication cross-check prices against a licensed
source (CRSP/WRDS, the exchange). Yahoo's close is already split-adjusted and adjclose is
split- and dividend-adjusted. Use adjclose for returns and indicators; raw historical prints =
close × the product of all later split ratios. SEC fundamentals need no e-mail: efts.sec.gov
and data.sec.gov answer a plain tool User-Agent (checked 2026-11-02), so run fundamentals
straight away and never stop to ask for an address. SEC's fair-access policy asks automated
clients to identify themselves and stay under 10 requests/second, so the script sends the user's
identity when --user-agent, EDGAR_IDENTITY or ALTERLAB_CONTACT_EMAIL is set. (www.sec.gov
itself — company_tickers.json, filings under /Archives — refuses contact-free clients; raw
filings are alterlab-edgartools' job.) XBRL facts are the reported 10-K/10-Q values (cite form
and accession number). FRED series are cited by series ID.
ALPHAVANTAGE_API_KEY)Use it when the user asks for Alpha Vantage by name or needs what only it offers here (news
sentiment scores, transcripts, options). Get a free key at
https://www.alphavantage.co/support/#api-key (premium plans raise limits and unlock the starred
functions) and export ALPHAVANTAGE_API_KEY=.... python scripts/market_data.py av FUNCTION key=value ... calls it and exits with an error naming the variable and the keyless subcommands
when the key is missing. If an Alpha Vantage MCP connector is configured (official server:
https://mcp.alphavantage.co/), prefer it. Run your own code with
uv run --python ">=3.11" --with requests --with pandas python script.py (no install step).
All requests go to:
https://www.alphavantage.co/query?function=FUNCTION_NAME&apikey=YOUR_KEY&...params
import os
import requests
API_KEY = os.environ.get("ALPHAVANTAGE_API_KEY")
BASE_URL = "https://www.alphavantage.co/query"
def av_get(function, **params):
response = requests.get(BASE_URL, params={"function": function, "apikey": API_KEY, **params}, timeout=30)
response.raise_for_status()
data = response.json()
# Alpha Vantage reports errors and limit hits with HTTP 200 + one of these keys
for key in ("Error Message", "Information", "Note"):
if key in data:
raise RuntimeError(f"Alpha Vantage {key}: {data[key]}")
return data
# Stock quote (latest price; end-of-day unless you have a realtime entitlement)
quote = av_get("GLOBAL_QUOTE", symbol="AAPL")
price = quote["Global Quote"]["05. price"]
# Daily OHLCV: compact = latest 100 points (free); outputsize="full" (25+ years) is premium-only
daily = av_get("TIME_SERIES_DAILY", symbol="AAPL", outputsize="compact")
ts = daily["Time Series (Daily)"]
# Company fundamentals
overview = av_get("OVERVIEW", symbol="AAPL")
print(overview["MarketCapitalization"], overview["PERatio"])
# Income statement
income = av_get("INCOME_STATEMENT", symbol="AAPL")
annual = income["annualReports"][0] # Most recent annual
# Crypto price
crypto = av_get("DIGITAL_CURRENCY_DAILY", symbol="BTC", market="USD")
# Economic indicator
gdp = av_get("REAL_GDP", interval="annual")
# Technical indicator
rsi = av_get("RSI", symbol="AAPL", interval="daily", time_period=14, series_type="close")
| Category | Key Functions |
|---|---|
| Time Series (Stocks) | GLOBAL_QUOTE, TIME_SERIES_INTRADAY*, TIME_SERIES_DAILY, TIME_SERIES_DAILY_ADJUSTED*, TIME_SERIES_WEEKLY(_ADJUSTED), TIME_SERIES_MONTHLY(_ADJUSTED), REALTIME_BULK_QUOTES*, MARKET_STATUS, SYMBOL_SEARCH |
| Index Data | INDEX_DATA*, INDEX_CATALOG* |
| Options | REALTIME_OPTIONS*, HISTORICAL_OPTIONS* (plus put-call and volume/OI ratio endpoints) |
| Alpha Intelligence | NEWS_SENTIMENT, EARNINGS_CALL_TRANSCRIPT, TOP_GAINERS_LOSERS, INSIDER_TRANSACTIONS, INSTITUTIONAL_HOLDINGS, ANALYTICS_FIXED_WINDOW, ANALYTICS_SLIDING_WINDOW |
| Fundamentals | OVERVIEW, ETF_PROFILE, INCOME_STATEMENT, BALANCE_SHEET, CASH_FLOW, SHARES_OUTSTANDING, EARNINGS, EARNINGS_ESTIMATES, DIVIDENDS, SPLITS, LISTING_STATUS, EARNINGS_CALENDAR, IPO_CALENDAR |
| Forex (FX) | CURRENCY_EXCHANGE_RATE, FX_INTRADAY*, FX_DAILY, FX_WEEKLY, FX_MONTHLY |
| Crypto | CURRENCY_EXCHANGE_RATE, CRYPTO_INTRADAY*, DIGITAL_CURRENCY_DAILY/WEEKLY/MONTHLY |
| Commodities | WTI, BRENT, NATURAL_GAS, COPPER, ALUMINUM, WHEAT, CORN, COTTON, SUGAR, COFFEE, GOLD_SILVER_SPOT, GOLD_SILVER_HISTORY, ALL_COMMODITIES |
| Economic Indicators | REAL_GDP, REAL_GDP_PER_CAPITA, TREASURY_YIELD, FEDERAL_FUNDS_RATE, CPI, INFLATION, RETAIL_SALES, DURABLES, UNEMPLOYMENT, NONFARM_PAYROLL |
| Technical Indicators | SMA, EMA, MACD*, RSI, BBANDS, STOCH, ADX, ATR, OBV, VWAP*, and 40+ more |
* Premium-only (per the live documentation, checked 2026-09-23). Premium-gated parameters on free functions: outputsize=full on TIME_SERIES_DAILY, and entitlement=realtime|delayed on quotes.
| Parameter | Values | Notes |
|---|---|---|
outputsize | compact / full | compact = last 100 points; full = 20+ years (premium for TIME_SERIES_DAILY) |
datatype | json / csv | Default: json |
interval | 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly | Depends on endpoint |
adjusted | true / false | Adjust for splits/dividends |
entitlement | realtime / delayed | Premium; omit for historical/end-of-day data |
Information (older responses: Note) or Error Message key instead of data, so check the JSON body rather than the status code; the av_get helper above raises on them.try:
data = av_get("GLOBAL_QUOTE", symbol="AAPL")
except RuntimeError as err:
# "Information" usually means the daily quota is used up or the call needs a premium key;
# "Error Message" usually means a bad function/parameter/symbol.
print(err)
Load these for detailed endpoint documentation:
The reference files document the optional Alpha Vantage API. Cite the actual source (Yahoo Finance chart data, SEC EDGAR filing and accession, FRED series ID, or Alpha Vantage) and the retrieval date for any figure used in a paper or report.
Part of the AlterLab Academic Skills suite.
evals/evals.json (opens in a new tab)references/commodities.md (opens in a new tab)references/economic-indicators.md (opens in a new tab)references/forex-crypto.md (opens in a new tab)references/fundamentals.md (opens in a new tab)references/intelligence.md (opens in a new tab)references/options.md (opens in a new tab)references/technical-indicators.md (opens in a new tab)references/time-series.md (opens in a new tab)scripts/market_data.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
stock-prices, financial-data, technical-indicators, sec-edgar, fred, alpha-vantage
/alterlab-finance-economics:alterlab-alpha-vantagefrom alterlab-finance-economics
npx claudepluginhub alterlab-ieu/alterlab-academic-skills --plugin alterlab-finance-economics7 skills in this plugin
/alterlab-denarioRuns a Denario-style end-to-end research pipeline from a described dataset with no API key — Claude itself plays every agent (idea maker and idea critic, methodologist, analyst who writes and runs the analysis code locally, paper writer) and produces idea.md, methods.md, results with figures and a journal-formatted LaTeX paper (APS revtex or plain LaTeX; AAS/JHEP/ICML/NeurIPS/PASJ with the venue's style file). The optional denario package (AstroPilot-AI; AG2 + LangGraph + cmbagent) runs the same stages with its own LLM keys. Use when automating research from a dataset description to a paper, generating hypotheses from a dataset, developing methodology, executing analysis, turning methods and results into a journal manuscript, or driving Denario (get_idea/get_method/get_results/get_paper). Part of the AlterLab Academic Skills suite./alterlab-edgartoolsAccesses, analyzes, and extracts data from SEC EDGAR filings using the edgartools Python library. Use when working with SEC filings, financial statements (income statement, balance sheet, cash flow), XBRL financial data, insider trading (Form 4), institutional holdings (13F), company financials, annual/quarterly reports (10-K, 10-Q), proxy statements (DEF 14A), 8-K current events, company screening by ticker/CIK/industry, multi-period financial analysis, or any SEC regulatory filings. Part of the AlterLab Academic Skills suite./alterlab-fredRetrieves FRED (Federal Reserve Economic Data) time series with no API key — 800,000+ series from 100+ sources (GDP, unemployment, inflation, interest rates, exchange rates, housing, state data) via FRED's public CSV download, with server-side transformations, frequency aggregation, ALFRED real-time vintages and site search; an optional free FRED_API_KEY adds the JSON API (filtered search, categories, releases, tags, GeoFRED maps). Use for macroeconomic analysis, financial research, policy studies, economic forecasting, fetching U.S. or international economic indicators by FRED series ID, and academic research requiring historical economic time series. Part of the AlterLab Academic Skills suite./alterlab-hedgefund-monitorQueries the OFR (Office of Financial Research) Hedge Fund Monitor API for time series on hedge fund size, leverage, counterparties, liquidity, complexity, and risk management, including SEC Form PF aggregated statistics, CFTC Traders in Financial Futures, FICC Sponsored Repo volumes, and FRB SCOOS dealer financing terms (no API key or registration required). Use when working with hedge fund data, systemic risk monitoring, financial stability research, hedge fund leverage or leverage ratios, counterparty concentration, Form PF statistics, repo market data, or OFR financial research data. Part of the AlterLab Academic Skills suite./alterlab-market-researchGenerates comprehensive market research reports (50+ pages) in the style of top consulting firms (McKinsey, BCG, Gartner), with professional LaTeX formatting, extensive visuals via scientific-schematics and generate-image, data gathering through research-lookup, and multi-framework strategic analysis (Porter Five Forces, PESTLE, SWOT, TAM/SAM/SOM, BCG Matrix). Use when producing a market analysis, competitive landscape, industry report, market-sizing study, or consulting-style strategic deliverable. NOT for a single focused, source-cited research question with no report/frameworks (use alterlab-deep-research) or for pulling raw financial data points from an API (use alterlab-alpha-vantage). Part of the AlterLab Academic Skills suite./alterlab-usfiscaldataQueries the U.S. Treasury Fiscal Data API across 50+ datasets and roughly 180 data tables (no API key required) for federal financial data on national debt, government spending, revenue, interest rates, exchange rates, and savings bonds. Use when working with U.S. federal fiscal data, national debt tracking (Debt to the Penny), Daily Treasury Statements, Monthly Treasury Statements, Treasury securities auctions, interest rates on Treasury securities, foreign exchange rates, savings bonds, or any U.S. government financial statistics. Part of the AlterLab Academic Skills suite.2 plugins in one repository ship this exact skill · first indexed Nov 9, 2026
Other plugins' skills for the same job