Configures the trading-skills toolkit: account size, currency, benchmark, risk limits, data provider, broker credentials, and live-trading switch. Run when getting started or changing risk settings.
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-setup)One-time (and occasional) configuration for every skill in the pack. All state lives in
~/.trading-skills/ (override with TRADING_SKILLS_HOME). Works with zero API keys:
free Yahoo data + the built-in paper broker.
Run commands from this skill's directory. Python 3.9+, standard library only.
Ask the user (in one message) for: account size and currency, a benchmark index or ETF for their market, and risk per trade (suggest 0.5-1%). Then:
python3 scripts/setup.py init --equity 100000 --currency USD --benchmark SPY --risk-pct 1
python3 scripts/setup.py doctor
Benchmark examples (Yahoo symbols): SPY / ^GSPC, QQQ, ^FTSE, ^N225, ^NSEI, ^GDAXI, BTC-USD.
Exchange suffixes follow Yahoo: .L London, .TO Toronto, .NS NSE, .BO BSE, .T Tokyo, .HK, .AX, .DE.
| Command | Purpose |
|---|---|
init [--equity --currency --benchmark --provider --broker --risk-pct --exchange --product] | create/update config |
show [--json] | print config (secrets masked) |
set KEY VALUE / get KEY | edit any dotted key, e.g. set risk.max_daily_loss_pct 2 |
doctor [--symbol X] | check Python, data provider, broker, journal, kill switch |
paper-reset [--cash N] | wipe the paper account |
kite-login --api-key K --api-secret S | save Kite credentials, print the login URL |
kite-session --request-token T | exchange the token for a daily access token |
fyers-login --app-id --secret --redirect-uri / fyers-session --auth-code | Fyers login (daily) |
upstox-login --api-key --api-secret --redirect-uri / upstox-session --code | Upstox login (daily) |
dhan-login --client-id --access-token | save Dhan token (24 h) |
groww-login --access-token (or --api-key --api-secret) | save Groww token (daily) |
live on --i-understand-the-risks / live off | enable/disable real orders |
risk.*)risk_per_trade_pct (1.0), max_position_pct (20), max_open_risk_pct (6), max_open_positions (8),
max_daily_loss_pct (3), max_drawdown_pct (15), min_reward_risk (1.5), max_consecutive_losses (3).
These are enforced by trading-risk; change them only when the user explicitly asks.
Live brokers plug in through adapters in core/tradekit/brokers/; the paper broker needs nothing.
Adapters available now: Zerodha Kite (below) and beta adapters for Fyers, Upstox, Dhan, Groww (login steps in docs/USAGE.md section 7; Angel One is not supported). If the user's broker has no adapter yet, everything
except automatic order placement still works: they place the planned order in their broker's app.
data.provider=yahoo.setup.py init --broker kite --exchange NSE --product CNCsetup.py kite-login --api-key ... --api-secret ... -> user opens the URL and logs inrequest_token from the redirect URL -> setup.py kite-session --request-token ...Credentials can also come from env vars KITE_API_KEY, KITE_API_SECRET, KITE_ACCESS_TOKEN.
show masks them.live on unless the user explicitly asks for live trading in this conversation and
understands real money is at risk. Recommend weeks of paper trading first.set refuses broker.live_trading_enabled; use live on|off.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
Other plugins' skills for the same job
/trading-skills:trading-setupfrom 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.