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.
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
Not loaded · from alterlab-writing-tools
Claude Code won't load this skill
It ships in alterlab-writing-tools at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Generated from the plugin's indexed repository (alterlab-ieu/alterlab-academic-skills) — no native marketplace selected
npx claudepluginhub p/alterlab-ieu-alterlab-writing-tools241 skills in this plugin
/alterlab-abm-mesaBuilds agent-based models of social systems with Mesa 3 — the current AgentSet API (model.agents.shuffle_do('step'), auto-assigned unique_id, mandatory super().__init__(rng=...)), cell spaces (mesa.discrete_space OrthogonalMooreGrid / classic mesa.space grids), the DataCollector, batch_run parameter sweeps, and SolaraViz — for emergence, segregation, diffusion, opinion dynamics, and cooperation models. It uses the Mesa 3.x API (the old mesa.time schedulers like RandomActivation are removed) and treats the model as a generative theory to be validated, not just run. Use when the request mentions an agent-based model, Mesa, simulating interacting agents, or emergent macro behavior from micro rules. For discrete-event (queueing/process) simulation prefer alterlab-simpy; for reinforcement learning prefer alterlab-stable-baselines3. Part of the AlterLab Academic Skills suite./alterlab-academic-careerPrepares academic career documents and professional-development materials for faculty and researchers. Use when drafting academic CVs, research statements, teaching philosophies, diversity statements, faculty-position cover letters, tenure dossiers, promotion narratives, academic portfolios, or mentorship statements, and when planning conference-networking strategy, building academic web presence, setting up ORCID profiles, or understanding impact metrics. 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