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

Skill by alpacahq

Places and manages orders for end-user accounts through the Alpaca Broker API. Covers order creation, fractional and notional rules, order status, replace and cancel, positions and buying power. Built for trading, recurring-invest and portfolio flows on Alpaca.

  • Score 70
  • 174 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install alpaca-broker-trading-orders

Built from the published package, never by AI.

git clone --depth 1 https://github.com/alpacahq/alpaca-skills /tmp/alpaca-skills && mkdir -p ~/.claude/skills && cp -r /tmp/alpaca-skills/skills/broker-api/trading-orders ~/.claude/skills/alpaca-broker-trading-orders

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

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

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill covers placing and managing orders for end-user accounts through the Alpaca Broker API. Requests put the account ID in the path, so the assistant acts for a user account rather than the developer's own. It covers order creation with qty or notional amounts, fractional share rules, order types, time in force and order classes, plus order status, replace and cancel calls.

It also covers positions, trading account buying power, and recurring-invest patterns such as checking funds before a notional buy and using client_order_id as an idempotency key. The source says it is for building trading, recurring-invest, or portfolio flows on Alpaca in any language. It points to the alpaca-broker-integration skill for base URLs and authentication.

Written from the project's SKILL.md and checked against it.

What it can do

  • Create ordersPlaces market, limit, stop, stop_limit and trailing_stop orders for a user account.
  • Qty vs notional ordersExplains that qty and notional are mutually exclusive and how each is used.
  • Fractional sharesDescribes fractional and notional rules, including the day time-in-force requirement.
  • Order status lifecycleExplains order statuses and which ones count as terminal.
  • Replace and cancelCovers modifying an open order and cancelling one or all orders.
  • Order lookupLists orders and fetches them by order ID or client order ID.
  • Bracket and OCO ordersCovers order classes for take-profit and stop-loss pairs and their constraints.
  • PositionsLists and closes positions for a user account.
  • Buying power checksReads trading account buying power and cash before placing notional orders.
  • Recurring invest flowDescribes a pattern for scheduled notional buys with idempotent order records.

What you need

  • Alpaca Broker API access
  • Client-credentials Bearer token (legacy Basic auth also works)
  • The alpaca-broker-integration skill for base URLs and auth

Try asking

  • Place a $25 notional market buy of AAPL for account ID 123.
  • Check buying power on this account before placing a $100 order.
  • Cancel all open orders for this user account and list the results.

Good to know

  • Fractional orders require time in force day and an asset marked fractionable.
  • Fractional sells are marked long, and no fractional shorting is allowed.
  • Notional orders cannot be replaced; cancel and resubmit instead.
  • Every buy order needs a market value of at least $1.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/broker-api/trading-orders/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to alpaca-broker-trading-orders

All alternatives →

Compare with meme-rush, okx-market or saas-metrics-coach

alpaca-broker-trading-orders: common questions

Does this skill work with the standalone Alpaca Trading API?

The source says the standalone Trading API uses /v2/orders with no account in the path, and that everything else in the skill transfers.

How should I avoid duplicate orders?

The source says to always set client_order_id from your own transaction record, and to combine it with a local already-submitted guard.

Are PDT day-trade fields available in TradeAccount?

No. The source says daytrade_count, pattern_day_trader, daytrading_buying_power and bod_dtbp are absent from the current TradeAccount schema.

How do I install alpaca-broker-trading-orders?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is alpaca-broker-trading-orders free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is alpaca-broker-trading-orders safe to use?

It scores 70 of 100. Grades: maintenance A, 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-broker-trading-orders?

Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.

alpaca-broker-trading-orders Install

Add to stack

Loading.