Barry Cohen![]() Sage ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6338 Joined: 1/19/2004 ![]() | First you need to get OT to connect to IB with either TWS or IBG. Click Edit -> Broker Settings & add IB as a broker. After it's set up there & in the OT Broker Settings, the test connection should succeed & the broker dropdown toolbar should allow you to change away from Paper to the IB connection & it will change the color to green in the toolbar. If that does not happen OT is not connected to IB. Configuring the Trader Workstation 1. Open Trader Workstation. 2. Select Edit››Configuration (or click the Configure button). 3. Select API››Settings. 4. Check Enable ActiveX and Socket Clients. 5. Uncheck Read-Only API. 6. Set the Socket Port to 7496. (Or any number that matches the Socket Port setting in OT’s Broker Settings window. 7. Under Trusted IP Addresses, click Create and add 127.0.0.1 if it isn’t already listed. 8. Select API››Precautions. 9. Check Bypass Order Precautions for API Orders. 10. Click OK to save. Configuring the IB Gateway 1. Open IB Gateway. 2. Select IB API and enter your login settings. 3. Click Configure››Settings. 4. Select API››Settings. 5. Uncheck Read-Only API. 6. Set the Socket Port to 7496. (Or any number that matches the Socket Port setting in OT’s Broker Settings window) 7. Under Trusted IP Addresses, click Create and add 127.0.0.1 if it isn’t already listed. 8. Select API››Precautions 9. Check Bypass Order Precautions for API Orders. 10. Click OK to save. |