CLI reference
Generated by scripts/docgen/cli-ref. Do not edit by hand. Run make docs-regen after changing internal/cli/cli.go or internal/cli/catalog.go.
ibkr is one binary with 35 subcommands, listed here in registry order. ibkr status comes first on purpose: when anything else fails, it is the command that says whether the daemon is running and the gateway is reachable. Running ibkr with no arguments in an interactive terminal opens the full-screen terminal app, which reads the same registry.
Add --json to a data command for machine-readable output instead of a table. Commands that accept --watch redraw on an interval set by --rate, as in ibkr account --watch --rate 1s. Color is on for terminals and off for pipes; NO_COLOR=1 turns it off, and IBKR_COLOR=always or IBKR_COLOR=never forces it either way.
The flag tables below come from the shared command catalog. Run ibkr <command> --help for the flags a command parses today, with their help text. That output is the authority if the two ever disagree.
The guard column says what a command does: read-only reads and prints, local writes local state such as the watchlist or a config file, and confirm reaches something a human has to decide first. Where subcommands carry different guards, the summary shows the strictest one and the command's own section lists the split. The guard is documentation of behavior, not the mechanism that enforces it. The real gates live in the CLI. Standard builds have no broker-write path compiled in at all. The separate trading build adds one, and it still requires a verified gateway session, a submit-eligible preview token where one applies, a local journal entry, daemon authorization, and trading.freeze set to false. Nothing on this page grants any of that.
Command summary
| Command | Summary | Guard | MCP tool |
|---|---|---|---|
ibkr status |
Daemon + gateway health (run this first if anything fails) | read-only |
yes |
ibkr account |
Account summary snapshot (NLV, BP, cash, margin, daily P&L) | read-only |
yes |
ibkr positions |
List open positions (stocks + options) | read-only |
yes |
ibkr quote |
Snapshot or stream quotes for symbols / option contracts | read-only |
yes |
ibkr watch |
Local watchlist symbols; add/remove/clear offline or quote the list live | local |
yes |
ibkr calendar |
Official market sessions for US equities, US options, and Xetra | read-only |
yes |
ibkr chain |
Option chain table or expiry list | read-only |
yes |
ibkr history |
Daily OHLCV bars for a symbol | read-only |
yes |
ibkr technical |
Trend, relative strength, ATR, and liquidity from daily bars | read-only |
yes |
ibkr market-events |
Held-symbol market-event flags: borrow inventory, Reg SHO, LULD, and halts | read-only |
yes |
ibkr breadth |
S&P 500 breadth — % above 50/200-DMA + new-highs/new-lows, computed locally from constituent fan-out (~60 min cold) | read-only |
yes |
ibkr gamma |
SPX-canonical dealer zero-gamma estimate with SPY context (daemon-prewarmed; refreshes behind the served value after 15m in RTH; off-hours refresh not due) | read-only |
yes |
ibkr regime |
Broad-market stress lifecycle across vol, credit, funding, FX, gamma, and breadth | read-only |
yes |
ibkr canary |
Stateless market-regime × portfolio-shape canary with action, evidence, and source health | read-only |
yes |
ibkr brief |
Typed morning/EOD operator brief with disclosed source degradation | read-only |
CLI only |
ibkr rules |
Advisory 14-rule daily trading checklist, hardest breach first | read-only |
yes |
ibkr policy |
Risk constitution: effective limits, capital/drawdown state, overrides (human-only writes) | confirm |
CLI only |
ibkr recon |
Post-trade reconciliation: broker statement flows vs the declared capital ledger | confirm |
CLI only |
ibkr proposals |
Daemon-owned close/reduce-only protection proposals | confirm |
yes |
ibkr opportunities |
Daemon-owned option exercise opportunities | confirm |
yes |
ibkr purge |
Emergency fast-path close for current stock/ETF and single-leg option positions | confirm |
CLI only |
ibkr backtest |
Offline canary/regime/opportunity backtest harness from JSONL snapshots | local |
CLI only |
ibkr scan |
Run a scanner preset or an ad-hoc scan; dump the gateway catalog with scan params |
read-only |
yes |
ibkr size |
Fixed-fractional position sizing pegged to live NLV | read-only |
yes |
ibkr trading |
Local trading gate status and configuration | confirm |
yes |
ibkr settings |
Runtime platform preferences and observed read-only state | confirm |
yes |
ibkr orders |
Read current-context local order lifecycle state without transmitting orders | read-only |
yes |
ibkr order |
Preview, place, modify, cancel, or inspect gated orders | confirm |
yes |
ibkr app |
Run the paired mobile PWA application layer | confirm |
CLI only |
ibkr mcp |
Run the stdio MCP server for local AI clients | local |
CLI only |
ibkr daemon |
Run the stateful gateway daemon (normally autospawned) | local |
CLI only |
ibkr setup |
Wire ibkr into a local AI client (default: claude-desktop) | local |
CLI only |
ibkr update |
Self-update the ibkr binary from the latest GitHub release | confirm |
CLI only |
ibkr restart |
Gracefully restart the daemon and any running app process | confirm |
CLI only |
ibkr version |
Print version, commit, build date | local |
CLI only |
ibkr status
Daemon + gateway health (run this first if anything fails).
Guard read-only. Also available as an MCP tool.
ibkr status [--json]
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--json |
no | - |
ibkr account
Account summary snapshot (NLV, BP, cash, margin, daily P&L).
Guard read-only. Also available as an MCP tool.
ibkr account [--watch --rate 1s] [--json]
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--watch |
no | - |
--rate |
yes | - |
--json |
no | - |
ibkr positions
List open positions (stocks + options).
Guard read-only. Also available as an MCP tool.
ibkr positions [--symbol SYM] [--type stk|opt] [--sort alpha|pnl|value] [--quotes] [--by underlying] [--watch --rate 1s] [--json]
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--symbol |
yes | - |
--type |
yes | stk, opt |
--sort |
yes | alpha, pnl, value |
--quotes |
no | - |
--by |
yes | underlying |
--view |
yes | full, risk |
--watch |
no | - |
--rate |
yes | - |
--json |
no | - |
ibkr quote
Snapshot or stream quotes for symbols / option contracts.
Guard read-only. Also available as an MCP tool.
ibkr quote SYM[,SYM…] [--market us|de] [--watch --rate 250ms]
ibkr quote SYM YYMMDD C|P STRIKE [--json]
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--market |
yes | us, de |
--watch |
no | - |
--rate |
yes | - |
--timeout |
yes | - |
--exchange |
yes | - |
--primary |
yes | - |
--currency |
yes | - |
--json |
no | - |
ibkr watch
Local watchlist symbols; add/remove/clear offline or quote the list live.
Guard local. Also available as an MCP tool.
ibkr watch [--quotes] [--timeout 5s] [--json]
ibkr watch --list [--json]
ibkr watch --watch --rate 1s
ibkr watch SYM[,SYM…] --add|--remove
ibkr watch --clear
Subcommands
| Subcommand | Guard |
|---|---|
add |
local |
remove |
local |
list |
read-only |
clear |
local |
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--quotes |
no | - |
--timeout |
yes | - |
--json |
no | - |
--list |
no | - |
--watch |
no | - |
--rate |
yes | - |
--add |
no | - |
--remove |
no | - |
--clear |
no | - |
ibkr calendar
Official market sessions for US equities, US options, and Xetra.
Guard read-only. Also available as an MCP tool.
ibkr calendar [--market us|us-options|de] [--date YYYY-MM-DD] [--next 14] [--json]
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--market |
yes | us, us-options, de |
--date |
yes | - |
--next |
yes | - |
--json |
no | - |
ibkr chain
Option chain table or expiry list.
Guard read-only. Also available as an MCP tool.
ibkr chain SYM [--expiry YYYY-MM-DD [--width 5] [--side calls|puts|both] [--class SPX|SPXW]] [--no-iv] [--all-expiries] [--require-live-iv] [--min-dte N] [--max-dte N] [--target-dte N] [--json]
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--expiry |
yes | - |
--width |
yes | - |
--side |
yes | calls, puts, both |
--class |
yes | SPX, SPXW |
--no-iv |
no | - |
--all-expiries |
no | - |
--require-live-iv |
no | - |
--min-dte |
yes | - |
--max-dte |
yes | - |
--target-dte |
yes | - |
--json |
no | - |
ibkr history
Daily OHLCV bars for a symbol.
Guard read-only. Also available as an MCP tool.
ibkr history SYM [--days 90] [--json]
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--days |
yes | - |
--json |
no | - |
ibkr technical
Trend, relative strength, ATR, and liquidity from daily bars.
Guard read-only. Also available as an MCP tool.
ibkr technical SYM[,SYM...] [--benchmark SPY] [--market us|de] [--json]
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--benchmark |
yes | - |
--market |
yes | us, de |
--lookback-days |
yes | - |
--exchange |
yes | - |
--primary |
yes | - |
--currency |
yes | - |
--json |
no | - |
ibkr market-events
Held-symbol market-event flags: borrow inventory, Reg SHO, LULD, and halts.
Guard read-only. Also available as an MCP tool.
ibkr market-events [SYM[,SYM...]] [--symbol SYM] [--json]
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--symbol |
yes | - |
--json |
no | - |
ibkr breadth
S&P 500 breadth — % above 50/200-DMA + new-highs/new-lows, computed locally from constituent fan-out (~60 min cold).
Guard read-only. Also available as an MCP tool.
ibkr breadth [--days 30] [--json]
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--days |
yes | - |
--json |
no | - |
ibkr gamma
SPX-canonical dealer zero-gamma estimate with SPY context (daemon-prewarmed; refreshes behind the served value after 15m in RTH; off-hours refresh not due).
Guard read-only. Also available as an MCP tool.
ibkr gamma [--no-wait] [--force] [--only spy|spx] [--explain] [--diagnostics] [--json]
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--no-wait |
no | - |
--force |
no | - |
--only |
yes | spy, spx |
--explain |
no | - |
--diagnostics |
no | - |
--profiles |
no | - |
--json |
no | - |
ibkr regime
Broad-market stress lifecycle across vol, credit, funding, FX, gamma, and breadth.
Guard read-only. Also available as an MCP tool.
ibkr regime [--explain [--diagnostics]] [--watch --rate 5m] [--log PATH] [--json]
ibkr regime history [--since YYYY-MM-DD|RFC3339] [--until YYYY-MM-DD|RFC3339] [--stage STAGE] [--limit N] [--json]
Subcommands: history.
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--explain |
no | - |
--diagnostics |
no | - |
--watch |
no | - |
--rate |
yes | - |
--log |
yes | - |
--view |
yes | detail, monitor |
--since |
yes | - |
--until |
yes | - |
--stage |
yes | - |
--limit |
yes | - |
--json |
no | - |
ibkr canary
Stateless market-regime × portfolio-shape canary with action, evidence, and source health.
Guard read-only. Also available as an MCP tool.
ibkr canary [--details] [--view full|alert] [--json]
ibkr canary history [--since YYYY-MM-DD|RFC3339] [--until YYYY-MM-DD|RFC3339] [--severity SEV] [--action ACTION] [--limit N] [--json]
Subcommands: history.
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--details |
no | - |
--view |
yes | full, alert |
--since |
yes | - |
--until |
yes | - |
--severity |
yes | - |
--action |
yes | - |
--limit |
yes | - |
--json |
no | - |
ibkr brief
Typed morning/EOD operator brief with disclosed source degradation.
Guard read-only. CLI only, with no MCP tool: daily brief MCP exposure is explicitly deferred until after phase 2; agent CLI renders are read-only and never stamp.
ibkr brief [--json] [--kind morning|eod]
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--json |
no | - |
--kind |
yes | morning, eod |
ibkr rules
Advisory 14-rule daily trading checklist, hardest breach first.
Guard read-only. Also available as an MCP tool.
ibkr rules [--all] [--symbol SYM] [--json]
ibkr rules history [--since YYYY-MM-DD|RFC3339] [--until YYYY-MM-DD|RFC3339] [--rule ID] [--limit N] [--json]
Subcommands: history.
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--all |
no | - |
--symbol |
yes | - |
--since |
yes | - |
--until |
yes | - |
--rule |
yes | - |
--limit |
yes | - |
--json |
no | - |
ibkr policy
Risk constitution: effective limits, capital/drawdown state, overrides (human-only writes).
Guard read-only, with confirm subcommands. CLI only, with no MCP tool: risk-constitution surface deferred from MCP in phase 1 (internal-docs/design/risk-policy.md): its writes are human-only governance acts the daemon rejects from agents, and the read view ships CLI-first; revisit after the phase-2 manual cadence.
ibkr policy show [--explain] [--json]
ibkr policy capital-event deposit|withdrawal [--amount F] [--effective-at TIME] [--note S]
ibkr policy capital-event reconcile [--report ID]
ibkr policy override --control KEY --reason S --hours N
ibkr policy reset-drawdown --reason S
ibkr policy artefact morning|eod|weekly [--note S]
Subcommands
| Subcommand | Guard |
|---|---|
show |
read-only |
capital-event |
confirm |
override |
confirm |
reset-drawdown |
confirm |
correct-peak |
confirm |
artefact |
confirm |
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--explain |
no | - |
--amount |
yes | - |
--effective-at |
yes | - |
--note |
yes | - |
--control |
yes | - |
--reason |
yes | - |
--hours |
yes | - |
--report |
yes | - |
--peak |
yes | - |
--from-statements |
no | - |
--json |
no | - |
ibkr recon
Post-trade reconciliation: broker statement flows vs the declared capital ledger.
Guard read-only, with confirm subcommands. CLI only, with no MCP tool: post-trade reconciliation surface deferred from MCP in phase 3a (internal-docs/design/post-trade-truth.md): dismiss/sign-off are human-only governance acts and the read view ships CLI-first, same posture as policy; revisit together with it.
ibkr recon show [--refresh] [--json]
ibkr recon backtest [--refresh] [--json]
ibkr recon equity [--since YYYY-MM-DD|RFC3339] [--until YYYY-MM-DD|RFC3339] [--limit N] [--json]
ibkr recon dismiss --line ID --reason S
Subcommands
| Subcommand | Guard |
|---|---|
show |
read-only |
equity |
read-only |
dismiss |
confirm |
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--refresh |
no | - |
--line |
yes | - |
--reason |
yes | - |
--since |
yes | - |
--until |
yes | - |
--limit |
yes | - |
--json |
no | - |
ibkr proposals
Daemon-owned close/reduce-only protection proposals.
Protection proposals are advisory. The daemon can propose a close or a reduce, and only submit and reduce reach the broker. Each needs an explicit human instruction for that exact order.
Guard confirm. Also available as an MCP tool.
ibkr proposals status|refresh|list|preview|submit|reduce|ignore [--json]
Subcommands
| Subcommand | Guard |
|---|---|
status |
read-only |
refresh |
read-only |
list |
read-only |
preview |
read-only |
submit |
confirm |
reduce |
confirm |
ignore |
local |
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--quantity |
yes | - |
--timeout |
yes | - |
--fast-path |
no | - |
--reason |
yes | - |
--percent |
yes | 25, 50, 75, 100 |
--con-id |
yes | - |
--include-hedges |
no | - |
--portfolio |
no | - |
--protect-hedges |
no | - |
--submit |
no | - |
--json |
no | - |
ibkr opportunities
Daemon-owned option exercise opportunities.
Opportunity detection is advisory. Only exercise reaches the broker, and it needs an explicit human instruction for that exact action.
Guard confirm. Also available as an MCP tool.
ibkr opportunities status|refresh|list|preview|exercise|ignore [--json]
Subcommands
| Subcommand | Guard |
|---|---|
status |
read-only |
refresh |
read-only |
list |
read-only |
preview |
read-only |
exercise |
confirm |
ignore |
local |
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--quantity |
yes | - |
--timeout |
yes | - |
--reason |
yes | - |
--json |
no | - |
ibkr purge
Emergency fast-path close for current stock/ETF and single-leg option positions.
ibkr purge SYMBOL, ibkr purge --all, and purge execute close live positions through the broker. They carry the same gate as ibkr order: an explicit human instruction for that exact action, in that moment. dry-run, status, and monitor only read.
Guard confirm. CLI only, with no MCP tool: emergency local-terminal purge-book workflow; deliberately withheld from MCP until execution/review safety is proven.
ibkr purge SYMBOL|'*' [--wait 2s] [--json]
ibkr purge --all [--wait 2s] [--json]
ibkr purge restore SYMBOL|'*' [--scale 0.5] [--execute] [--json]
ibkr purge status [PURGE_ID] [--json]
ibkr purge monitor [PURGE_ID] [--watch --rate 1s]
ibkr purge dry-run [--json]
Subcommands
| Subcommand | Guard |
|---|---|
dry-run |
read-only |
status |
read-only |
monitor |
read-only |
restore |
read-only |
execute |
confirm |
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--all |
no | - |
--json |
no | - |
--timeout |
yes | - |
--watch |
no | - |
--rate |
yes | - |
--scale |
yes | - |
--record |
no | - |
--save |
no | - |
--execute |
no | - |
--wait |
yes | - |
--account |
yes | - |
ibkr backtest
Offline canary/regime/opportunity backtest harness from JSONL snapshots.
Guard local. CLI only, with no MCP tool: offline research harness over local JSONL fixtures; not a live broker/MCP operation.
ibkr backtest canary|regime|opportunity|build-regime|build-opportunity --input PATH [--json]
ibkr backtest build-opportunity-pit --bars BARS.jsonl --bars-manifest MANIFEST.json [--symbols SYM[,SYM...]] [--sample-step-bars 21] [--holdout-start-date YYYY-MM-DD --holdout-plan ID]
ibkr backtest opportunity --input PATH [--max-slots N] [--bars BARS.jsonl] [--bars-manifest MANIFEST.json]
ibkr backtest research-opportunity --input SCORED_PIT.jsonl [--plan all|ID[,ID...]] [--max-slots N] [--bars BARS.jsonl] [--bars-manifest MANIFEST.json] [--json]
ibkr backtest score-opportunity --input PIT.jsonl --bars BARS.jsonl [--bars-manifest MANIFEST.json] [--target-policy net-excess-positive]
ibkr backtest capture-opportunity [--preset top-movers
--symbols SYM[,SYM...]] [--include-regime] [--split tuning|holdout] [--holdout-plan ID] [--append PATH] [--json]
ibkr backtest export-opportunity-bars --symbols SYM[,SYM...] --bars BARS.jsonl --bars-manifest MANIFEST.json [--benchmark QQQ] [--lookback-days 420] [--json]
Subcommands: canary, regime, opportunity, research-opportunity, build-regime, build-opportunity, build-opportunity-pit, score-opportunity, capture-opportunity, export-opportunity-bars.
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--input |
yes | - |
--max-slots |
yes | - |
--bars |
yes | - |
--bars-manifest |
yes | - |
--symbols |
yes | - |
--preset |
yes | - |
--type |
yes | - |
--market |
yes | us, de |
--exchange |
yes | - |
--instrument |
yes | - |
--limit |
yes | - |
--min-price |
yes | - |
--min-volume |
yes | - |
--min-dollar-volume |
yes | - |
--require-live |
no | - |
--exclude-penny |
no | - |
--include-etfs |
no | - |
--include-regime |
no | - |
--split |
yes | holdout, tuning |
--holdout-plan |
yes | - |
--market-cluster |
yes | - |
--theme |
yes | - |
--benchmark |
yes | - |
--horizon-days |
yes | - |
--round-trip-cost-bps |
yes | - |
--cost-model |
yes | - |
--lookback-days |
yes | - |
--append |
yes | - |
--target-policy |
yes | net-excess-positive |
--start-date |
yes | - |
--end-date |
yes | - |
--holdout-start-date |
yes | - |
--sample-step-bars |
yes | - |
--plan |
yes | - |
--list-plans |
no | - |
--json |
no | - |
ibkr scan
Run a scanner preset or an ad-hoc scan; dump the gateway catalog with scan params.
Guard read-only. Also available as an MCP tool.
ibkr scan <preset>
ibkr scan list
ibkr scan params [--instrument STK] [--raw]
ibkr scan --type SCANCODE --exchange LOCATIONCODE [--instrument STK|STOCK.EU] [--limit N] [--min-price 5] [--require-live] [--json]
Subcommands: list, params.
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--type |
yes | - |
--exchange |
yes | - |
--instrument |
yes | - |
--limit |
yes | - |
--min-price |
yes | - |
--min-volume |
yes | - |
--min-dollar-volume |
yes | - |
--require-live |
no | - |
--exclude-penny |
no | - |
--raw |
no | - |
--json |
no | - |
ibkr size
Fixed-fractional position sizing pegged to live NLV.
Guard read-only. Also available as an MCP tool.
ibkr size --symbol SYM --entry F --stop F [--risk-pct 1.0] [--side long|short] [--lot 1] [--fx 1.0] [--json]
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--symbol |
yes | - |
--entry |
yes | - |
--stop |
yes | - |
--target |
yes | - |
--risk-pct |
yes | - |
--side |
yes | long, short |
--lot |
yes | - |
--fx |
yes | - |
--json |
no | - |
ibkr trading
Local trading gate status and configuration.
status reads the local gate. paper-smoke is a release check that places one far-off-market paper order and cancels it, so it needs a paper account and an explicit human instruction.
Guard read-only, with confirm subcommands. Also available as an MCP tool.
ibkr trading status [--json]
ibkr trading paper-smoke [--timeout 30s] [--json]
Subcommands
| Subcommand | Guard |
|---|---|
status |
read-only |
paper-smoke |
confirm |
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--timeout |
yes | - |
--json |
no | - |
ibkr settings
Runtime platform preferences and observed read-only state.
show reads. set writes a runtime preference, and the write path has its own gate: trading.freeze and the trading-limit keys are accepted only from an interactive human terminal, and agent and paired-device origins are rejected. The keys are listed in the configuration reference.
Guard read-only, with confirm subcommands. Also available as an MCP tool.
ibkr settings show [--json]
ibkr settings set <supported-key>=true|false|null|number
Subcommands
| Subcommand | Guard |
|---|---|
show |
read-only |
set |
confirm |
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--json |
no | - |
ibkr orders
Read current-context local order lifecycle state without transmitting orders.
Guard read-only. Also available as an MCP tool.
ibkr orders open [--json]
ibkr orders history [--since YYYY-MM-DD|RFC3339] [--until YYYY-MM-DD|RFC3339] [--limit N] [--event-limit N] [--json]
Subcommands: open, history.
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--since |
yes | - |
--until |
yes | - |
--limit |
yes | - |
--event-limit |
yes | - |
--json |
no | - |
ibkr order
Preview, place, modify, cancel, or inspect gated orders.
Broker writes are gated. place, modify, and cancel reach the broker, and each one needs an explicit instruction from the human at the terminal, in that moment, for that exact transaction. preview and status only read: a preview drafts an order and can mint a local token, but it never transmits. A plan, a proposal, or a preview is evidence, never authority to submit.
Guard read-only, with confirm subcommands. Also available as an MCP tool.
ibkr order preview buy|sell SYMBOL QTY [--limit PRICE|--order-type TRAIL --trail-percent PCT --trigger-method 2] [--json]
ibkr order preview buy|sell SYMBOL YYYYMMDD C|P STRIKE QTY [--order-type TRAIL-LIMIT --trail-percent PCT --limit-offset PRICE] [--json]
ibkr order place --preview-token TOKEN [--json]
ibkr order modify ID --preview-token TOKEN [--json]
ibkr order cancel ID [--json]
ibkr order status ID [--json]
Subcommands
| Subcommand | Guard |
|---|---|
preview |
read-only |
status |
read-only |
place |
confirm |
modify |
confirm |
cancel |
confirm |
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--limit |
yes | - |
--strategy |
yes | patient-limit, explicit-limit, broker-trail |
--order-type |
yes | LMT, TRAIL, TRAIL-LIMIT |
--trail-percent |
yes | - |
--trail-amount |
yes | - |
--initial-stop |
yes | - |
--limit-offset |
yes | - |
--trigger-method |
yes | 1, 2, 3, 4, 7, 8 |
--tif |
yes | DAY, GTC |
--outside-rth |
no | - |
--replace-order |
yes | - |
--timeout |
yes | - |
--market |
yes | us, de |
--exchange |
yes | - |
--primary |
yes | - |
--currency |
yes | - |
--preview-token |
yes | - |
--json |
no | - |
ibkr app
Run the paired mobile PWA application layer.
Guard local, with confirm subcommands. CLI only, with no MCP tool: local mobile/PWA service mode with browser pairing and Web Push state; not a broker-data MCP tool.
Run this from a plain shell rather than the full-screen terminal app: it owns a long-lived process or an installer lifecycle.
ibkr app [--addr HOST:PORT]
ibkr app pair
Subcommands
| Subcommand | Guard |
|---|---|
pair |
local |
serve |
local |
devices |
read-only |
restart |
confirm |
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--addr |
yes | - |
--public-url |
yes | - |
--state-dir |
yes | - |
--remote |
no | - |
--remote-url |
yes | - |
--keep-days |
yes | - |
--json |
no | - |
ibkr mcp
Run the stdio MCP server for local AI clients.
Guard local. CLI only, with no MCP tool: transport server mode; the MCP host starts this process, no LLM should call it as a tool.
Run this from a plain shell rather than the full-screen terminal app: it owns a long-lived process or an installer lifecycle.
ibkr mcp
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--profile |
yes | full, monitor |
ibkr daemon
Run the stateful gateway daemon (normally autospawned).
Guard local. CLI only, with no MCP tool: local background service mode; autospawned by CLI/MCP clients and not an agent operation.
Run this from a plain shell rather than the full-screen terminal app: it owns a long-lived process or an installer lifecycle.
ibkr daemon [--foreground] [--config PATH] [--socket PATH] [--log PATH|stderr]
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--foreground |
no | - |
--version |
no | - |
--config |
yes | - |
--socket |
yes | - |
--log |
yes | - |
ibkr setup
Wire ibkr into a local AI client (default: claude-desktop).
Guard local. CLI only, with no MCP tool: local configuration verb (writes claude_desktop_config.json); not a daemon RPC, no LLM should ever call it.
Run this from a plain shell rather than the full-screen terminal app: it owns a long-lived process or an installer lifecycle.
ibkr setup [claude-desktop]
The catalog records no flags. Run ibkr setup --help for what the command parses.
ibkr update
Self-update the ibkr binary from the latest GitHub release.
Guard confirm. CLI only, with no MCP tool: binary-management verb (replaces the ibkr binary from GitHub releases); not a daemon RPC, must stay user-triggered for trust-boundary reasons.
ibkr update [--check] [--force] [--restart|--no-restart]
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--check |
no | - |
--force |
no | - |
--restart |
no | - |
--no-restart |
no | - |
ibkr restart
Gracefully restart the daemon and any running app process.
Guard confirm. CLI only, with no MCP tool: local process-management verb (signals daemon processes); useful for humans and scripts, but not a broker-data MCP tool.
ibkr restart [--app] [--force] [--timeout 15s] [--json]
Flags
| Flag | Takes a value | Allowed values |
|---|---|---|
--app |
no | - |
--force |
no | - |
--timeout |
yes | - |
--addr |
yes | - |
--public-url |
yes | - |
--state-dir |
yes | - |
--json |
no | - |
ibkr version
Print version, commit, build date.
Guard local. CLI only, with no MCP tool: info-only CLI verb; not useful as a tool call.
ibkr version
The catalog records no flags. Run ibkr version --help for what the command parses.