alpaca-broker-market-data

alpaca-broker-market-data is a skill for Claude Code, Codex from alpacahq/alpaca-skills. It costs 80 tokens per session (3,022 once invoked), scanned A, original, Apache-2.0.

A developer guide for Alpaca’s US stock market-data services, which provide current and historical prices, trades, quotes, company news, and asset information.

In plain words
What is it for?
Use it when building stock charts, quote displays, price feeds, historical-data queries, asset lookups, or real-time WebSocket streams.
Why use it?
It explains which Alpaca service and connection method to use for each kind of market data, including live updates.

Skill for Claude CodeCodex

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

Good fit Use it when building stock charts, quote displays, price feeds, historical-data queries, asset lookups, or real-time WebSocket streams.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alpacahq/alpaca-skills/market-data
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 alpacahq/alpaca-skills --skill market-data
Clone the repo
git clone --depth 1 https://github.com/alpacahq/alpaca-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 alpaca-broker-market-data

README.md
[![agentmods](https://agentmods.dev/badge/skills/alpacahq/alpaca-skills/market-data/github.svg)](https://agentmods.dev/skills/alpacahq/alpaca-skills/market-data)
Your own site
<a href="https://agentmods.dev/skills/alpacahq/alpaca-skills/market-data"><img src="https://agentmods.dev/badge/skills/alpacahq/alpaca-skills/market-data/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 alpaca-broker-market-data

Your own site · 80×15
<a href="https://agentmods.dev/skills/alpacahq/alpaca-skills/market-data"><img src="https://agentmods.dev/badge/skills/alpacahq/alpaca-skills/market-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,022 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found 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.00080 $0.03022
Opus 5.5 $0.00032 $0.01209
Sonnet 5.5 $0.00016 $0.00604
Haiku 4.5 $0.00008 $0.00302

Measured 7d ago against content hash 5ab38c2f92e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

alpaca-broker-market-data scanned grade A with 0 findings 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 7d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/broker-api/market-data/SKILL.md · 124 lines

How it starts

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

Alpaca Market Data API — Stocks (REST + WebSocket)

Real-time and historical US equity data. Unlike the Broker endpoints, market data lives on its own host with its own auth, and the real-time feed is WebSocket, not SSE.

Read alpaca-broker-integration first. Assets/clock/calendar live on the Trading API host; everything else here is the Market Data API host.

Reference

  • Guides: https://docs.alpaca.markets/docs/historical-stock-data, https://docs.alpaca.markets/docs/streaming-market-data
  • Live schema: alpaca-docs MCP → list-endpoints title "Market Data API"

0. Hosts & auth

Surface Host
Market data REST https://data.alpaca.markets (sandbox data.sandbox.alpaca.markets)
Market data WebSocket wss://stream.data.alpaca.markets/{version}/{feed}
Assets / clock / calendar https://api.alpaca.markets (Trading API) — paper: paper-api.alpaca.markets

Auth: Broker partners authenticate with a client-credentials access token (POST https://authx.alpaca.markets/v1/oauth2/token — flow in alpaca-broker-integration): send Authorization: Bearer <token> on REST and on the WS handshake, or authenticate over WS with {"action":"auth","key":"access_token","secret":"<token>"} (the literal string access_token is the key). Tokens are valid 15 minutes — cache and refresh one, don't mint per call. Key/secret (APCA-API-* headers, or {"action":"auth","key":"…","secret":"…"} on WS) is the Trading API path and the documented legacy Broker path.

1. REST endpoints

Path Purpose
GET /v2/stocks/snapshots?symbols=… · GET /v2/stocks/{symbol}/snapshot Snapshot (latest trade/quote + bars)
GET /v2/stocks/bars?symbols=… · GET /v2/stocks/{symbol}/bars Historical OHLCV bars
GET /v2/stocks/bars/latest · …/{symbol}/bars/latest Latest bar(s)
GET /v2/stocks/trades[/latest] · GET /v2/stocks/quotes[/latest] Historical / latest trades & quotes
GET /v2/stocks/auctions Opening/closing auctions
GET /v2/stocks/meta/conditions/{trade|quote} · /meta/exchanges Code lookups
GET /v1beta1/news?symbols=… News (max limit 50)
GET /v1beta1/screener/stocks/most-actives · /screener/{stocks|crypto}/movers Screeners
GET /v2/assets (Trading API host) · GET /v1/assets (Broker API host) Asset master / tradability
GET /v2/clock · GET /v2/calendar (Trading API host) Market hours

Read the full file on GitHub · 124 lines

Files

What ships with it

1 file 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. 7d ago Changed 5ab38c2f92e1
  2. 1mo ago First seen · 124 lines · 80 tokens per session scan A f2ab4bc14d49

Subscribe to this mod's changes

alpaca-broker-market-data is a skill published in the GitHub repository alpacahq/alpaca-skills (157 stars, last pushed today), licensed Apache-2.0. It adds 80 tokens to every session and 3,022 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

aomi-transact

Build natural-language crypto/DeFi agents and EVM MCP plugins (Claude Code, Cursor, Codex, Gemini). Aomi turns prompts into wallet-signed txs on Ethereum, Base, Arbitrum, Optimism, Polygon, Linea — non-custodial, fork-simulated. 40+ apps: Uniswap, Aave, Lido, Morpho, GMX, Hyperliquid, Polymarket.

sickn33/agentic-awesome-skills · 95 tokens

aws-cost-cleanup

Automated cleanup of unused AWS resources to reduce costs.

sickn33/agentic-awesome-skills · 15 tokens

aws-cost-operations

AWS cost optimization, monitoring, and operational excellence expert. Use when analyzing AWS bills, estimating costs, setting up CloudWatch alarms, querying logs, auditing CloudTrail activity, or assessing security posture.

sickn33/agentic-awesome-skills · 44 tokens

alpha-vantage

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

sickn33/agentic-awesome-skills · 34 tokens

defi-protocol-templates

Implement DeFi protocols with production-ready templates for staking, AMMs, governance, and lending systems. Use when building decentralized finance applications or smart contract protocols.

rmyndharis/antigravity-skills · 38 tokens

database-cloud-optimization-cost-optimize

You are a cloud cost optimization expert specializing in reducing infrastructure expenses while maintaining performance and reliability. Analyze cloud spending, identify savings opportunities, and implement cost-effective architectures across AWS, Azure, and GCP.

rmyndharis/antigravity-skills · 48 tokens