trader-broker
БесплатноЗапускает вложенные скриптыНе проверенOrder Executor. Sends approved orders to your broker, paper trading by default, never without your yes. Shows each order as a plain ticket (a bracket shows…
от Jakeschincariol★ 10 420 звёзд на GitHubОб этом скилле
trader-broker
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:
- trader-risk passed this exact order today (matched by fingerprint).
- The user typed an explicit yes for this one order in the chat.
- The user clicked Allow once on Claude's own permission card, which appears because the order tool is set to "Needs approval".
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).
What it reads and writes
| 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 |
Setup A: Alpaca (official MCP server, Claude Desktop)
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).
- The user makes an Alpaca account and creates paper trading API keys in the Alpaca dashboard. Paper keys are separate from live keys.
- The user installs
uv(it providesuvx), from docs.astral.sh/uv. - In Claude Desktop: Settings > Developer > Edit Config. That opens
claude_desktop_config.json(macOS:~/Library/Application Support/Claude/, Windows:%APPDATA%\Claude\). The user adds this block (also inclaude_desktop_config.example.jsonhere) 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.- every other tool that places, changes, cancels or closes anything
(
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.- read-only tools (
get_account_info,get_all_positions,get_open_position,get_orders,get_clock,get_stock_snapshot,get_stock_latest_quote): Always allow is fine.
- Check it: ask Claude for the Alpaca account info (read only) and confirm in the Alpaca dashboard that it is the paper account.
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
`o
Установить trader-broker в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл trader-broker?
Order Executor. Sends approved orders to your broker, paper trading by default, never without your yes. Shows each order as a plain ticket (a bracket shows its stop-loss, take-profit and the max loss at the stop) plus the exact JSON for Alpaca's place_stock_order, records your yes word for word, then Claude's own Allow once / Deny card asks again. Builds the sell ticket that closes a day trade by your flat-by time, records fills, and logs each trade's max loss so trader-risk can hold the daily limit. Covers setting up Alpaca's official MCP server in Claude Desktop (paper by default, keys in env vars, never in chat), the Interactive Brokers connector, and setting order tools to "Needs approval". Use when the user says "place the order", "buy it", "execute", "send it to my broker", "close my position", "flatten", "get me out", "connect Alpaca", "set up paper trading", or after /trader-risk passes.
Как установить скилл trader-broker?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл trader-broker запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic