Логотип Trader Broker

Trader Broker

Сообщество
Jakeschincariol
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.

Add to TypingMind

Обзор

ИздательJakeschincariol
Репозиторийday-trader-skill
Название навыкаtrader-broker
Звёзды
617
Форки
119
Файлы в комплекте
2
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 2

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — Jakeschincariol. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Trader Broker в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/Jakeschincariol/day-trader-skill/tree/main/trader-broker
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Jakeschincariol/day-trader-skill.git /tmp/day-trader-skill
mkdir -p .claude/skills
cp -r /tmp/day-trader-skill/trader-broker .claude/skills/trader-broker
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Trader Broker в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Trader Broker, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Trader Broker не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

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:

  1. trader-risk passed this exact order today (matched by fingerprint).
  2. The user typed an explicit yes for this one order in the chat.
  3. 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).

bash
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

filewhat
trader/orders.jsonthe proposed orders (trader-budget writes it; flatten replaces it)
trader/state/risk.jsontrader-risk's verdicts; only a PASS from today is READY
trader/state/broker.jsonevery yes, no, placed, failed and filled, with each entry's max loss
trader/portfolio.jsoncash and shares, updated by fill and by result --filled-qty
trader/plan.jsonthe 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).

  1. The user makes an Alpaca account and creates paper trading API keys in the Alpaca dashboard. Paper keys are separate from live keys.
  2. The user installs uv (it provides uvx), from docs.astral.sh/uv.
  3. 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 in claude_desktop_config.example.json here) and types their own keys into the file:
json
{
  "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.
  1. 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 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.

Setup B: Interactive Brokers (connector in Claude's directory)

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.

Steps: the entry

  1. ticket.py show. Only READY tickets go to the user. A ticket that is NOT READY or BLOCKED goes back to /trader-risk.
  2. Show ONE ticket and ask: "Place this order? Reply yes or no." One order per question. Never offer "yes to all".
  3. Run 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.
  4. Only after "Recorded your yes", call place_stock_order with exactly the JSON the ticket printed. Claude's card appears: Allow once or Deny.
  5. Record what happened: 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.

Steps: while it is open, and out by the close

  • trader-alerts watches the stop, the target and the flat-by time (alerts.py add --from-plan). The bracket's own orders do the stopping.
  • When the stop-loss or the take-profit fills, record it: ticket.py fill --symbol TSLA --side sell --qty 8 --price 358.32.
  • By flat_by (15:55 New York), anything still open gets closed:
    1. Ask Alpaca how many shares are held: get_open_position (read only).
    2. ticket.py flatten --symbol TSLA --qty 8 writes a market sell for those shares to trader/orders.json.
    3. /trader-risk. A sell that only closes what the user holds is never blocked by the daily limits or the entry window.
    4. ticket.py show, then the user's yes for that one order, as above.
    5. The bracket's stop-loss and take-profit still hold those shares, so Alpaca rejects a new sell until they are canceled: 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.

Example: the reel

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.

What it never does

  • Never places an order without all three gates, and never two orders on one yes.
  • Never places orders from a scheduled or background task: nobody is there to say yes.
  • Never asks for, reads, stores or repeats API keys or passwords.
  • Never switches ALPACA_PAPER_TRADE or "paper" to live. The user does that themselves.
  • Never calls close_all_positions, cancel_all_orders, option or crypto order tools on its own.
  • Never promises a fill price: a market order and a stop fill at whatever the market gives.

Safety

  • Education and tooling, not financial advice. A PASS is a rules check, not a recommendation.
  • Paper trading by default ("paper": true). Going live is the user's own decision, in their own config.
  • Nothing in this pack places an order except trader-broker, and only when all three hold: trader-risk passed that exact order today, the user typed an explicit yes for that one order in the chat, and the user clicked Allow once on Claude's own card because the order tool is set to "Needs approval" (Customize > Connectors > tool permissions). Never set an order tool to "Always allow".
  • No options, margin, short selling or leverage unless the config allows it and the user confirms.
  • Broker keys live in environment variables or the Claude Desktop config, never in the chat.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ 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...

Зачем использовать Trader Broker в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Trader Broker — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Trader Broker в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/Jakeschincariol/day-trader-skill/tree/main/trader-broker. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Trader Broker?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Trader Broker?

С любым количеством. В TypingMind вы можете использовать Trader Broker с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Trader Broker?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — Jakeschincariol. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип NousResearch

Modal

NousResearch
ОрганизацияПопулярный

Бессерверное облако GPU для ML-задач и API моделей.

53.5K
250.4K
Файлы: 2
Открыть
Логотип Shubhamsaboo

Advisor Orchestrator Worker

Shubhamsaboo
СообществоПопулярный

Используйте, если задача слишком велика для одного прохода модели, требует параллельного исследования или генерации результатов по множеству подзадач (например, изучения дюжины конкурентов) или пользователь просит скоординировать работу нескольких…

20.4K
138.7K
Файлы: 4
Открыть
Логотип JuliusBrussee

Cavecrew

JuliusBrussee
СообществоПопулярный

Когда вместо работы напрямую или использования `Explore` следует делегировать задачу `cavecrew-investigator` (поиск кода), `cavecrew-builder` (редактирование 1–2 файлов) или `cavecrew-reviewer` (проверка diff). Их ответы…

6.2K
106.3K
Инструкции
Открыть
Логотип nexu-io

Pricing Page

nexu-io
ОрганизацияПопулярный

Отдельная страница с ценами: заголовок, тарифы, таблица сравнения функций и раздел FAQ. Используйте, если в задании запрошена страница с ценами, тарифами, уровнями подписки или сравнением тарифов.

11.5K
98.9K
Файлы: 1
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇