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.