ð Connecting Interactive Brokers (Client Portal & Web API)
Connect Interactive Brokers via the local Client Portal REST Gateway (localhost:5000) or IBKR OAuth Web API access tokens.
ð Interactive Brokers Connection Modes
TradeConsole supports Interactive Brokers (IBKR Pro & Lite) through IBKR’s official REST Client Portal API — either via the local Java Client Portal Gateway when running TradeConsole on your workstation, or via an IBKR OAuth Web API Bearer Token.
Option A: Local Client Portal Gateway (localhost:5000)
- Download the official Client Portal API Gateway zip from Interactive Brokers’ Campus / GitHub portal (requires Java JRE 11+).
- Start the gateway from your terminal:
bin/run.sh root/conf.yaml(macOS/Linux) orbin\run.bat root\conf.yaml(Windows). - Open
https://localhost:5000in your browser, accept the local self-signed TLS prompt, and log in with your IBKR username, password, and IB Key mobile push until you see “Client login succeeds”. - Set
IBKR_ENABLED=trueandIBKR_BASE_URL=https://localhost:5000/v1/apiin your local.env(withIBKR_VERIFY_SSL=falsefor IBKR’s localhost self-signed cert).
Option B: IBKR Web API OAuth Bearer Token
If your IBKR account is enrolled in the headless IBKR Web API (https://api.ibkr.com/v1/api), configure IBKR_ENABLED=true, IBKR_BASE_URL=https://api.ibkr.com/v1/api, IBKR_VERIFY_SSL=true, and provide IBKR_ACCESS_TOKEN. TradeConsole automatically discovers sub-accounts, handles IBKR What-If order previews, and supports native Parent-Child conditional orders.