alpaca-broker-market-data
Skill by alan-d-smith
Explains how to pull and stream US stock market data from Alpaca, including REST bars, snapshots, trades, quotes, news, assets, market clock and the WebSocket stream. Written for developers building charts, quotes or price feeds in any language.
Install alpaca-broker-market-data
Built from the published package, never by AI.
git clone --depth 1 https://github.com/alan-d-smith/synthetix-alpha /tmp/synthetix-alpha && mkdir -p ~/.claude/skills && cp -r /tmp/synthetix-alpha/.agents/skills/alpaca-broker-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/alan-d-smith/synthetix-alpha /tmp/synthetix-alpha && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/synthetix-alpha/.agents/skills/alpaca-broker-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 skill is a reference guide for the Alpaca Market Data API for US stocks. It covers REST endpoints for snapshots, historical bars, trades, quotes, auctions, news and screeners. It also covers the assets list, market clock and calendar, which sit on the Trading API host, and the real-time WebSocket stream.
It explains host and auth setup, bar parameters such as timeframe and pagination, and the difference between the iex and sip feeds. It also describes WebSocket connect and subscribe steps, message types and error codes, plus caching advice. It is aimed at 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
- Historical barsFetch OHLCV bars with timeframes, adjustments, feeds and pagination.
- SnapshotsGet the latest trade, quote, minute bar, daily bar and previous daily bar per symbol.
- Trades and quotesQuery historical and latest trades and quotes for US stocks.
- Assets master listCheck tradability fields such as tradable, fractionable, shortable and status.
- Market clock and calendarCheck whether the market is open and look up holidays and session times.
- News and screenersRead news by symbol and query most-actives and movers screeners.
- WebSocket streamingAuthenticate, subscribe to trades, quotes and bars, and handle batched messages.
- Caching guidancePersist historical bars and use short-TTL caches for snapshots and quotes.
What you need
- Alpaca API key ID and secret key
- Paid data plan for the sip feed
- Access to the Trading or Broker API host for assets, clock and calendar
Try asking
- Fetch 5-minute AAPL bars for the last week from Alpaca using the iex feed.
- Write a WebSocket client that subscribes to Alpaca trades and quotes for AMD.
- Check if the US stock market is open today using the Alpaca clock and calendar.
Good to know
- The sip feed requires a paid data plan. iex is the only feed without one.
- Most plans allow one concurrent WebSocket connection per key.
- Without real-time access, the latest 15 minutes are withheld from start and end windows.
- Clock, calendar and assets paths differ between the Trading and Broker API hosts.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/alpaca-broker-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 data feed is free?
The source says iex is the only feed available without a paid subscription. It covers a single exchange, about 2.5% of volume.
Why do multi-symbol bar requests return partial data?
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.
Why does my WebSocket connection get rejected?
Most plans allow one connection per key, and a second one returns code 406. The source recommends one process that fans out to your own clients.
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 MIT licence. The service it connects to may have its own pricing.
Is alpaca-broker-market-data safe to use?
It scores 46 of 100. Grades: maintenance C, licence A, quality C. 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.
