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 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.

  • Score 46
  • 4 stars
  • MIT
  • 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/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-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 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

A

No 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 →

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.

alpaca-broker-market-data Install

Add to stack

Loading.