| name | schwab-agent |
| description | Trade and inspect Charles Schwab accounts through the schwab-agent CLI. Use when an agent needs account lookup, market data, technical indicators, option chains, or order preview/build/place/cancel/replace workflows. |
schwab-agent
CLI tool for AI agents to trade via Schwab APIs
Usage
Usage:
schwab-agent [command]
Trading Commands
order List, build, preview, place, cancel, and replace orders
Market Data Commands
analyze Combined quote and technical analysis for one or more symbols
history Retrieve price history for a symbol
indicators Technical indicators dashboard (shortcut for ta dashboard)
instrument Search and look up instruments
market Market hours and top movers
option Option planning workflows
quote Stock quote operations
ta Technical analysis indicators
Account Management Commands
account Manage Schwab trading accounts
auth Authentication commands
position View positions across accounts
Tool Commands
completion Generate shell completion scripts
config-keys Show config keys and related flags
env-vars Show supported environment variables
symbol OCC symbol operations
Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
Use "schwab-agent [command] --help" for more information about a command.
Commands
schwab-agent
Usage:
schwab-agent [command]
Trading Commands
order List, build, preview, place, cancel, and replace orders
Market Data Commands
analyze Combined quote and technical analysis for one or more symbols
history Retrieve price history for a symbol
indicators Technical indicators dashboard (shortcut for ta dashboard)
instrument Search and look up instruments
market Market hours and top movers
option Option planning workflows
quote Stock quote operations
ta Technical analysis indicators
Account Management Commands
account Manage Schwab trading accounts
auth Authentication commands
position View positions across accounts
Tool Commands
completion Generate shell completion scripts
config-keys Show config keys and related flags
env-vars Show supported environment variables
symbol OCC symbol operations
Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
Use "schwab-agent [command] --help" for more information about a command.
schwab-agent account
Usage:
schwab-agent account [flags]
schwab-agent account [command]
Available Commands:
get Get account details by hash value
list List all accounts with nicknames and settings
numbers List account numbers and hash values
resolve Resolve an account identifier to full details
set-default Set the default account hash
summary List compact account identifiers for agents
transaction List and look up account transactions
Flags:
--account string Account hash, account number, or nickname to use (overrides config default)
Global Flags:
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
Use "schwab-agent account [command] --help" for more information about a command.
schwab-agent account get
Usage:
schwab-agent account get [hash] [flags]
Examples:
schwab-agent account get
schwab-agent account get ABCDEF1234567890
schwab-agent account get --positions
Flags:
--positions Include current positions in the account response
Global Flags:
--account string Account hash, account number, or nickname to use (overrides config default)
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent account list
Usage:
schwab-agent account list [flags]
Examples:
schwab-agent account list
schwab-agent account list --positions
Flags:
--positions Include current positions for each account
Global Flags:
--account string Account hash, account number, or nickname to use (overrides config default)
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent account numbers
Usage:
schwab-agent account numbers [flags]
Examples:
schwab-agent account numbers
Global Flags:
--account string Account hash, account number, or nickname to use (overrides config default)
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent account resolve
Usage:
schwab-agent account resolve [account] [flags]
Examples:
schwab-agent account resolve "My IRA"
schwab-agent account resolve 12345678
schwab-agent account resolve --account "My IRA"
schwab-agent account resolve
Global Flags:
--account string Account hash, account number, or nickname to use (overrides config default)
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent account set-default
Usage:
schwab-agent account set-default <hash> [flags]
Examples:
schwab-agent account set-default ABCDEF1234567890
Global Flags:
--account string Account hash, account number, or nickname to use (overrides config default)
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent account summary
Usage:
schwab-agent account summary [flags]
Examples:
schwab-agent account summary
schwab-agent account summary --positions
Flags:
--positions Include compact current positions for each account
Global Flags:
--account string Account hash, account number, or nickname to use (overrides config default)
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent account transaction
Usage:
schwab-agent account transaction [flags]
schwab-agent account transaction [command]
Available Commands:
get Get a specific transaction by ID
list List transactions for an account
Global Flags:
--account string Account hash, account number, or nickname to use (overrides config default)
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
Use "schwab-agent account transaction [command] --help" for more information about a command.
schwab-agent account transaction get
Usage:
schwab-agent account transaction get <transaction-id> [flags]
Examples:
schwab-agent account transaction get 98765432101
Global Flags:
--account string Account hash, account number, or nickname to use (overrides config default)
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent account transaction list
Usage:
schwab-agent account transaction list [flags]
Examples:
schwab-agent account transaction list
schwab-agent account transaction list --types TRADE --symbol AAPL
schwab-agent account transaction list --from 2025-01-01T00:00:00Z --to 2025-01-31T23:59:59Z
Flags:
--from string Start date (YYYY-MM-DDTHH:MM:SSZ)
--symbol string Filter by symbol
--to string End date (YYYY-MM-DDTHH:MM:SSZ)
--types string Transaction type filter (TRADE, DIVIDEND, etc.)
Global Flags:
--account string Account hash, account number, or nickname to use (overrides config default)
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent analyze
Usage:
schwab-agent analyze SYMBOL [SYMBOL...] [flags]
Examples:
schwab-agent analyze AAPL
schwab-agent analyze AAPL NVDA
schwab-agent analyze AAPL --interval weekly --points 5
schwab-agent analyze AAPL MSFT NVDA --compact
schwab-agent analyze AAPL --latest-only
Flags:
--compact Return compact quote and TA fields for multi-symbol scans
--interval string Data interval (daily, weekly, 1min, 5min, 15min, 30min) (default "daily")
--latest-only Omit duplicate dashboard values rows when only latest context is needed
--points int Number of TA output points (default 1; 0 = all) (default 1)
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent auth
Usage:
schwab-agent auth [flags]
schwab-agent auth [command]
Available Commands:
login Run the OAuth login flow
refresh Refresh the current access token
status Show token and config status
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
Use "schwab-agent auth [command] --help" for more information about a command.
schwab-agent auth login
Usage:
schwab-agent auth login [flags]
Examples:
schwab-agent auth login
schwab-agent auth login --no-browser
Flags:
--no-browser Print the authorization URL in the JSON response instead of opening a browser
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent auth refresh
Usage:
schwab-agent auth refresh [flags]
Examples:
schwab-agent auth refresh
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent auth status
Usage:
schwab-agent auth status [flags]
Examples:
schwab-agent auth status
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent completion
Usage:
schwab-agent completion [flags]
schwab-agent completion [command]
Available Commands:
bash Generate bash completion script
fish Generate fish completion script
powershell Generate powershell completion script
zsh Generate zsh completion script
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
Use "schwab-agent completion [command] --help" for more information about a command.
schwab-agent completion bash
Usage:
schwab-agent completion bash [flags]
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent completion fish
Usage:
schwab-agent completion fish [flags]
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent completion powershell
Usage:
schwab-agent completion powershell [flags]
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent completion zsh
Usage:
schwab-agent completion zsh [flags]
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent config-keys
Usage:
schwab-agent config-keys [flags]
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent env-vars
Usage:
schwab-agent env-vars [flags]
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent history
Usage:
schwab-agent history [flags]
schwab-agent history [command]
Aliases:
history, price-history
Available Commands:
get Get price history candles for a symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
Use "schwab-agent history [command] --help" for more information about a command.
schwab-agent history get
Usage:
schwab-agent history get SYMBOL [flags]
Examples:
schwab-agent history get AAPL
schwab-agent history get AAPL --period-type month --period 3 --frequency-type daily --frequency 1
schwab-agent history get AAPL --period-type day --period 5 --frequency-type minute --frequency 15
schwab-agent history get AAPL --from 1735689600000 --to 1743379200000
Flags:
--frequency string Frequency value
--frequency-type string Frequency type (minute, daily, weekly, monthly)
--from string Start date (milliseconds since epoch)
--period string Number of periods
--period-type string Period type (day, month, year, ytd)
--to string End date (milliseconds since epoch)
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent indicators
Usage:
schwab-agent indicators SYMBOL [SYMBOL...] [flags]
Examples:
schwab-agent indicators AAPL
schwab-agent indicators AAPL --points 5
schwab-agent indicators NVDA --interval weekly --points 10
schwab-agent indicators AAPL MSFT NVDA
Flags:
--interval string Data interval (daily, weekly, 1min, 5min, 15min, 30min) (default "daily")
--points int Number of output points (default 1; 0 = all) (default 1)
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent instrument
Usage:
schwab-agent instrument [flags]
schwab-agent instrument [command]
Available Commands:
get Get instrument details by CUSIP
search Search instruments by symbol or description
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
Use "schwab-agent instrument [command] --help" for more information about a command.
schwab-agent instrument get
Usage:
schwab-agent instrument get CUSIP [flags]
Examples:
schwab-agent instrument get 037833100
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent instrument search
Usage:
schwab-agent instrument search QUERY [flags]
Examples:
schwab-agent instrument search AAPL
schwab-agent instrument search "Apple" --projection desc-search
schwab-agent instrument search AAPL --projection fundamental
Flags:
--projection string Search projection (symbol-search, symbol-regex, desc-search, desc-regex, search, fundamental) (default "symbol-search")
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent market
Usage:
schwab-agent market [flags]
schwab-agent market [command]
Available Commands:
hours Get market hours for one or more markets (equity, option, bond, future, forex)
movers Get top movers for an index ($SPX, $DJI, $COMPX, NYSE, NASDAQ, OTCBB, INDEX_ALL, EQUITY_ALL, OPTION_ALL, OPTION_PUT, OPTION_CALL)
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
Use "schwab-agent market [command] --help" for more information about a command.
schwab-agent market hours
Usage:
schwab-agent market hours [market ...] [flags]
Examples:
schwab-agent market hours
schwab-agent market hours equity
schwab-agent market hours equity option
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent market movers
Usage:
schwab-agent market movers <index> [flags]
Examples:
schwab-agent market movers '$SPX' --sort PERCENT_CHANGE_UP
schwab-agent market movers '$DJI' --sort VOLUME --frequency 5
schwab-agent market movers EQUITY_ALL --sort PERCENT_CHANGE_UP
Flags:
--frequency string Minimum percent change magnitude (0, 1, 5, 10, 30, 60)
--sort string Sort order (VOLUME, TRADES, PERCENT_CHANGE_UP, PERCENT_CHANGE_DOWN)
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent option
Usage:
schwab-agent option [flags]
schwab-agent option [command]
Available Commands:
chain Get compact option chain for a symbol
contract Get a single curated option contract with quote context
expirations List option expiration dates for a symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
Use "schwab-agent option [command] --help" for more information about a command.
schwab-agent option expirations
Usage:
schwab-agent option expirations <symbol> [flags]
Examples:
schwab-agent option expirations AAPL
schwab-agent option expirations TSLA
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent option chain
Usage:
schwab-agent option chain <symbol> [flags]
Examples:
schwab-agent option chain AAPL
schwab-agent option chain AAPL --type CALL --dte 30
schwab-agent option chain AMD --type PUT --strike-range OTM --expiration 2026-06-19 --delta-min -0.25 --delta-max -0.15 --fields strike,delta,bid,ask,mid,openInterest,totalVolume,volatility,daysToExpiration
schwab-agent option chain AAPL --strike-count 5
schwab-agent option chain AAPL --strike-min 190 --strike-max 210
Flags:
--delta-max float Maximum option delta (inclusive)
--delta-min float Minimum option delta (inclusive)
--dte int Target days to expiration
--expiration string Exact expiration date (YYYY-MM-DD)
--fields string Comma-separated field names for column projection (e.g., strike, delta, bid, ask, mid, openInterest, totalVolume, volatility, daysToExpiration)
--order-type string alias for --type (order type)
--strike float Exact strike price
--strike-count int Number of strikes around ATM
--strike-max float Maximum strike price
--strike-min float Minimum strike price
--strike-range string Moneyness filter: ITM, NTM, OTM, SAK, SBK, SNK, ALL
--type string Contract type: CALL, PUT, or ALL (default "ALL")
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent option contract
Usage:
schwab-agent option contract <symbol> [flags]
Examples:
schwab-agent option contract AAPL --expiration 2026-06-19 --strike 200 --call
schwab-agent option contract TSLA --expiration 2026-03-20 --strike 180 --put
Flags:
--call Select the call contract
--expiration string Option expiration date (YYYY-MM-DD)
--put Select the put contract
--strike float Option strike price
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order
Usage:
schwab-agent order [flags]
schwab-agent order [command]
Available Commands:
build Build order request JSON without calling the API
cancel Cancel an order
get Get an order by ID
list List orders (defaults to non-terminal statuses)
place Place an order
preview Preview an order from JSON spec or typed flags
replace Replace an order with a new equity order spec
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
Use "schwab-agent order [command] --help" for more information about a command.
schwab-agent order build
Usage:
schwab-agent order build [flags]
schwab-agent order build [command]
Available Commands:
back-ratio Build a back-ratio spread order request
bracket Build a bracket order request
butterfly Build a butterfly spread order request
buy-with-stop Build a buy-with-stop order request
calendar Build a calendar spread order request (same strike, different expirations)
collar Build a collar-with-stock order request (buy shares + buy put + sell call)
condor Build a condor spread order request
covered-call Build a covered call order request (buy shares + sell call)
diagonal Build a diagonal spread order request (different strikes and expirations)
double-diagonal Build a double diagonal spread order request
equity Build an equity order request
fts Build a first-triggers-second order from two order specs
iron-condor Build an iron condor order request
oco Build a one-cancels-other order request for an existing position
option Build an option order request
sell-covered-call Sell a covered call against existing shares
short-iron-condor Sell an opening iron condor
straddle Build a straddle order request
strangle Build a strangle order request
vertical Build a vertical spread order request
vertical-roll Build a vertical roll order request
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
Use "schwab-agent order build [command] --help" for more information about a command.
schwab-agent order build back-ratio
Usage:
schwab-agent order build back-ratio [flags]
Examples:
schwab-agent order build back-ratio --underlying F --expiration 2026-06-18 --short-strike 12 --long-strike 14 --call --open --quantity 1 --long-ratio 2 --debit --price 0.20
Flags:
--call Call back-ratio
--close Closing position
--credit Build as NET_CREDIT
--debit Build as NET_DEBIT
--duration string Order duration
--expiration string Expiration date (YYYY-MM-DD)
--long-ratio float Long contracts per short contract (default 2)
--long-strike float Long option strike
--open Opening position
--price float Net debit or credit amount
--put Put back-ratio
--quantity float Short-leg contract quantity
--session string Trading session
--short-strike float Short option strike
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build bracket
Usage:
schwab-agent order build bracket [flags]
Examples:
schwab-agent order build bracket --symbol NVDA --action BUY --quantity 10 --type MARKET --take-profit 150 --stop-loss 120
schwab-agent order build bracket --symbol AAPL --action BUY --quantity 10 --type LIMIT --price 180 --stop-loss 170
Flags:
--action string Order action
--duration string Order duration
--instruction string alias for --action (order instruction)
--order-type string alias for --type (order type)
--price float Entry price
--quantity float Share quantity
--session string Trading session
--stop-loss float Stop-loss exit price
--symbol string Equity symbol
--take-profit float Take-profit exit price
--type string Entry order type
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build butterfly
Usage:
schwab-agent order build butterfly [flags]
Examples:
schwab-agent order build butterfly --underlying F --expiration 2026-06-18 --lower-strike 10 --middle-strike 12 --upper-strike 14 --call --buy --open --quantity 1 --price 0.50
Flags:
--buy Buy a long butterfly
--call Call butterfly
--close Closing position
--duration string Order duration
--expiration string Expiration date (YYYY-MM-DD)
--lower-strike float Lower wing strike
--middle-strike float Middle body strike
--open Opening position
--price float Net debit or credit amount
--put Put butterfly
--quantity float Wing contract quantity
--sell Sell a short butterfly
--session string Trading session
--underlying string Underlying symbol
--upper-strike float Upper wing strike
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build buy-with-stop
Usage:
schwab-agent order build buy-with-stop [flags]
Examples:
schwab-agent order build buy-with-stop --symbol AAPL --quantity 10 --price 150 --stop-loss 140
schwab-agent order build buy-with-stop --symbol AAPL --quantity 10 --type MARKET --stop-loss 140
schwab-agent order build buy-with-stop --symbol AAPL --quantity 10 --price 150 --stop-loss 140 --take-profit 170
Flags:
-d, --duration string Entry duration (exit legs are always GTC)
--order-type string alias for --type (order type)
-p, --price float Entry limit price (required for LIMIT orders, omit for MARKET)
-q, --quantity float Share quantity
--session string Trading session
--stop-loss float Stop trigger price - becomes market sell when hit
-s, --symbol string Stock symbol (e.g., AAPL)
--take-profit float Optional take-profit limit price
-t, --type string Entry order type (LIMIT or MARKET, default LIMIT)
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build calendar
Usage:
schwab-agent order build calendar [flags]
Examples:
schwab-agent order build calendar --underlying F --near-expiration 2026-05-16 --far-expiration 2026-07-17 --strike 12 --call --open --quantity 1 --price 0.50
Flags:
--call Call calendar spread
--close Closing position
--duration string Order duration
--far-expiration string Far-term expiration date (YYYY-MM-DD)
--near-expiration string Near-term expiration date (YYYY-MM-DD)
--open Opening position
--price float Net debit amount
--put Put calendar spread
--quantity float Number of contracts
--session string Trading session
--strike float Strike price (shared by both legs)
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build collar
Usage:
schwab-agent order build collar [flags]
Examples:
schwab-agent order build collar --underlying F --put-strike 10 --call-strike 14 --expiration 2026-06-18 --quantity 1 --open --price 12.00
Flags:
--call-strike float Covered call strike price
--close Closing position
--duration string Order duration
--expiration string Expiration date for both options (YYYY-MM-DD)
--open Opening position
--price float Net debit amount
--put-strike float Protective put strike price
--quantity float Number of contracts (1 contract = 100 shares)
--session string Trading session
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build condor
Usage:
schwab-agent order build condor [flags]
Examples:
schwab-agent order build condor --underlying F --expiration 2026-06-18 --lower-strike 10 --lower-middle-strike 12 --upper-middle-strike 14 --upper-strike 16 --call --buy --open --quantity 1 --price 0.75
Flags:
--buy Buy a long condor
--call Call condor
--close Closing position
--duration string Order duration
--expiration string Expiration date (YYYY-MM-DD)
--lower-middle-strike float Lower middle strike
--lower-strike float Lower wing strike
--open Opening position
--price float Net debit or credit amount
--put Put condor
--quantity float Contract quantity per strike
--sell Sell a short condor
--session string Trading session
--underlying string Underlying symbol
--upper-middle-strike float Upper middle strike
--upper-strike float Upper wing strike
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build covered-call
Usage:
schwab-agent order build covered-call [flags]
Examples:
schwab-agent order build covered-call --underlying F --expiration 2026-06-18 --strike 14 --quantity 1 --price 12.00
Flags:
--duration string Order duration
--expiration string Expiration date (YYYY-MM-DD)
--price float Net debit amount
--quantity float Number of contracts (1 contract = 100 shares)
--session string Trading session
--strike float Call strike price
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build sell-covered-call
Usage:
schwab-agent order build sell-covered-call [flags]
Examples:
schwab-agent order build sell-covered-call --underlying F --expiration 2026-06-18 --strike 14 --quantity 1 --type LIMIT --price 1.00
schwab-agent order preview sell-covered-call --underlying F --expiration 2026-06-18 --strike 14 --quantity 1 --type LIMIT --price 1.00 --save-preview
schwab-agent order place sell-covered-call --underlying F --expiration 2026-06-18 --strike 14 --quantity 1 --type LIMIT --price 1.00
Flags:
--duration string Order duration
--expiration string Expiration date (YYYY-MM-DD)
--price float Option price
--quantity float Number of contracts
--session string Trading session
--strike float Option strike price
--type string Order type
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build diagonal
Usage:
schwab-agent order build diagonal [flags]
Examples:
schwab-agent order build diagonal --underlying F --near-strike 12 --far-strike 14 --near-expiration 2026-05-16 --far-expiration 2026-07-17 --call --open --quantity 1 --price 0.50
Flags:
--call Call diagonal spread
--close Closing position
--duration string Order duration
--far-expiration string Far-term expiration date (YYYY-MM-DD)
--far-strike float Strike price for the far-term (bought) leg
--near-expiration string Near-term expiration date (YYYY-MM-DD)
--near-strike float Strike price for the near-term (sold) leg
--open Opening position
--price float Net debit amount
--put Put diagonal spread
--quantity float Number of contracts
--session string Trading session
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build double-diagonal
Usage:
schwab-agent order build double-diagonal [flags]
Examples:
schwab-agent order build double-diagonal --underlying F --near-expiration 2026-06-18 --far-expiration 2026-07-17 --put-far-strike 9 --put-near-strike 10 --call-near-strike 14 --call-far-strike 15 --open --quantity 1 --price 0.80
Flags:
--call-far-strike float Far call long strike
--call-near-strike float Near call short strike
--close Closing position
--duration string Order duration
--far-expiration string Far expiration for long legs (YYYY-MM-DD)
--near-expiration string Near expiration for short legs (YYYY-MM-DD)
--open Opening position
--price float Net debit or credit amount
--put-far-strike float Far put long strike
--put-near-strike float Near put short strike
--quantity float Contract quantity
--session string Trading session
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build equity
Usage:
schwab-agent order build equity [flags]
Examples:
schwab-agent order build equity --symbol AAPL --action BUY --quantity 10 --type LIMIT --price 200 --duration DAY
schwab-agent order build equity --symbol AAPL --action SELL --quantity 10 --type STOP --stop-price 145
schwab-agent order build equity --symbol AAPL --action BUY --quantity 10 --type LIMIT --price 200 | schwab-agent order place --spec -
Flags:
--action string Order action
--activation-price float Price that activates the trailing stop
--destination string Order routing destination (INET, ECN_ARCA, CBOE, AMEX, PHLX, ISE, BOX, NYSE, NASDAQ, BATS, C2, AUTO)
--duration string Order duration
--instruction string alias for --action (order instruction)
--order-type string alias for --type (order type)
--price float Limit price
--price-link-basis string Price link reference price (MANUAL, BASE, TRIGGER, LAST, BID, ASK, ASK_BID, MARK, AVERAGE)
--price-link-type string Price link offset type (VALUE, PERCENT, TICK)
--quantity float Share quantity
--session string Trading session
--special-instruction string Special instruction (ALL_OR_NONE, DO_NOT_REDUCE, ALL_OR_NONE_DO_NOT_REDUCE)
--stop-link-basis string Trailing stop reference price (LAST, BID, ASK, MARK)
--stop-link-type string Trailing stop offset type (VALUE, PERCENT, TICK)
--stop-offset float Trailing stop offset amount
--stop-price float Stop price
--stop-type string Trailing stop trigger type (STANDARD, BID, ASK, LAST, MARK)
--symbol string Equity symbol
--type string Order type
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build fts
Usage:
schwab-agent order build fts [flags]
Examples:
schwab-agent order build fts --primary @entry.json --secondary @exit.json
schwab-agent order build fts --primary '{"orderType":"LIMIT",...}' --secondary '{"orderType":"STOP",...}'
Flags:
--primary string Primary order spec (inline JSON, @file, or - for stdin)
--secondary string Secondary order spec (inline JSON, @file, or - for stdin)
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build iron-condor
Usage:
schwab-agent order build iron-condor [flags]
Examples:
schwab-agent order build iron-condor --underlying F --expiration 2026-06-18 --put-long-strike 9 --put-short-strike 10 --call-short-strike 14 --call-long-strike 15 --open --quantity 1 --price 0.50
Flags:
--call-long-strike float Highest strike: call being bought (protection)
--call-short-strike float Call being sold (premium)
--close Closing position
--duration string Order duration
--expiration string Expiration date (YYYY-MM-DD)
--open Opening position
--price float Net credit or debit amount
--put-long-strike float Lowest strike: put being bought (protection)
--put-short-strike float Put being sold (premium)
--quantity float Number of contracts
--session string Trading session
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build short-iron-condor
Usage:
schwab-agent order build short-iron-condor [flags]
Examples:
schwab-agent order build short-iron-condor --underlying F --expiration 2026-06-18 --put-long-strike 9 --put-short-strike 10 --call-short-strike 14 --call-long-strike 15 --quantity 1 --price 0.50
schwab-agent order preview short-iron-condor --underlying F --expiration 2026-06-18 --put-long-strike 9 --put-short-strike 10 --call-short-strike 14 --call-long-strike 15 --quantity 1 --price 0.50 --save-preview
schwab-agent order place short-iron-condor --underlying F --expiration 2026-06-18 --put-long-strike 9 --put-short-strike 10 --call-short-strike 14 --call-long-strike 15 --quantity 1 --price 0.50
Flags:
--call-long-strike float Highest strike: call being bought (protection)
--call-short-strike float Call being sold (premium)
--duration string Order duration
--expiration string Expiration date (YYYY-MM-DD)
--price float Net credit amount
--put-long-strike float Lowest strike: put being bought (protection)
--put-short-strike float Put being sold (premium)
--quantity float Number of contracts
--session string Trading session
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build oco
Usage:
schwab-agent order build oco [flags]
Examples:
schwab-agent order build oco --symbol AAPL --action SELL --quantity 100 --take-profit 160 --stop-loss 140
schwab-agent order build oco --symbol TSLA --action BUY --quantity 10 --stop-loss 250
Flags:
--action string Exit action (SELL to close long, BUY to close short)
--duration string Order duration
--instruction string alias for --action (order instruction)
--quantity float Share quantity
--session string Trading session
--stop-loss float Stop-loss exit price (stop order)
--symbol string Equity symbol
--take-profit float Take-profit exit price (limit order)
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build option
Usage:
schwab-agent order build option [flags]
Examples:
schwab-agent order build option --underlying AAPL --expiration 2025-06-20 --strike 200 --call --action BUY_TO_OPEN --quantity 1 --type LIMIT --price 5.00
schwab-agent order build option --underlying AAPL --expiration 2025-06-20 --strike 190 --put --action SELL_TO_OPEN --quantity 1
Flags:
--action string Order action
--call Call option
--destination string Order routing destination (INET, ECN_ARCA, CBOE, AMEX, PHLX, ISE, BOX, NYSE, NASDAQ, BATS, C2, AUTO)
--duration string Order duration
--expiration string Expiration date (YYYY-MM-DD)
--instruction string alias for --action (order instruction)
--order-type string alias for --type (order type)
--price float Limit price
--price-link-basis string Price link reference price (MANUAL, BASE, TRIGGER, LAST, BID, ASK, ASK_BID, MARK, AVERAGE)
--price-link-type string Price link offset type (VALUE, PERCENT, TICK)
--put Put option
--quantity float Contract quantity
--session string Trading session
--special-instruction string Special instruction (ALL_OR_NONE, DO_NOT_REDUCE, ALL_OR_NONE_DO_NOT_REDUCE)
--strike float Strike price
--type string Order type
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build straddle
Usage:
schwab-agent order build straddle [flags]
Examples:
schwab-agent order build straddle --underlying F --expiration 2026-06-18 --strike 12 --buy --open --quantity 1 --price 1.50
schwab-agent order build straddle --underlying F --expiration 2026-06-18 --strike 12 --sell --open --quantity 1 --price 1.50
Flags:
--buy Buy the straddle (long, net debit)
--close Closing position
--duration string Order duration
--expiration string Expiration date (YYYY-MM-DD)
--open Opening position
--price float Net debit or credit amount
--quantity float Number of contracts
--sell Sell the straddle (short, net credit)
--session string Trading session
--strike float Strike price (shared by call and put legs)
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build strangle
Usage:
schwab-agent order build strangle [flags]
Examples:
schwab-agent order build strangle --underlying F --expiration 2026-06-18 --call-strike 14 --put-strike 10 --buy --open --quantity 1 --price 0.50
schwab-agent order build strangle --underlying F --expiration 2026-06-18 --call-strike 14 --put-strike 10 --sell --open --quantity 1 --price 0.50
Flags:
--buy Buy the strangle (long, net debit)
--call-strike float Strike price for the call leg
--close Closing position
--duration string Order duration
--expiration string Expiration date (YYYY-MM-DD)
--open Opening position
--price float Net debit or credit amount
--put-strike float Strike price for the put leg
--quantity float Number of contracts
--sell Sell the strangle (short, net credit)
--session string Trading session
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build vertical
Usage:
schwab-agent order build vertical [flags]
Examples:
schwab-agent order build vertical --underlying F --expiration 2026-06-18 --long-strike 12 --short-strike 14 --call --open --quantity 1 --price 0.50
schwab-agent order build vertical --underlying F --expiration 2026-06-18 --long-strike 14 --short-strike 12 --put --open --quantity 1 --price 0.50
Flags:
--call Call spread
--close Closing position
--duration string Order duration
--expiration string Expiration date (YYYY-MM-DD)
--long-strike float Strike price of the option being bought
--open Opening position
--price float Net debit or credit amount
--put Put spread
--quantity float Number of contracts
--session string Trading session
--short-strike float Strike price of the option being sold
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order build vertical-roll
Usage:
schwab-agent order build vertical-roll [flags]
Examples:
schwab-agent order build vertical-roll --underlying F --close-expiration 2026-06-18 --open-expiration 2026-07-17 --close-long-strike 12 --close-short-strike 14 --open-long-strike 13 --open-short-strike 15 --call --debit --quantity 1 --price 0.25
Flags:
--call Call vertical roll
--close-expiration string Expiration of the vertical being closed (YYYY-MM-DD)
--close-long-strike float Long strike of the vertical being closed
--close-short-strike float Short strike of the vertical being closed
--credit Build as NET_CREDIT
--debit Build as NET_DEBIT
--duration string Order duration
--open-expiration string Expiration of the vertical being opened (YYYY-MM-DD)
--open-long-strike float Long strike of the vertical being opened
--open-short-strike float Short strike of the vertical being opened
--price float Net debit or credit amount
--put Put vertical roll
--quantity float Contract quantity
--session string Trading session
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order cancel
Usage:
schwab-agent order cancel [order-id] [flags]
Examples:
schwab-agent order cancel 1234567890
schwab-agent order cancel --order-id 1234567890
Flags:
--order-id string Order ID
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order get
Usage:
schwab-agent order get [order-id] [flags]
Examples:
schwab-agent order get 1234567890
schwab-agent order get --order-id 1234567890
Flags:
--order-id string Order ID
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order list
Usage:
schwab-agent order list [flags]
Examples:
schwab-agent order list
schwab-agent order list --recent
schwab-agent order list --status all
schwab-agent order list --status WORKING --status PENDING_ACTIVATION
schwab-agent order list --status WORKING,FILLED,EXPIRED
schwab-agent order list --from 2025-01-01 --to 2025-01-31
Flags:
--from string Filter by entered time lower bound
--recent Show recent order activity, including terminal statuses, from the last 24 hours unless --from is set
--status stringArray Filter by order status (repeatable, use 'all' for unfiltered): WORKING, PENDING_ACTIVATION, FILLED, EXPIRED, CANCELED, REJECTED, etc.
--to string Filter by entered time upper bound
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order place
Usage:
schwab-agent order place [flags]
schwab-agent order place [command]
Examples:
schwab-agent order place --spec @order.json
schwab-agent order preview equity --account abc123 --symbol AAPL --action BUY --quantity 10 --type LIMIT --price 200 --save-preview
schwab-agent order place --from-preview <digest>
schwab-agent order build equity --symbol AAPL --action BUY --quantity 10 --type LIMIT --price 200 | schwab-agent order place --spec -
schwab-agent order place --spec '{"orderType":"LIMIT",...}'
Available Commands:
bracket Place a bracket order
buy-with-stop Place a buy order with automatic stop-loss protection
equity Place an equity order
oco Place a one-cancels-other order for an existing position
option Place an option order
sell-covered-call Sell a covered call against existing shares
short-iron-condor Sell an opening iron condor
Flags:
--from-preview string Place the exact order payload saved by order preview --save-preview
--spec string Inline JSON, @file, or - for stdin
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
Use "schwab-agent order place [command] --help" for more information about a command.
schwab-agent order place bracket
Usage:
schwab-agent order place bracket [flags]
Examples:
schwab-agent order place bracket --symbol NVDA --action BUY --quantity 10 --type MARKET --take-profit 150 --stop-loss 120
schwab-agent order place bracket --symbol AAPL --action BUY --quantity 10 --type LIMIT --price 180 --stop-loss 170
schwab-agent order place bracket --symbol TSLA --action BUY --quantity 5 --type MARKET --take-profit 300
Flags:
--action string Order action
--duration string Order duration
--instruction string alias for --action (order instruction)
--order-type string alias for --type (order type)
--price float Entry price
--quantity float Share quantity
--session string Trading session
--stop-loss float Stop-loss exit price
--symbol string Equity symbol
--take-profit float Take-profit exit price
--type string Entry order type
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order place buy-with-stop
Usage:
schwab-agent order place buy-with-stop [flags]
Examples:
schwab-agent order place buy-with-stop --symbol AAPL --quantity 10 --price 150 --stop-loss 140
schwab-agent order place buy-with-stop --symbol AAPL --quantity 10 --type MARKET --stop-loss 140
schwab-agent order place buy-with-stop --symbol AAPL --quantity 10 --price 150 --stop-loss 140 --take-profit 170
Flags:
-d, --duration string Entry duration (exit legs are always GTC)
--order-type string alias for --type (order type)
-p, --price float Entry limit price (required for LIMIT orders, omit for MARKET)
-q, --quantity float Share quantity
--session string Trading session
--stop-loss float Stop trigger price - becomes market sell when hit
-s, --symbol string Stock symbol (e.g., AAPL)
--take-profit float Optional take-profit limit price
-t, --type string Entry order type (LIMIT or MARKET, default LIMIT)
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order place sell-covered-call
Usage:
schwab-agent order place sell-covered-call [flags]
Examples:
schwab-agent order build sell-covered-call --underlying F --expiration 2026-06-18 --strike 14 --quantity 1 --type LIMIT --price 1.00
schwab-agent order preview sell-covered-call --underlying F --expiration 2026-06-18 --strike 14 --quantity 1 --type LIMIT --price 1.00 --save-preview
schwab-agent order place sell-covered-call --underlying F --expiration 2026-06-18 --strike 14 --quantity 1 --type LIMIT --price 1.00
Flags:
--duration string Order duration
--expiration string Expiration date (YYYY-MM-DD)
--price float Option price
--quantity float Number of contracts
--session string Trading session
--strike float Option strike price
--type string Order type
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order place short-iron-condor
Usage:
schwab-agent order place short-iron-condor [flags]
Examples:
schwab-agent order build short-iron-condor --underlying F --expiration 2026-06-18 --put-long-strike 9 --put-short-strike 10 --call-short-strike 14 --call-long-strike 15 --quantity 1 --price 0.50
schwab-agent order preview short-iron-condor --underlying F --expiration 2026-06-18 --put-long-strike 9 --put-short-strike 10 --call-short-strike 14 --call-long-strike 15 --quantity 1 --price 0.50 --save-preview
schwab-agent order place short-iron-condor --underlying F --expiration 2026-06-18 --put-long-strike 9 --put-short-strike 10 --call-short-strike 14 --call-long-strike 15 --quantity 1 --price 0.50
Flags:
--call-long-strike float Highest strike: call being bought (protection)
--call-short-strike float Call being sold (premium)
--duration string Order duration
--expiration string Expiration date (YYYY-MM-DD)
--price float Net credit amount
--put-long-strike float Lowest strike: put being bought (protection)
--put-short-strike float Put being sold (premium)
--quantity float Number of contracts
--session string Trading session
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order place equity
Usage:
schwab-agent order place equity [flags]
Examples:
schwab-agent order place equity --symbol AAPL --action BUY --quantity 10
schwab-agent order place equity --symbol AAPL --action BUY --quantity 10 --type LIMIT --price 150 --duration GTC
schwab-agent order place equity --symbol AAPL --action SELL --quantity 10 --type TRAILING_STOP --stop-offset 2.50
schwab-agent order place equity --symbol AAPL --action SELL --quantity 10 --type STOP_LIMIT --stop-price 145 --price 144
Flags:
--action string Order action
--activation-price float Price that activates the trailing stop
--destination string Order routing destination (INET, ECN_ARCA, CBOE, AMEX, PHLX, ISE, BOX, NYSE, NASDAQ, BATS, C2, AUTO)
--duration string Order duration
--instruction string alias for --action (order instruction)
--order-type string alias for --type (order type)
--price float Limit price
--price-link-basis string Price link reference price (MANUAL, BASE, TRIGGER, LAST, BID, ASK, ASK_BID, MARK, AVERAGE)
--price-link-type string Price link offset type (VALUE, PERCENT, TICK)
--quantity float Share quantity
--session string Trading session
--special-instruction string Special instruction (ALL_OR_NONE, DO_NOT_REDUCE, ALL_OR_NONE_DO_NOT_REDUCE)
--stop-link-basis string Trailing stop reference price (LAST, BID, ASK, MARK)
--stop-link-type string Trailing stop offset type (VALUE, PERCENT, TICK)
--stop-offset float Trailing stop offset amount
--stop-price float Stop price
--stop-type string Trailing stop trigger type (STANDARD, BID, ASK, LAST, MARK)
--symbol string Equity symbol
--type string Order type
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order place oco
Usage:
schwab-agent order place oco [flags]
Examples:
schwab-agent order place oco --symbol AAPL --action SELL --quantity 100 --take-profit 160 --stop-loss 140
schwab-agent order place oco --symbol AAPL --action SELL --quantity 50 --stop-loss 140
schwab-agent order place oco --symbol TSLA --action BUY --quantity 10 --take-profit 200 --stop-loss 250
Flags:
--action string Exit action (SELL to close long, BUY to close short)
--duration string Order duration
--instruction string alias for --action (order instruction)
--quantity float Share quantity
--session string Trading session
--stop-loss float Stop-loss exit price (stop order)
--symbol string Equity symbol
--take-profit float Take-profit exit price (limit order)
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order place option
Usage:
schwab-agent order place option [flags]
Examples:
schwab-agent order place option --underlying AAPL --expiration 2025-06-20 --strike 200 --call --action BUY_TO_OPEN --quantity 1
schwab-agent order place option --underlying AAPL --expiration 2025-06-20 --strike 190 --put --action SELL_TO_OPEN --quantity 1 --type LIMIT --price 3.50
schwab-agent order place option --underlying AAPL --expiration 2025-06-20 --strike 200 --call --action SELL_TO_CLOSE --quantity 1
Flags:
--action string Order action
--call Call option
--destination string Order routing destination (INET, ECN_ARCA, CBOE, AMEX, PHLX, ISE, BOX, NYSE, NASDAQ, BATS, C2, AUTO)
--duration string Order duration
--expiration string Expiration date (YYYY-MM-DD)
--instruction string alias for --action (order instruction)
--order-type string alias for --type (order type)
--price float Limit price
--price-link-basis string Price link reference price (MANUAL, BASE, TRIGGER, LAST, BID, ASK, ASK_BID, MARK, AVERAGE)
--price-link-type string Price link offset type (VALUE, PERCENT, TICK)
--put Put option
--quantity float Contract quantity
--session string Trading session
--special-instruction string Special instruction (ALL_OR_NONE, DO_NOT_REDUCE, ALL_OR_NONE_DO_NOT_REDUCE)
--strike float Strike price
--type string Order type
--underlying string Underlying symbol
Global Flags:
-a, --account string Override default account by hash, account number, or nickname
--config string Path to config file
--debug-options string[="text"] Print resolved flag values and exit (text or json)
--token string Path to token file
-v, --verbose Enable debug logging to stderr
schwab-agent order preview
Usage:
schwab-agent order preview [flags]
schwab-agent order preview [command]
Examples:
schwab-agent order preview --spec @order.json
schwab-agent order preview equity --symbol AAPL --action BUY --quantity 10 --type LIMIT --price 200 --save-preview
schwab-agent order preview option --underlying AAPL --expiration 2026-06-20 --strike 200 --call --action BUY_TO_OPEN --quantity 1 --type LIMIT --price 5.00
schwab-agent order build equity --symbol AAPL --action BUY --quantity 10 --type LIMIT --price 200 | schwab-agent order preview --spec -
Available Commands:
bracket Preview a bracket order
buy-with-stop Preview a buy-with-stop order
equity Preview an equity order
oco Preview a one-cancels-other order
option Preview an option order
sell-covered-call Preview a covered call against existing shares
short-iron-condor Preview an opening iron condor
Flags: