alpaca-broker-trading-orders

alpaca-broker-trading-orders is a skill for Claude Code, Codex from alpacahq/alpaca-skills. It costs 74 tokens per session (2,507 once invoked), scanned A, original, Apache-2.0.

Instructions for placing and managing investment orders for user accounts through Alpaca Broker, a service for building brokerage applications.

In plain words
What is it for?
Use them to submit stock orders, handle fractional shares and order rules, track order status, and read positions and buying power.
Why use it?
They provide the account-specific details needed to create, track, change, or cancel orders and check what an account can buy.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use them to submit stock orders, handle fractional shares and order rules, track order status, and read positions and buying power.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alpacahq/alpaca-skills/trading-orders
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alpacahq/alpaca-skills --skill trading-orders
Clone the repo
git clone --depth 1 https://github.com/alpacahq/alpaca-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for alpaca-broker-trading-orders

README.md
[![agentmods](https://agentmods.dev/badge/skills/alpacahq/alpaca-skills/trading-orders/github.svg)](https://agentmods.dev/skills/alpacahq/alpaca-skills/trading-orders)
Your own site
<a href="https://agentmods.dev/skills/alpacahq/alpaca-skills/trading-orders"><img src="https://agentmods.dev/badge/skills/alpacahq/alpaca-skills/trading-orders/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for alpaca-broker-trading-orders

Your own site · 80×15
<a href="https://agentmods.dev/skills/alpacahq/alpaca-skills/trading-orders"><img src="https://agentmods.dev/badge/skills/alpacahq/alpaca-skills/trading-orders.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,507 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.02507
Opus 5 $0.00037 $0.01254
Sonnet 5 $0.00015 $0.00501
Haiku 4.5 $0.00007 $0.00251

Measured 11d ago against content hash 6b36ce42290d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

alpaca-broker-trading-orders scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/broker-api/trading-orders/SKILL.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Alpaca Broker API — Trading on Behalf of Accounts

Place, modify, cancel, and track orders for an end-user account, and read positions & buying power. The defining feature of Broker API trading: account_id is in the path — you act for a user account, not your own.

Read alpaca-broker-integration first. Broker API + HTTP Basic auth. (The standalone Trading API uses /v2/orders with no account in the path; everything else here transfers.)

Reference

  • Guides: https://docs.alpaca.markets/docs/orders-at-alpaca, https://docs.alpaca.markets/docs/fractional-trading
  • API ref: https://docs.alpaca.markets/reference/postorder
  • Live schema: alpaca-docs MCP → get-endpoint title "Broker API" path /v1/trading/accounts/{account_id}/orders

1. Endpoints

Method Path Purpose
POST /v1/trading/accounts/{id}/orders Create order
GET /v1/trading/accounts/{id}/orders List orders (filter by status, symbols, after…)
GET /v1/trading/accounts/{id}/orders/{order_id} Get order by ID
GET /v1/trading/accounts/{id}/orders:by_client_order_id?client_order_id=… Get by your client ID
PATCH /v1/trading/accounts/{id}/orders/{order_id} Replace (modify) order
DELETE /v1/trading/accounts/{id}/orders/{order_id} Cancel one order (204)
DELETE /v1/trading/accounts/{id}/orders Cancel all (207 Multi-Status)
POST /v1/trading/accounts/{id}/orders/estimation Cost-estimate an order
GET / DELETE /v1/trading/accounts/{id}/positions[/{symbol_or_asset_id}] List / close positions
GET /v1/trading/accounts/{id}/account Trading-account details (buying power etc.)

2. Create-order request

Schema-required: type and time_in_force. Conditionally required: symbol, side, and exactly one of qty/notional.

// notional market buy (dollar-based, fractional)
{ "symbol": "AAPL", "notional": "25.00", "side": "buy", "type": "market", "time_in_force": "day",
  "client_order_id": "your-own-uuid" }

// limit qty sell
{ "symbol": "AAPL", "qty": "3", "side": "sell", "type": "limit", "limit_price": "190.00", "time_in_force": "gtc" }

Read the full file on GitHub · 115 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 115 lines · 74 tokens per session scan A 6b36ce42290d

Subscribe to this mod's changes

alpaca-broker-trading-orders is a skill published in the GitHub repository alpacahq/alpaca-skills (147 stars, last pushed 3d ago), licensed Apache-2.0. It adds 74 tokens to every session and 2,507 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.