admin

Connect Trading Account with Interactive Brokers

How it work


In connection with Interactive Brokers, users can now trade with IB accounts using ALGOGENE dedicated trading gateway!

collaborate_ib

This article goes through the steps to connect ALGOGENE with your Interactive Brokers (IB) trading account (either demo account or real trading account). The overall workflow is summarized in this diagram.

workflow

Who is IB?

Interactive Brokers LLC (IB) is a brokerage firm headquartered in the United States, with 40+ years history. It operates the largest electronic trading platform in the U.S. by number of daily average revenue trades. The company brokers stocks, options, futures, futures options, forex, bonds, and funds. It is a current NASDAQ listed company (symbol: IBKR) and a composite of S&P 400 Component, with global operations in 14 countries.


Create a separate user on IB

In case you do not have an IB account, you can firstly open one from Interactive Brokers Official Website.

By creating a separate user login, it does not only allows you to have simultaneous access to your trading account from different devices or applications, it also enables you to assign different data access rights for different users.

  • Login IB portal, click "Manage Account" under settings
  • manage_account

  • Under "Users & Access Rights", click "Configure"
  • configure_account

  • Add new user
  • new_user

  • Create new user's credentials
  • new_credential

  • Enable data access for the new user
  • access_alert
    access_trade
    access_report
    access_confirm

Authenticate with ALGOGENE

  • login ALGOGENE portal
  • Under [Settings], go to [Live Demo] or [Real Trade] depending on your case
  • choose a desired ALGOGENE account for connection configuration
  • select "Interactive Brokers" in the available broker list
  • select_ib

  • You will then be redirected to IB's login panel
  • authorize_ib

  • If you are linking with an ALGOGENE Real Trade account, login with "Live", otherwise login with "Paper".
  • Then, you will be asked to electronically sign to autheticate the connection
  • sign_ib

  • After that, you will be redirected back to ALGOGENE, and you account is ready to trade!
  • success

Demo Video



Happy Trading! :)


 
Gupta
what is the advantage over TWS?
 
admin
Original Posted by - Gupta: what is the advantage over TWS?
Some of the benefits included, but not limited to:

  1. your algo program are cloud-hosted over ALGOGENE => no client side hardware maintenance
  2. free market data feed => cost saving from separate IB's data purchase
  3. you can directly deploy a backtested strategy to IB trading account => largely speed up your trading algorithm R&D process
 
Gupta
Original Posted by - admin:
Some of the benefits included, but not limited to:

  1. your algo program are cloud-hosted over ALGOGENE => no client side hardware maintenance
  2. free market data feed => cost saving from separate IB's data purchase
  3. you can directly deploy a backtested strategy to IB trading account => largely speed up your trading algorithm R&D process
How about the execution speed?
 
admin
Original Posted by - Gupta: How about the execution speed?
As a technology partner with IB, there is a dedicated trading gateway for data exchange. 
From IB's server side, it would be a separate order queue compared to other submission channels. (eg. TWS)
Thus, it is likely to be faster to execute via ALGOGENE. 

 
Bee Bee
Original Posted by - admin:
Some of the benefits included, but not limited to:

  1. your algo program are cloud-hosted over ALGOGENE => no client side hardware maintenance
  2. free market data feed => cost saving from separate IB's data purchase
  3. you can directly deploy a backtested strategy to IB trading account => largely speed up your trading algorithm R&D process
It is really a good alternative for TWS. :)

My IB sale always refers me to use TWS gateway for algo trading, which is said to be a lightweight software for normal PC. However, my experience is that, the gateway can sometimes use up to 500MB - 1GB memory. My PC sometimes hangs and I can't use it when my algo program and TWS are running,