Interactive Brokers setup
Your Interactive Brokers account in OpenTrader: balances, positions, orders and trading from the charts, and IBKR: symbols with the broker's data. For Windows.
With IB Gateway or TWS
- In OpenTrader, open App settings from the account menu, then Plugins. Press Browse catalog and install Interactive Brokers, then turn it on (Enabled).
- In the plugin's Settings, pick the Port: 4002 for IB Gateway paper, 4001 for IB Gateway live, 7497 for TWS paper, 7496 for TWS live.
- In IB Gateway or TWS, log in, then open Configure > Settings > API > Settings:
- tick Enable ActiveX and Socket Clients;
- check that Socket port matches the plugin's port;
- untick Read-Only API to trade from OpenTrader;
- keep Allow connections from localhost only ticked.
The plugin shows Connected within a few seconds, and retries while IB Gateway or TWS is closed.
With a direct login (beta)
The plugin logs in itself, with no other program. This is in beta: if something goes wrong, use IB Gateway or TWS.
- In the plugin's Settings, set Connection to Direct login.
- Enter your Username and Password, and pick Paper trading (with your paper trading username) or Live.
- For a live account, pick how you approve the login: in IBKR Mobile on your phone, or with a code you type.
- Press Apply.
Your password is kept in your computer's credential store. The broker allows one session per username: while the plugin is logged in, TWS, IB Gateway or the mobile app on the same username lose their market data. A second username on the account avoids it.
Trade
Choose Trade > Connect broker… > Interactive Brokers, then Trade > Turn trading on. Paper accounts show DEMO.
Symbols
- US stocks and funds:
IBKR:AAPL - Forex:
IBKR:EURUSD - Futures: the contract's code,
IBKR:ESZ6
Chart data and trading can each be turned off in the plugin's card, for example to trade only.