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

  • Score 59
  • 258 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install alpaca-trading in Claude Code

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

A

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

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.

alpaca-trading Install

Add to stack

Loading.