Install
openclaw skills install zerodha-kiteRoute natural-language trading/account queries to the correct `zerodha` CLI command with exact flags, validation constraints, and synonym mapping. Use when a...
openclaw skills install zerodha-kiteTranslate a user query in plain English into one exact zerodha CLI command.
Do not invent commands or flags. Use only commands defined here.
If the user asks to install/setup the CLI, or reports zerodha: command not found, route to an installer command first.
This is the only exception to "commands must start with zerodha".
Install commands:
curl): curl -fsSL https://raw.githubusercontent.com/jatinbansal1998/zerodha-kite-cli/main/scripts/install.sh | shwget): wget -qO- https://raw.githubusercontent.com/jatinbansal1998/zerodha-kite-cli/main/scripts/install.sh | shirm https://raw.githubusercontent.com/jatinbansal1998/zerodha-kite-cli/main/scripts/install.ps1 | iexpowershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/jatinbansal1998/zerodha-kite-cli/main/scripts/install.ps1 | iex"Post-install verification command:
zerodha versionzerodha (except install/bootstrap commands in "Bootstrap: CLI Installation").--json when the user asks for machine-readable output.--profile <name>--config <path>--json--debug--profile).zerodha config profile use <name>zerodha auth login ....linux, macos, or windows).Use this flow when the user wants to authenticate and provides api_key, api_secret, and token across one or more messages.
Collected auth fields (can arrive in any order):
profile_name (default to default if user does not specify)api_keyapi_secretrequest_token_or_redirect_url, orcallback (optional callback_port)Rules:
zerodha auth login ... until profile credentials are configured.api_key + api_secret are available and profile setup is needed, emit:
zerodha config profile add <profile_name> --api-key <key> --api-secret <secret> --set-activezerodha config profile set-api-key <profile_name> --api-key <key>zerodha config profile set-api-secret <profile_name> --api-secret <secret>zerodha auth login --request-token <token_or_redirect_url>zerodha auth login --callback [--callback-port <1-65535>]zerodha versionzerodha help [command]zerodha completion <shell>zerodha config profile add <name> --api-key <key> --api-secret <secret> [--set-active]
<name> required; --api-key and --api-secret required.zerodha config profile set-api-key <name> --api-key <key>
<name>, --api-key required.zerodha config profile set-api-secret <name> --api-secret <secret>
<name>, --api-secret required.zerodha config profile listzerodha config profile use <name>
<name> must exist.zerodha config profile remove <name>
<name> must exist.zerodha auth login --request-token <token_or_redirect_url>zerodha auth login --callback [--callback-port <1-65535>]
--request-token OR --callback.--request-token cannot be combined with --callback.--callback-port allowed only with --callback.--callback-port range: 1..65535.zerodha auth renew
zerodha auth logoutzerodha auth revoke-refresh [--refresh-token <token>]
zerodha profile showzerodha profile fullzerodha quote get <EXCHANGE:SYMBOL> [EXCHANGE:SYMBOL...]
zerodha quote ltp <EXCHANGE:SYMBOL> [EXCHANGE:SYMBOL...]
zerodha quote ohlc <EXCHANGE:SYMBOL> [EXCHANGE:SYMBOL...]
zerodha quote historical --instrument-token <int> --interval <value> --from <time> --to <time> [--continuous] [--oi]
--instrument-token > 0--interval required--from and --to requiredYYYY-MM-DD or YYYY-MM-DD HH:MM:SS or RFC3339--from <= --tozerodha instruments list [--exchange <EXCHANGE> | --all]
--exchange and --all are mutually exclusive.zerodha instruments mfzerodha order place --exchange <EX> --symbol <SYM> --txn <BUY|SELL> --type <MARKET|LIMIT|SL|SL-M> --product <CNC|MIS|NRML|MTF> --qty <n> [--price <p>] [--trigger-price <p>] [--validity <DAY|IOC|TTL>] [--validity-ttl <min>] [--variety <v>] [--tag <t>]
--exchange --symbol --txn --type --product --qty--qty > 0--price > 0--price > 0 and --trigger-price > 0--trigger-price > 0--validity-ttl > 0zerodha order modify --order-id <id> [fields...]
--order-id required--txn must be BUY/SELL; --type must be MARKET/LIMIT/SL/SL-M; --validity must be DAY/IOC/TTL.zerodha order cancel --order-id <id> [--variety <v>] [--parent-order-id <id>]
--order-id required.zerodha order exit --order-id <id> [--variety <v>] [--parent-order-id <id>]
--order-id required.zerodha orders listzerodha orders show --order-id <id>
--order-id required.zerodha orders trades [--order-id <id>]zerodha positionszerodha positions convert --exchange <EX> --symbol <SYM> --old-product <CNC|MIS|NRML|MTF> --new-product <CNC|MIS|NRML|MTF> --position-type <day|overnight> --txn <BUY|SELL> --qty <n>
--qty > 0zerodha holdingszerodha holdings auctionszerodha holdings auth-initiate [--type <equity|mf>] [--transfer-type <pre|post|off|gift>] [--exec-date YYYY-MM-DD] [--isin <isin> ...] [--qty <float> ...]
--type set, must be equity|mf--transfer-type set, must be pre|post|off|gift--exec-date set, format must be YYYY-MM-DD--isin and --qty must have matching counts--qty must be > 0zerodha margins [--segment <all|equity|commodity>]zerodha margins order --exchange <EX> --symbol <SYM> --txn <BUY|SELL> --type <MARKET|LIMIT|SL|SL-M> --product <CNC|MIS|NRML|MTF> --qty <n> [--price <p>] [--trigger-price <p>] [--variety <v>] [--compact]zerodha margins basket --exchange <EX> --symbol <SYM> --txn <BUY|SELL> --type <MARKET|LIMIT|SL|SL-M> --product <CNC|MIS|NRML|MTF> --qty <n> [--price <p>] [--trigger-price <p>] [--variety <v>] [--compact] [--consider-positions]zerodha margins charges --exchange <EX> --symbol <SYM> --txn <BUY|SELL> --type <MARKET|LIMIT|SL|SL-M> --product <CNC|MIS|NRML|MTF> --qty <n> --avg-price <p> [--price <p>] [--trigger-price <p>] [--variety <v>] [--order-id <id>]
--exchange --symbol --txn --type --product --qty--qty > 0--price > 0--price > 0 and --trigger-price > 0--trigger-price > 0--avg-price > 0zerodha gtt place [gtt flags]zerodha gtt modify --trigger-id <id> [gtt flags]zerodha gtt listzerodha gtt show --trigger-id <id>zerodha gtt delete --trigger-id <id>GTT common flags:
--exchange <EX> --symbol <SYM> --last-price <p> --txn <BUY|SELL> [--product <CNC|MIS|NRML|MTF>] [--type <single|two-leg>]single type:
--trigger <p> --limit-price <p> --qty <q>two-leg type:
--lower-trigger <p> --lower-limit-price <p> --lower-qty <q>--upper-trigger <p> --upper-limit-price <p> --upper-qty <q>GTT constraints:
--exchange --symbol --txn required--last-price > 0--txn in BUY|SELL--product in CNC|MIS|NRML|MTF--trigger-id > 0 for show/modify/deletezerodha mf orders place --symbol <SYM> --txn <BUY|SELL> [--qty <q>] [--amount <amt>] [--tag <t>]
--symbol and --txn required--qty or --amount must be > 0--qty and --amount cannot be negativezerodha mf orders list [--from YYYY-MM-DD --to YYYY-MM-DD]
--from and --to must be provided togetherYYYY-MM-DDzerodha mf orders show --order-id <id>
--order-id requiredzerodha mf orders cancel --order-id <id>
--order-id requiredzerodha mf sips place --symbol <SYM> --amount <amt> --instalments <n> --frequency <f> [--instalment-day <1..31>] [--initial-amount <amt>] [--trigger-price <p>] [--step-up <v>] [--sip-type <v>] [--tag <t>]
--symbol --amount --instalments --frequency--amount > 0, --instalments > 0--instalment-day if provided must be in 1..31 (0 means not set)--initial-amount and --trigger-price cannot be negativezerodha mf sips modify --sip-id <id> [--amount <amt>] [--frequency <f>] [--instalment-day <1..31>] [--instalments <n>] [--step-up <v>] [--status <v>]
--sip-id requiredzerodha mf sips cancel --sip-id <id>
--sip-id requiredzerodha mf sips listzerodha mf sips show --sip-id <id>
--sip-id requiredzerodha mf holdingszerodha mf holdings show --isin <isin>
--isin requiredzerodha mf holdings isinsUse these mappings during intent parsing.
quote synonyms: price, live price, current price, quote, snapshotltp synonyms: ltp, last traded price, last price, tickohlc synonyms: open high low close, ohlc, candle snapshothistorical synonyms: history, candles, chart data, time seriesprofile synonyms: account details, user profile, my accountlogin synonyms: authenticate, sign in, connect kiterenew synonyms: refresh access token, renew tokenlogout synonyms: sign out, clear sessioninstall cli synonyms: install zerodha cli, setup zerodha cli, command not found, zerodha not installedorder place synonyms: buy, sell, place order, new order, execute tradeorder modify synonyms: edit order, change order, update orderorder cancel synonyms: cancel order, delete orderorder exit synonyms: square off order, exit orderorders list synonyms: orderbook, all ordersorders trades synonyms: tradebook, fills, executed tradespositions synonyms: open positions, net positionspositions convert synonyms: convert position, change product typeholdings synonyms: portfolio holdings, stocks held, demat holdingsholdings auctions synonyms: auction holdings, auction eligiblemargins synonyms: available margin, used margin, fundsmargins order synonyms: margin required, order margin estimatemargins basket synonyms: basket margin, combined marginmargins charges synonyms: brokerage estimate, charges, feesgtt synonyms: good till trigger, trigger order, price alert ordergtt two-leg synonyms: oco, one cancels other, bracket triggermf orders synonyms: mutual fund order, fund buy/sellmf sips synonyms: sip, systematic investment planmf holdings synonyms: mutual fund portfolio, fund holdingszerodha command request.curl -fsSL https://raw.githubusercontent.com/jatinbansal1998/zerodha-kite-cli/main/scripts/install.sh | shirm https://raw.githubusercontent.com/jatinbansal1998/zerodha-kite-cli/main/scripts/install.ps1 | iexapi_key and api_secret first (profile defaults to default unless specified)api_key + api_secret but no token/mode:
--request-token or --callback)zerodha profile show.zerodha orders list.zerodha orders trades.zerodha positions.zerodha holdings.zerodha margins --segment all.zerodha instruments list.When responding with a routed command, return:
command: exact runnable command (installer command for bootstrap, otherwise zerodha ...)why: one-line reasonmissing: required fields still missing (empty if none)