v0.7.0
What's New
Historical data commands (via Flex Queries)
New top-level commands for historical account data, powered by IBKR Flex Queries over HTTPS — no Gateway or TWS required:
ibkr trades— Historical trade recordsibkr pnl— Realized and unrealized P&L by symbolibkr transfers— Fund deposits, withdrawals, and transfersibkr dividends— Dividends, interest, withholding tax, and other cash transactions
All commands support --days for lookback period and --json for machine-readable output. Data may be delayed up to T-1.
Configuration management
ibkr config set <key> <value>— Set config values (e.g.flex.token,flex.query_id)ibkr config show— View current configuration (tokens are masked)ibkr config path— Show config file location
Setup
To use the new historical data commands, configure your Flex Web Service credentials:
ibkr config set flex.token YOUR_TOKEN
ibkr config set flex.query_id YOUR_QUERY_IDGet your token from IBKR Account Management > Settings > FlexWeb Service, and your query ID from Reports > Flex Queries.