/day-trader-skill:trader-broker [order number]from day-trader-skill
Sends approved stock orders to Alpaca or Interactive Brokers with three-gate approval (risk check, user yes, Allow once). Shows order tickets with stop-loss/take-profit, handles day-trade flattening, and logs fills for risk limits.
Ships in day-trader-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The Order Executor is the only skill in this pack that can lead to a real order, so it is the strictest. An order reaches the market only after three separate gates, every time, for every order:
Two yeses from the user, one PASS from the rules. No yes, no order.
${CLAUDE_SKILL_DIR} below is this skill's folder (where this SKILL.md lives).
python3 "${CLAUDE_SKILL_DIR}/ticket.py" show # every ticket, READY or not
python3 "${CLAUDE_SKILL_DIR}/ticket.py" approve --index 1 --reply "yes"
python3 "${CLAUDE_SKILL_DIR}/ticket.py" result --index 1 --status placed --broker-id ID --filled-qty 8 --filled-price 364.20
python3 "${CLAUDE_SKILL_DIR}/ticket.py" fill --symbol TSLA --side sell --qty 8 --price 370.04
python3 "${CLAUDE_SKILL_DIR}/ticket.py" flatten --symbol TSLA --qty 8
python3 "${CLAUDE_SKILL_DIR}/ticket.py" log
ticket.py never talks to a broker. It renders tickets, checks that a reply
is a real yes for that order, builds the flatten ticket, and keeps the log in
trader/state/broker.json. --now "2026-10-19 10:15" pins the clock (New York time).
| file | what |
|---|---|
trader/orders.json | the proposed orders (trader-budget writes it; flatten replaces it) |
trader/state/risk.json | trader-risk's verdicts; only a PASS from today is READY |
trader/state/broker.json | every yes, no, placed, failed and filled, with each entry's max loss |
trader/portfolio.json | cash and shares, updated by fill and by result --filled-qty |
trader/plan.json | the flat-by time for flatten |
Alpaca's own server is github.com/alpacahq/alpaca-mcp-server (MIT). It runs on the user's computer inside Claude Desktop. It is not in Claude's connector directory. It trades on a paper account unless told otherwise. Checked against its source on 2026-10-20 (version 2.4.0).
uv (it provides uvx), from docs.astral.sh/uv.claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/,
Windows: %APPDATA%\Claude\). The user adds this block (also in
claude_desktop_config.example.json here) and types their own keys into the file:{
"mcpServers": {
"alpaca": {
"command": "uvx",
"args": ["alpaca-mcp-server"],
"env": {
"ALPACA_API_KEY": "paste your paper key here, in this file only",
"ALPACA_SECRET_KEY": "paste your paper secret here, in this file only",
"ALPACA_PAPER_TRADE": "true",
"ALPACA_TOOLSETS": "account,trading,stock-data"
}
}
}
}
The env block hands the keys to the server as environment variables.
Keys never go in the chat. Never ask for them, never read this file
back into the conversation, and if the user pastes a key anyway, tell them
to delete that message and make new keys in the Alpaca dashboard.
ALPACA_PAPER_TRADE is already true by default; writing it makes it
visible. ALPACA_TOOLSETS is optional and hides the tools they do not need.
4. Restart Claude Desktop.
5. Set the tool permissions. Customize > Connectors (Settings > Connectors
in older versions), open alpaca, and for each tool pick Always allow, Needs
approval or Blocked:
place_stock_order: Needs approval. Never Always allow.cancel_order_by_id, replace_order_by_id, close_position,
update_account_config): Needs approval.place_option_order, place_crypto_order, close_all_positions,
cancel_all_orders, exercise_options_position,
do_not_exercise_options_position: Blocked unless the user has a
reason and says so.get_account_info, get_all_positions, get_open_position,
get_orders, get_clock, get_stock_snapshot, get_stock_latest_quote):
Always allow is fine.In Claude Code instead of Claude Desktop, keep the order tool on ask in
.claude/settings.json: "permissions": {"ask": ["mcp__alpaca__place_stock_order"]},
and never put an order tool in allow.
Bracket orders on Alpaca. place_stock_order takes
take_profit_limit_price and stop_loss_stop_price (and an optional
stop_loss_limit_price). When either is there, the server sets
order_class to "bracket" by itself; trader-budget writes it anyway so the
ticket shows it. A bracket is whole shares only, with time_in_force day or
gtc. After the entry fills, the stop-loss and the take-profit wait at the
broker as two orders that cancel each other. They are day orders too, so they
end at the close: one more reason to be flat by then.
Interactive Brokers publishes a verified connector: claude.ai/directory/interactive-brokers
(connector URL https://api.ibkr.com/v1/api/mcp). Add it from Customize >
Connectors > Browse connectors and sign in to IBKR there, not in the chat.
Its listing says Claude can draft trade instructions that are sent to the
user's IBKR account for their review and approval, and that Claude never
submits orders directly to the market. So with IBKR the final yes happens in
IBKR as well. Set "broker": "ibkr" in trader/config.json. Set its tools
that draft orders to Needs approval too.
ticket.py show. Only READY tickets go to the user. A ticket that is NOT
READY or BLOCKED goes back to /trader-risk.ticket.py approve --index N --reply "<the user's reply, word for word>".
If it prints "Not recorded", the reply was not an explicit yes for this
order (for example "sure", "yes to all", or a yes that names a different
stock or amount). Ask again. Never turn a reply into a yes yourself.place_stock_order with exactly the
JSON the ticket printed. Claude's card appears: Allow once or Deny.ticket.py result --index N --status placed --broker-id <id> --filled-qty Q --filled-price P (the fill from the
response or get_open_position), or --status denied, or --status failed
with --note. A failed order is not retried without a new check and a new yes.
The log keeps the entry's max loss for trader-risk's daily limit.alerts.py add --from-plan). The bracket's own orders do the stopping.ticket.py fill --symbol TSLA --side sell --qty 8 --price 358.32.flat_by (15:55 New York), anything still open gets closed:
get_open_position (read only).ticket.py flatten --symbol TSLA --qty 8 writes a market sell for those
shares to trader/orders.json./trader-risk. A sell that only closes what the user holds is never
blocked by the daily limits or the entry window.ticket.py show, then the user's yes for that one order, as above.get_orders (status
open, nested true) shows them; cancel_order_by_id each one (Needs
approval). Then place_stock_order with the ticket, then result.ORDER 1 of 1, PAPER account, Alpaca
BUY 8 TSLA, market, good for today
stop-loss 358.32
take-profit 370.04
max loss about $46.88 if the stop fills at 358.32 (it can fill worse in a fast market)
why: opening-range breakout on TSLA: 8 shares, bound by your $50 max loss per trade (8 x 5.86 = $46.88 at the stop)
READY: trader-risk PASS, waiting for your yes
Claude will call place_stock_order with exactly:
{"symbol": "TSLA", "side": "buy", "qty": "8", "type": "market", "time_in_force": "day",
"order_class": "bracket", "take_profit_limit_price": "370.04", "stop_loss_stop_price": "358.32"}
The user replies "yes". Claude records it, calls place_stock_order, and the
card reads "Claude wants to use Place stock order" with that JSON and two
buttons: Allow once, Deny. Allow once sends it to the paper account. The
why and the plan stay in the file; they are never sent.
ALPACA_PAPER_TRADE or "paper" to live. The user does that themselves.close_all_positions, cancel_all_orders, option or crypto order tools on its own."paper": true). Going live is the user's own decision, in their own config.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ajithkumar31082004-bit/day-trade-skill --plugin day-trader-skill11 skills in this plugin
/trader-alertsPrice Alerts. Rings when a price, a stop or the opening bell hits. Turns the trade plan into three alerts in one go (the stop, the target and "flat by close" at your flat-by time), plus above / below / stop / target levels, percent moves from the previous close, any time of day, and the NYSE opening bell, each ringing once so you are not spammed. Knows NYSE hours with the 2026 and 2027 holidays and 1:00 p.m. early closes, works out New York time itself, fetches free delayed quotes (Yahoo chart JSON, Stooq CSV) one ticker at a time, and writes trader/prices.json for sizing and the risk check. Use when the user says "alert me when", "tell me if TSLA hits", "watch my stop", "watch my trade", "remind me to close by 3:55", "is the market open", "when does the market open", "get me a price", or right after /trader-exit writes a plan./trader-analystThe Earnings Analyst. Reads a company's reported numbers straight from SEC EDGAR (XBRL company facts from its 10-Qs and 10-Ks, plus the latest earnings 8-K and its press release) and sums up what changed: revenue, gross, operating and net margins, net income and diluted EPS, quarter by quarter, each against the same quarter a year earlier, with the trailing twelve months. Reads an earnings call transcript when you paste one. Use when the user says "how did Tesla's earnings look", "analyze the earnings", "what changed this quarter", "is revenue growing", "check the 10-Q", "compare margins", "sum up the call", "does it report this week", or before trading a stock around its earnings.13 plugins ship this exact skill · first indexed Oct 21, 2026
Showing 6 of 13 plugins, one per repository first
Other plugins' skills for the same job