Back to Community


7 responses

I just applied for an IB account yesterday. From what I understand, for cash account your money from a transaction will not be available to use until the transaction is settled, usually after 2-3 days. But for the Reg T Margin account you can use the money right away.

But I'm sure experts here have more to say about this.

I have 2 types of accounts with IB.

I have a no-margin IRA.
I have a margin account.

To trade stocks quickly, you need a margin account.

If you trade naked puts/calls you might be able to trade fairly quickly.

For example if you have $100k you could trade $10k per day before your cash == 0.

I asked IB for permission to trade equity options, futures, and future-options in my cash-only-IRA and they gave it to me.

One thing I like about naked options is that if I buy $X,000 in naked options , then that is the max I can lose.
Naked options make it easy for me to know my exact risk.


I'm confused - I thought naked options are actually more risky, with the potential for unlimited loss? e.g. here

Unlimited loss is a huge misconception.

Imagine that you have $100 and that you you spend $3 on a naked call.
Q: What is the max you can lose?
A: $3


In IB there are only 2 types of accounts I can upgrade to, portfolio margin and Reg T margin account (I currently have cash account). How to upgrade to an IRA margin account?
Which accounts is better: IRA margin and Reg T margin, in terms of requiring less cash cushion? From IB's description it's basically saying: IRA margin account do not have a 3 day money settlement , so you can buy with the sale money right away; but you can't borrow money. For Reg T margin account you still have 3 day settlement, but you can borrow up to 50% money. Is my understanding right?

Good news - you can now access the settled cash and other IB account information in your algorithm! Here is the announcement:


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.

How about the coding question - how does one go about emulating settling time in Quantopian? Say I don't want to dive into margin accounts or anything other than just using my own cash. How can I "skip" / "advance" the backtesting event loop 3 or 4 days after every sale to accommodate real life trading rules?

Although the following code sample doesn't specifically address simulating a 3 day settlement period it at least shows the syntax for skipping a variable number of event loops. Cheers!

def initialize(context):  
    context.i = 0

def handle_data(context, data):  
    # Skip 3 days.  
    context.i += 1  
    if context.i < 3: