Anyone else having an issue with interactive brokers today? I have two live accounts with them running two algos. Both are showing about a 5% discrepancy in what quantconnect reports as the account equity vs what IB is showing is my net liquidation value. I've never seen this happen in 3 years of running a live algo on here. Happened overnight last night. I run an algo that trades ETFs and futures contracts. Comparing the trades on the orders on quantconnect with those on IB show the exact same trade log. Then I had an order error below. I reached out to IB and they said “it happens momentarily if there is big change in account values” and that it triggers their risk team. Anyone else seen something like this?
Live Handled Error: Brokerage Warning: Order rejected - reason:Not allowed to open new positions at the moment because account valuation may be incorrect. Please call Trade <br>Desk and request a review of the BigMarginChange.. Origin: [Id=74] IBPlaceOrder: NQ20M25 (FUT NQ USD CME 20250620 0 )
Mia Alissi
Here’s an example you (and 'David') can use in your QuantConnect live algorithm to log and alert when you get brokerage errors or margin/account valuation warnings like the one from Interactive Brokers. This will help you monitor for, and react to, “account valuation may be incorrect” or similar margin lock messages. You can add your email to be notified right away when QC receives these from IB:
What this does:
self.notify.email
with yours.Additional recommendations:
Let me know if you need sample code for automated account reconciliation or for gathering/saving these logs for QuantConnect support.
Sources: Brokerages - QuantConnect.com, Brokerage Activity Event Handling Algorithm, Notifications - QuantConnect.com, docs writing algorithms reality modeling brokerage message handler, Live Features Algorithm
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.
David E
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!