Connecting to Interactive Brokers

Modified on Wed, 27 Mar 2024 at 01:41 PM

To connect ATAS to Interactive brokers you need to make some changes in TWS settings. You need to download and install the latest version.


NOTE: Interactive Brokers market data may differ significantly from other data providers due to the nature of this connection. Please, take this into account, when analyzing/trading, using this broker s connection. 


NOTE: demo account from Interactive Brokers doesn t receive online data for stocks. 

IMPORTANT: this connection only works for the western market. That is, you will not be able to receive quotes for Russian instruments through Interactive Brokers.

To do it follow the next steps:

1. In the main menu chooseFile ->Global configurationsand in opened window choose

«Configuration ->API ->Settings».

2. Allow«Enable ActiveXand Socket Clients».

3. Allow “Download open orders on connection”.

4. Check and remember port number. If this port is already used onyour computer please enter another port number (any number from the local portrange (fields below))

5. Close and save the settings by clickingOK .




Now we are ready to connect ATAS to TWS, soopen main menu in ATAS and click by left mouse button to the one of the fieldas shown on the screenshot below

1. Go to the main window menu - Settings, then the submenu Connection to DataFeed.

2. Click mouse button on the connections in the main window platform.

.



In the opened window choose Addand in the next windowchoose Interactive Brokers and pressNext .




Here we are in settings window for IBconnection:



1. In the field of line Host type IP address and port number of computer where TWS is installed. If TWS is running on the same computer where ATAS is, IP should be 127.0.0.1. Port - the value from theSocket portin the TWS settings.

2. Client ID - is the unique number over zero for connected program (TWS can have several connections and if you use only ATAS to connect- leave 1 or change to any other number).

3. Press Next .


Now you see new line in the list of connection sources:



By pressing Connectyou will make the connection.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article