ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified finance Safety 2/5

alpaca-trading

Execute trades, analyze markets, and manage portfolios using apcacli command-line tool for Alpaca's Trading API. Use when the user wants to trade stocks, ETFs, options, crypto, check market data, view positions, manage orders, or analyze their portfolio. Also use when they mention "buy," "sell," "trade," "market data," "stock price," "portfolio," "account balance," or "alpaca trading."

Why use this skill?

Automate your trading strategy with the Alpaca Trading skill for OpenClaw. Execute trades, monitor portfolios, and access market data directly from your CLI.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/lacymorrow/alpaca-trading
Or

What This Skill Does

The Alpaca Trading skill provides a powerful command-line interface for managing your financial assets using the apcacli tool. Built in Rust, this skill enables seamless integration with Alpaca's high-performance trading API. You can perform real-time market data lookups, execute complex trade orders, monitor your current positions, and analyze your overall portfolio performance directly from your terminal. It supports various asset classes including stocks, ETFs, and cryptocurrencies, allowing for sophisticated automated trading workflows.

Installation

Installation requires a Rust environment on your system.

  1. Install Rust via rustup.
  2. Once Rust is installed, run cargo install apcacli to download and compile the tool.
  3. Configure your environment by setting the APCA_API_KEY_ID and APCA_API_SECRET_KEY environment variables.
  4. Note: By default, the tool points to the Paper Trading environment. To switch to live trading, ensure you update your APCA_API_BASE_URL to the production endpoint.

Use Cases

  • Automated Trading: Execute scripted buy or sell orders based on custom criteria or market signals.
  • Portfolio Monitoring: Quickly check your unrealized gains/losses, current buying power, and active positions without opening a browser.
  • Market Research: Fetch real-time price data and verify if the market is currently open or closed before placing trades.
  • Order Lifecycle Management: Easily track, modify, or cancel pending limit and market orders through a centralized command interface.

Example Prompts

  1. "Check my current buying power and list all open positions in my portfolio."
  2. "Buy 5 shares of NVDA at market price and set a stop loss at 5% below entry."
  3. "Is the stock market open right now, and what is the current price of BTC?"

Tips & Limitations

  • Safety: Always verify your order parameters before hitting confirm. Use paper trading accounts to test your strategies before risking real capital.
  • Financial Advice: Remember that this tool executes commands based on your input; it does not provide financial advice, recommendations, or market sentiment analysis.
  • Connectivity: Ensure your API keys are kept secure and are never hardcoded in scripts stored in public repositories.
  • Scope: This tool is strictly for interacting with the Alpaca API; it cannot interact with other brokerage platforms.

Metadata

Stars1656
Views0
Updated2026-02-28
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-lacymorrow-alpaca-trading": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#trading#stocks#finance#alpaca#rust
Safety Score: 2/5

Flags: external-api, code-execution