Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to handle portfolio with IB trading

I have been historically holding about 60 % of my portfolio in long-term holds that handily also cover any needed marginal requirements.

~ 30% is assigned to riskier strategies. A bit more, if the market is very directional.

10% sits in cash and allocated when a strong market opportunity appears. Sometimes allocated together with my risk strategies.

How would I do this while live trading IB account with Quantopian?

To me, it seems that Quantopian uses always entire account funds for trading. I do not feel like assigning my full portfolio to something with the potential of 40-60% drawdown.

8 responses

It's very easy: you create a subaccount that has its own number and login and funding. you fund it with your casino money and connect it to an algorithm. I trade 5 algo's like this and I can see all activities of the algo's in my main account

Thanks, Peter! I check the sub-account creation. Might be a good idea to insulate different pools of money anyway even though it has not been an issue with manual trading.

Kimmo

I would appreciate if you shared your findings here.

Furthermore for Qs here - is it possible to create several such sub-accounts and have them connected to different Quantopian algos?

Does the $1M per account limit apply to entire account or each subaccount?

From the Quantopian system perspective, we need a unique username/password for each algorithm you trade. The Quantopian system won't know (or care) if it is connecting to a sub-account or not. To repeat something that I'm sure you already know, you cannot connect two algorithms to the same account. But if you instead add a sub-account, then that works just fine.

The $1 million limit is applied to your Quantopian account. If we've removed the $1 million limit for you, the limit is removed for all of your IB accounts.

Disclaimer

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 Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian 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.

@Dan

Can you explain how this limit works in practice.

If I have $1.5M in an account and connect an algo to it what exactly happens?

The same question if I have two $750K sub-accounts each connected to different algo?

If you deploy an algorithm to an account with $1 million, it will stop trading and you will get an email.

If you want the limit lifted, hit the "contact support" link in the nav. That will start the process of lifting the limit.

Good to hear about the 'lift limit' feature.

Just from a knowledge base standpoint if you connected two alogs to two $750K IB sub-accounts that would work fine?

Here are the sub-account creation instructions for Interactive Brokers. https://www.interactivebrokers.com/en/software/ptgstl/topics/ptgsubaccounts.htm

I will set up something with the small amount of money this week and report this thread if there are any hickups.

Btw. Found one really annoying limitation with IB sub account. They need separate data subscriptions from IB standpoint. Sure you can trade using Quantopian data but I had some rather expensive learning in the past around IB accounts without data subscriptions.

What I learned is that if you need to manually stop your algo from TWS console. ''close all positions (panic button)" does not work without a data subscription. You need to make manual sales order for each position you hold.

I am also going to check how sub-accounts affect on account margin but now sure yet. I am not trading Quantopian one with leverage, but I have some leveraged positions elsewhere.