/merrymen-trader:trader-broker [order number]from Merrymen Day Trader
Executes trades on Merrymen after risk approval. Shows orders as tickets with stop/target/max-loss, requires user yes, permission card, and owner approval in Merrymen. Supports paper trading, position flattening, and agent/stock-token queries.
Ships in Merrymen Day Trader. 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 trade, so it is the strictest. The broker is the user's own Merrymen agent: Claude never holds keys, never signs and never trades directly. It prepares a proposal; the owner approves it in Merrymen; the agent executes it inside its own signed limits. A trade happens only after four gates, every time, for every order:
propose_trade, once.Three yeses from the user, one PASS from the rules. No yes, no trade.
${CLAUDE_SKILL_DIR} below is this skill's folder (where this SKILL.md lives).
python3 "${CLAUDE_SKILL_DIR}/merrymen.py" summary # what the saved Merrymen results say
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 proposed --proposal-id prp_... --approval-url URL
python3 "${CLAUDE_SKILL_DIR}/ticket.py" result --index 1 --status paper_filled --filled-qty 0.0685 --filled-price 364.95
python3 "${CLAUDE_SKILL_DIR}/ticket.py" flatten --symbol TSLA --value-usdg 25.40
python3 "${CLAUDE_SKILL_DIR}/ticket.py" log
ticket.py and merrymen.py never talk to Merrymen. Claude calls the
Merrymen tools and saves what they return; the scripts render tickets, check
that a reply is a real yes for that order, build the flatten ticket, and keep
the log in trader/state/broker.json. --now "2026-10-19 10:15" pins the
clock (New York time).
| file | what |
|---|---|
trader/merrymen/tokens.json | discover_tokens with list "established": Merrymen's stock tokens, by address |
trader/merrymen/agent.json | {"agent": id, "status": get_agent_status, "controls": get_agent_controls} |
trader/merrymen/quotes.json | the quote_trade result for the order being checked |
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, proposal and outcome, with each entry's max loss |
trader/portfolio.json | cash and token amounts, updated by fill and by result --filled-qty |
trader/plan.json | the flat-by time for flatten |
Save tool results exactly as returned, as JSON. Never type the numbers in by hand: trader-risk reads the agent's limits and the quote from these files.
This pack uses the Merrymen MCP server through the merrymen plugin. It
needs Claude Code (the scripts run locally).
/plugin install merrymen@merrymen. Its server is https://mcp.merrymen.dev/mcp./mcp, choose plugin:merrymen:merrymen, Authenticate. On the
Merrymen page, tick Suggest trades for you to approve (it starts
unticked) as well as the read permissions, then Allow. Sign-in happens on
that page, never in the chat. The connector listed in Claude's directory
does not carry the trade tools; use this plugin's server.propose_trade and cancel_proposal on ask. When Claude Code
asks to use them, answer yes for that one call, never "don't ask again".
In .claude/settings.json, never put them under allow; to make the rule
explicit, add them under "permissions": {"ask": [...]} with the full names
/mcp shows for the plugin's tools.list_agents. If there is more than one, ask which. Put its agent id
in trader/config.json as "merrymen_agent". With it empty, trader-risk
blocks every order.get_agent_status for that agent. mode must be
paper while "paper": true (the default): trader-risk blocks a paper
config that meets a live agent. Going live is the owner's decision, made in
Merrymen and in their own config, never by Claude.discover_tokens with list established (every page). Save the result(s)
to trader/merrymen/tokens.json. These are the only tokens this pack
trades: Merrymen's curated stock tokens, each with its address, Chainlink
price and paused flag. A symbol is never enough; the address is the identity.get_agent_status and get_agent_controls for the agent. Save both, as
returned, in trader/merrymen/agent.json:
{"agent": "<id>", "status": {...}, "controls": {...}}. trader-risk wants
it under 10 minutes old, so refresh it right before each order.python3 "${CLAUDE_SKILL_DIR}/merrymen.py" summary reads it back: tokens,
mode, permission expiry, per-trade limit, what is left of the 24-hour budget."venue": "merrymen").
Call quote_trade for exactly that agent, side, token and amount_usdg,
and save it to trader/merrymen/quotes.json. Then /trader-risk.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 with any number or stock
that is not on this ticket). Ask again. Never turn a reply into a yes yourself.propose_trade with exactly the JSON
it printed, idempotency key included (a retried call then never makes a
second proposal). Claude's permission card appears: allow it once, or deny.ticket.py result --index N --status proposed --proposal-id <id> --approval-url <approval_url>, or --status denied if the card was
denied (the call never ran). If the call errored or timed out, record
--status failed --note "...": it may have made a proposal anyway, so it
counts against today's limits and the ticket is not offered again. Call
propose_trade again with exactly the same arguments and the SAME
idempotency key (it prints them): Merrymen returns the proposal the failed
call made, or makes it now. Record that as --status proposed. Never ask
for a new yes to get a new key; that could leave two proposals to approve.approval_url. They sign in to Merrymen and approve or
decline it there; it expires 15 minutes after it was made. Approval
re-quotes a buy and refuses it if the price moved past the quoted minimum
or the agent's paper/live mode changed.get_proposal. awaiting_approval,
approved, submitted, executing and filled_awaiting_ledger are not
outcomes: check again later. Then record the outcome:
confirmed (on chain) or paper_filled (practice): ticket.py result --index N --status confirmed|paper_filled --filled-qty Q --filled-price P,
the token amount and the USD price per token from get_proposal's result
or the matching get_trades row. The outcome and the fill are saved first,
then applied to trader/portfolio.json once per proposal id. If anything
stops in between, run the same command again: it finishes the accounting
and never applies a fill twice.refused, expired, cancelled or rejected: --status that. Nothing traded.failed: --status failed. Merrymen also calls an outcome it could not
confirm failed, so it may have traded: check get_trades and
get_portfolio before anything else. It keeps counting against today's
limits and is never proposed again blind.
A proposal known to have traded nothing (expired, cancelled, or a card
denied before the call ran) can be tried again only with a fresh quote, a
new trader-risk PASS and a new yes.cancel_proposal (Claude's card asks), then
get_proposal and record the outcome.Merrymen holds no resting stop-loss or take-profit order. The stop and the target are a plan. trader-alerts watches them, and getting out is a sell the owner approves in Merrymen, so it can fill well past the stop. Say so plainly.
alerts.py add --from-plan).flat_by (15:55 New York), sell what is open:
get_portfolio for the agent (its current book): the token's value in USDG.ticket.py flatten --symbol TSLA --value-usdg <value> writes a market sell
for that value plus 1% (Merrymen sells at most what the agent holds, so
this sells all of it), never over the signed per-trade limit. trader-budget
kept entries 5% under that limit so this fits; after a bigger rise it says
PART ONLY: record that part's fill, then flatten again for the rest. The
ticket carries the holding it was made from (from trader/portfolio.json,
so the buy's fill must be recorded first): each part is its own order, a
retry of the same part is the same order, and trader-risk blocks a ticket
whose holding no longer matches.trader/merrymen/agent.json, quote_trade the sell, save it, /trader-risk.
A sell of a token the agent holds is never blocked by the daily limits or
the entry window.ticket.py show, the user's yes for that one order, propose_trade, the
owner's approval, get_proposal, result, as above.TSLA on Monday 2026-10-19 at 10:15 AM, paper agent robin with a signed
per-trade limit of 25 USDG. trader-budget sized 23.75 USDG (the per-trade
limit binds, less 5% so the closing sell fits under it), the quote put the
token at 364.90 against the stock's 364.18, and trader-risk passed it:
ORDER 1 of 1, PAPER (the agent's practice book), Merrymen
BUY 23.75 USDG of TSLA on Merrymen, market
token 0x1a1a...1a1a, agent robin
plan: stop 358.32, target 370.04 (watched by trader-alerts; Merrymen holds no stop order)
max loss about $0.48 if it is sold at the stop, with the token's price and costs
why: opening-range breakout on TSLA: 23.75 USDG, about 0.065215 shares, bound by agent per trade
READY: trader-risk PASS, waiting for your yes
Claude will call propose_trade with exactly (the key is set when you say yes):
{"agent": "robin", "side": "buy", "token": "0x1a1a...1a1a", "amount_usdg": 23.75,
"idempotency_key": "<set at your yes>", "note": "opening-range breakout on TSLA: ..."}
Nothing trades on that call. Merrymen returns an approval link; the owner signs in there and
approves within 15 minutes, and the agent's signed limits still apply after that.
The user replies "yes". Claude records it, calls propose_trade, the card
asks once more, and Merrymen answers with a proposal id and an approval link.
The user approves it in Merrymen; get_proposal reports paper_filled. The
why goes to the owner as Claude's note; the plan stays in the file.
"paper": true): trader-risk blocks every order unless the Merrymen agent is in
practice (paper) mode. Going live is the owner's own decision, made in Merrymen and in their own config.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub merrymen-labs/merrymen --plugin merrymen-trader11 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./trader-budgetBudget Manager. Sizes every position to your budget, your max loss per trade and your Merrymen agent's own signed limits. Reads the trade plan from trader-exit (entry, stop, target), finds the USDG amount that fits inside every limit (max loss per trade, position cap, max order, cash after your buffer, the agent's per-trade limit, the owner-order cap and half of what is left of its 24-hour budget), says which limit decided it, and writes ONE Merrymen order (a USDG amount of one stock token, by address) to trader/orders.json. A stop too far away for your max loss is a plain refusal, not a smaller order. Nothing is sent. Use when the user says "how much should I buy", "size this trade", "I have $200 on my Merryman", "I only want to risk $2 a trade", "set my rules", "keep 10% in cash", or after /trader-exit writes a plan./trader-entryEntry Timer. Watches a setup bar by bar and tells you the moment to get in. Reads free Yahoo 1-minute or 5-minute bars, builds the opening range (the first 15 minutes by default) and calls the entry on the first completed bar that CLOSES above the range high, or above a level you give it (like a 20-day high from the scanner), with an optional volume check. Says waiting and how far, triggered with the time and the price, expired, or not open yet, and writes trader/entry.json for /trader-exit. Long side only. It never places an order. Use when the user says "tell me when to get in", "watch TSLA", "has it broken out", "did it break the opening range", "entry signal", "time my entry", "check my watchlist", or after /trader-scanner and /trader-news, before /trader-exit./trader-exitExit Planner. Sets your stop and your target before you enter, so you know when to get out. Reads the entry from trader-entry (or a price you give), puts the stop at the opening-range midpoint by default (or the range low, your price, a percent, or a multiple of the ATR), rounds it down to the cent, and sets the target at 2R (or 1R, or your price). Refuses a stop at or above the entry, a target at or below it, or a stop too tight to survive the spread, and says why. Writes trader/plan.json for the Time Machine, the Budget Manager and Price Alerts. Long side only. Use when the user says "where's my stop", "set my stop and target", "plan the exit", "when do I get out", "stop loss", "what's my R", "risk reward", or right after /trader-entry triggers, before /trader-timemachine./trader-newsNews Monitor. Tracks breaking news on every stock you watch and flags what moves it: Yahoo Finance headlines per ticker, each company's 8-K filings on SEC EDGAR (earnings, CEO changes, deals, restatements, bankruptcy) and how far each stock is from yesterday's close. Shows only what is new since the last check, newest first, in New York time, tags each item (earnings, analyst, deal, halt, regulatory, macro...) and never repeats one. Use when the user says "any news on TSLA", "why is this moving", "what's the news on my watchlist", "morning briefing", "pre-market news", "monitor the news", "did anything break", "check the 8-Ks", or after /trader-scanner finds setups.Other plugins' skills for the same job