Hi,
I have set my brokerage account to Interactive brokers Margin. However, I am not able to buy fractional shares but broker does allow it. Is there a workaround for this, or is it possible this can be patched ?
self.SetBrokerageModel(BrokerageName.InteractiveBrokersBrokerage, AccountType.Margin);
Warning: Due to brokerage limitations, orders will be rounded to the nearest lot size of 1
Mak K
Hey Dario,
The interactive brokers API does not allow for fractional shares.
https://www.interactivebrokers.com/en/index.php?f=45718
Mak K
;
This means that you can not trade fractional shares with ibkr unless you do it manually, so no automated program can buy fractional shares in ibkr for you.
I think Tradier allows for fractional shares but I am not sure if they allow it for all stocks or not, you would have to contact them for that information,
Thanks!
Varad Kabade
Hi Dario,
QuantConnect/Lean supports fractional shares. However, this feature is not extended to equity (we consider a lot size of 1 share) because fractional trading is not supported via IBKR API or FIX/CTCI at this time (FAQ).
Best,
Varad Kabade
Dario Teodori
Good to know that! Thanks for the info and the Prompt response.😊
Dario Teodori
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!