I get there is Paper Trading and Live Trading options when deploying a project with QC. Paper Trading is simulated within QC, while Live Trading goes through an actual Broker of choice.
Also, when you have an account with Interactive Brokers (IB) you have a Live Account and a Paper Trading Account.
Is it possible and does it work well to use IB's Paper Trading account as a Live Trading option during project deployment?
It looks like I can specify the account number when choosing IB, but I wouldn't want to risk some loophole here that would end up using my actual live account.
Jared Broad
You're correct Levi its safe to enter your IB paper credentials into the wizard and it will deploy to your IB paper account. We'll make this more explicit to help future users.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Matthew Williams
I've used IB Paper Trading with QC several times. There's a few things to know:
In spite of these frustrations, it's definitely worth the hastle. I wish more brokers offered paper trading.
Jared Broad
Just a note on Matts comment -- "You can only have one connection to IB (with the same credentials) at a time" -- this is by design for your safety as we maintain algorithm state in QuantConnect -- and if your algorithm state/variables/portfolio gets out of sync with IB your algorithm can behave in unexpected ways. We try to get around this by providing as much functionality as possible through the web UX.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Tyler Durden
Matthew Williams
Do you know if the production IB connection to QC suffers the same unexpected problems you describe about the paper trading account?
Derek Tishler
I think some of the frequent 'ignorable-disconnects' are due to the IB servers performing daily maintenance. Depending on the exchange/asset(i.e. forex), you may see an additional restart around 17:00 as well if I recall from testing via IB API pre Lean.
I am able to launch QC IB paper servers anytime, so long as it is not during these down times. If you can log into TWS, you can log in via a QC server(IB Gateway). That is how I check what the point of failure is if I get the 'failed to connect check password' when launching. The worst is trying Friday night, before Coarse fires, as IB has an extended downtime and I usually just want to sleeeeeeep...
Recently I had an issue with price data causing a silent crash on IB paper. I use QC data and was failing to sub to pre-market while trying to perform orders RIGHT at the equity market open (a fraction of a second before the data was available for some of my IB paper servers by chance). I only mention this as an example of slight frictions when going live. Thank goodness for QC support , paper accounts, and QC support.
In order to manage algos, like I would separate traders(and allows for a dedicated paper account per algo/sub-account), I use the IB Proprietary Trading Group – Separate Trading Limit account structure as an LLC. This gives me a great deal more flexibility but relies on QC's live data to be affordable. Possibly something to check out if you are scaling up your operation or are just sick of Linked Accounts.
Tyler Durden
Thanks Derek, great insights. The IB Proprietary Trading Group, is that type of account IB offers?
I notice you mention that you have several paper accounts, are they from the one or several IB accounts? I'm curious to know how you structure your QC -> IB algos given that we're limited to 1 QC server to 1 IB account.
Derek Tishler
Yes it's an account type for a business(not individual). It allows one master account to own any number of sub accounts, each independent from eachother and with a paper login. I think they aggregate the $10 fee depending on usage, all in the IB docs. The master can also be logged in as a supervisor when the others are working(not sure paper is visible but works well for live). Has many benefits, and some shortcomings.
Michael Manus
the same rules also apply to the family and friends account with one master and several "clients" (max 15)
but its for individuals of course... max "15"
Quant Trader
I do not get my paper trading to work. IB phone suppor told me to use lower cases in the user name. So now I can login in the webtrader. However, deploying my algo fails. Any ideas?
Jared Broad
Quant Trader please send an email to support so we can pull down the logs. Generally this is caused by:
- Incorrect user name / password.
- IB servers not responding.
- Leaving 2FA enabled so our system can't login.
- Having assets not supported by QC in the portfolio (e.g. bonds)
As always - beyond general recommendations we'll need logs to debug and recommend any direction.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Quant Trader
I have reached out to support as I can sign in on the website without token (2FA), but not run. Pitty there is no AppID and secret key on IB like in Azure...
Kevin Du
I'm about to deploy to IB paper account, but I have a dumb question.Â
It doesn't look like there are two sets of credentials for real and paper account. There is just a toggle on between live and paper account on my IB lite mobile app but all with the same credentials.Â
well then how do I know I am using my 'paper account'?Â
Â
Kevin Du
forgot about my previous post. Just found out IB has different username for paper trading account after logging in from desktop.
Levitikon
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!