alpha-vantage

alpha-vantage is a skill for Claude Code, Codex from LeonChaoX/qinyan-academic-skills. It costs 126 tokens per session (1,591 once invoked), scanned A, a copy of alpha-vantage, MIT.

A Python skill for retrieving live and historical financial data through the Alpha Vantage API, including stocks, currencies, cryptocurrencies, commodities, economic indicators, and technical indicators.

In plain words
What is it for?
Use it to fetch prices, trading history, company financial statements, earnings, options data, and economic figures for analysis or applications.
Why use it?
It avoids building separate data connections for common market and economic information. You still need an Alpha Vantage API key.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to fetch prices, trading history, company financial statements, earnings, options data, and economic figures for analysis or applications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leonchaox/qinyan-academic-skills/alpha-vantage
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LeonChaoX/qinyan-academic-skills --skill alpha-vantage
Clone the repo
git clone --depth 1 https://github.com/LeonChaoX/qinyan-academic-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for alpha-vantage

README.md
[![agentmods](https://agentmods.dev/badge/skills/leonchaox/qinyan-academic-skills/alpha-vantage/github.svg)](https://agentmods.dev/skills/leonchaox/qinyan-academic-skills/alpha-vantage)
Your own site
<a href="https://agentmods.dev/skills/leonchaox/qinyan-academic-skills/alpha-vantage"><img src="https://agentmods.dev/badge/skills/leonchaox/qinyan-academic-skills/alpha-vantage/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for alpha-vantage

Your own site · 80×15
<a href="https://agentmods.dev/skills/leonchaox/qinyan-academic-skills/alpha-vantage"><img src="https://agentmods.dev/badge/skills/leonchaox/qinyan-academic-skills/alpha-vantage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,591 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00126 $0.01591
Opus 5 $0.00063 $0.00796
Sonnet 5 $0.00025 $0.00318
Haiku 4.5 $0.00013 $0.00159

Measured 9d ago against content hash 9510269180a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

alpha-vantage scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

response = requests.get(BASE_URL, params={"function": function, "apikey": API_KEY, **params})
Origin

This is a copy

86% identical to alpha-vantage — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/15-金融与经济数据/alpha-vantage/SKILL.md · 143 lines

How it starts

The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Alpha Vantage — Financial Market Data

Access 20+ years of global financial data: equities, options, forex, crypto, commodities, economic indicators, and 50+ technical indicators.

API Key Setup (Required)

  1. Get a free key at https://www.alphavantage.co/support/#api-key (premium plans available for higher rate limits)
  2. Set as environment variable:
export ALPHAVANTAGE_API_KEY="your_key_here"

Installation

uv pip install requests pandas

Base URL & Request Pattern

All requests go to:

https://www.alphavantage.co/query?function=FUNCTION_NAME&apikey=YOUR_KEY&...params
import requests
import os

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})
    return response.json()

Quick Start Examples

# Stock quote (latest price)
quote = av_get("GLOBAL_QUOTE", symbol="AAPL")
price = quote["Global Quote"]["05. price"]

# Daily OHLCV
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")

API Categories

Category Key Functions
Time Series (Stocks) GLOBAL_QUOTE, TIME_SERIES_INTRADAY, TIME_SERIES_DAILY, TIME_SERIES_WEEKLY, TIME_SERIES_MONTHLY
Options REALTIME_OPTIONS, HISTORICAL_OPTIONS
Alpha Intelligence NEWS_SENTIMENT, EARNINGS_CALL_TRANSCRIPT, TOP_GAINERS_LOSERS, INSIDER_TRANSACTIONS, ANALYTICS_FIXED_WINDOW
Fundamentals OVERVIEW, ETF_PROFILE, INCOME_STATEMENT, BALANCE_SHEET, CASH_FLOW, EARNINGS, DIVIDENDS, SPLITS
Forex (FX) CURRENCY_EXCHANGE_RATE, FX_INTRADAY, FX_DAILY, FX_WEEKLY, FX_MONTHLY
Crypto CURRENCY_EXCHANGE_RATE, CRYPTO_INTRADAY, DIGITAL_CURRENCY_DAILY
Commodities GOLD (WTI spot), BRENT, NATURAL_GAS, COPPER, WHEAT, CORN, COFFEE, ALL_COMMODITIES
Economic Indicators REAL_GDP, TREASURY_YIELD, FEDERAL_FUNDS_RATE, CPI, INFLATION, UNEMPLOYMENT, NONFARM_PAYROLL
Technical Indicators SMA, EMA, MACD, RSI, BBANDS, STOCH, ADX, ATR, OBV, VWAP, and 40+ more

Read the full file on GitHub · 143 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 143 lines · 126 tokens per session scan A 9510269180a7

Subscribe to this mod's changes

alpha-vantage is a skill published in the GitHub repository LeonChaoX/qinyan-academic-skills (883 stars, last pushed 1mo ago), licensed MIT. It adds 126 tokens to every session and 1,591 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 86% identical to alpha-vantage, differing in 3 lines, and is treated as a copy.

Related

Other skills, from other repositories

stock-analyzer

A comprehensive stock deep analysis tool that combines real-time quotes, fundamental metrics, technical indicators, and growth analysis into a single professional report. Supports A-share, US stocks, HK stocks. Generates detailed investment recommendations with risk assessment and actionable trading strategies.

netease-youdao/LobsterAI · 53 tokens

stock-announcements

A tool guide for fetching official announcements from companies listed on China’s A-share stock markets.

netease-youdao/LobsterAI · 79 tokens

sn-search-finance

A finance research tool for looking up stocks, indexes, funds, financial statements, market prices, charts over time, company filings, and financial news across global, Hong Kong, and Chinese markets.

OpenSenseNova/SenseNova-Skills · 57 tokens

sn-search-year-report

A workflow for finding free official annual reports and periodic filings from public companies and bond issuers.

OpenSenseNova/SenseNova-Skills · 37 tokens

stock-explorer

A Yahoo Finance (yfinance) powered financial analysis tool. Get real-time quotes, generate technical indicator reports (RSI/MACD/Bollinger/VWAP/ATR), summarize fundamentals, and run a one-shot report that outputs a text summary.

netease-youdao/LobsterAI · 55 tokens

stripe-link-wallet

Agent wallet on the Stripe Link CLI (link-cli). Connect the wallet, then buy, purchase and pay for things on the user's behalf via approved spend requests, one-time-use cards, and 402 / Machine Payment Protocol (MPP) payments.

vellum-ai/vellum-assistant · 52 tokens