Table of Contents

Interactive Brokers

Interactive Brokers - trading platform to trade financial assets including stocks, options, futures, EFPs, futures options, forex, bonds, and funds.

Before you start writing trading robots for the current trading platform, it is recommended to read the links in the Connectors.

Configuration Interactive Brokers

To work correctly with Interactive Brokers you should preset TWS trading terminal.

Trader Workstation terminal configuration

  1. You must allow connections from other programs (such as the trading algorithm on S#). To do this, open the settings menu "File -> Global configuration...". Select "Configuration -> API -> Settings" in the new window:

    ib settings

  2. Turn on "Enable ActiveX and Socket Clients" mode.

  3. Also it is recommended to add the address of the computer that will run the algorithm (the local address - 127.0.0.1). It allows not confirming the terminal connection permission each time you start the algorithm.

Connectors

Graphical configuration

Save and load settings

Creating own connector

Orders management

Create new order

Create new stop order

Adapter initialization Interactive Brokers