Interactive Brokers Live Algo Trading with QuantConnect

3 min read

Get 10-day Free Algo Trading Course

Last Updated on January 23, 2024

Table of contents:

  1. What is QuantConnect?
  2. What is Interactive Brokers?
  3. Why should I use Interactive Brokers with QuantConnect?
  4. Why shouldn’t I use Interactive Brokers with QuantConnect?
  5. Is hosting Interactive Brokers with QuantConnect free?
  6. What are some deployment alternatives?
  7. How to get started with Interactive Brokers and QuantConnect?
  8. How to deploy your trading bot on IBKR with QuantConnect?
  9. Learn more

What is QuantConnect?

QuantConnect is an online open-source financial system that allows its user to conduct research, perform analyses, create algorithmic trading bots, backtest strategies, optimize portfolios, and more.

Website: https://www.quantconnect.com

What is Interactive Brokers?

Interactive Brokers (IBKR) is an online brokerage that offers trading solutions for traders, investors, and advisors, with global access to stocks, options, futures, currencies, bonds, and funds.

Website: https://www.interactivebrokers.co.uk/en/home.php

Why should I use Interactive Brokers with QuantConnect?

  • You might already have algorithms written inside QuantConnect.
  • You can easily integrate the two technology software together.
  • You don’t need to rewrite your QC strategies with ib_insync or similar.
  • You don’t need to worry about the deployment process and server maintenance.
  • You get all other benefits of QC such as backtesting.

Why shouldn’t I use Interactive Brokers with QuantConnect?

  • You can self-deploy your solution for way cheaper.
  • You get a greater sense of privacy.
  • You don’t need to use the QuantConnect syntax and supported languages.
  • You limit your risk and reliance on only one software solution.
  • A self-hosted solution is much cheaper.

Is hosting Interactive Brokers with QuantConnect free?

Hosting Interactive Brokers with QuantConnect isn’t free. To host your bot, you will need to pay for a trading node. To have a trading node, you will need to pay a monthly fee to QuantConnect. All of this will add up to about $40.

What are some deployment alternatives?

A deployment alternative would be to deploy your own algorithm locally or by using a cloud provider such as AWS, GCP, Azure, etc.

How to get started with Interactive Brokers and QuantConnect?

To get started with Interactive Brokers and QuantConnect, you will need to have an account on both of them. To get an account with Interactive Brokers, please navigate to their main website and click the red “Open Account” button in the upper right part of the UI.

Then, follow through the steps and create an account. For live trading, you will need to verify your account and go through their onboarding experience which features various questions, KYC, and more.

To get an account with QuantConnect, navigate over to their landing page and click the “Sign in” button in the upper right corner of your screen. Then, click the “Sign up” button and follow through the process of linking up your email and creating a password.

Once both things are done, it will be important to know your username, user ID, and password or IBKR so that we can easily deploy an algorithm with QC as it will require our credentials.

How to deploy your trading bot on IBKR with QuantConnect?

To deploy your trading bot on IBKR with QuantConnect, you will need to ensure that you have a bot that works and a valid subscription for a live trading node. Also, make sure that you are logged out of IBKR and that TWS isn’t started on your machine.

Let’s begin by navigating to an algorithm that we will want to deploy and run on IBKR.

Press the thunderbolt icon inside your strategy UI to start the deployment process. This will open the Live Deploy Wizzard. When here, select IBKR. If you don’t have a subscription, it will show you a purple element that is linked to the place where you need to subscribe.

Let’s click it.

Here we can see that the minimum we need to deploy this will be the $10 per month subscription level. But that isn’t the only thing we need to actually deploy our trading bots. We will want a backtest node and a live compute node too.

When you click on the research tier option, it will take you to the checkout page and you will see several things being added to your monthly subscription. Those things are the Researcher seat, LiveNode, Backtesting Node, and Research node.

In total, this would cost you $60 per month or $600 for an annual subscription. To be honest, if you self-deploy it would cost you half or less of the price.

For deploying the bot, we don’t need a research node which is a Jupyter notebook environment, so we can save $12 from the monthly subscription and bring it down to $48 per month. If you want access to specific data, that comes at an extra cost.

To explore that, navigate to the Data section and you will see a list of available data sources that you might additionally need.

Once we get our subscription we can proceed through the UI and go back to our deployment wizard which will now have adequate fields for us to log into our IBKR account. Make sure that you aren’t running TWS and that you are not logged in to IBKR already.

Once you fill in your information and choose the type of IBKR account you want to use, you can click the deployment button which will perform the deployment process for you. There, you will be able to monitor your bot and also stop its execution if needed.

Learn more

To learn more about deploying a bot to IBKR on QuantConnect, I suggest exploring their deployment documentation which can be found on this link.

Igor Radovanovic