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.
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-dataRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install alpaca-broker-market-data in Claude Code
git clone --depth 1 https://github.com/alpacahq/alpaca-skills /tmp/alpaca-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/alpaca-skills/skills/broker-api/market-data ~/.gemini/antigravity-cli/skills/alpaca-broker-market-dataAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install alpaca-broker-market-data in Antigravity CLI
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
ANo 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 →Lists live launchpad token feeds and AI-detected hot topics for meme tokens on BSC, Solana and Base. Covers new, finalizing and just-migrated tokens on launchpads such as Pump.fun and Four.meme.
The okx-market skill lets an AI assistant retrieve cryptocurrency market data from the OKX V5 REST API. It is aimed at users who want spot, derivatives and index data in Python without an account.
Calculates key SaaS health metrics such as ARR, churn, LTV and CAC from raw business numbers, then gives prioritized advice. Built for founders and finance leads who share revenue or customer figures.
Fetches U.S. SEC EDGAR data for research. It resolves a ticker to its CIK, lists recent filings with primary-document URLs, and pulls XBRL financial series. Built for analysts who need free, U.S.-only filing data.
Provides free, no-auth access to Eastmoney market data for A-shares, Hong Kong stocks and US stocks. It covers fund flows, dragon-tiger lists, financial statements and stock screening.
Reads and manages a user's QuickBooks business through Intuit's official MCP server. It answers finance questions from reports, invoices, customers, products and benchmarks, and completes approved actions.
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.
