Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

alpaca-broker-market-data

Skill by alpacahq

Pulls and streams US stock market data from Alpaca, covering REST snapshots, historical bars, trades, quotes, assets, market hours and a real-time WebSocket feed. Built for developers making charts, quotes or price feeds on Alpaca.

  • Score 70
  • 174 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install alpaca-broker-market-data

Built from the published package, never by AI.

git clone --depth 1 https://github.com/alpacahq/alpaca-skills /tmp/alpaca-skills && mkdir -p ~/.claude/skills && cp -r /tmp/alpaca-skills/skills/broker-api/market-data ~/.claude/skills/alpaca-broker-market-data

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install alpaca-broker-market-data in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill gives an AI assistant the reference it needs to pull and stream US equity market data from Alpaca. It covers REST endpoints for snapshots, historical and latest bars, trades and quotes, auctions, news and screeners. It also covers the assets master list, the market clock and calendar, and the real-time WebSocket stream.

The skill explains the separate market data host and its auth, including token handling. It also covers bar timeframes, pagination, and the IEX and SIP feeds with their entitlement rules. It lists WebSocket connect steps, message types and error codes. The skill is written for developers building charts, quotes, price feeds, or asset metadata on Alpaca in any language.

Written from the project's SKILL.md and checked against it.

What it can do

  • Snapshots and latest dataFetches latest trade, quote and bar data for one or many symbols.
  • Historical barsQueries OHLCV bars with timeframes, adjustments, feeds and pagination.
  • Trades and quotesRetrieves historical and latest trades and quotes, plus code lookups.
  • Assets master listReads tradability metadata such as tradable, fractionable and shortable flags.
  • Market clock and calendarChecks whether the market is open and looks up holidays and session times.
  • News and screenersPulls news for symbols and most-active or movers screener results.
  • Real-time WebSocket streamAuthenticates, subscribes to trades, quotes and bars, and handles updates.
  • Caching strategyDescribes storing bars, short-TTL snapshots and running bulk backfills.

What you need

  • Alpaca API credentials, either a client-credentials token or a key and secret
  • A paid data plan to use the SIP feed
  • The alpaca-broker-integration skill, read first for context

Try asking

  • Get the latest snapshot and quote for AAPL and MSFT from Alpaca.
  • Fetch 5-minute bars for TSLA for the last week and build a chart.
  • Check if the US market is open today and list upcoming holidays.

Good to know

  • Only the IEX feed is available without a paid subscription.
  • Broker plans allow 5 concurrent WebSocket streams, or 10 on StandardPlus10000.
  • Without real-time access, the most recent 15 minutes of data is withheld.
  • Auth tokens are valid for 15 minutes and should be cached and refreshed.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/broker-api/market-data/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to alpaca-broker-market-data

All alternatives →

Compare with meme-rush, okx-market or saas-metrics-coach

alpaca-broker-market-data: common questions

Which Alpaca feed should I use for testing?

The source says iex is the only feed available without a paid subscription and is good for dev and testing. Do not hard-pin the feed, since latest endpoints default to the best feed your subscription allows.

Why does my clock call return a 404 on one host?

Clock, calendar and assets paths depend on the host. On the Broker API host use /v1/clock, /v1/calendar and /v1/assets, while the Trading API host uses /v2 paths.

Why are my multi-symbol bar results incomplete?

Results are sorted by symbol then timestamp, and limit counts data points across all symbols. You must follow next_page_token until it is empty to get every symbol.

How do I install alpaca-broker-market-data?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is alpaca-broker-market-data free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is alpaca-broker-market-data safe to use?

It scores 70 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to alpaca-broker-market-data?

Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.

alpaca-broker-market-data Install

Add to stack

Loading.