asarchami/dotfiles/market-data
- community
Checking that the SKILL.md file is still in the repository.
Alpaca Market Data API for historical and real-time market data. Covers stocks, crypto, options, and news — both REST (historical bars/quotes/trades) and WebSocket (real-time streaming). Includes subscription plans, rate limits, and authentication patterns for Trading API and Broker API users.
Install
npx vskill@latest install asarchami/dotfiles/market-dataSKILL.md
Persona: You are a quantitative developer building data pipelines. You treat market data as the foundation for trading decisions and backtesting. You think in terms of data completeness, latency, and alignment across timeframes.
Thinking mode: Use ultrathink for historical data pagination, WebSocket reconnection logic, and data alignment across multiple symbols. Shallow reasoning produces gaps and misaligned time series.
Base URLs
| Environment | URL | |
|---|---|---|
| Live | https://data.alpaca.markets | |
| Sandbox (Broker API) | https://data.sandbox.alpaca.markets |
Authentication
Trading API users (legacy auth):
Broker API users (OAuth2 Client Credentials):
Historical crypto data does not require authentication.
Subscription Plans
Trading API
| Feature | Basic (free) | Algo Trader Plus ($99/mo) | |
|---|---|---|---|
| Stocks coverage | IEX only | All US exchanges | |
| WebSocket symbols | 30 | Unlimited | |
| Historical window | Since 2016 | Since 2016 | |
| Historical limit | Last 15 min | No restriction | |
| API calls | 200/min | 10,000/min | |
| Options coverage | Indicative feed | OPRA feed |
Broker API
| Plan | RPM | Stream connections | Stream symbols | Price | |
|---|---|---|---|---|---|
| Standard | 1,000 | 5 | unlimited | included | |
| StandardPlus3000 | 3,000 | 5 | unlimited | $500/mo | |
| StandardPlus5000 | 5,000 | 5 | unlimited | $1,000/mo | |
| StandardPlus10000 | 10,000 | 10 | unlimited | $2,000/mo |
Historical API (REST)
Stock Data
Query parameters: timeframe (1Min, 5Min, 15Min, 1Hour, 1Day), start, end, limit (max 10,000), adjustment (raw, split, dividend), feed (iex, sip).
Pagination: When response contains next_page_token, repeat the request with page_token={token} until no token returned.
Crypto Data
Same parameters as stocks. Crypto data does not require authentication for historical endpoints. Timeframes: 1Min, 5Min, 15Min, 1Hour, 1Day.
Options Data
Option symbols use the OCC format (e.g., AAPL250620C00150000). Requires options data subscription.
News Data
Parameters: symbols, start, end, limit, sort, include_content.
WebSocket Streams
Feeds:
iex— IEX data only (free)sip— SIP data (all exchanges, paid)
Authentication Message
Stock Channels
| Channel | Description | |
|---|---|---|
T | Trades | |
Q | Quotes | |
AM | Minute bars (aggregated) | |
A | Second bars (aggregated) |
Crypto Channels
| Channel | Description | |
|---|---|---|
T.{symbol} | Trades | |
Q.{symbol} | Quotes | |
AM.{symbol} | Minute bars |
Options Channels
| Channel | Description | |
|---|---|---|
O.{symbol} | Options trades | |
OQ.{symbol} | Options quotes |
News Channel
| Channel | Description | |
|---|---|---|
news | Real-time news headlines |
Subscription Message
Reconnection
- WebSocket sends
: you are reading too slowly, dropped N messagesas SSE-style comment when client falls behind - On disconnect: reconnect and re-auth, then resubscribe to channels
- Missed data can be backfilled via Historical API
Rate Limits
| Plan | Historical API limit | |
|---|---|---|
| Trading API Basic | 200 RPM | |
| Trading API Algo Trader+ | 10,000 RPM | |
| Broker API Standard | 1,000 RPM | |
| Broker API higher tiers | 3,000–10,000 RPM |
429 responses include Retry-After header.
Existing Codebase Patterns
This project fetches market data in internal/bars/service.go using the Alpaca client from internal/exchange/alpaca/alpaca.go. Key pattern:
The exchange interface (internal/exchange/exchange.go) defines:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdot_config/opencode/skills/alpaca/market-data/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/asarchami/dotfiles/market-data)