IdiotProof/MCP TOOLS/part 2
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Stop and remove the Hub\u0027s Windows service.",
"properties": {
"dry_run": {
"type": "boolean",
"description": "Show the commands without running them.",
"default": false
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false
}
indicators_compute
Compute one indicator (rsi, ema, atr, macd, vwap, adx, bollinger, ...) on a symbol's recent bars.
CLI equivalent: idiotproof indicators compute <symbol> <indicator> [--period <int>] [--timeframe <string>] [--bars <int>] [--last <int>] Examples: idiotproof indicators compute NVDA rsi idiotproof indicators compute INTC ema --period 21 --timeframe 5Min idiotproof indicators compute AAPL macd --timeframe 1Day --bars 300
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Compute one indicator (rsi, ema, atr, macd, vwap, adx, bollinger, ...) on a symbol\u0027s recent bars.",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker, e.g. NVDA.",
"default": ""
},
"indicator": {
"type": "string",
"description": "rsi, ema, sma, atr, macd, vwap, adx, bollinger, stochastic, cci, williams-r, momentum, roc or obv.",
"default": ""
},
"period": {
"type": "integer",
"description": "Look-back period (default per indicator: rsi 14, ema 9, sma 20, atr 14, adx 14, bollinger 20, ...). Ignored by macd, vwap and obv."
},
"timeframe": {
"type": "string",
"description": "Bar size: 1Min (default), 5Min, 15Min, 1Hour or 1Day.",
"default": "1Min"
},
"bars": {
"type": "integer",
"description": "Bars of history to compute over, newest last (default 240, the Monitor\u0027s window).",
"default": 240
},
"last": {
"type": "integer",
"description": "How many of the newest values to print (default 10).",
"default": 10
}
},
"additionalProperties": false,
"required": [
"symbol",
"indicator"
]
}
indicators_snapshot
The full indicator snapshot a strategy condition sees for a symbol: VWAP, EMAs, RSI, MACD, ADX, gap, window high/low, pivots, patterns.
CLI equivalent: idiotproof indicators snapshot <symbol> [--timeframe <string>] [--bars <int>] [--ema <string>] Examples: idiotproof indicators snapshot NVDA idiotproof indicators snapshot INTC --ema 7,65 --timeframe 5Min
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "The full indicator snapshot a strategy condition sees for a symbol: VWAP, EMAs, RSI, MACD, ADX, gap, window high/low, pivots, patterns.",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker, e.g. NVDA.",
"default": ""
},
"timeframe": {
"type": "string",
"description": "Bar size: 1Min (default, what the Monitor evaluates on), 5Min, 15Min, 1Hour or 1Day.",
"default": "1Min"
},
"bars": {
"type": "integer",
"description": "Window of bars the snapshot is built from, newest last (default 240, the Monitor\u0027s 4-hour window).",
"default": 240
},
"ema": {
"type": "string",
"description": "Extra EMA periods to include beside 9/21/31/50/200, comma separated (e.g. 7,65)."
}
},
"additionalProperties": false,
"required": [
"symbol"
]
}
keys_migrate_to_vault
Move Alpaca keys, OAuth tokens and Claude keys out of SQL into MindAttic.Vault (dry run unless --apply).
Per user and secret: copy into Vault when Vault lacks it, verify equality when both have it, then clear the SQL column. Conflicts and undecryptable values are reported and left untouched. Idempotent.
CLI equivalent: idiotproof keys migrate-to-vault [--apply] Examples: idiotproof keys migrate-to-vault idiotproof keys migrate-to-vault --apply
DESTRUCTIVE. If it returns confirmation-required, show the preview and call again with confirmation_code only after the user agrees. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Move Alpaca keys, OAuth tokens and Claude keys out of SQL into MindAttic.Vault (dry run unless --apply).",
"properties": {
"apply": {
"type": "boolean",
"description": "Actually copy into Vault and clear the SQL columns (without it: a dry run that changes nothing).",
"default": false
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false
}
keys_opt_in
Route your orders to your own Alpaca account (alpaca) or back to the Sandbox (off).
CLI equivalent: idiotproof keys opt-in <broker> Examples: idiotproof keys opt-in alpaca idiotproof keys opt-in off
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Route your orders to your own Alpaca account (alpaca) or back to the Sandbox (off).",
"properties": {
"broker": {
"type": "string",
"description": "alpaca (route your orders to your own Alpaca account) or off (back to the Sandbox).",
"default": ""
}
},
"additionalProperties": false,
"required": [
"broker"
]
}
keys_probe
Round-trip your stored Alpaca keys with a read-only account call (paper, live or both).
CLI equivalent: idiotproof keys probe [--mode <all|paper|live>] Examples: idiotproof keys probe idiotproof keys probe --mode live
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Round-trip your stored Alpaca keys with a read-only account call (paper, live or both).",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"paper",
"live"
],
"description": "all (default), paper or live.",
"default": "all"
}
},
"additionalProperties": false
}
keys_set
Store an Alpaca paper/live key pair (checked, then probed) or your Claude key in MindAttic.Vault.
CLI equivalent: idiotproof keys set <target> [--key-id <string>] --secret <string> [--force] Examples: idiotproof keys set alpaca-paper --key-id PK...your-paper-key-id --secret <secret> idiotproof keys set alpaca-live --key-id AK...your-live-key-id --secret <secret> idiotproof keys set claude --secret <sk-ant-key>
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Store an Alpaca paper/live key pair (checked, then probed) or your Claude key in MindAttic.Vault.",
"properties": {
"target": {
"type": "string",
"description": "alpaca-paper, alpaca-live or claude.",
"default": ""
},
"key_id": {
"type": "string",
"description": "The Alpaca API key id (PK... for paper, AK... for live). Not used for claude."
},
"secret": {
"type": "string",
"description": "The Alpaca secret key, or for claude the Claude API key.",
"default": ""
},
"force": {
"type": "boolean",
"description": "Store even when the key id prefix looks wrong or Alpaca rejects the pair.",
"default": false
}
},
"additionalProperties": false,
"required": [
"target",
"secret"
]
}
keys_status
Which Alpaca/Claude keys resolve for you and from which Vault entry (never shows a secret).
CLI equivalent: idiotproof keys status Examples: idiotproof keys status
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Which Alpaca/Claude keys resolve for you and from which Vault entry (never shows a secret).",
"properties": {},
"additionalProperties": false
}
ledger_list
Every command the Hub ran for you (CLI, MCP, web): operation, arguments, outcome, duration (ET).
CLI equivalent: idiotproof ledger list [--op <string>] [--since <date>] [--caller <string>] [--status <string>] [--limit <int>] Examples: idiotproof ledger list idiotproof ledger list --op "order place" --since 2026-10-30 idiotproof ledger list --op strategy --caller mcp --status blocked
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Every command the Hub ran for you (CLI, MCP, web): operation, arguments, outcome, duration (ET).",
"properties": {
"op": {
"type": "string",
"description": "Only this operation (\u0022strategy create\u0022 or strategy_create), or a noun for all of its verbs (strategy)."
},
"since": {
"type": "string",
"format": "date",
"description": "First ET date to include, yyyy-MM-dd (default: everything)."
},
"caller": {
"type": "string",
"description": "Only calls from this front door: cli, mcp, blazor or test."
},
"status": {
"type": "string",
"description": "Only this outcome: ok, failed, usage-error, blocked or confirmation-required."
},
"limit": {
"type": "integer",
"description": "Most rows, newest first, 1-1000 (default 50).",
"default": 50
}
},
"additionalProperties": false
}
llm_keys
Which Claude key the LLM panel resolves for you (yours, the host's, or none) and the voting toggles; never shows a key.
CLI equivalent: idiotproof llm keys Examples: idiotproof llm keys
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Which Claude key the LLM panel resolves for you (yours, the host\u0027s, or none) and the voting toggles; never shows a key.",
"properties": {},
"additionalProperties": false
}
llm_panel
The LLM voter panel: voters, trading lenses, which have keys, the consensus threshold and whether the gate is on.
CLI equivalent: idiotproof llm panel Examples: idiotproof llm panel
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "The LLM voter panel: voters, trading lenses, which have keys, the consensus threshold and whether the gate is on.",
"properties": {},
"additionalProperties": false
}
llm_threshold
Show or set the LLM panel's consensus threshold (0.5-1): the share of votes that must Approve.
CLI equivalent: idiotproof llm threshold [<value>] Examples: idiotproof llm threshold idiotproof llm threshold 0.75
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Show or set the LLM panel\u0027s consensus threshold (0.5-1): the share of votes that must Approve.",
"properties": {
"value": {
"type": "number",
"description": "Share of counted votes that must Approve, 0..1 (e.g. 0.66) or a percent (66); omit to show the current one."
}
},
"additionalProperties": false
}
llm_vote
Dry-run the LLM voter panel on a strategy's current entry: every vote and the consensus. Never places an order.
CLI equivalent: idiotproof llm vote <strategy> [--entry <decimal>] Examples: idiotproof llm vote NVDA idiotproof llm vote 0193a2b4 --entry 101.25
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Dry-run the LLM voter panel on a strategy\u0027s current entry: every vote and the consensus. Never places an order.",
"properties": {
"strategy": {
"type": "string",
"description": "Id, id prefix, stamp id (IP-XXXX-XXXX) or symbol.",
"default": ""
},
"entry": {
"type": "number",
"description": "Entry price to put to the panel (default: the last 1-minute close)."
}
},
"additionalProperties": false,
"required": [
"strategy"
]
}
llm_voting_disable
Turn off your own LLM voter gate (a host-wide setting still applies).
CLI equivalent: idiotproof llm voting disable Examples: idiotproof llm voting disable
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Turn off your own LLM voter gate (a host-wide setting still applies).",
"properties": {},
"additionalProperties": false
}
llm_voting_enable
Turn on the LLM voter gate for your automated entries (needs a Claude key to take effect).
CLI equivalent: idiotproof llm voting enable Examples: idiotproof llm voting enable
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Turn on the LLM voter gate for your automated entries (needs a Claude key to take effect).",
"properties": {},
"additionalProperties": false
}
market_auctions
Opening and closing auction prices and sizes per day for one or more stocks (SIP, times in ET).
CLI equivalent: idiotproof market auctions <symbols>... [--from <date>] [--to <date>] Examples: idiotproof market auctions AAPL idiotproof market auctions SPY QQQ --from 2026-10-26 --to 2026-10-30
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Opening and closing auction prices and sizes per day for one or more stocks (SIP, times in ET).",
"properties": {
"symbols": {
"type": "array",
"items": {
"type": "string"
},
"description": "One or more tickers, e.g. AAPL MSFT."
},
"from": {
"type": "string",
"format": "date",
"description": "First ET date to include (default: a week ago)."
},
"to": {
"type": "string",
"format": "date",
"description": "Last ET date to include (default: today)."
}
},
"additionalProperties": false,
"required": [
"symbols"
]
}
market_bars
Historical OHLCV bars for a stock at any timeframe, oldest first (times in ET).
CLI equivalent: idiotproof market bars <symbol> [--tf <string>] [--from <date>] [--to <date>] [--limit <int>] [--adjustment <string>] Examples: idiotproof market bars AAPL idiotproof market bars NVDA --tf 5Min --limit 50 idiotproof market bars MSFT --tf 1Day --from 2026-09-01 --to 2026-09-30
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Historical OHLCV bars for a stock at any timeframe, oldest first (times in ET).",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker, e.g. AAPL.",
"default": ""
},
"tf": {
"type": "string",
"description": "Bar size: 1Min, 5Min, 15Min, 1Hour, 1Day (default), 1Week, 1Month; short forms 5m, 1h, 1d, 1w, 1mo work too.",
"default": "1Day"
},
"from": {
"type": "string",
"format": "date",
"description": "First ET date to include (default: enough history for --limit bars)."
},
"to": {
"type": "string",
"format": "date",
"description": "Last ET date to include (default: now)."
},
"limit": {
"type": "integer",
"description": "Most bars to show (default 30, max 10000). Without --from these are the most recent.",
"default": 30
},
"adjustment": {
"type": "string",
"description": "Corporate-action adjustment: raw, split (default), dividend or all.",
"default": "split"
}
},
"additionalProperties": false,
"required": [
"symbol"
]
}
market_bond_prices
Latest Alpaca fixed income prices and yields for the given ISINs.
CLI equivalent: idiotproof market bond-prices <isins>... Examples: idiotproof market bond-prices US912797KA41 US91282CJL54
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Latest Alpaca fixed income prices and yields for the given ISINs.",
"properties": {
"isins": {
"type": "array",
"items": {
"type": "string"
},
"description": "One or more bond ISINs (space or comma separated)."
}
},
"additionalProperties": false,
"required": [
"isins"
]
}
market_candlesticks
Candlestick patterns (engulfing, hammer, shooting star, doji) on a symbol's recent bars.
CLI equivalent: idiotproof market candlesticks <symbol> [--timeframe <string>] [--bars <int>] [--all] Examples: idiotproof market candlesticks NVDA idiotproof market candlesticks INTC --timeframe 5Min --bars 78 --all
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Candlestick patterns (engulfing, hammer, shooting star, doji) on a symbol\u0027s recent bars.",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker, e.g. NVDA.",
"default": ""
},
"timeframe": {
"type": "string",
"description": "Bar size: 1Day (default), 1Hour, 15Min, 5Min or 1Min (what the Monitor\u0027s pattern verbs see).",
"default": "1Day"
},
"bars": {
"type": "integer",
"description": "How many recent bars to scan, newest last (default 30).",
"default": 30
},
"all": {
"type": "boolean",
"description": "List every bar, not only the ones with a pattern.",
"default": false
}
},
"additionalProperties": false,
"required": [
"symbol"
]
}
market_chart
ASCII candle chart of a symbol across premarket, regular and after-hours sessions (ET); crypto pairs as 24h days.
CLI equivalent: idiotproof market chart <symbol> [--days <int>] [--bucket <int>] [--width <int>] [--height <int>] [--volume] [--ascii] Examples: idiotproof market chart INTC idiotproof market chart NVDA --days 3 --bucket 30 idiotproof market chart BTC/USD --days 3
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "ASCII candle chart of a symbol across premarket, regular and after-hours sessions (ET); crypto pairs as 24h days.",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker to chart, e.g. INTC, or a crypto pair such as BTC/USD (charted as 24h days).",
"default": ""
},
"days": {
"type": "integer",
"description": "Trading days to show, oldest first, each as premarket \u002B regular \u002B after-hours (default 2: the prior day and today).",
"default": 2
},
"bucket": {
"type": "integer",
"description": "Minutes per time slot: half a character in Braille, one in --ascii (default: the smallest that fits the width)."
},
"width": {
"type": "integer",
"description": "Chart width in characters (default: the terminal\u0027s, else 118)."
},
"height": {
"type": "integer",
"description": "Price pane rows (default 20).",
"default": 20
},
"volume": {
"type": "boolean",
"description": "Show the volume pane (default on; --no-volume hides it).",
"default": true
},
"ascii": {
"type": "boolean",
"description": "Pure-ASCII candles (one per character) instead of the high-resolution Braille dots.",
"default": false
}
},
"additionalProperties": false,
"required": [
"symbol"
]
}
market_conditions
What each trade or quote condition code means (the codes in market trades/quotes).
CLI equivalent: idiotproof market conditions <tick-type> [--tape <a|b|c>] Examples: idiotproof market conditions trade idiotproof market conditions quote --tape c
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "What each trade or quote condition code means (the codes in market trades/quotes).",
"properties": {
"tick_type": {
"type": "string",
"enum": [
"trade",
"quote"
],
"description": "trade or quote.",
"default": "trade"
},
"tape": {
"type": "string",
"enum": [
"a",
"b",
"c"
],
"description": "SIP tape whose codes to list: a (default), b or c.",
"default": "a"
}
},
"additionalProperties": false,
"required": [
"tick_type"
]
}
market_exchanges
Exchange codes used in trades and quotes and the venue each one names.
CLI equivalent: idiotproof market exchanges Examples: idiotproof market exchanges
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Exchange codes used in trades and quotes and the venue each one names.",
"properties": {},
"additionalProperties": false
}
market_feed_status
The Hub's market data feed: Alpaca SIP/IEX or Mock, whether it can switch, and active strategies per mode.
CLI equivalent: idiotproof market feed status Examples: idiotproof market feed status
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "The Hub\u0027s market data feed: Alpaca SIP/IEX or Mock, whether it can switch, and active strategies per mode.",
"properties": {},
"additionalProperties": false
}
market_feed_switch
Switch the Hub's market data to sip, iex or mock (mock refused while Paper/Live strategies are active).
CLI equivalent: idiotproof market feed switch <feed> Examples: idiotproof market feed switch iex idiotproof market feed switch mock
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Switch the Hub\u0027s market data to sip, iex or mock (mock refused while Paper/Live strategies are active).",
"properties": {
"feed": {
"type": "string",
"description": "sip (Alpaca consolidated, Algo Trader Plus), iex (Alpaca free tier) or mock (synthetic prices).",
"default": ""
}
},
"additionalProperties": false,
"required": [
"feed"
]
}
market_fx
Latest forex rates (bid/mid/ask) or historical rate bars for currency pairs (times in ET).
CLI equivalent: idiotproof market fx <pairs>... [--tf <string>] [--from <date>] [--to <date>] [--limit <int>] Examples: idiotproof market fx USDJPY EURUSD idiotproof market fx USDJPY --tf 1Day --limit 10 idiotproof market fx EURUSD --tf 1Hour --from 2026-10-29 --to 2026-10-30
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Latest forex rates (bid/mid/ask) or historical rate bars for currency pairs (times in ET).",
"properties": {
"pairs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Currency pairs, e.g. USDJPY EURUSD (USD/JPY works too)."
},
"tf": {
"type": "string",
"description": "Historical rate bar size (1Min, 5Min, 1Hour, 1Day...). Giving --tf, --from or --to switches from latest to history."
},
"from": {
"type": "string",
"format": "date",
"description": "First ET date of history (default: enough for --limit bars)."
},
"to": {
"type": "string",
"format": "date",
"description": "Last ET date of history (default: now)."
},
"limit": {
"type": "integer",
"description": "Most history bars per pair (default 30, max 1000).",
"default": 30
}
},
"additionalProperties": false,
"required": [
"pairs"
]
}
market_latest
Latest minute bar, trade or quote for one or more stocks (times in ET).
CLI equivalent: idiotproof market latest <kind> <symbols>... Examples: idiotproof market latest bar AAPL MSFT idiotproof market latest trade NVDA idiotproof market latest quote SPY QQQ
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Latest minute bar, trade or quote for one or more stocks (times in ET).",
"properties": {
"kind": {
"type": "string",
"enum": [
"bar",
"trade",
"quote"
],
"description": "bar (latest minute bar), trade or quote.",
"default": "trade"
},
"symbols": {
"type": "array",
"items": {
"type": "string"
},
"description": "One or more tickers, e.g. AAPL MSFT."
}
},
"additionalProperties": false,
"required": [
"kind",
"symbols"
]
}
market_logo
Download a company's logo and save it under %LOCALAPPDATA%\MindAttic\IdiotProof\Logos; reports the path and size.
CLI equivalent: idiotproof market logo <symbol> [--placeholder] [--dir <string>] Examples: idiotproof market logo AAPL idiotproof market logo TSLA --placeholder
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Download a company\u0027s logo and save it under %LOCALAPPDATA%\\MindAttic\\IdiotProof\\Logos; reports the path and size.",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker whose logo to fetch, e.g. AAPL.",
"default": ""
},
"placeholder": {
"type": "boolean",
"description": "When Alpaca has no logo, save its generated placeholder instead of failing.",
"default": false
},
"dir": {
"type": "string",
"description": "Folder to save into (default %LOCALAPPDATA%\\MindAttic\\IdiotProof\\Logos)."
}
},
"additionalProperties": false,
"required": [
"symbol"
]
}
market_meta
All market-data reference codes at once: exchanges plus trade and quote conditions.
CLI equivalent: idiotproof market meta [--tape <a|b|c>] Examples: idiotproof market meta idiotproof market meta --tape c
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "All market-data reference codes at once: exchanges plus trade and quote conditions.",
"properties": {
"tape": {
"type": "string",
"enum": [
"a",
"b",
"c"
],
"description": "SIP tape whose condition codes to list: a (default), b or c.",
"default": "a"
}
},
"additionalProperties": false
}
market_most_actives
Today's most active stocks by share volume or trade count (Alpaca screener).
CLI equivalent: idiotproof market most-actives [--by <volume|trades>] [--top <int>] Examples: idiotproof market most-actives idiotproof market most-actives --by trades --top 25
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Today\u0027s most active stocks by share volume or trade count (Alpaca screener).",
"properties": {
"by": {
"type": "string",
"enum": [
"volume",
"trades"
],
"description": "Rank by share volume (default) or by trade count.",
"default": "volume"
},
"top": {
"type": "integer",
"description": "How many stocks (default 10, max 100).",
"default": 10
}
},
"additionalProperties": false
}
market_movers
Today's top stock gainers and losers by percent change (Alpaca screener).
CLI equivalent: idiotproof market movers [--top <int>] Examples: idiotproof market movers idiotproof market movers --top 20
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Today\u0027s top stock gainers and losers by percent change (Alpaca screener).",
"properties": {
"top": {
"type": "integer",
"description": "How many gainers and how many losers (default 10, max 50).",
"default": 10
}
},
"additionalProperties": false
}
market_news
Latest news headlines for one or more stocks, or the whole market (times in ET).
CLI equivalent: idiotproof market news [<symbols>...] [--limit <int>] [--from <date>] [--to <date>] [--summary] Examples: idiotproof market news AAPL idiotproof market news TSLA NVDA --limit 25 --summary idiotproof market news --from 2026-10-29
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Latest news headlines for one or more stocks, or the whole market (times in ET).",
"properties": {
"symbols": {
"type": "array",
"items": {
"type": "string"
},
"description": "Tickers to filter on, e.g. AAPL TSLA (none = all market news)."
},
"limit": {
"type": "integer",
"description": "Most articles to show, newest first (default 10, max 200).",
"default": 10
},
"from": {
"type": "string",
"format": "date",
"description": "Earliest ET date to include (default: no bound)."
},
"to": {
"type": "string",
"format": "date",
"description": "Latest ET date to include (default: now)."
},
"summary": {
"type": "boolean",
"description": "Print each article\u0027s summary and link under its headline.",
"default": false
}
},
"additionalProperties": false
}
market_prev_close
Previous session's close (and full daily bar) for one or more stocks, with the move since.
CLI equivalent: idiotproof market prev-close <symbols>... Examples: idiotproof market prev-close AAPL idiotproof market prev-close SPY QQQ IWM
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Previous session\u0027s close (and full daily bar) for one or more stocks, with the move since.",
"properties": {
"symbols": {
"type": "array",
"items": {
"type": "string"
},
"description": "One or more tickers, e.g. AAPL MSFT."
}
},
"additionalProperties": false,
"required": [
"symbols"
]
}
market_quote
Latest trade and bid/ask for one or more stocks (Alpaca market data, times in ET).
CLI equivalent: idiotproof market quote <symbols>... Examples: idiotproof market quote AAPL idiotproof market quote AAPL MSFT NVDA
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Latest trade and bid/ask for one or more stocks (Alpaca market data, times in ET).",
"properties": {
"symbols": {
"type": "array",
"items": {
"type": "string"
},
"description": "One or more tickers, e.g. AAPL MSFT (commas work too)."
}
},
"additionalProperties": false,
"required": [
"symbols"
]
}
market_quotes
Historical bid/ask quotes for a stock: sizes, exchanges, spread (times in ET).
CLI equivalent: idiotproof market quotes <symbol> [--from <date>] [--to <date>] [--limit <int>] Examples: idiotproof market quotes AAPL idiotproof market quotes SPY --from 2026-10-29 --limit 200
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Historical bid/ask quotes for a stock: sizes, exchanges, spread (times in ET).",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker, e.g. AAPL.",
"default": ""
},
"from": {
"type": "string",
"format": "date",
"description": "First ET date to include (default: the most recent ticks)."
},
"to": {
"type": "string",
"format": "date",
"description": "Last ET date to include (default: now)."
},
"limit": {
"type": "integer",
"description": "Most ticks to show (default 20, max 10000). Without --from these are the most recent.",
"default": 20
}
},
"additionalProperties": false,
"required": [
"symbol"
]
}
market_scan_universe
Screen the tracked ticker universe on live price, volume and % change (Alpaca snapshots); arms nothing.
CLI equivalent: idiotproof market scan-universe [--min-price <decimal>] [--max-price <decimal>] [--min-volume <decimal>] [--min-change <decimal>] [--max-change <decimal>] [--exchange <string>] [--sort <volume|change|price|dollar>] [--limit <int>] [--max-symbols <int>] Examples: idiotproof market scan-universe idiotproof market scan-universe --min-price 2 --max-price 20 --min-change 10 --sort change idiotproof market scan-universe --exchange NASDAQ --min-volume 5000000 --limit 10
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Screen the tracked ticker universe on live price, volume and % change (Alpaca snapshots); arms nothing.",
"properties": {
"min_price": {
"type": "number",
"description": "Lowest last price to keep (default 1).",
"default": 1
},
"max_price": {
"type": "number",
"description": "Highest last price to keep (default: no cap)."
},
"min_volume": {
"type": "number",
"description": "Least shares traded today to keep (default 100000).",
"default": 100000
},
"min_change": {
"type": "number",
"description": "Least percent change from the previous close to keep, e.g. 5 or -10 (default: any)."
},
"max_change": {
"type": "number",
"description": "Most percent change from the previous close to keep, e.g. -5 for losers only (default: any)."
},
"exchange": {
"type": "string",
"description": "Only tickers listed on this exchange (NASDAQ, NYSE, AMEX, ARCA, ...)."
},
"sort": {
"type": "string",
"enum": [
"volume",
"change",
"price",
"dollar"
],
"description": "volume (default), change, price or dollar (price x volume); always largest first.",
"default": "volume"
},
"limit": {
"type": "integer",
"description": "Rows to show (default 25).",
"default": 25
},
"max_symbols": {
"type": "integer",
"description": "Most tracked tickers to quote, after the stored-price prefilter (default 3000).",
"default": 3000
}
},
"additionalProperties": false
}
market_snapshot
One-line snapshot per stock: last, change vs prior close, bid/ask, today's open/high/low/volume.
CLI equivalent: idiotproof market snapshot <symbols>... Examples: idiotproof market snapshot AAPL idiotproof market snapshot SPY QQQ NVDA TSLA
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "One-line snapshot per stock: last, change vs prior close, bid/ask, today\u0027s open/high/low/volume.",
"properties": {
"symbols": {
"type": "array",
"items": {
"type": "string"
},
"description": "One or more tickers, e.g. AAPL MSFT."
}
},
"additionalProperties": false,
"required": [
"symbols"
]
}
market_stream_status
Websocket health: the Monitor's market data stream, the trade-updates listeners and open market watches (state, connected since, last message, reconnects, errors).
CLI equivalent: idiotproof market stream status Examples: idiotproof market stream status
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Websocket health: the Monitor\u0027s market data stream, the trade-updates listeners and open market watches (state, connected since, last message, reconnects, errors).",
"properties": {},
"additionalProperties": false
}
market_trades
Historical trade prints for a stock: price, size, exchange, conditions (times in ET).
CLI equivalent: idiotproof market trades <symbol> [--from <date>] [--to <date>] [--limit <int>] Examples: idiotproof market trades AAPL idiotproof market trades TSLA --from 2026-10-29 --to 2026-10-29 --limit 100
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Historical trade prints for a stock: price, size, exchange, conditions (times in ET).",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker, e.g. AAPL.",
"default": ""
},
"from": {
"type": "string",
"format": "date",
"description": "First ET date to include (default: the most recent ticks)."
},
"to": {
"type": "string",
"format": "date",
"description": "Last ET date to include (default: now)."
},
"limit": {
"type": "integer",
"description": "Most ticks to show (default 20, max 10000). Without --from these are the most recent.",
"default": 20
}
},
"additionalProperties": false,
"required": [
"symbol"
]
}
market_watch
Live market tape over Alpaca's websockets: stock trades/quotes/bars/statuses/LULD, crypto, options and news, merged into one ET-stamped stream.
A terminal streams until Ctrl+C; MCP and --json get a bounded window (--seconds, default 15). Alpaca limits stock-feed connections per account: if the Monitor's stream holds the SIP connection, try --feed iex.
CLI equivalent: idiotproof market watch [<symbols>...] [--channels <string[]>] [--news] [--feed <string>] [--options-feed <string>] [--seconds <int>] [--max <int>] Examples: idiotproof market watch AAPL MSFT idiotproof market watch NVDA --channels trades,quotes,statuses,lulds idiotproof market watch BTC/USD ETH/USD --channels trades,bars
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Live market tape over Alpaca\u0027s websockets: stock trades/quotes/bars/statuses/LULD, crypto, options and news, merged into one ET-stamped stream.",
"properties": {
"symbols": {
"type": "array",
"items": {
"type": "string"
},
"description": "Stocks (AAPL), crypto pairs (BTC/USD) and option contracts (AAPL261120C00200000), mixed freely."
},
"channels": {
"type": "array",
"items": {
"type": "string"
},
"description": "trades, quotes, bars, daily-bars, updated-bars, statuses, lulds (stocks only: statuses, lulds; options: trades, quotes). Default trades,quotes."
},
"news": {
"type": "boolean",
"description": "Also stream news headlines for these symbols (all news when no symbol is given).",
"default": false
},
"feed": {
"type": "string",
"description": "Stock feed: sip, iex or delayed_sip (default: the Hub\u0027s market data tier)."
},
"options_feed": {
"type": "string",
"description": "Options feed: opra or indicative (default opra).",
"default": "opra"
},
"seconds": {
"type": "integer",
"description": "Stop after this many seconds (a terminal streams until Ctrl\u002BC; MCP/--json default 15, at most 300)."
},
"max": {
"type": "integer",
"description": "Stop after this many lines."
}
},
"additionalProperties": false
}
momentum_export
Write every Momentum. scenario outcome, brag and video as the compact JSON the calls-vs-reality page and tools/momentum/edge read (ET times).
CLI equivalent: idiotproof momentum export [--out <string>] Examples: idiotproof momentum export
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Write every Momentum. scenario outcome, brag and video as the compact JSON the calls-vs-reality page and tools/momentum/edge read (ET times).",
"properties": {
"out": {
"type": "string",
"description": "Where to write the JSON (default D:\\IdiotProofData\\momentum\\edge-calls.json)."
}
},
"additionalProperties": false
}
momentum_extract
Extract claims (ranked picks with trigger / confirm / target levels, setup tags, brags, market statements) from every transcript without claims yet, newest first, with a Haiku-class model through Legion on your Claude key; tickers validated against Alpaca assets and movers, spoken prices scaled against real bars.
CLI equivalent: idiotproof momentum extract [--since <date>] [--limit <int>] [--force] [--dir <string>] Examples: idiotproof momentum extract idiotproof momentum extract --since 2026-11-01 --limit 10
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Extract claims (ranked picks with trigger / confirm / target levels, setup tags, brags, market statements) from every transcript without claims yet, newest first, with a Haiku-class model through Legion on your Claude key; tickers validated against Alpaca assets and movers, spoken prices scaled against real bars.",
"properties": {
"since": {
"type": "string",
"format": "date",
"description": "Only transcripts with a trade date on or after this ET date, yyyy-MM-dd."
},
"limit": {
"type": "integer",
"description": "At most this many transcripts this run (0 = all), newest first.",
"default": 0
},
"force": {
"type": "boolean",
"description": "Re-extract transcripts that already have claims (their claims and outcomes are replaced).",
"default": false
},
"dir": {
"type": "string",
"description": "Data folder for the market-data caches (default D:\\IdiotProofData\\momentum)."
}
},
"additionalProperties": false
}
momentum_import
Upsert the Momentum. (@trade.momentum) shorts and their caption transcripts from the collector's JSON files into MomentumVideos / MomentumTranscripts (idempotent; a changed transcript is queued for re-extraction).
CLI equivalent: idiotproof momentum import [--dir <string>] Examples: idiotproof momentum import idiotproof momentum import --dir D:\IdiotProofData\momentum
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Upsert the Momentum. (@trade.momentum) shorts and their caption transcripts from the collector\u0027s JSON files into MomentumVideos / MomentumTranscripts (idempotent; a changed transcript is queued for re-extraction).",
"properties": {
"dir": {
"type": "string",
"description": "The collector\u0027s output folder (default D:\\IdiotProofData\\momentum)."
}
},
"additionalProperties": false
}
momentum_report
The Momentum. claim report, times in ET: counts overall and per month, trigger / target / stop rates, mean and median hypothetical plan P&L, share of picks that were real top gappers, brag accuracy, setup tags by use and by result, and every pick newest first; rewrites docs/research/momentum-claims-report.md.
CLI equivalent: idiotproof momentum report [--since <date>] [--out <string>] Examples: idiotproof momentum report idiotproof momentum report --since 2026-11-01
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "The Momentum. claim report, times in ET: counts overall and per month, trigger / target / stop rates, mean and median hypothetical plan P\u0026L, share of picks that were real top gappers, brag accuracy, setup tags by use and by result, and every pick newest first; rewrites docs/research/momentum-claims-report.md.",
"properties": {
"since": {
"type": "string",
"format": "date",
"description": "Only claims with a trade date on or after this ET date, yyyy-MM-dd."
},
"out": {
"type": "string",
"description": "Where to write the markdown report (default docs/research/momentum-claims-report.md in the repo, else the data folder)."
}
},
"additionalProperties": false
}
momentum_reresolve
Re-resolve every Momentum. claim's ticker with the current resolver (prior-session movers only, IP-T508) without re-running the LLM; a claim whose symbol changes gets its levels rebuilt and its outcome dropped so momentum verify re-checks it.
CLI equivalent: idiotproof momentum reresolve [--dir <string>] Examples: idiotproof momentum reresolve
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Re-resolve every Momentum. claim\u0027s ticker with the current resolver (prior-session movers only, IP-T508) without re-running the LLM; a claim whose symbol changes gets its levels rebuilt and its outcome dropped so \u0060momentum verify\u0060 re-checks it.",
"properties": {
"dir": {
"type": "string",
"description": "Market-data cache folder (default D:\\IdiotProofData\\momentum)."
}
},
"additionalProperties": false
}
momentum_verify
Check every claim whose session has finished against Alpaca 1-minute SIP bars (04:00-20:00 ET, plus the next session for day-2 language): trigger, confirm, targets, invalidation, run/drawdown, hypothetical plan P&L, verdict, gainer rank; brags against split-adjusted daily bars.
CLI equivalent: idiotproof momentum verify [--since <date>] [--force] [--dir <string>] Examples: idiotproof momentum verify idiotproof momentum verify --since 2026-11-01 --force
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Check every claim whose session has finished against Alpaca 1-minute SIP bars (04:00-20:00 ET, plus the next session for day-2 language): trigger, confirm, targets, invalidation, run/drawdown, hypothetical plan P\u0026L, verdict, gainer rank; brags against split-adjusted daily bars.",
"properties": {
"since": {
"type": "string",
"format": "date",
"description": "Only claims with a trade date on or after this ET date, yyyy-MM-dd."
},
"force": {
"type": "boolean",
"description": "Re-verify claims that already have outcomes.",
"default": false
},
"dir": {
"type": "string",
"description": "Data folder for the market-data caches (default D:\\IdiotProofData\\momentum)."
}
},
"additionalProperties": false
}
monitor_heartbeat
The Monitor loop's last heartbeat: when it ticked, ok or fail, failures in a row.
Reads the SupervisedLoop heartbeat file (Logs\monitor.heartbeat), which the loop rewrites after every tick, hosted here or not. Exit 3 (blocked) when it is stale.
CLI equivalent: idiotproof monitor heartbeat Examples: idiotproof monitor heartbeat
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "The Monitor loop\u0027s last heartbeat: when it ticked, ok or fail, failures in a row.",
"properties": {},
"additionalProperties": false
}
monitor_lease
Who holds the Monitor's SQL leader lease (only the holder evaluates and trades).
One Monitor per database trades: it holds sp_getapplock 'IdiotProof.Monitor.Leader'. Shows the holder's PID and machine when SQL Server reports them.
CLI equivalent: idiotproof monitor lease Examples: idiotproof monitor lease
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Who holds the Monitor\u0027s SQL leader lease (only the holder evaluates and trades).",
"properties": {},
"additionalProperties": false
}
monitor_pause
Pause the Monitor: from its next tick it evaluates nothing - no entries and NO exits - until resumed.
Sets the SettingsKv flag monitor.paused, honored at the top of every tick (within 2 s). The loop, heartbeat and leader lease stay up. Open positions are not managed while paused - flatten them first if that matters.
CLI equivalent: idiotproof monitor pause [--reason <string>] Examples: idiotproof monitor pause idiotproof monitor pause --reason "news pending"
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Pause the Monitor: from its next tick it evaluates nothing - no entries and NO exits - until resumed.",
"properties": {
"reason": {
"type": "string",
"description": "Why (kept with the flag and shown by \u0060monitor status\u0060)."
}
},
"additionalProperties": false
}
monitor_resume
Resume a paused Monitor (needs a confirmation code when a Live strategy is active).
Clears the SettingsKv flag monitor.paused; the Monitor evaluates again from its next tick. When any active strategy routes Live the first call returns a code: resuming means real-money entries.
CLI equivalent: idiotproof monitor resume Examples: idiotproof monitor resume idiotproof monitor resume --confirm K7Q2M9
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Resume a paused Monitor (needs a confirmation code when a Live strategy is active).",
"properties": {
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false
}
monitor_status
Is the Monitor trading? Hosted, lease, last tick, paused, window, active strategies.
Reads the Hub's in-process Monitor state, the SettingsKv pause flag, the SQL leader lease and the heartbeat file. Times are ET.
CLI equivalent: idiotproof monitor status Examples: idiotproof monitor status idiotproof monitor status --json
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Is the Monitor trading? Hosted, lease, last tick, paused, window, active strategies.",
"properties": {},
"additionalProperties": false
}
monitor_tail
Recent Monitor activity: gate verdicts (fire, veto, block, entry, exit, reject) and live condition progress; --follow streams new ones.
A snapshot of the last --minutes of the Monitor's audit trail (your strategies' events plus its start/stop/pause events), newest last, followed by where each of your active strategies stands. --follow keeps pushing new events and progress changes: live in a terminal until Ctrl+C, a bounded window (--seconds, default 15) for MCP and --json.
CLI equivalent: idiotproof monitor tail [--lines <int>] [--minutes <int>] [--progress] [--follow] [--seconds <int>] Examples: idiotproof monitor tail idiotproof monitor tail --follow idiotproof monitor tail --lines 100 --minutes 390
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Recent Monitor activity: gate verdicts (fire, veto, block, entry, exit, reject) and live condition progress; --follow streams new ones.",
"properties": {
"lines": {
"type": "integer",
"description": "Most recent events to show (1-500).",
"default": 40
},
"minutes": {
"type": "integer",
"description": "How far back to look for events (1-1440).",
"default": 60
},
"progress": {
"type": "boolean",
"description": "Also show each active strategy\u0027s live condition progress.",
"default": true
},
"follow": {
"type": "boolean",
"description": "After the snapshot, keep pushing new events and progress changes (a terminal streams until Ctrl\u002BC; MCP/--json get a bounded window).",
"default": false
},
"seconds": {
"type": "integer",
"description": "With --follow: stop after this many seconds, 1-3600 (MCP/--json default 15, at most 300)."
}
},
"additionalProperties": false
}
monitor_tick_once
Run one evaluation pass over your active strategies and show each verdict - never places, cancels or records an order.
Gate 1 only (entry conditions against fresh bars from the Hub's feed); the LLM panel, RiskGuardian and the broker are never called, and no position, progress row or live bar is written. Without --dry the pass is noted in the audit log.
CLI equivalent: idiotproof monitor tick-once [--dry] [--symbol <string>] Examples: idiotproof monitor tick-once --dry idiotproof monitor tick-once --symbol NVDA
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Run one evaluation pass over your active strategies and show each verdict - never places, cancels or records an order.",
"properties": {
"dry": {
"type": "boolean",
"description": "Write nothing at all (by default the pass is recorded in the audit log as monitor-tick-once).",
"default": false
},
"symbol": {
"type": "string",
"description": "Only strategies on this symbol."
}
},
"additionalProperties": false
}
options_bars
Historical OHLCV bars for one option contract.
CLI equivalent: idiotproof options bars <occ> [--timeframe <string>] [--start <date>] [--end <date>] [--limit <int>] Examples: idiotproof options bars AAPL261120C00250000 idiotproof options bars AAPL261120C00250000 --timeframe 15Min --start 2026-10-28
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Historical OHLCV bars for one option contract.",
"properties": {
"occ": {
"type": "string",
"description": "OCC option symbol, e.g. AAPL261120C00250000.",
"default": ""
},
"timeframe": {
"type": "string",
"description": "Bar size: [1-59]Min, [1-23]Hour, 1Day, 1Week or [1,2,3,4,6,12]Month (default 1Day).",
"default": "1Day"
},
"start": {
"type": "string",
"format": "date",
"description": "First ET date (yyyy-MM-dd); default 30 days back for daily bars, 5 for intraday."
},
"end": {
"type": "string",
"format": "date",
"description": "Last ET date (yyyy-MM-dd); default today."
},
"limit": {
"type": "integer",
"description": "Most bars to return, oldest first (default 200).",
"default": 200
}
},
"additionalProperties": false,
"required": [
"occ"
]
}
options_buy
Buy option contracts to open (level 2+). Sandbox by default; live needs a confirmation code.
CLI equivalent: idiotproof options buy <occ> <contracts> [--limit <decimal>] [--mode <sandbox|paper|live>] [--note <string>] Examples: idiotproof options buy AAPL261219C00150000 2 --limit 3.20 --mode paper idiotproof options buy SPY261120P00560000 1 --mode live
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Buy option contracts to open (level 2\u002B). Sandbox by default; live needs a confirmation code.",
"properties": {
"occ": {
"type": "string",
"description": "OCC contract symbol, e.g. AAPL261219C00150000.",
"default": ""
},
"contracts": {
"type": "integer",
"description": "Whole contracts (each is usually 100 shares).",
"default": 0
},
"limit": {
"type": "number",
"description": "Limit price per share (premium). Without it the order is a market order."
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "Where it routes: sandbox (simulator, the default), paper, or live (needs confirmation).",
"default": "sandbox"
},
"note": {
"type": "string",
"description": "Why \u2014 kept in the audit trail."
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false,
"required": [
"occ",
"contracts"
]
}
options_chain
An underlying's option chain for one expiration: calls and puts by strike with bid/ask, IV, delta and open interest.
CLI equivalent: idiotproof options chain <symbol> [--expiry <date>] [--horizon <int>] [--strikes <int>] [--feed <indicative|opra>] Examples: idiotproof options chain AAPL idiotproof options chain SPY --expiry 2026-12-18 --strikes 5
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "An underlying\u0027s option chain for one expiration: calls and puts by strike with bid/ask, IV, delta and open interest.",
"properties": {
"symbol": {
"type": "string",
"description": "Underlying ticker, e.g. AAPL.",
"default": ""
},
"expiry": {
"type": "string",
"format": "date",
"description": "Expiration date (yyyy-MM-dd) to show; default the nearest one."
},
"horizon": {
"type": "integer",
"description": "Days ahead to list expirations for (default 1098, about 3 years, so LEAPS show; Alpaca\u0027s own default is 1 week).",
"default": 1098
},
"strikes": {
"type": "integer",
"description": "Strikes to show on each side of the spot price (default 10; 0 shows every strike).",
"default": 10
},
"feed": {
"type": "string",
"enum": [
"indicative",
"opra"
],
"description": "Options data feed: indicative (default, free) or opra (paid).",
"default": "indicative"
}
},
"additionalProperties": false,
"required": [
"symbol"
]
}
options_close
Close a whole options position (sells a long, buys back a short) through the gateway.
CLI equivalent: idiotproof options close <occ> [--limit <decimal>] [--mode <sandbox|paper|live>] [--note <string>] Examples: idiotproof options close AAPL261219C00150000 --mode paper idiotproof options close SPY261120P00560000 --limit 2.40 --mode live
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Close a whole options position (sells a long, buys back a short) through the gateway.",
"properties": {
"occ": {
"type": "string",
"description": "OCC contract symbol of the position to close.",
"default": ""
},
"limit": {
"type": "number",
"description": "Limit price per share. Without it the close is a market order."
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "Which account holds it: sandbox (default), paper or live (needs confirmation).",
"default": "sandbox"
},
"note": {
"type": "string",
"description": "Why \u2014 kept in the audit trail."
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false,
"required": [
"occ"
]
}
options_conditions
Options trade or quote condition codes and what they mean.
CLI equivalent: idiotproof options conditions [--tick <trade|quote>] Examples: idiotproof options conditions idiotproof options conditions --tick quote
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Options trade or quote condition codes and what they mean.",
"properties": {
"tick": {
"type": "string",
"enum": [
"trade",
"quote"
],
"description": "trade (default) or quote condition codes.",
"default": "trade"
}
},
"additionalProperties": false
}
options_contract
Full catalog details of one option contract by OCC symbol or Alpaca id.
CLI equivalent: idiotproof options contract <contract> Examples: idiotproof options contract AAPL261120C00250000
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Full catalog details of one option contract by OCC symbol or Alpaca id.",
"properties": {
"contract": {
"type": "string",
"description": "OCC symbol (e.g. AAPL261120C00250000) or Alpaca contract id.",
"default": ""
}
},
"additionalProperties": false,
"required": [
"contract"
]
}
options_contracts
Search listed option contracts for an underlying by expiry, type, strike range and status.
CLI equivalent: idiotproof options contracts <underlying> [--expiry <date>] [--type <call|put>] [--strike-min <decimal>] [--strike-max <decimal>] [--status <active|inactive>] [--horizon <int>] [--limit <int>] Examples: idiotproof options contracts AAPL --expiry 2026-11-20 --type call idiotproof options contracts SPY --strike-min 600 --strike-max 650 --limit 50
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Search listed option contracts for an underlying by expiry, type, strike range and status.",
"properties": {
"underlying": {
"type": "string",
"description": "Underlying ticker(s), comma separated, e.g. AAPL or AAPL,MSFT.",
"default": ""
},
"expiry": {
"type": "string",
"format": "date",
"description": "Only this expiration date (yyyy-MM-dd)."
},
"type": {
"type": "string",
"enum": [
"call",
"put"
],
"description": "Only calls or only puts."
},
"strike_min": {
"type": "number",
"description": "Lowest strike to include."
},
"strike_max": {
"type": "number",
"description": "Highest strike to include."
},
"status": {
"type": "string",
"enum": [
"active",
"inactive"
],
"description": "active (default) or inactive.",
"default": "active"
},
"horizon": {
"type": "integer",
"description": "Without --expiry: days ahead to include (default 1098; Alpaca\u0027s own default is only 1 week).",
"default": 1098
},
"limit": {
"type": "integer",
"description": "Most contracts to return (default 200, max 10000).",
"default": 200
}
},
"additionalProperties": false,
"required": [
"underlying"
]
}
options_do_not_exercise
Opt a held contract out of automatic exercise at expiry (paper or live; live needs a code).
CLI equivalent: idiotproof options do-not-exercise <occ> [--mode <sandbox|paper|live>] [--note <string>] Examples: idiotproof options do-not-exercise AAPL261219C00150000 --mode paper
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Opt a held contract out of automatic exercise at expiry (paper or live; live needs a code).",
"properties": {
"occ": {
"type": "string",
"description": "OCC contract symbol (or Alpaca contract id) of a long position you hold.",
"default": ""
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "Which Alpaca account: paper (default) or live (needs confirmation). Sandbox can\u0027t exercise.",
"default": "paper"
},
"note": {
"type": "string",
"description": "Why \u2014 kept in the audit trail."
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false,
"required": [
"occ"
]
}
options_exchanges
Options exchange codes and their names, as they appear in quotes and trades.
CLI equivalent: idiotproof options exchanges Examples: idiotproof options exchanges
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Options exchange codes and their names, as they appear in quotes and trades.",
"properties": {},
"additionalProperties": false
}
options_exercise
Exercise a long option you hold (Alpaca paper or live; live needs a confirmation code).
CLI equivalent: idiotproof options exercise <occ> [--mode <sandbox|paper|live>] [--note <string>] Examples: idiotproof options exercise AAPL261219C00150000 idiotproof options exercise AAPL261219C00150000 --mode live
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Exercise a long option you hold (Alpaca paper or live; live needs a confirmation code).",
"properties": {
"occ": {
"type": "string",
"description": "OCC contract symbol (or Alpaca contract id) of a long position you hold.",
"default": ""
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "Which Alpaca account: paper (default) or live (needs confirmation). Sandbox can\u0027t exercise.",
"default": "paper"
},
"note": {
"type": "string",
"description": "Why \u2014 kept in the audit trail."
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false,
"required": [
"occ"
]
}
options_glossary
Plain-English options jargon (hype, breakeven, IV, sell to close, ...): every term, or one in full.
CLI equivalent: idiotproof options glossary [<term>] Examples: idiotproof options glossary idiotproof options glossary hype
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Plain-English options jargon (hype, breakeven, IV, sell to close, ...): every term, or one in full.",
"properties": {
"term": {
"type": "string",
"description": "A glossary key or title word (hype, breakeven, iv, sell-to-close, ...); omit to list every term."
}
},
"additionalProperties": false
}
options_greeks
Delta, gamma, theta, vega and rho for one option contract; badged Model when computed locally.
CLI equivalent: idiotproof options greeks <occ> [--spot <decimal>] [--rate <decimal>] [--feed <indicative|opra>] Examples: idiotproof options greeks AAPL261120C00250000 idiotproof options greeks SPY261218P00600000 --spot 640 --rate 4.25
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Delta, gamma, theta, vega and rho for one option contract; badged Model when computed locally.",
"properties": {
"occ": {
"type": "string",
"description": "OCC option symbol: ROOT \u002B YYMMDD \u002B C|P \u002B strike x 1000 (8 digits), e.g. AAPL261120C00250000.",
"default": ""
},
"spot": {
"type": "number",
"description": "Underlying price to use instead of Alpaca\u0027s last trade."
},
"rate": {
"type": "number",
"description": "Risk-free rate in percent, e.g. 4.25 (default: the Options page setting, else 4)."
},
"feed": {
"type": "string",
"enum": [
"indicative",
"opra"
],
"description": "Options data feed: indicative (default, free) or opra (paid).",
"default": "indicative"
}
},
"additionalProperties": false,
"required": [
"occ"
]
}
options_iv
Implied volatility for one option contract: Alpaca's, plus IV solved locally at bid, mid, ask and last.
CLI equivalent: idiotproof options iv <occ> [--spot <decimal>] [--rate <decimal>] [--feed <indicative|opra>] Examples: idiotproof options iv AAPL261120C00250000 idiotproof options iv AAPL261120C00250000 --spot 255
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Implied volatility for one option contract: Alpaca\u0027s, plus IV solved locally at bid, mid, ask and last.",
"properties": {
"occ": {
"type": "string",
"description": "OCC option symbol: ROOT \u002B YYMMDD \u002B C|P \u002B strike x 1000 (8 digits), e.g. AAPL261120C00250000.",
"default": ""
},
"spot": {
"type": "number",
"description": "Underlying price to use instead of Alpaca\u0027s last trade."
},
"rate": {
"type": "number",
"description": "Risk-free rate in percent, e.g. 4.25 (default: the Options page setting, else 4)."
},
"feed": {
"type": "string",
"enum": [
"indicative",
"opra"
],
"description": "Options data feed: indicative (default, free) or opra (paid).",
"default": "indicative"
}
},
"additionalProperties": false,
"required": [
"occ"
]
}
options_latest
Latest NBBO quote and latest trade for one option contract, with exchanges and sizes.
CLI equivalent: idiotproof options latest <occ> [--feed <indicative|opra>] Examples: idiotproof options latest AAPL261120C00250000
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Latest NBBO quote and latest trade for one option contract, with exchanges and sizes.",
"properties": {
"occ": {
"type": "string",
"description": "OCC option symbol: ROOT \u002B YYMMDD \u002B C|P \u002B strike x 1000 (8 digits), e.g. AAPL261120C00250000.",
"default": ""
},
"feed": {
"type": "string",
"enum": [
"indicative",
"opra"
],
"description": "Options data feed: indicative (default, free) or opra (paid).",
"default": "indicative"
}
},
"additionalProperties": false,
"required": [
"occ"
]
}
options_level
Options trading level (effective and approved) and options buying power for your Alpaca accounts.
CLI equivalent: idiotproof options level [--mode <all|paper|live>] Examples: idiotproof options level idiotproof options level --mode paper
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Options trading level (effective and approved) and options buying power for your Alpaca accounts.",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"paper",
"live"
],
"description": "paper, live or all (default all).",
"default": "all"
}
},
"additionalProperties": false
}
options_positions
Open option contracts in your Alpaca accounts: strike, expiry, DTE, cost, value and unrealized P&L.
CLI equivalent: idiotproof options positions [--mode <all|paper|live>] Examples: idiotproof options positions idiotproof options positions --mode live
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Open option contracts in your Alpaca accounts: strike, expiry, DTE, cost, value and unrealized P\u0026L.",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"paper",
"live"
],
"description": "paper, live or all (default all).",
"default": "all"
}
},
"additionalProperties": false
}
options_quote
Latest bid/ask, mid, spread and last trade for one option contract (OCC symbol).
CLI equivalent: idiotproof options quote <occ> [--feed <indicative|opra>] Examples: idiotproof options quote AAPL261120C00250000 idiotproof options quote SPY261218P00600000 --feed opra
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Latest bid/ask, mid, spread and last trade for one option contract (OCC symbol).",
"properties": {
"occ": {
"type": "string",
"description": "OCC option symbol: ROOT \u002B YYMMDD \u002B C|P \u002B strike x 1000 (8 digits), e.g. AAPL261120C00250000.",
"default": ""
},
"feed": {
"type": "string",
"enum": [
"indicative",
"opra"
],
"description": "Options data feed: indicative (default, free) or opra (paid).",
"default": "indicative"
}
},
"additionalProperties": false,
"required": [
"occ"
]
}
options_sell
Sell option contracts you hold (sell to close), or write them with --open (level 1+).
CLI equivalent: idiotproof options sell <occ> <contracts> [--limit <decimal>] [--mode <sandbox|paper|live>] [--open] [--note <string>] Examples: idiotproof options sell AAPL261219C00150000 2 --limit 4.10 --mode paper idiotproof options sell AAPL261219C00170000 1 --open --limit 1.05 --mode paper
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Sell option contracts you hold (sell to close), or write them with --open (level 1\u002B).",
"properties": {
"occ": {
"type": "string",
"description": "OCC contract symbol, e.g. AAPL261219C00150000.",
"default": ""
},
"contracts": {
"type": "integer",
"description": "Whole contracts (each is usually 100 shares).",
"default": 0
},
"limit": {
"type": "number",
"description": "Limit price per share (premium). Without it the order is a market order."
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "Where it routes: sandbox (simulator, the default), paper, or live (needs confirmation).",
"default": "sandbox"
},
"open": {
"type": "boolean",
"description": "Write (sell to open, level 1\u002B: covered call / cash-secured put) instead of selling contracts you hold.",
"default": false
},
"note": {
"type": "string",
"description": "Why \u2014 kept in the audit trail."
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false,
"required": [
"occ",
"contracts"
]
}
options_signals
Sell-the-hype nudges on your open long options: hype near its session high plus bullish news (never places anything).
CLI equivalent: idiotproof options signals [--mode <all|paper|live>] Examples: idiotproof options signals idiotproof options signals --mode paper
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Sell-the-hype nudges on your open long options: hype near its session high plus bullish news (never places anything).",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"paper",
"live"
],
"description": "paper, live or all (default all).",
"default": "all"
}
},
"additionalProperties": false
}
options_snapshot
Alpaca's full snapshot of one option contract: latest quote and trade, daily bars, IV and Greeks.
CLI equivalent: idiotproof options snapshot <occ> [--feed <indicative|opra>] Examples: idiotproof options snapshot AAPL261120C00250000
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Alpaca\u0027s full snapshot of one option contract: latest quote and trade, daily bars, IV and Greeks.",
"properties": {
"occ": {
"type": "string",
"description": "OCC option symbol: ROOT \u002B YYMMDD \u002B C|P \u002B strike x 1000 (8 digits), e.g. AAPL261120C00250000.",
"default": ""
},
"feed": {
"type": "string",
"enum": [
"indicative",
"opra"
],
"description": "Options data feed: indicative (default, free) or opra (paid).",
"default": "indicative"
}
},
"additionalProperties": false,
"required": [
"occ"
]
}
options_spread
Place a 2-4 leg options order (verticals, straddles, ratios...) as one Alpaca multi-leg order; level 3, max-loss preview, live needs a code.
CLI equivalent: idiotproof options spread <legs>... [--qty <int>] [--limit <decimal>] [--mode <sandbox|paper|live>] [--note <string>] Examples: idiotproof options spread buy:AAPL261219C00150000 sell:AAPL261219C00160000 --limit 3.10 idiotproof options spread sell:SPY261120P00560000 buy:SPY261120P00550000 --limit -1.25 --qty 2 --mode live
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Place a 2-4 leg options order (verticals, straddles, ratios...) as one Alpaca multi-leg order; level 3, max-loss preview, live needs a code.",
"properties": {
"legs": {
"type": "array",
"items": {
"type": "string"
},
"description": "2 to 4 legs, each side:OCC[:ratio][:close], e.g. buy:AAPL261219C00150000 sell:AAPL261219C00160000. Legs open unless :close."
},
"qty": {
"type": "integer",
"description": "How many spreads (each leg trades ratio x qty contracts). Default 1.",
"default": 1
},
"limit": {
"type": "number",
"description": "Net price per spread per share: positive = debit you pay, negative = credit you take. Without it the order is a market order."
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "paper (default) or live (needs confirmation). The Sandbox simulator does not fill multi-leg orders.",
"default": "paper"
},
"note": {
"type": "string",
"description": "Why \u2014 kept in the audit trail."
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false,
"required": [
"legs"
]
}
options_trades
Historical trades (prints) for one option contract, newest first.
CLI equivalent: idiotproof options trades <occ> [--start <date>] [--end <date>] [--limit <int>] Examples: idiotproof options trades AAPL261120C00250000 idiotproof options trades AAPL261120C00250000 --start 2026-10-29 --limit 200
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Historical trades (prints) for one option contract, newest first.",
"properties": {
"occ": {
"type": "string",
"description": "OCC option symbol, e.g. AAPL261120C00250000.",
"default": ""
},
"start": {
"type": "string",
"format": "date",
"description": "First ET date (yyyy-MM-dd); default 7 days back."
},
"end": {
"type": "string",
"format": "date",
"description": "Last ET date (yyyy-MM-dd); default today."
},
"limit": {
"type": "integer",
"description": "Most trades to return, newest first (default 50).",
"default": 50
}
},
"additionalProperties": false,
"required": [
"occ"
]
}
options_value
Intrinsic and extrinsic value, breakeven, DTE and Black-Scholes price for one option contract.
CLI equivalent: idiotproof options value <occ> [--spot <decimal>] [--premium <decimal>] [--iv <decimal>] [--rate <decimal>] [--feed <indicative|opra>] Examples: idiotproof options value AAPL261120C00250000 idiotproof options value AAPL261120C00250000 --spot 260 --premium 4.10
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Intrinsic and extrinsic value, breakeven, DTE and Black-Scholes price for one option contract.",
"properties": {
"occ": {
"type": "string",
"description": "OCC option symbol: ROOT \u002B YYMMDD \u002B C|P \u002B strike x 1000 (8 digits), e.g. AAPL261120C00250000.",
"default": ""
},
"spot": {
"type": "number",
"description": "Underlying price to value at (what-if) instead of Alpaca\u0027s last trade."
},
"premium": {
"type": "number",
"description": "Premium per share to value instead of the current mid, e.g. what you paid."
},
"iv": {
"type": "number",
"description": "Implied volatility in percent for the Black-Scholes price, e.g. 35 (default Alpaca\u0027s IV)."
},
"rate": {
"type": "number",
"description": "Risk-free rate in percent, e.g. 4.25 (default: the Options page setting, else 4)."
},
"feed": {
"type": "string",
"enum": [
"indicative",
"opra"
],
"description": "Options data feed: indicative (default, free) or opra (paid).",
"default": "indicative"
}
},
"additionalProperties": false,
"required": [
"occ"
]
}
orders_bracket
Entry plus a take-profit and a stop-loss that cancel each other (Alpaca bracket). The stop-loss is the Risk Guardian's stop.
CLI equivalent: idiotproof orders bracket <symbol> <side> <qty> [--limit <decimal>] [--take-profit <decimal>] [--stop-loss <decimal>] [--stop-loss-limit <decimal>] [--tif <string>] [--client-id <string>] [--stop <decimal>] [--mode <sandbox|paper|live>] [--note <string>] Examples: idiotproof orders bracket NVDA buy 10 --limit 131 --take-profit 140 --stop-loss 127 --tif gtc --mode paper idiotproof orders bracket AAPL buy 5 --take-profit 240 --stop-loss 220 --stop-loss-limit 219.5
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Entry plus a take-profit and a stop-loss that cancel each other (Alpaca bracket). The stop-loss is the Risk Guardian\u0027s stop.",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker, e.g. NVDA.",
"default": ""
},
"side": {
"type": "string",
"enum": [
"buy",
"sell"
],
"description": "buy or sell (the parent\u0027s side; an OCO\u0027s side closes the position: sell exits a long).",
"default": "buy"
},
"qty": {
"type": "integer",
"description": "Whole shares.",
"default": 0
},
"limit": {
"type": "number",
"description": "Entry limit price (bracket/OTO). Without it the entry is a market order."
},
"take_profit": {
"type": "number",
"description": "Take-profit child\u0027s limit price."
},
"stop_loss": {
"type": "number",
"description": "Stop-loss child\u0027s stop price."
},
"stop_loss_limit": {
"type": "number",
"description": "Make the stop-loss a stop-limit with this limit price."
},
"tif": {
"type": "string",
"description": "Time in force: day (default) or gtc.",
"default": "day"
},
"client_id": {
"type": "string",
"description": "Your own id for the parent order (Alpaca client_order_id)."
},
"stop": {
"type": "number",
"description": "Planned protective stop for the Risk Guardian when the order has no stop-loss child (OTO with only a take-profit)."
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "Where it routes: sandbox (simulator, the default), paper, or live (needs confirmation).",
"default": "sandbox"
},
"note": {
"type": "string",
"description": "Why \u2014 kept in the audit trail."
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false,
"required": [
"symbol",
"side",
"qty"
]
}
orders_cancel
Cancel one working order through the gateway (audited; live needs a confirmation code).
CLI equivalent: idiotproof orders cancel <id> [--mode <sandbox|paper|live>] [--note <string>] Examples: idiotproof orders cancel 61e69015-8549-4bfd-b9c3-01e75843f47d idiotproof orders cancel 61e69015-8549-4bfd-b9c3-01e75843f47d --mode live
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Cancel one working order through the gateway (audited; live needs a confirmation code).",
"properties": {
"id": {
"type": "string",
"description": "The order id (from \u0060orders list\u0060).",
"default": ""
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "The account the order is in: paper (default), live (needs confirmation) or sandbox.",
"default": "paper"
},
"note": {
"type": "string",
"description": "Why \u2014 kept in the audit trail."
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false,
"required": [
"id"
]
}
orders_cancel_all
Cancel every open order in an account, or only one symbol's, through the gateway (live needs a confirmation code).
CLI equivalent: idiotproof orders cancel-all [--symbol <string>] [--mode <sandbox|paper|live>] [--note <string>] Examples: idiotproof orders cancel-all --mode paper idiotproof orders cancel-all --symbol NVDA --mode live
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Cancel every open order in an account, or only one symbol\u0027s, through the gateway (live needs a confirmation code).",
"properties": {
"symbol": {
"type": "string",
"description": "Only this symbol\u0027s open orders. Without it, every open order in the account."
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "The account: paper (default), live (needs confirmation) or sandbox.",
"default": "paper"
},
"note": {
"type": "string",
"description": "Why \u2014 kept in the audit trail."
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false
}
orders_history
Closed Alpaca orders (filled, cancelled, expired, rejected) over the last N days, newest first, with fill prices and totals.
CLI equivalent: idiotproof orders history [--days <int>] [--symbol <string>] [--mode <all|paper|live>] Examples: idiotproof orders history idiotproof orders history --days 30 --symbol NVDA --mode paper
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Closed Alpaca orders (filled, cancelled, expired, rejected) over the last N days, newest first, with fill prices and totals.",
"properties": {
"days": {
"type": "integer",
"description": "How far back, in days (default 7, up to 365).",
"default": 7
},
"symbol": {
"type": "string",
"description": "Only orders for these symbols (comma-separated)."
},
"mode": {
"type": "string",
"enum": [
"all",
"paper",
"live"
],
"description": "paper, live or all (default all).",
"default": "all"
}
},
"additionalProperties": false
}
orders_list
Your Alpaca orders (open by default) in the paper and live accounts, newest first, with bracket/OCO legs.
CLI equivalent: idiotproof orders list [--status <open|closed|all>] [--symbol <string>] [--side <string>] [--limit <int>] [--mode <all|paper|live>] Examples: idiotproof orders list idiotproof orders list --status closed --symbol NVDA --mode paper
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Your Alpaca orders (open by default) in the paper and live accounts, newest first, with bracket/OCO legs.",
"properties": {
"status": {
"type": "string",
"enum": [
"open",
"closed",
"all"
],
"description": "open (default: working orders), closed (filled/cancelled/expired) or all.",
"default": "open"
},
"symbol": {
"type": "string",
"description": "Only orders for these symbols (comma-separated)."
},
"side": {
"type": "string",
"description": "Only buy or sell orders."
},
"limit": {
"type": "integer",
"description": "Most orders per account (default 50, Alpaca\u0027s max 500).",
"default": 50
},
"mode": {
"type": "string",
"enum": [
"all",
"paper",
"live"
],
"description": "paper, live or all (default all).",
"default": "all"
}
},
"additionalProperties": false
}
orders_oco
Exit a held position with a take-profit limit and a stop-loss; whichever fills cancels the other (Alpaca OCO).
CLI equivalent: idiotproof orders oco <symbol> <side> <qty> [--limit <decimal>] [--take-profit <decimal>] [--stop-loss <decimal>] [--stop-loss-limit <decimal>] [--tif <string>] [--client-id <string>] [--stop <decimal>] [--mode <sandbox|paper|live>] [--note <string>] Examples: idiotproof orders oco NVDA sell 10 --take-profit 140 --stop-loss 127 --tif gtc --mode paper
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Exit a held position with a take-profit limit and a stop-loss; whichever fills cancels the other (Alpaca OCO).",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker, e.g. NVDA.",
"default": ""
},
"side": {
"type": "string",
"enum": [
"buy",
"sell"
],
"description": "buy or sell (the parent\u0027s side; an OCO\u0027s side closes the position: sell exits a long).",
"default": "buy"
},
"qty": {
"type": "integer",
"description": "Whole shares.",
"default": 0
},
"limit": {
"type": "number",
"description": "Entry limit price (bracket/OTO). Without it the entry is a market order."
},
"take_profit": {
"type": "number",
"description": "Take-profit child\u0027s limit price."
},
"stop_loss": {
"type": "number",
"description": "Stop-loss child\u0027s stop price."
},
"stop_loss_limit": {
"type": "number",
"description": "Make the stop-loss a stop-limit with this limit price."
},
"tif": {
"type": "string",
"description": "Time in force: day (default) or gtc.",
"default": "day"
},
"client_id": {
"type": "string",
"description": "Your own id for the parent order (Alpaca client_order_id)."
},
"stop": {
"type": "number",
"description": "Planned protective stop for the Risk Guardian when the order has no stop-loss child (OTO with only a take-profit)."
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "Where it routes: sandbox (simulator, the default), paper, or live (needs confirmation).",
"default": "sandbox"
},
"note": {
"type": "string",
"description": "Why \u2014 kept in the audit trail."
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false,
"required": [
"symbol",
"side",
"qty"
]
}
orders_oto
Entry that, once filled, triggers ONE child: a take-profit or a stop-loss (Alpaca OTO).
CLI equivalent: idiotproof orders oto <symbol> <side> <qty> [--limit <decimal>] [--take-profit <decimal>] [--stop-loss <decimal>] [--stop-loss-limit <decimal>] [--tif <string>] [--client-id <string>] [--stop <decimal>] [--mode <sandbox|paper|live>] [--note <string>] Examples: idiotproof orders oto NVDA buy 10 --limit 131 --stop-loss 127 --mode paper idiotproof orders oto NVDA buy 10 --limit 131 --take-profit 140 --stop 127
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Entry that, once filled, triggers ONE child: a take-profit or a stop-loss (Alpaca OTO).",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker, e.g. NVDA.",
"default": ""
},
"side": {
"type": "string",
"enum": [
"buy",
"sell"
],
"description": "buy or sell (the parent\u0027s side; an OCO\u0027s side closes the position: sell exits a long).",
"default": "buy"
},
"qty": {
"type": "integer",
"description": "Whole shares.",
"default": 0
},
"limit": {
"type": "number",
"description": "Entry limit price (bracket/OTO). Without it the entry is a market order."
},
"take_profit": {
"type": "number",
"description": "Take-profit child\u0027s limit price."
},
"stop_loss": {
"type": "number",
"description": "Stop-loss child\u0027s stop price."
},
"stop_loss_limit": {
"type": "number",
"description": "Make the stop-loss a stop-limit with this limit price."
},
"tif": {
"type": "string",
"description": "Time in force: day (default) or gtc.",
"default": "day"
},
"client_id": {
"type": "string",
"description": "Your own id for the parent order (Alpaca client_order_id)."
},
"stop": {
"type": "number",
"description": "Planned protective stop for the Risk Guardian when the order has no stop-loss child (OTO with only a take-profit)."
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "Where it routes: sandbox (simulator, the default), paper, or live (needs confirmation).",
"default": "sandbox"
},
"note": {
"type": "string",
"description": "Why \u2014 kept in the audit trail."
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false,
"required": [
"symbol",
"side",
"qty"
]
}
orders_place
Place any single Alpaca order: market/limit/stop/stop-limit/trailing, every TIF, fractional or notional, client id, position intent. Through the gateway; live needs a code.
CLI equivalent: idiotproof orders place <symbol> <side> [<qty>] [--notional <decimal>] [--type <market|limit|stop|stop-limit|trailing-stop>] [--limit <decimal>] [--stop-price <decimal>] [--trail-percent <decimal>] [--trail-price <decimal>] [--tif <string>] [--ext] [--client-id <string>] [--intent <string>] [--stop <decimal>] [--target <decimal>] [--mode <sandbox|paper|live>] [--note <string>] Examples: idiotproof orders place NVDA buy 10 --limit 131.20 --stop 127.50 --tif gtc --mode paper idiotproof orders place AAPL buy 0.5 --stop 220 --mode paper idiotproof orders place TSLA sell 5 --type trailing-stop --trail-percent 3 --tif gtc --mode paper
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Place any single Alpaca order: market/limit/stop/stop-limit/trailing, every TIF, fractional or notional, client id, position intent. Through the gateway; live needs a code.",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker, e.g. NVDA.",
"default": ""
},
"side": {
"type": "string",
"enum": [
"buy",
"sell"
],
"description": "buy or sell.",
"default": "buy"
},
"qty": {
"type": "number",
"description": "Shares; fractions allowed (0.25, DAY only). Leave out and pass --notional to size by dollars."
},
"notional": {
"type": "number",
"description": "Size by dollar amount instead of shares (DAY only)."
},
"type": {
"type": "string",
"enum": [
"market",
"limit",
"stop",
"stop-limit",
"trailing-stop"
],
"description": "market, limit, stop, stop-limit or trailing-stop. Default: worked out from the prices given (none = market)."
},
"limit": {
"type": "number",
"description": "Limit price (limit and stop-limit orders)."
},
"stop_price": {
"type": "number",
"description": "Stop trigger price (stop and stop-limit orders)."
},
"trail_percent": {
"type": "number",
"description": "Trailing stop distance in percent."
},
"trail_price": {
"type": "number",
"description": "Trailing stop distance in dollars."
},
"tif": {
"type": "string",
"description": "Time in force: day (default), gtc, opg (at the open), cls (at the close), ioc or fok.",
"default": "day"
},
"ext": {
"type": "boolean",
"description": "Extended hours (premarket/after-hours); limit \u002B day only.",
"default": false
},
"client_id": {
"type": "string",
"description": "Your own order id (Alpaca client_order_id, up to 128 characters)."
},
"intent": {
"type": "string",
"description": "Position intent: buy-to-open, buy-to-close, sell-to-open or sell-to-close."
},
"stop": {
"type": "number",
"description": "Planned protective stop for an entry (the Risk Guardian refuses entries without one)."
},
"target": {
"type": "number",
"description": "Planned take-profit (for the reward:risk check)."
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "Where it routes: sandbox (simulator, the default), paper, or live (needs confirmation).",
"default": "sandbox"
},
"note": {
"type": "string",
"description": "Why \u2014 kept in the audit trail."
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false,
"required": [
"symbol",
"side"
]
}
orders_replace
Change a working order's quantity, limit/stop/trail, TIF or client id (Alpaca PATCH; it gets a new id). Through the gateway; live needs a code.
CLI equivalent: idiotproof orders replace <id> [--qty <decimal>] [--limit <decimal>] [--stop-price <decimal>] [--trail <decimal>] [--tif <string>] [--client-id <string>] [--stop <decimal>] [--mode <sandbox|paper|live>] [--note <string>] Examples: idiotproof orders replace 61e69015-8549-4bfd-b9c3-01e75843f47d --limit 131.50 idiotproof orders replace 61e69015-8549-4bfd-b9c3-01e75843f47d --qty 5 --tif gtc --mode live
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Change a working order\u0027s quantity, limit/stop/trail, TIF or client id (Alpaca PATCH; it gets a new id). Through the gateway; live needs a code.",
"properties": {
"id": {
"type": "string",
"description": "The working order to change (from \u0060orders list\u0060).",
"default": ""
},
"qty": {
"type": "number",
"description": "New share count (fractions allowed)."
},
"limit": {
"type": "number",
"description": "New limit price."
},
"stop_price": {
"type": "number",
"description": "New stop trigger price."
},
"trail": {
"type": "number",
"description": "New trailing distance, in the order\u0027s own unit (percent or dollars)."
},
"tif": {
"type": "string",
"description": "New time in force: day, gtc, opg, cls, ioc or fok."
},
"client_id": {
"type": "string",
"description": "New client order id for the replacement order."
},
"stop": {
"type": "number",
"description": "Protective stop for the position, needed when --qty raises an entry\u0027s size (the Risk Guardian checks the whole new size)."
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "The account the order is in: paper (default) or live (needs confirmation).",
"default": "paper"
},
"note": {
"type": "string",
"description": "Why \u2014 kept in the audit trail."
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false,
"required": [
"id"
]
}
orders_show
One Alpaca order in full, by id or client id: prices, fills, timestamps (ET) and its nested bracket/OCO/OTO/multi-leg legs.
CLI equivalent: idiotproof orders show [<id>] [--client-id <string>] [--mode <all|paper|live>] Examples: idiotproof orders show 61e69015-8549-4bfd-b9c3-01e75843f47d idiotproof orders show --client-id exit-nvda-1 --mode paper
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "One Alpaca order in full, by id or client id: prices, fills, timestamps (ET) and its nested bracket/OCO/OTO/multi-leg legs.",
"properties": {
"id": {
"type": "string",
"description": "The Alpaca order id (from \u0060orders list\u0060). Leave out and pass --client-id to look up by your own id."
},
"client_id": {
"type": "string",
"description": "Look the order up by its client order id instead."
},
"mode": {
"type": "string",
"enum": [
"all",
"paper",
"live"
],
"description": "paper, live or all (default all: whichever account has it).",
"default": "all"
}
},
"additionalProperties": false
}
orders_stream
Live order events from Alpaca (new, fill, partial fill, canceled, replaced, rejected, expired); the Hub records every fill in the trade diary and audit log.
Starts (or joins) the Hub's trade_updates listener for each account; once started it keeps recording fills until the Hub stops. A terminal streams events until Ctrl+C; MCP and --json get the events of a bounded window (--seconds, default 15) plus the last few seen.
CLI equivalent: idiotproof orders stream [--mode <all|paper|live>] [--fills-only] [--seconds <int>] [--max <int>] Examples: idiotproof orders stream idiotproof orders stream --mode paper --fills-only
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Live order events from Alpaca (new, fill, partial fill, canceled, replaced, rejected, expired); the Hub records every fill in the trade diary and audit log.",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"paper",
"live"
],
"description": "paper, live or all (default all: every account with keys).",
"default": "all"
},
"fills_only": {
"type": "boolean",
"description": "Show only fills and partial fills.",
"default": false
},
"seconds": {
"type": "integer",
"description": "Stop after this many seconds (a terminal streams until Ctrl\u002BC; MCP/--json default 15, at most 300)."
},
"max": {
"type": "integer",
"description": "Stop after this many events."
}
},
"additionalProperties": false
}
positions_close
Close (or trim) one Alpaca position as a market exit through the TransactionGateway. Live needs a confirmation code.
CLI equivalent: idiotproof positions close <symbol> [--qty <decimal>] [--percentage <decimal>] [--mode <sandbox|paper|live>] [--preview] Examples: idiotproof positions close HIHO --mode paper idiotproof positions close NVDA --percentage 50 --mode paper idiotproof positions close TSLA --qty 5 --mode live
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Close (or trim) one Alpaca position as a market exit through the TransactionGateway. Live needs a confirmation code.",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker or OCC option symbol of the position to close, e.g. NVDA.",
"default": ""
},
"qty": {
"type": "number",
"description": "Close only this many shares/contracts (default: all of it)."
},
"percentage": {
"type": "number",
"description": "Close this percent of the position (0-100) instead of all of it."
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "Which Alpaca account: paper (default) or live (needs a confirmation code).",
"default": "paper"
},
"preview": {
"type": "boolean",
"description": "Run every gate and show the exit without sending it.",
"default": false
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false,
"required": [
"symbol"
]
}
positions_close_all
Close every Alpaca position in one account with market exits through the TransactionGateway; optionally cancel open orders first. Live needs a confirmation code.
CLI equivalent: idiotproof positions close-all [--cancel-orders] [--mode <sandbox|paper|live>] [--preview] Examples: idiotproof positions close-all --preview idiotproof positions close-all --cancel-orders --mode paper idiotproof positions close-all --cancel-orders --mode live
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Close every Alpaca position in one account with market exits through the TransactionGateway; optionally cancel open orders first. Live needs a confirmation code.",
"properties": {
"cancel_orders": {
"type": "boolean",
"description": "Cancel every open order first (frees shares held by working sells/stops).",
"default": false
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "Which Alpaca account: paper (default) or live (one confirmation code covers the whole set).",
"default": "paper"
},
"preview": {
"type": "boolean",
"description": "Run every gate and list everything that would close, without sending anything.",
"default": false
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false
}
positions_list
Every open position in your Alpaca paper and live accounts: price, today's move, unrealized P&L.
CLI equivalent: idiotproof positions list [--mode <all|paper|live>] Examples: idiotproof positions list idiotproof positions list --mode paper
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Every open position in your Alpaca paper and live accounts: price, today\u0027s move, unrealized P\u0026L.",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"paper",
"live"
],
"description": "paper, live or all (default all).",
"default": "all"
}
},
"additionalProperties": false
}
positions_reconcile
What Alpaca actually holds vs what your strategies book (PositionQty), per account. --apply clears phantom rows (booked, broker flat) from the strategies' own filled exits; it never places an order.
CLI equivalent: idiotproof positions reconcile [--mode <all|paper|live>] [--problems] [--apply] [--rebook] Examples: idiotproof positions reconcile idiotproof positions reconcile --mode paper --problems idiotproof positions reconcile --mode paper --apply
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "What Alpaca actually holds vs what your strategies book (PositionQty), per account. --apply clears phantom rows (booked, broker flat) from the strategies\u0027 own filled exits; it never places an order.",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"paper",
"live"
],
"description": "paper, live or all (default all).",
"default": "all"
},
"problems": {
"type": "boolean",
"description": "Only the rows where the broker and the strategies disagree.",
"default": false
},
"apply": {
"type": "boolean",
"description": "Clear phantom rows (booked but the broker is flat): book each strategy\u0027s own filled exit orders from the broker, else flat as reconciled. Never places an order.",
"default": false
},
"rebook": {
"type": "boolean",
"description": "Re-book strategies an earlier --apply closed flat as reconciled (P\u0026L 0) at their own filled exit orders. Reads orders, never places one.",
"default": false
}
},
"additionalProperties": false
}
positions_show
One position in your Alpaca paper/live accounts, the IdiotProof strategy that owns it, and its latest trade-diary row.
CLI equivalent: idiotproof positions show <symbol> [--mode <all|paper|live>] Examples: idiotproof positions show NVDA idiotproof positions show HIHO --mode paper
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "One position in your Alpaca paper/live accounts, the IdiotProof strategy that owns it, and its latest trade-diary row.",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker, OCC option symbol or crypto pair, e.g. NVDA.",
"default": ""
},
"mode": {
"type": "string",
"enum": [
"all",
"paper",
"live"
],
"description": "paper, live or all (default all).",
"default": "all"
}
},
"additionalProperties": false,
"required": [
"symbol"
]
}
prefs_get
Show your preferences: theme, account pill and Risk Guardian limits.
CLI equivalent: idiotproof prefs get [<field>] Examples: idiotproof prefs get idiotproof prefs get risk.max-loss-per-day
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Show your preferences: theme, account pill and Risk Guardian limits.",
"properties": {
"field": {
"type": "string",
"description": "One preference (theme, account-type, risk.max-loss-per-trade, ...); omit for all."
}
},
"additionalProperties": false
}
prefs_set
Change one of your preferences (risk limits keep the Settings page's sanity rules).
CLI equivalent: idiotproof prefs set <field> <value> Examples: idiotproof prefs set risk.max-loss-per-day 250 idiotproof prefs set account-type paper
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Change one of your preferences (risk limits keep the Settings page\u0027s sanity rules).",
"properties": {
"field": {
"type": "string",
"description": "theme, account-type or a risk.* limit (see \u0060prefs get\u0060).",
"default": ""
},
"value": {
"type": "string",
"description": "The new value.",
"default": ""
}
},
"additionalProperties": false,
"required": [
"field",
"value"
]
}
replay_all
Replay every strategy family on one ticker/day and rank them by realized P&L (best fit first).
CLI equivalent: idiotproof replay all <symbol> [<date>] [--pages] [--out <string>] Examples: idiotproof replay all NVDA 2026-10-29 idiotproof replay all ABCD --no-pages
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Replay every strategy family on one ticker/day and rank them by realized P\u0026L (best fit first).",
"properties": {
"symbol": {
"type": "string",
"description": "The ticker to try every family on.",
"default": ""
},
"date": {
"type": "string",
"format": "date",
"description": "The ET trading day (yyyy-MM-dd); default the last completed trading day."
},
"pages": {
"type": "boolean",
"description": "Render each run\u0027s page and the archive indexes (HTML only).",
"default": true
},
"out": {
"type": "string",
"description": "Archive folder for the pages (default the mindattic.com replays folder)."
}
},
"additionalProperties": false,
"required": [
"symbol"
]
}
replay_compare
Two replay runs side by side: strategy, day, fires, round-trips, win rate, hold time and P&L, with the difference.
CLI equivalent: idiotproof replay compare <run-a> <run-b> Examples: idiotproof replay compare 0190a3f2 0190b7c1
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Two replay runs side by side: strategy, day, fires, round-trips, win rate, hold time and P\u0026L, with the difference.",
"properties": {
"run_a": {
"type": "string",
"description": "First run id or prefix.",
"default": ""
},
"run_b": {
"type": "string",
"description": "Second run id or prefix.",
"default": ""
}
},
"additionalProperties": false,
"required": [
"run_a",
"run_b"
]
}
replay_families
The built-in strategy families replay run --family and replay all use, with what each trades.
CLI equivalent: idiotproof replay families Examples: idiotproof replay families
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "The built-in strategy families \u0060replay run --family\u0060 and \u0060replay all\u0060 use, with what each trades.",
"properties": {},
"additionalProperties": false
}
replay_list
The replay archive, newest first: ticker, day, strategy, sim or live, fired and P&L.
CLI equivalent: idiotproof replay list [--symbol <string>] [--since <date>] [--kind <string>] [--fired] [--limit <int>] Examples: idiotproof replay list idiotproof replay list --symbol NVDA --since 2026-10-01 --fired
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "The replay archive, newest first: ticker, day, strategy, sim or live, fired and P\u0026L.",
"properties": {
"symbol": {
"type": "string",
"description": "Only this ticker."
},
"since": {
"type": "string",
"format": "date",
"description": "Only runs of ET trading days on or after this date (yyyy-MM-dd)."
},
"kind": {
"type": "string",
"description": "Only sim (hypothetical replays) or live (the Monitor\u0027s real trades)."
},
"fired": {
"type": "boolean",
"description": "Only runs that fired.",
"default": false
},
"limit": {
"type": "integer",
"description": "At most this many runs, newest first (default 50).",
"default": 50
}
},
"additionalProperties": false
}
replay_live
Render the Monitor's real trades for a day (from the trade diary) on that day's bars as LIVE runs in the archive.
CLI equivalent: idiotproof replay live [<symbol>] [--date <date>] [--pages] [--out <string>] Examples: idiotproof replay live idiotproof replay live NVDA --date 2026-10-29
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Render the Monitor\u0027s real trades for a day (from the trade diary) on that day\u0027s bars as LIVE runs in the archive.",
"properties": {
"symbol": {
"type": "string",
"description": "Only this ticker (default every ticker the Monitor traded that day)."
},
"date": {
"type": "string",
"format": "date",
"description": "The ET day whose real trades to render (default today ET)."
},
"pages": {
"type": "boolean",
"description": "Render the run pages and archive indexes (HTML only; publishing stays manual).",
"default": true
},
"out": {
"type": "string",
"description": "Archive folder for the pages (default the mindattic.com replays folder)."
}
},
"additionalProperties": false
}
replay_regen
Regenerate the replay archive's HTML (every run page and index) from SQL; never uploads or deploys.
CLI equivalent: idiotproof replay regen [--out <string>] Examples: idiotproof replay regen idiotproof replay regen --out C:\temp\replays
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Regenerate the replay archive\u0027s HTML (every run page and index) from SQL; never uploads or deploys.",
"properties": {
"out": {
"type": "string",
"description": "Archive folder to (re)write (default the mindattic.com replays folder)."
}
},
"additionalProperties": false
}
replay_run
Replay a strategy, gapper profile or built-in family over one past day with the Monitor's own evaluator; saves the run and its page.
CLI equivalent: idiotproof replay run <symbol> [<date>] [--strategy <string>] [--profile <string>] [--family <string>] [--repeat] [--pages] [--out <string>] Examples: idiotproof replay run NVDA 2026-10-29 idiotproof replay run ABCD 2026-10-29 --profile penny-runner idiotproof replay run TSLA --family rthdrive --repeat --no-pages
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Replay a strategy, gapper profile or built-in family over one past day with the Monitor\u0027s own evaluator; saves the run and its page.",
"properties": {
"symbol": {
"type": "string",
"description": "The ticker to replay.",
"default": ""
},
"date": {
"type": "string",
"format": "date",
"description": "The ET trading day (yyyy-MM-dd); default the last completed trading day."
},
"strategy": {
"type": "string",
"description": "Replay this saved strategy (id, id prefix, stamp id or symbol) instead of the symbol\u0027s own."
},
"profile": {
"type": "string",
"description": "Replay a gapper profile on the fly (e.g. classic-gapper, penny-runner)."
},
"family": {
"type": "string",
"description": "Replay a built-in family (momentum, reversal, rsireversal, emabreak, rthdrive, shortfade, swingreversal)."
},
"repeat": {
"type": "boolean",
"description": "Re-arm after every exit to show each round-trip the day offered.",
"default": false
},
"pages": {
"type": "boolean",
"description": "Render the run page and archive indexes (HTML only; publishing stays manual).",
"default": true
},
"out": {
"type": "string",
"description": "Archive folder for the pages (default the mindattic.com replays folder)."
}
},
"additionalProperties": false,
"required": [
"symbol"
]
}
replay_show
One replay run: its round-trips with entry features and its per-bar features (OHLCV, VWAP, volume ratio, conditions passed).
CLI equivalent: idiotproof replay show <run> [--bars <string>] Examples: idiotproof replay show 0190a3f2 idiotproof replay show 0190a3f2 --bars session
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "One replay run: its round-trips with entry features and its per-bar features (OHLCV, VWAP, volume ratio, conditions passed).",
"properties": {
"run": {
"type": "string",
"description": "Run id or its first 6\u002B characters (from \u0060replay list\u0060).",
"default": ""
},
"bars": {
"type": "string",
"description": "Which per-bar rows to print: marked (entries/exits, default), session (in-session bars) or all.",
"default": "marked"
}
},
"additionalProperties": false,
"required": [
"run"
]
}
research_analyze
Extract catalysts and portents from a ticker's news, a URL or pasted text via the LLM (--save to keep them).
Uses your Claude key (else the host's). Without --save nothing is written; with --save the claims join the research feed like scanned ones.
CLI equivalent: idiotproof research analyze <target> [--ticker <string>] [--text <string>] [--source <string>] [--days <int>] [--max-articles <int>] [--save] Examples: idiotproof research analyze NVDA idiotproof research analyze https://www.sec.gov/Archives/edgar/data/1045810/x.htm --ticker NVDA --save idiotproof research analyze AMD --text "AMD signs a preliminary $4B supply deal, closing next quarter"
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Extract catalysts and portents from a ticker\u0027s news, a URL or pasted text via the LLM (--save to keep them).",
"properties": {
"target": {
"type": "string",
"description": "A ticker (analyzes its recent Alpaca news, or --text) or an http(s) URL of an article or filing.",
"default": ""
},
"ticker": {
"type": "string",
"description": "The company a URL is about (required with a URL)."
},
"text": {
"type": "string",
"description": "Analyze this text instead of fetching anything."
},
"source": {
"type": "string",
"description": "Source name to record (default: the URL\u0027s host, Alpaca\u0027s outlet, or \u0022manual\u0022)."
},
"days": {
"type": "integer",
"description": "News lookback for a ticker, 1-30 days (default 3).",
"default": 3
},
"max_articles": {
"type": "integer",
"description": "Most news articles to analyze for a ticker, 1-20 (default 5).",
"default": 5
},
"save": {
"type": "boolean",
"description": "Persist the extracted claims to the research feed (skips a URL already analyzed).",
"default": false
}
},
"additionalProperties": false,
"required": [
"target"
]
}
research_backfill
Record what each old enough claim's stock actually did (Alpaca daily closes) and settle portents.
CLI equivalent: idiotproof research backfill [--min-wait-days <int>] [--window-days <int>] [--max <int>] Examples: idiotproof research backfill idiotproof research backfill --min-wait-days 10 --window-days 10 --max 500
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Record what each old enough claim\u0027s stock actually did (Alpaca daily closes) and settle portents.",
"properties": {
"min_wait_days": {
"type": "integer",
"description": "Only claims at least this many days old, 1-365 (default 5).",
"default": 5
},
"window_days": {
"type": "integer",
"description": "Measure the price move this many days after the claim, 1-365 (default 7).",
"default": 7
},
"max": {
"type": "integer",
"description": "Most claims to backfill this run, 1-5000 (default 200).",
"default": 200
}
},
"additionalProperties": false
}
research_claim
One research claim in full: source, trigger, outcome, insider lines and its score breakdown.
CLI equivalent: idiotproof research claim <claim> Examples: idiotproof research claim 3f2a91c0
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "One research claim in full: source, trigger, outcome, insider lines and its score breakdown.",
"properties": {
"claim": {
"type": "string",
"description": "Claim id, or the 8-character prefix \u0060research claims\u0060 shows.",
"default": ""
}
},
"additionalProperties": false,
"required": [
"claim"
]
}
research_claims
Ranked research feed: catalysts and portents by significance score, filterable by ticker, date, score and macro.
CLI equivalent: idiotproof research claims [--ticker <string>] [--since <date>] [--min-score <number>] [--macro] [--portents] [--limit <int>] Examples: idiotproof research claims idiotproof research claims --ticker NVDA --since 2026-10-01 idiotproof research claims --min-score 60 --portents
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Ranked research feed: catalysts and portents by significance score, filterable by ticker, date, score and macro.",
"properties": {
"ticker": {
"type": "string",
"description": "Only claims about this symbol (and macro claims that name it)."
},
"since": {
"type": "string",
"format": "date",
"description": "First ET date a claim was found, yyyy-MM-dd (default: 14 days ago)."
},
"min_score": {
"type": "number",
"description": "Only claims scored at least this (0-100); unscored claims are left out."
},
"macro": {
"type": "boolean",
"description": "Only macro/regulatory claims (no single ticker).",
"default": false
},
"portents": {
"type": "boolean",
"description": "Only pending portents: announced, not yet happened.",
"default": false
},
"limit": {
"type": "integer",
"description": "Most claims to show, 1-500 (default 50).",
"default": 50
}
},
"additionalProperties": false
}
research_gappers_build_universe
Gapper study T1/T6 + universe: every Alpaca us_equity asset's daily bars and splits, then U(D), exclusions, candidates, ADV deciles and price tiers per the frozen protocol, and sample.json.
Research rows only, on the research database (the connection string must name a database containing 'Research'); read-only market data; no orders. Every number comes from docs/research/gapper-study-2026-11/params.json. Resumable: covered symbols are not re-pulled; universe rows for the range are rebuilt.
CLI equivalent: idiotproof research gappers build-universe --from <date> --to <date> [--smoke] [--symbols <string>] [--max-calls <int>] Examples: idiotproof research gappers build-universe --from 2021-11-01 --to 2026-10-30 idiotproof research gappers build-universe --smoke --symbols GOGO,STAK,BE --from 2026-11-03 --to 2026-11-05
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Gapper study T1/T6 \u002B universe: every Alpaca us_equity asset\u0027s daily bars and splits, then U(D), exclusions, candidates, ADV deciles and price tiers per the frozen protocol, and sample.json.",
"properties": {
"from": {
"type": "string",
"format": "date",
"description": "First trading day D of the universe (ET, yyyy-MM-dd).",
"default": "0001-01-01"
},
"to": {
"type": "string",
"format": "date",
"description": "Last trading day D (ET, yyyy-MM-dd).",
"default": "0001-01-01"
},
"smoke": {
"type": "boolean",
"description": "Smoke run: only --symbols, daily bars from 60 days before --from, rows tagged split \u0027smoke\u0027, sample.smoke.json.",
"default": false
},
"symbols": {
"type": "string",
"description": "Comma-separated symbols for a --smoke run."
},
"max_calls": {
"type": "integer",
"description": "Stop pulling after this many Alpaca requests (0 = no cap); the run stays resumable.",
"default": 0
}
},
"additionalProperties": false,
"required": [
"from",
"to"
]
}
research_gappers_calibrate_spread
Gapper study cost model: the one-time premarket spread multiplier, median of (quoted relative spread at 08:00 ET from /v2/stocks/{s}/quotes) over (Corwin-Schultz on D-1..D-5) across the first 500 training Tier20 events, written to data/spread-multiplier.json.
Research rows only, on the research database (the connection string must name a database containing 'Research'); read-only market data; no orders. Refuses to run twice unless --force, and a forced run leaves an audit line in the runs log.
CLI equivalent: idiotproof research gappers calibrate-spread [--split <string>] [--events <int>] [--force] Examples: idiotproof research gappers calibrate-spread --split train --events 500
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Gapper study cost model: the one-time premarket spread multiplier, median of (quoted relative spread at 08:00 ET from /v2/stocks/{s}/quotes) over (Corwin-Schultz on D-1..D-5) across the first 500 training Tier20 events, written to data/spread-multiplier.json.",
"properties": {
"split": {
"type": "string",
"description": "Calibration split; must match params.json costModel.spread.calibration.split (train)."
},
"events": {
"type": "integer",
"description": "Number of Tier20 events in (D, symbol) order; must match params.json (500)."
},
"force": {
"type": "boolean",
"description": "Recalibrate although data/spread-multiplier.json exists; the forced run is written to runs/calibrate-spread-audit.log.",
"default": false
}
},
"additionalProperties": false
}
research_gappers_casestudy
Recent-runner case studies on the window amendment 05 opened (2026-09-10 onward): per session the top runners with catalyst, prior profile, 1-minute path and whether the R4 alarm would have fired. Reads no market data before 2026-09-10.
CLI equivalent: idiotproof research gappers casestudy [--from <string>] [--to <string>] [--top <int>] [--extra <string>] Examples: idiotproof research gappers casestudy --from 2026-09-10 --to 2026-11-09 --top 5
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Recent-runner case studies on the window amendment 05 opened (2026-09-10 onward): per session the top runners with catalyst, prior profile, 1-minute path and whether the R4 alarm would have fired. Reads no market data before 2026-09-10.",
"properties": {
"from": {
"type": "string",
"description": "First session (default 2026-09-10; nothing before it is read)."
},
"to": {
"type": "string",
"description": "Last session (default 2026-11-09)."
},
"top": {
"type": "integer",
"description": "Runners per session (default 5).",
"default": 5
},
"extra": {
"type": "string",
"description": "Extra names per day, e.g. \u00222026-11-09:CKX,GFR;2026-11-06:NWGL\u0022."
}
},
"additionalProperties": false
}
research_gappers_catalysts
Re-run the frozen version 1 catalyst rules over every backfilled catalyst row (idempotent), write each row's catalyst type and non-binding-LOI flag, and spend an optional Haiku budget on rows never classified; each article/filing is classified at most once.
Research rows only, on the research database (the connection string must name a database containing 'Research'); read-only market data; no orders.
CLI equivalent: idiotproof research gappers catalysts [--llm-budget <int>] Examples: idiotproof research gappers catalysts idiotproof research gappers catalysts --llm-budget 200
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Re-run the frozen version 1 catalyst rules over every backfilled catalyst row (idempotent), write each row\u0027s catalyst type and non-binding-LOI flag, and spend an optional Haiku budget on rows never classified; each article/filing is classified at most once.",
"properties": {
"llm_budget": {
"type": "integer",
"description": "At most this many never-classified backfilled rows get a Haiku classification (default 0).",
"default": 0
}
},
"additionalProperties": false
}
research_gappers_detector_export
Freeze the gapper study's validated H11p detector (logistic on the 08:00 snapshot, fit on train only) into the formation-detector.json catalog the live formation alert scores with, after checking it reproduces the validation AUC. Writes a file; places no orders.
Research rows only, on the research database (the connection string must name a database containing 'Research'); read-only market data; no orders. The holdout is never read; the validation AUC is recomputed with the frozen model as a reproduction check, not a new test.
CLI equivalent: idiotproof research gappers detector-export [--out <string>] Examples: idiotproof research gappers detector-export
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Freeze the gapper study\u0027s validated H11p detector (logistic on the 08:00 snapshot, fit on train only) into the formation-detector.json catalog the live formation alert scores with, after checking it reproduces the validation AUC. Writes a file; places no orders.",
"properties": {
"out": {
"type": "string",
"description": "Where to write formation-detector.json (default: IdiotProof.Core\\Catalogs in the repo that holds the study folder)."
}
},
"additionalProperties": false
}
research_gappers_explore
Gapper study exploratory round (IP-T453, explore-plan.md), train only: build the in-memory panel cache at any decision time, then score tracks on four rolling folds inside train, logging every configuration to runs/explore/ledger.jsonl.
Research rows only, on the research database (the connection string must name a database containing 'Research'); read-only market data; no orders. Refuses any split but train, so no validation or holdout label reaches a search. Writes nothing to SQL.
CLI equivalent: idiotproof research gappers explore --command <string> [--split <string>] [--times <string>] [--force] [--from <date>] [--to <date>] [--parallelism <int>] Examples: idiotproof research gappers explore --command build --times 08:00 idiotproof research gappers explore --command visibility
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Gapper study exploratory round (IP-T453, explore-plan.md), train only: build the in-memory panel cache at any decision time, then score tracks on four rolling folds inside train, logging every configuration to runs/explore/ledger.jsonl.",
"properties": {
"command": {
"type": "string",
"description": "build (cache the train panel at the decision times), visibility (how early a gapper is visible), models (learners and feature-block ablation), exits (when velocity runs out), news (news ride by catalyst type, age and direction), fade (extension from the open vs how the day ends) entries (buy now, VWAP pullback or premarket-high breakout after a detection, net of cost), corobs (look-alike neighbour counts x feature subsets), ssr (cache Rule 201 from daily bars for the short-sale block), float-import (shares outstanding from SEC companyfacts.zip for the float proxy), tradeflow-pull (SIP trades on train gapper mornings, 08:00-10:30, as minute flow), tradeflow (retail imbalance collapse vs the high, H17) regsho-pull (Nasdaq and NYSE Reg SHO threshold lists and FINRA daily short volume, 2021-10-01..2026-11-06, resumable), alarms (alarm-time scoring 06:00-09:10 of count-CUSUM and rank-k onset rules vs gainers \u002B news: hit rate, lead to \u002B20%, false alarms per 100 mornings, per fold) or exit-routes (clock exit routes 09:15/09:20, opg limit by 09:27 with a 09:30:05 fallback, 09:31, 09:44, 09:50 with or without the LULD 09:44 exit, alone and with the drift-change and giveback overlays, plus the $1k/$5k/$25k participation capacity curve; default --times 08:30), fade-short (short at 09:45 the names whose premarket high was \u002B30/50/100% and that are still \u002B20% but under 10/5/0% from the 09:30 open, cover by 15:55 or 11:00 with optional stop and VWAP reclaim, net of the frozen cost model, borrow, SSR and Reg SHO variants, against a random short), fade-short-deep (IP-T479: the top fade short and its \u002B50% variant on train: deflated Sharpe vs the ledger, time-of-day profile and MAE timing, MAE-aware exits, shortability tiers, tail sizing, squeeze predictors), alarm-ride (IP-T483: long only, buy the R4 alarm alone, gated by the boosted top k or by fresh news, marketable or a passive -1% limit, sold by take-profit x stop x time-stop/velocity brackets or lottery trailing exits, net at the frozen cost and 0.5x/0.25x spread), watchlist (IP-T484: runner anatomy (\u002B50/\u002B100/\u002B300% by the 04:00-16:00 high), a D-1 16:00 watchlist (boosted, logistic, point score, recall/precision@10/20/50/100, prerequisite and catalyst lifts), all-day ignition (k x trailing 30-min volume, 2% session-high break, gap caps) and the ride (stops, trails, half, cooling exits) net at the frozen cost and 0.5x/0.25x spread), split-days-pull (IP-T490: raw 04:00-20:00 minute bars for D-1..D\u002B10 of every train reverse split, inferred ratio change and excluded unexplained \u003E \u002B200% move, resumable) or split-days (IP-T490: runs by day offset, ratio, announcement, float and promotion profile on those days, and a long calendar / ignition entry x ride grid net at the frozen cost and 0.5x/0.25x spread), auctions-pull (IP-T472: Alpaca opening/closing auction prints for train Tier20\u002B gapper days and their controls, one file per day, resumable, paused through premarket) or auctions (official crosses vs the 09:30 bar open and 15:59 bar close, cross size vs volume), quotes-pull (IP-T472: NBBO within 60 s of every simulated entry and exit of the 08:30 buy-now entries pool, resumable, paused through premarket), quotes-check (frozen cost model charge vs the quoted spread at those fills) late-runners (IP-T605, amendment 09: runners that start after 09:30, the move start m0, A09-H1/H2 and D1-D3 on train), late-runner-ride (IP-T617, amendment 10: H29, buy the next bar after the move start when the H27 model rates \u002B20% more likely than not, frozen exit ladder and cost model, 4-config grid on train) or late-runner-ride-liquidity (IP-T619, amendment 11: H30, amendment 10\u0027s best configuration with an added $2,000,000 20-day-ADV floor, one config on train).",
"default": ""
},
"split": {
"type": "string",
"description": "Must be train: the exploratory round never reads validation or holdout.",
"default": "train"
},
"times": {
"type": "string",
"description": "Decision times, comma-separated (\u002208:00,08:30\u0022); default every frozen decision time (models and exits default to 08:00)."
},
"force": {
"type": "boolean",
"description": "build: rebuild decision times already cached.",
"default": false
},
"from": {
"type": "string",
"format": "date",
"description": "build: first train day (regsho-pull: first trading day) (ET, yyyy-MM-dd), for a partial build."
},
"to": {
"type": "string",
"format": "date",
"description": "build: last train day (regsho-pull: last trading day) (ET, yyyy-MM-dd), for a partial build."
},
"parallelism": {
"type": "integer",
"description": "build: trading days computed at once (default 4).",
"default": 4
}
},
"additionalProperties": false,
"required": [
"command"
]
}
research_gappers_label
Gapper study labels: next-bar-open entry and forward returns per horizon, reach-20 by 09:45, premarket/RTH/full-session high times and bucket, fade, extension from open, velocity death, death-to-HOD, halt proxy and VWAP-loss time, per the frozen definitions.
Research rows only, on the research database (the connection string must name a database containing 'Research'); read-only market data; no orders. Same holdout lock as snapshot.
CLI equivalent: idiotproof research gappers label --split <string> [--smoke] [--from <date>] [--to <date>] Examples: idiotproof research gappers label --split train idiotproof research gappers label --split train --smoke
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Gapper study labels: next-bar-open entry and forward returns per horizon, reach-20 by 09:45, premarket/RTH/full-session high times and bucket, fade, extension from open, velocity death, death-to-HOD, halt proxy and VWAP-loss time, per the frozen definitions.",
"properties": {
"split": {
"type": "string",
"description": "train, validation or holdout (holdout needs holdout-unlock.txt and runs once).",
"default": "train"
},
"smoke": {
"type": "boolean",
"description": "Label the smoke-tagged rows instead.",
"default": false
},
"from": {
"type": "string",
"format": "date",
"description": "Restrict to days on or after this ET date."
},
"to": {
"type": "string",
"format": "date",
"description": "Restrict to days on or before this ET date."
}
},
"additionalProperties": false,
"required": [
"split"
]
}
research_gappers_pull
Gapper study data tiers: minute bars for candidate/prior/control days into the file store (then gapper tiers and controls), Alpaca news, ticker-CIK map, EDGAR form index with acceptance times, splits. Resumable, rate-limited, --max-calls capped.
Research rows only, on the research database (the connection string must name a database containing 'Research'); read-only market data; no orders. Minute bars go to D:\IdiotProofData\gapper-study\bars (setting gapperStudy.barRoot) as packed day blocks; a killed pull is rerun, not restarted.
CLI equivalent: idiotproof research gappers pull --tier <string> [--smoke] [--from <date>] [--to <date>] [--max-calls <int>] Examples: idiotproof research gappers pull --tier bars idiotproof research gappers pull --tier all --smoke idiotproof research gappers pull --tier edgar --max-calls 5000
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Gapper study data tiers: minute bars for candidate/prior/control days into the file store (then gapper tiers and controls), Alpaca news, ticker-CIK map, EDGAR form index with acceptance times, splits. Resumable, rate-limited, --max-calls capped.",
"properties": {
"tier": {
"type": "string",
"description": "bars (T2 minute bars \u002B gapper classification \u002B controls), news (T3), cik (T5), edgar (T4 form index \u002B acceptance times), splits (T6), or all. Exploration only, never part of all (IP-T458): edgar-dilution (6-K, F-1/F-3, EFFECT, 424B1/2/7, S-1/A, SC 13G plus 424B5/S-3 rows into D:/IdiotProofData/edgar-dilution, with acceptance times in ET) and edgar-dilution-text (424B5/S-3/F-3 text through the ATM / baby-shelf detector).",
"default": "all"
},
"smoke": {
"type": "boolean",
"description": "Operate on the smoke-tagged universe rows only.",
"default": false
},
"from": {
"type": "string",
"format": "date",
"description": "Restrict to candidate days on or after this ET date."
},
"to": {
"type": "string",
"format": "date",
"description": "Restrict to candidate days on or before this ET date."
},
"max_calls": {
"type": "integer",
"description": "Stop after this many API requests per tier (0 = no cap); the pull resumes from its coverage marks next time.",
"default": 0
}
},
"additionalProperties": false,
"required": [
"tier"
]
}
research_gappers_report
Gapper study results document: docs/research/gapper-study-2026-11.md in the evidence sweep's shape (protocol link, sample, data tiers, one verdict table per family, the H11 gate, exit timing with the post-registration variant marked, kill criteria, promotion), plus events/snapshots/labels CSVs with a hashed manifest under data/.
Research rows only, on the research database (the connection string must name a database containing 'Research'); read-only market data; no orders. Holdout numbers are withheld unless holdout-run.json exists; hypotheses edited after the unlock are marked post-hoc and void.
CLI equivalent: idiotproof research gappers report [--skip-export] Examples: idiotproof research gappers report idiotproof research gappers report --skip-export
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Gapper study results document: docs/research/gapper-study-2026-11.md in the evidence sweep\u0027s shape (protocol link, sample, data tiers, one verdict table per family, the H11 gate, exit timing with the post-registration variant marked, kill criteria, promotion), plus events/snapshots/labels CSVs with a hashed manifest under data/.",
"properties": {
"skip_export": {
"type": "boolean",
"description": "Skip the events/snapshots/labels CSV export and manifest.",
"default": false
}
},
"additionalProperties": false
}
research_gappers_snapshot
Gapper study feature snapshots: every candidate and control day at every frozen decision time through the shared GapperFormationFeatures.Compute, written as Source=backtest rows; fits and saves data/tod-profile.json on train control days first.
Research rows only, on the research database (the connection string must name a database containing 'Research'); read-only market data; no orders. The holdout split refuses to run unless holdout-unlock.txt holds the frozen commit hash, and refuses a second run.
CLI equivalent: idiotproof research gappers snapshot --split <string> [--smoke] [--from <date>] [--to <date>] Examples: idiotproof research gappers snapshot --split train idiotproof research gappers snapshot --split train --smoke
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Gapper study feature snapshots: every candidate and control day at every frozen decision time through the shared GapperFormationFeatures.Compute, written as Source=backtest rows; fits and saves data/tod-profile.json on train control days first.",
"properties": {
"split": {
"type": "string",
"description": "train, validation or holdout (holdout needs holdout-unlock.txt and runs once).",
"default": "train"
},
"smoke": {
"type": "boolean",
"description": "Snapshot the smoke-tagged rows instead (profile goes to data/tod-profile.smoke.json).",
"default": false
},
"from": {
"type": "string",
"format": "date",
"description": "Restrict to days on or after this ET date."
},
"to": {
"type": "string",
"format": "date",
"description": "Restrict to days on or before this ET date."
}
},
"additionalProperties": false,
"required": [
"split"
]
}
research_gappers_status
What the gapper study holds per split (universe days, candidates, gappers per tier, controls, minute-bar coverage, snapshots, labels), the data tiers' row counts, and the holdout lock state.
Research rows only, on the research database (the connection string must name a database containing 'Research'); read-only market data; no orders.
CLI equivalent: idiotproof research gappers status Examples: idiotproof research gappers status
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "What the gapper study holds per split (universe days, candidates, gappers per tier, controls, minute-bar coverage, snapshots, labels), the data tiers\u0027 row counts, and the holdout lock state.",
"properties": {},
"additionalProperties": false
}
research_gappers_test
Gapper study hypothesis tests: each pre-registered hypothesis with the primitive hypotheses.json names (bucket-lift, event-study-bmp, proportion-diff-clustered, wilson-ci, quantile-ci, group-diff, auc-delong, search-grid-spa), BH within family, Holm across primaries, one run file per hypothesis under runs/.
Research rows only, on the research database (the connection string must name a database containing 'Research'); read-only market data; no orders. Every threshold comes from hypotheses.json and params.json. The holdout split goes through the same lock as snapshot and label and opens once.
CLI equivalent: idiotproof research gappers test --hypothesis <string[]> --split <string> [--smoke] Examples: idiotproof research gappers test --hypothesis H1,H9 --split train idiotproof research gappers test --hypothesis all --split validation
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Gapper study hypothesis tests: each pre-registered hypothesis with the primitive hypotheses.json names (bucket-lift, event-study-bmp, proportion-diff-clustered, wilson-ci, quantile-ci, group-diff, auc-delong, search-grid-spa), BH within family, Holm across primaries, one run file per hypothesis under runs/.",
"properties": {
"hypothesis": {
"type": "array",
"items": {
"type": "string"
},
"description": "Hypothesis ids to run, comma-separated (H1,H2) or all."
},
"split": {
"type": "string",
"description": "train, validation or holdout (holdout needs holdout-unlock.txt and runs the test stage once).",
"default": "train"
},
"smoke": {
"type": "boolean",
"description": "Run on the smoke-tagged rows instead (verdicts are void by construction; checks the plumbing).",
"default": false
}
},
"additionalProperties": false,
"required": [
"hypothesis",
"split"
]
}
research_index_events
S&P 500 / S&P 100 additions and removals: announced and effective dates, pending or done.
CLI equivalent: idiotproof research index-events [--since <date>] [--ticker <string>] [--pending] Examples: idiotproof research index-events idiotproof research index-events --pending idiotproof research index-events --ticker DDOG --since 2026-01-01
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "S\u0026P 500 / S\u0026P 100 additions and removals: announced and effective dates, pending or done.",
"properties": {
"since": {
"type": "string",
"format": "date",
"description": "First announcement date, yyyy-MM-dd (default: 180 days ago)."
},
"ticker": {
"type": "string",
"description": "Only this symbol."
},
"pending": {
"type": "boolean",
"description": "Only events whose effective date has not passed yet.",
"default": false
}
},
"additionalProperties": false
}
research_insiders
Form 4 insider transactions for a ticker: filer, role, buy/sell, shares, price, value.
CLI equivalent: idiotproof research insiders <symbol> [--days <int>] [--code <string[]>] [--limit <int>] Examples: idiotproof research insiders NVDA idiotproof research insiders TSLA --code P,S --days 365
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Form 4 insider transactions for a ticker: filer, role, buy/sell, shares, price, value.",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker symbol, e.g. NVDA.",
"default": ""
},
"days": {
"type": "integer",
"description": "Transactions dated within this many days, 1-3650 (default 180).",
"default": 180
},
"code": {
"type": "array",
"items": {
"type": "string"
},
"description": "SEC transaction codes, comma-separated: P purchase, S sale, A award, M exercise, F tax, G gift (default: all)."
},
"limit": {
"type": "integer",
"description": "Most lines to show, 1-1000 (default 100).",
"default": 100
}
},
"additionalProperties": false,
"required": [
"symbol"
]
}
research_macro
Macro and regulatory claims (rule changes, listing standards) with the tickers each affects.
CLI equivalent: idiotproof research macro [--since <date>] [--affects <string>] [--limit <int>] Examples: idiotproof research macro idiotproof research macro --since 2026-09-01 --affects SOUN
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Macro and regulatory claims (rule changes, listing standards) with the tickers each affects.",
"properties": {
"since": {
"type": "string",
"format": "date",
"description": "First ET date a claim was found, yyyy-MM-dd (default: 30 days ago)."
},
"affects": {
"type": "string",
"description": "Only claims whose affected-ticker list names this symbol."
},
"limit": {
"type": "integer",
"description": "Most claims to show, 1-500 (default 50).",
"default": 50
}
},
"additionalProperties": false
}
research_scan
Run one research scan pass now in the Hub (news, SEC filings, regulatory, index events, backfill, scoring).
Targeted with --tickers; otherwise watchlist + the next rotating batch of the ticker universe. Writes claims and a ScanRun row; the Monitor's trading loop is untouched.
CLI equivalent: idiotproof research scan [--tickers <string[]>] [--batch <int>] [--days-back <int>] [--wake-database] Examples: idiotproof research scan --tickers NVDA,AMD idiotproof research scan --batch 50 --days-back 3
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Run one research scan pass now in the Hub (news, SEC filings, regulatory, index events, backfill, scoring).",
"properties": {
"tickers": {
"type": "array",
"items": {
"type": "string"
},
"description": "Scan just these symbols, comma-separated (default: every watchlist symbol plus the next rotating batch of the universe)."
},
"batch": {
"type": "integer",
"description": "Rotating-batch size beyond the watchlist, 1-5000 (default 300, or IDIOTPROOF_RESEARCHSCAN_BATCHSIZE)."
},
"days_back": {
"type": "integer",
"description": "Lookback per source in days, 1-30 (default 2, or IDIOTPROOF_RESEARCHSCAN_DAYSBACK)."
},
"wake_database": {
"type": "boolean",
"description": "Run even outside the database online window (trading days, 03:30-20:30 ET by default). Only matters when the history database is on Azure SQL Database, where this wakes the paused serverless database and it is billed until it pauses again.",
"default": false
}
},
"additionalProperties": false
}
research_score
Explain a claim's 0-100 significance score term by term (magnitude, confidence, history, source, watchlist, recency).
CLI equivalent: idiotproof research score <claim> Examples: idiotproof research score 3f2a91c0
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Explain a claim\u0027s 0-100 significance score term by term (magnitude, confidence, history, source, watchlist, recency).",
"properties": {
"claim": {
"type": "string",
"description": "Claim id, or the 8-character prefix \u0060research claims\u0060 shows.",
"default": ""
}
},
"additionalProperties": false,
"required": [
"claim"
]
}
research_similar
Look-alike past claims (LSH neighbours) and what their stocks did afterwards.
CLI equivalent: idiotproof research similar <claim> [--max-distance <int>] [--limit <int>] Examples: idiotproof research similar 3f2a91c0 idiotproof research similar 3f2a91c0 --max-distance 12 --limit 10
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Look-alike past claims (LSH neighbours) and what their stocks did afterwards.",
"properties": {
"claim": {
"type": "string",
"description": "Claim id, or the 8-character prefix \u0060research claims\u0060 shows.",
"default": ""
},
"max_distance": {
"type": "integer",
"description": "Largest Hamming distance (of 64 signature bits) that counts as similar, 0-64 (default 20).",
"default": 20
},
"limit": {
"type": "integer",
"description": "Most neighbours to list, 1-100 (default 20).",
"default": 20
}
},
"additionalProperties": false,
"required": [
"claim"
]
}
research_ticker
Everything research knows about one ticker: claims, portents, macro and index events, insiders, outcomes.
CLI equivalent: idiotproof research ticker <symbol> [--days <int>] [--limit <int>] Examples: idiotproof research ticker NVDA idiotproof research ticker SMCI --days 365 --limit 30
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Everything research knows about one ticker: claims, portents, macro and index events, insiders, outcomes.",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker symbol, e.g. NVDA.",
"default": ""
},
"days": {
"type": "integer",
"description": "Look back this many days, 1-3650 (default 90).",
"default": 90
},
"limit": {
"type": "integer",
"description": "Most claims to list, 1-200 (default 15).",
"default": 15
}
},
"additionalProperties": false,
"required": [
"symbol"
]
}
research_universe_list
The tracked ticker universe the research scan sweeps: symbol, exchange, last price, freshness.
CLI equivalent: idiotproof research universe list [--exchange <string>] [--prefix <string>] [--min-price <decimal>] [--max-price <decimal>] [--limit <int>] Examples: idiotproof research universe list idiotproof research universe list --exchange NASDAQ --max-price 5 --limit 50 idiotproof research universe list --prefix NV
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "The tracked ticker universe the research scan sweeps: symbol, exchange, last price, freshness.",
"properties": {
"exchange": {
"type": "string",
"description": "Only NASDAQ or NYSE."
},
"prefix": {
"type": "string",
"description": "Only symbols starting with this text."
},
"min_price": {
"type": "number",
"description": "Only tickers whose last price is at least this."
},
"max_price": {
"type": "number",
"description": "Only tickers whose last price is at most this."
},
"limit": {
"type": "integer",
"description": "Most rows to show, 1-10000 (default 100).",
"default": 100
}
},
"additionalProperties": false
}
research_universe_refresh
Reload the tracked ticker universe (asset list and last prices) from Alpaca when stale, or --force.
CLI equivalent: idiotproof research universe refresh [--force] [--max-age-hours <int>] Examples: idiotproof research universe refresh idiotproof research universe refresh --force
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Reload the tracked ticker universe (asset list and last prices) from Alpaca when stale, or --force.",
"properties": {
"force": {
"type": "boolean",
"description": "Reload even when the cache is fresher than --max-age-hours.",
"default": false
},
"max_age_hours": {
"type": "integer",
"description": "Only reload when the newest row is older than this, 1-720 (default 24).",
"default": 24
}
},
"additionalProperties": false
}
risk_check
Dry-run a setup through your Risk Guardian: approved or why not, worst case, and the largest size allowed. Places nothing.
CLI equivalent: idiotproof risk check <symbol> --entry <decimal> --stop <decimal> --qty <int> [--target <decimal>] [--short] [--mode <sandbox|paper|live>] Examples: idiotproof risk check NVDA --entry 100 --stop 98 --qty 20 idiotproof risk check TSLA --entry 250 --stop 255 --qty 5 --target 240 --short
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Dry-run a setup through your Risk Guardian: approved or why not, worst case, and the largest size allowed. Places nothing.",
"properties": {
"symbol": {
"type": "string",
"description": "Ticker, e.g. NVDA.",
"default": ""
},
"entry": {
"type": "number",
"description": "Planned entry price.",
"default": 0
},
"stop": {
"type": "number",
"description": "Planned protective stop price.",
"default": 0
},
"qty": {
"type": "integer",
"description": "Planned share count.",
"default": 0
},
"target": {
"type": "number",
"description": "Planned take-profit price, for the reward:risk warning."
},
"short": {
"type": "boolean",
"description": "A short entry (stop above entry) instead of a long.",
"default": false
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "Which account\u0027s daily loss to check against: sandbox, paper (default) or live.",
"default": "paper"
}
},
"additionalProperties": false,
"required": [
"symbol",
"entry",
"stop",
"qty"
]
}
risk_kill_switch
Halt every new entry now (on), or resume (off, which needs a confirmation code); exits always go through.
CLI equivalent: idiotproof risk kill-switch <state> Examples: idiotproof risk kill-switch on idiotproof risk kill-switch off
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Halt every new entry now (on), or resume (off, which needs a confirmation code); exits always go through.",
"properties": {
"state": {
"type": "string",
"description": "on (halt every new entry now) or off (resume; needs a confirmation code).",
"default": ""
}
},
"additionalProperties": false,
"required": [
"state"
]
}
risk_set
Change Risk Guardian limits; unnamed ones keep their value and today's loss counter is preserved.
CLI equivalent: idiotproof risk set [--max-loss-per-trade <decimal>] [--max-loss-per-day <decimal>] [--min-stop-percent <decimal>] [--max-stop-percent <decimal>] [--account-balance <decimal>] [--max-account-risk-percent <decimal>] Examples: idiotproof risk set --max-loss-per-trade 50 --max-loss-per-day 200 idiotproof risk set --max-stop-percent 8 --account-balance 25000
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Change Risk Guardian limits; unnamed ones keep their value and today\u0027s loss counter is preserved.",
"properties": {
"max_loss_per_trade": {
"type": "number",
"description": "Most a single trade may lose in the worst case, in dollars."
},
"max_loss_per_day": {
"type": "number",
"description": "Daily loss that trips the circuit breaker, in dollars (at least the per-trade limit)."
},
"min_stop_percent": {
"type": "number",
"description": "Tightest allowed stop, percent of entry (0.01-50)."
},
"max_stop_percent": {
"type": "number",
"description": "Widest allowed stop, percent of entry (at least the minimum)."
},
"account_balance": {
"type": "number",
"description": "Balance the position size is measured against, in dollars."
},
"max_account_risk_percent": {
"type": "number",
"description": "Most of the balance one trade may risk, percent (0-100)."
}
},
"additionalProperties": false
}
risk_show
Your six Risk Guardian limits (per-trade and daily loss, stop range, balance, account risk %) and the kill switch.
CLI equivalent: idiotproof risk show Examples: idiotproof risk show
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Your six Risk Guardian limits (per-trade and daily loss, stop range, balance, account risk %) and the kill switch.",
"properties": {},
"additionalProperties": false
}
risk_status
Today's realized P&L, losses counted against the daily breaker, remaining room, breaker and kill-switch state.
CLI equivalent: idiotproof risk status [--mode <sandbox|paper|live>] Examples: idiotproof risk status idiotproof risk status --mode live
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Today\u0027s realized P\u0026L, losses counted against the daily breaker, remaining room, breaker and kill-switch state.",
"properties": {
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "Which account: sandbox, paper (default) or live. Each has its own daily loss limit.",
"default": "paper"
}
},
"additionalProperties": false
}
scan_movers
Screen today's top gainers to the gapper band; --replay replays each survivor with a gapper profile and saves the runs.
CLI equivalent: idiotproof scan movers [--date <date>] [--replay] [--top <int>] [--min-gap <number>] [--min-price <number>] [--max-price <number>] [--profile <string>] [--pages] [--out <string>] Examples: idiotproof scan movers idiotproof scan movers --min-gap 10 --max-price 20 --replay
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Screen today\u0027s top gainers to the gapper band; --replay replays each survivor with a gapper profile and saves the runs.",
"properties": {
"date": {
"type": "string",
"format": "date",
"description": "ET day to replay the survivors on (default today ET \u2014 movers are live)."
},
"replay": {
"type": "boolean",
"description": "Replay each survivor with the gapper profile and save the runs (and pages).",
"default": false
},
"top": {
"type": "integer",
"description": "Keep at most this many gappers (default 10, max 25).",
"default": 10
},
"min_gap": {
"type": "number",
"description": "Minimum percent change (default 5).",
"default": 5
},
"min_price": {
"type": "number",
"description": "Lowest price (default 1).",
"default": 1
},
"max_price": {
"type": "number",
"description": "Highest price (default 50).",
"default": 50
},
"profile": {
"type": "string",
"description": "Gapper profile or family to replay with (default classic-gapper).",
"default": "classic-gapper"
},
"pages": {
"type": "boolean",
"description": "With --replay: render run pages and archive indexes (HTML only).",
"default": true
},
"out": {
"type": "string",
"description": "Archive folder for the pages (default the mindattic.com replays folder)."
}
},
"additionalProperties": false
}
settings_get
Show one runtime setting: value, default, range and meaning.
CLI equivalent: idiotproof settings get <key> Examples: idiotproof settings get Options.RiskFreeRate
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Show one runtime setting: value, default, range and meaning.",
"properties": {
"key": {
"type": "string",
"description": "The setting key, e.g. Options.RiskFreeRate.",
"default": ""
}
},
"additionalProperties": false,
"required": [
"key"
]
}
settings_list
List the app's runtime settings with current value, default, range and meaning.
CLI equivalent: idiotproof settings list [--all] Examples: idiotproof settings list idiotproof settings list --all
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "List the app\u0027s runtime settings with current value, default, range and meaning.",
"properties": {
"all": {
"type": "boolean",
"description": "Also show internal bookkeeping keys the app writes for itself.",
"default": false
}
},
"additionalProperties": false
}
settings_set
Change one runtime setting (type- and range-checked; unknown and internal keys refused).
CLI equivalent: idiotproof settings set <key> <value> Examples: idiotproof settings set Options.RiskFreeRate 0.045 idiotproof settings set decay.be-bex.threshold 10
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Change one runtime setting (type- and range-checked; unknown and internal keys refused).",
"properties": {
"key": {
"type": "string",
"description": "The setting key (see \u0060settings list\u0060).",
"default": ""
},
"value": {
"type": "string",
"description": "The new value; checked against the key\u0027s type and range.",
"default": ""
}
},
"additionalProperties": false,
"required": [
"key",
"value"
]
}
strategy_activate
Hand a strategy to the Monitor. A Live strategy needs a confirmation code.
CLI equivalent: idiotproof strategy activate <strategy> Examples: idiotproof strategy activate NVDA
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Hand a strategy to the Monitor. A Live strategy needs a confirmation code.",
"properties": {
"strategy": {
"type": "string",
"description": "Id, id prefix, stamp id (IP-XXXX-XXXX) or symbol.",
"default": ""
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false,
"required": [
"strategy"
]
}
strategy_bulk
Activate or deactivate many strategies at once (--all, --symbol, --mode, --kind). Live activations need one confirmation code for the batch.
Deactivation skips strategies holding a position (that would orphan the exit). Activation skips quarantined and soft-deleted strategies; when the batch would turn on any Live strategy, nothing happens until you re-run with the confirmation code, which is bound to exactly that batch.
CLI equivalent: idiotproof strategy bulk <action> [--all] [--symbol <string>] [--mode <sandbox|paper|live>] [--kind <string>] Examples: idiotproof strategy bulk deactivate --all idiotproof strategy bulk activate --symbol NVDA --mode paper idiotproof strategy bulk deactivate --kind gapper --mode paper
MOVES MONEY. Sandbox and Paper run immediately. A Live action returns status confirmation-required with a preview and a code instead of executing: show the user the preview verbatim, ask them, and only if they say yes call this tool again with the identical arguments plus confirmation_code. Never invent or reuse a code. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Activate or deactivate many strategies at once (--all, --symbol, --mode, --kind). Live activations need one confirmation code for the batch.",
"properties": {
"action": {
"type": "string",
"enum": [
"activate",
"deactivate"
],
"description": "activate or deactivate.",
"default": "activate"
},
"all": {
"type": "boolean",
"description": "Every strategy you own (soft-deleted ones excluded).",
"default": false
},
"symbol": {
"type": "string",
"description": "Only strategies on this symbol."
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "Only strategies in this broker mode (sandbox, paper, live)."
},
"kind": {
"type": "string",
"description": "Only strategies of this kind (gapper, momentum, exhaustion, ...; \u0060none\u0060 = no kind); case-insensitive."
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false,
"required": [
"action"
]
}
strategy_clone
Copy a strategy (optionally onto another symbol) as a new, inactive Sandbox strategy.
The copy gets the same canon (re-validated), never the original's position, history or Live routing. Cloning onto another symbol warns about fixed prices that belonged to the original's chart.
CLI equivalent: idiotproof strategy clone <strategy> [--symbol <string>] [--title <string>] [--mode <sandbox|paper|live>] [--kind <string>] Examples: idiotproof strategy clone NVDA idiotproof strategy clone NVDA --symbol AMD --title "AMD VWAP reclaim" idiotproof strategy clone NVDA --kind momentum
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Copy a strategy (optionally onto another symbol) as a new, inactive Sandbox strategy.",
"properties": {
"strategy": {
"type": "string",
"description": "Id, id prefix, stamp id or symbol of the strategy to copy.",
"default": ""
},
"symbol": {
"type": "string",
"description": "Trade a different symbol with the same rules."
},
"title": {
"type": "string",
"description": "Title for the copy (default: \u0022\u003Ctitle\u003E (copy)\u0022)."
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "Broker mode for the copy: sandbox (default) or paper.",
"default": "sandbox"
},
"kind": {
"type": "string",
"description": "Kind for the copy (e.g. gapper, momentum), at most 24 characters (default: the original\u0027s kind)."
}
},
"additionalProperties": false,
"required": [
"strategy"
]
}
strategy_create
Create a strategy from IdiotScript or canonical JSON after validating it. It starts inactive in Sandbox.
Exactly one of --script or --canon. A strategy with no size buys 1 share. Errors (no stop, stop on the wrong side of the target, a broken canon) stop the save; warnings are shown.
CLI equivalent: idiotproof strategy create [--script <string>] [--canon <string>] [--title <string>] [--ticker <string>] [--description <string>] [--mode <sandbox|paper|live>] [--kind <string>] [--dry-run] Examples: idiotproof strategy create --script "Stock.Ticker("NVDA").IsAboveVwap().Long().StopLoss(170).TakeProfit(190).Build()" idiotproof strategy create --canon - --mode paper idiotproof strategy create --script - --mode paper --kind gapper
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Create a strategy from IdiotScript or canonical JSON after validating it. It starts inactive in Sandbox.",
"properties": {
"script": {
"type": "string",
"description": "The strategy as IdiotScript text (\u0060-\u0060 reads stdin)."
},
"canon": {
"type": "string",
"description": "The strategy as canonical JSON (what \u0060strategy export --format json\u0060 prints) (\u0060-\u0060 reads stdin)."
},
"title": {
"type": "string",
"description": "Title (default: the strategy\u0027s own name, else \u0022SYM strategy\u0022)."
},
"ticker": {
"type": "string",
"description": "Symbol to use when the script doesn\u0027t name one."
},
"description": {
"type": "string",
"description": "Free-form description stored with the strategy."
},
"mode": {
"type": "string",
"enum": [
"sandbox",
"paper",
"live"
],
"description": "Broker mode: sandbox (default) or paper. Live is a separate, confirmed step.",
"default": "sandbox"
},
"kind": {
"type": "string",
"description": "What kind of strategy this is (e.g. gapper, momentum), stored lower-case, at most 24 characters; tools select by it (\u0060strategy list --kind\u0060). Default: none."
},
"dry_run": {
"type": "boolean",
"description": "Validate and show the stamp without saving anything.",
"default": false
}
},
"additionalProperties": false
}
strategy_deactivate
Stop the Monitor evaluating a strategy (refused while it holds a position).
CLI equivalent: idiotproof strategy deactivate <strategy> Examples: idiotproof strategy deactivate NVDA
Changes saved state. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Stop the Monitor evaluating a strategy (refused while it holds a position).",
"properties": {
"strategy": {
"type": "string",
"description": "Id, id prefix, stamp id (IP-XXXX-XXXX) or symbol.",
"default": ""
}
},
"additionalProperties": false,
"required": [
"strategy"
]
}
strategy_delete
Soft-delete a strategy: deactivate it and mark it [deleted] (reversible with --restore). Refused while it holds a position.
Deleting is a reversible disable (HOUSE-LAW-2): the row, canon and history stay, and strategy list hides it unless --deleted. --hard permanently removes a strategy that is already deleted — a separate, explicit second step.
CLI equivalent: idiotproof strategy delete <strategy> [--restore] [--hard] Examples: idiotproof strategy delete NVDA idiotproof strategy delete 0193ab12 --restore idiotproof strategy delete 0193ab12 --hard
DESTRUCTIVE. If it returns confirmation-required, show the preview and call again with confirmation_code only after the user agrees. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Soft-delete a strategy: deactivate it and mark it [deleted] (reversible with --restore). Refused while it holds a position.",
"properties": {
"strategy": {
"type": "string",
"description": "Id, id prefix, stamp id or symbol.",
"default": ""
},
"restore": {
"type": "boolean",
"description": "Undo a delete: take the [deleted] marker off (it stays inactive).",
"default": false
},
"hard": {
"type": "boolean",
"description": "Permanently remove an ALREADY deleted strategy and its progress row. Cannot be undone.",
"default": false
},
"confirmation_code": {
"type": "string",
"description": "Only after the user explicitly approves the preview: the code a previous call of this tool returned."
}
},
"additionalProperties": false,
"required": [
"strategy"
]
}
strategy_diff
Compare two strategies field by field at the canon level (what the Monitor actually runs), plus title, mode and state.
CLI equivalent: idiotproof strategy diff Examples: idiotproof strategy diff NVDA AMD idiotproof strategy diff IP-P4AY-UXZU IP-Q7RB-K2MD
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Compare two strategies field by field at the canon level (what the Monitor actually runs), plus title, mode and state.",
"properties": {
"a": {
"type": "string",
"description": "First strategy: id, id prefix, stamp id or symbol.",
"default": ""
},
"b": {
"type": "string",
"description": "Second strategy: id, id prefix, stamp id or symbol.",
"default": ""
}
},
"additionalProperties": false,
"required": [
"a",
"b"
]
}strategy_explain
Explain a strategy in plain English, phase by phase — generated from its canon, no LLM, the same words every time.
CLI equivalent: idiotproof strategy explain <strategy> Examples: idiotproof strategy explain NVDA
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Explain a strategy in plain English, phase by phase \u2014 generated from its canon, no LLM, the same words every time.",
"properties": {
"strategy": {
"type": "string",
"description": "Id, id prefix, stamp id (IP-XXXX-XXXX) or symbol.",
"default": ""
}
},
"additionalProperties": false,
"required": [
"strategy"
]
}strategy_export
Export a strategy as a stamp, armored payload, canonical JSON or IdiotScript.
CLI equivalent: idiotproof strategy export <strategy> [--format <stamp|armor|json|script>] Examples: idiotproof strategy export NVDA --format json
Read-only. Times are US Eastern.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Export a strategy as a stamp, armored payload, canonical JSON or IdiotScript.",
"properties": {
"strategy": {
"type": "string",
"description": "Id, id prefix, stamp id or symbol.",
"default": ""
},
"format": {
"type": "string",
"enum": [
"stamp",
"armor",
"json",
"script"
],
"description": "stamp (default), armor (payload only), json (canonical) or script (IdiotScript).",
"default": "stamp"
}
},
"additionalProperties": false,
"required": [
"strategy"
]
}strategy_fires
Why a strategy did or didn't fire: its recent gate verdicts (conditions met, LLM veto, Risk Guardian block, order placed or rejected) and where it stands now.
CLI equivalent: idiotproof strategy fires <strategy> [--limit <int>] Examples: idiotproof strategy fires NVDA idiotproof strategy fires NVDA --limit 50
Read-only. Times are US Eastern.