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.
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-ordersRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install alpaca-broker-trading-orders in Claude Code
git clone --depth 1 https://github.com/alpacahq/alpaca-skills /tmp/alpaca-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/alpaca-skills/skills/broker-api/trading-orders ~/.gemini/antigravity-cli/skills/alpaca-broker-trading-ordersAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install alpaca-broker-trading-orders in Antigravity CLI
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
ANo 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 →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-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.
