alpaca-trading
Skill by gauss314
Gives an AI assistant access to the Alpaca Trading API for stocks, crypto and options. It covers orders, positions and account data, with paper trading and live trading.
Install alpaca-trading
Built from the published package, never by AI.
git clone --depth 1 https://github.com/gauss314/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/alpaca-trading ~/.claude/skills/alpaca-tradingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/gauss314/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/alpaca-trading ~/.gemini/antigravity-cli/skills/alpaca-tradingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The alpaca-trading skill documents how to use the Alpaca Trading API from Python with the alpaca-py SDK. It covers account information, several order types (market, limit, stop, stop-limit and trailing stop), open positions, closing positions, option contracts and crypto orders. It also includes market clock checks, portfolio history, watchlists and WebSocket trade updates.
The skill supports paper trading, which uses simulated orders with real market data, and live trading, which uses real money. The source says to test on paper first and to store API keys in environment variables rather than hardcoding them. It suits developers who want to script or automate trading through Alpaca.
Written from the project's SKILL.md and checked against it.
What it can do
- Account informationReads buying power, cash, portfolio value and account status from Alpaca.
- Order placementSubmits market, limit and stop orders for stocks and crypto.
- Order managementLists, fetches, replaces and cancels open orders.
- PositionsLists open positions and closes all or part of a position.
- Options tradingSearches option contracts by underlying, expiration and strike, and trades them.
- Crypto tradingLists tradable crypto symbols and places fractional crypto orders.
- Market hoursChecks whether the market is open and reads next open and close times.
- WatchlistsCreates watchlists and adds symbols to them.
- Trade updatesStreams real-time trade updates through a WebSocket connection.
What you need
- Alpaca account
- Alpaca API key and secret key
- Python
- alpaca-py SDK
Try asking
- Show my Alpaca account buying power and portfolio value.
- Place a market order to buy 10 shares of AAPL on paper.
- List my open positions and their unrealized profit or loss.
Good to know
- Rate limit of 200 requests per minute for orders, account, positions and activities.
- Live trading uses real money and real orders; the source says to test on paper first.
- Option trading requires a trading level set on the account, and the levels are described in the source.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/alpaca-trading/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to alpaca-trading
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-trading: common questions
Is paper trading free with Alpaca?
The source says paper trading is free. Paper orders are simulated, while market data is real.
Which asset types can this skill trade?
The source covers US stocks, crypto and options.
How should API keys be stored?
The source says never to hardcode keys and to read them from environment variables.
How do I install alpaca-trading?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is alpaca-trading free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is alpaca-trading safe to use?
It scores 59 of 100. Grades: maintenance C, 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-trading?
Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.
