Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Command-line (bezant-cli)

Ships as the bezant binary. Every subcommand prints JSON on stdout; pass --pretty for indented output. Errors exit non-zero with a bezant: prefix on stderr.

Install

cargo install --git https://github.com/isaacrowntree/bezant bezant-cli

Subcommands

bezant health                         # auth + session status
bezant tickle                         # extend the session manually
bezant accounts --pretty              # list accounts
bezant summary DU123456 --pretty      # portfolio summary
bezant positions DU123456 --pretty    # paginated positions (all pages)
bezant conid AAPL                     # ticker → conid lookup

Scripting

Every subcommand produces stable JSON, so jq is your friend:

bezant accounts | jq -r '.[].accountId'
bezant positions DU123456 | jq 'map(select(.position > 0))'

Environment

VariableDefault
IBKR_GATEWAY_URLhttps://localhost:5000/v1/api
BEZANT_REJECT_INVALID_CERTSunset (accepts self-signed)
RUST_LOGwarn