Places, cancels, and tracks orders via paper or live brokers with a two-step preview-and-confirm flow, stop-loss/take-profit, position/account views, GTT stops, kill switch, and paper fill processing.
Ships in trading-skills. 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; scripts run unread.
trading-broker)The only skill that touches orders. Paper by default; live only when the user has enabled it.
check -> must PASS for opening orders (approval is tied to symbol/side/qty/stop).preview -> prints the exact order and a 6-character CONFIRM CODE.submit --confirm CODE.python3 scripts/router.py preview --symbol AAPL --side buy --qty 70 --type limit --limit-price 195 \
--stop-loss 188 --take-profit 212
python3 scripts/router.py submit --confirm 7KQ2XD
python3 scripts/router.py preview --symbol AAPL --side sell --qty 70 --type market --close # exit
python3 scripts/router.py positions | account | orders --open
python3 scripts/router.py cancel P1a2b3c4d5
python3 scripts/router.py process # paper: fill resting/stop/target orders + sync journal
python3 scripts/router.py kill on --reason "..." # halt everything (kill off / kill status)
python3 scripts/router.py kill on --flatten # paper: cancel + close all; live: cancel open orders
python3 scripts/router.py preview --protect --symbol NSE:INFY --qty 10 --stop-price 1450 # broker-side GTT stop
submit without the user's explicit confirmation of the previewed order in this
conversation. A request like "buy it" before the preview is not confirmation of the preview.~/.trading-skills/pending/ or approvals/.broker.live_trading_enabled (set only through trading-setup live on).
If the user wants live trading, first confirm they have paper-traded the strategy.quote, ideally from the broker) - free data may lag.Simulated account in ~/.trading-skills/paper/ (starting cash = account.equity). Market orders
fill at the latest price +/- slippage; limit/stop orders rest until process sees a bar trade through;
--stop-loss/--take-profit become an OCO exit pair after the entry fills. Commissions and slippage
come from config costs. Run process daily (or schedule it) to fill resting orders and auto-close
journal trades when stops/targets hit. Reset with trading-setup paper-reset.
Live orders go through a broker adapter (core/tradekit/brokers/); trading-setup lists the ones
available and how to connect. The flow, gate and confirm step are identical for every broker.
Fyers, Upstox, Dhan, Groww adapters (beta): symbol formats differ (Fyers NSE:SBIN-EQ, Upstox NSE_EQ|INE..., Dhan NSE_EQ:11536, Groww NSE:RELIANCE); products CNC/MIS/NRML map to each broker's names. Entry orders do not carry the stop - place a stop order after the fill. Upstox refuses market orders. See docs/USAGE.md section 7.
Zerodha Kite adapter: symbols EXCHANGE:SYMBOL; product from --product or broker.default_product (CNC/MIS/NRML).
Entry orders do not carry the stop: after the fill, place a protective GTT (preview --protect)
or a stop order. Check your broker's API rules (static IP registration, algo IDs, market-order
restrictions) before going live. Every action is logged to ~/.trading-skills/audit.log.
scripts/_vendor/tradekit/__init__.py (opens in a new tab)scripts/_vendor/tradekit/alerts.py (opens in a new tab)scripts/_vendor/tradekit/analysis.py (opens in a new tab)scripts/_vendor/tradekit/backtest.py (opens in a new tab)scripts/_vendor/tradekit/brokers/__init__.py (opens in a new tab)scripts/_vendor/tradekit/brokers/_rest.py (opens in a new tab)scripts/_vendor/tradekit/brokers/base.py (opens in a new tab)scripts/_vendor/tradekit/brokers/dhan.py (opens in a new tab)scripts/_vendor/tradekit/brokers/fyers.py (opens in a new tab)scripts/_vendor/tradekit/brokers/groww.py (opens in a new tab)scripts/_vendor/tradekit/brokers/kite.py (opens in a new tab)scripts/_vendor/tradekit/brokers/paper.py (opens in a new tab)scripts/_vendor/tradekit/brokers/upstox.py (opens in a new tab)scripts/_vendor/tradekit/cli.py (opens in a new tab)scripts/_vendor/tradekit/config.py (opens in a new tab)scripts/_vendor/tradekit/data.py (opens in a new tab)scripts/_vendor/tradekit/disclosures.py (opens in a new tab)scripts/_vendor/tradekit/expr.py (opens in a new tab)scripts/_vendor/tradekit/feeds.py (opens in a new tab)scripts/_vendor/tradekit/frame.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
trading, broker, order-management, paper-trading, stop-loss, take-profit
Other plugins' skills for the same job
/trading-skills:trading-brokerfrom trading-skills
npx claudepluginhub reddygopalkrishna/trading-skills --plugin trading-skills21 skills in this plugin
/trading-alertsPrice alerts for any market - above or below a price, a trade's stop and target (long or short), a percent move from the previous close, a time on the exchange clock, the opening bell and minutes before the close, plus stop and target alerts for every open trade in the journal in one go. Works out each exchange's session from the data (NYSE, Nasdaq, NSE, BSE, LSE, TSE...) so holidays need no tables; each alert rings once; optional desktop notifications. Use when the user says "alert me when", "tell me if RELIANCE crosses 1400", "watch my stop", "remind me to close by 3:20", "is the market open", "when does NSE open", or right after a trade is planned or opened./trading-backtestBacktest trading strategies written as simple rules on one or many symbols in any market - next-bar-open execution with no look-ahead, commissions and slippage, ATR/percent/rule-based stops, R or percent targets, trailing stops, time exits, risk-based position sizing, max concurrent positions with ranking, benchmark comparison, in-sample vs out-of-sample split and a self-contained HTML report. Use when the user asks "does this strategy work", "backtest X", "test a moving-average crossover", "what if I bought when RSI was below 30", or wants to validate an idea before trading it.