Agent skill · Data & Analytics

alpaca-broker-market-data

Pull and stream US stock market data from Alpaca — REST snapshots/bars/trades/quotes, historical bars with timeframes and feeds (IEX vs SIP), the assets master list, market clock & calendar, news, and the real-time WebSocket stream. Use when building charts, quotes, price feeds, or asset metadata on Alpaca in any language.

alpacahqgithub.com/alpacahqGitHub ↗
claude-codecodexcursorApache-2.0
Install
npx skills add alpacahq/alpaca-skills --skill market-data --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 9 KB
Bundled scripts: none
Path: skills/broker-api/market-data/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 106
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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:** headers `APCA-API-KEY-ID` / `APCA-API-SECRET-KEY` (Broker partners may use Broker Basic auth in broker context). ## 1. REST endpoints | Path | Purpose | |------|---------| | `GET /v2/stocks/snapshots?symbols=…` · `GET /v2/stocks/{symbol}/snapshot` | S

What's inside
Steps it walks through
  1. Reference
  2. 0. Hosts & auth
  3. 1. REST endpoints
  4. 2. Bars — params
  5. 3. Feeds (entitlement matters)
  6. 4. Object shapes (compact keys)
  7. 5. WebSocket protocol
  8. 6. Assets, clock, calendar
  9. 7. Caching strategy (cost & rate-limit lesson)
Ships with 1 file
  • reference.md
More from alpaca-skills
All skills →
About this skill
What does the alpaca-broker-market-data skill do?

Pull and stream US stock market data from Alpaca — REST snapshots/bars/trades/quotes, historical bars with timeframes and feeds (IEX vs SIP), the assets master list, market clock & calendar, news, and the real-time WebSocket stream. Use when building charts, quotes, price feeds, or asset metadata on Alpaca in any language.

How do I install it?

Run `npx skills add alpacahq/alpaca-skills --skill market-data --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From alpacahq/alpaca-skills, a repository with 106 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going