You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024-11-27T14:30:00.6864126Z TRACE:: BrokerageTransactionHandler.Process(): 11/27/2024 14:30:00 UTC: Submit Order: (51) - OrderId: 51 (BrokerId: ) New Market order for -1 units of MNQ YOGVNNAOI1OH Status: Unprocessed
Rejected by IB at 14:30:01Z
2024-11-27T14:30:01.0118024Z TRACE:: LiveTradingResultHandler.OrderEvent(): Time: 11/27/2024 14:30:01 OrderID: 51 EventID: 2 Symbol: MNQ20Z24 Status: Invalid Quantity: -1 Message: 201 - Order rejected - reason:The Available Funds in your Commodities segment are insufficient to cover the change in the margin requirements in your Commodities segment should this order execute. In order to obtain the desired position, your Commodities Net Liquidation Value [2673.60 USD] must exceed the new total initial Margin of [4348.07 USD].. Origin: [Id=52] IBPlaceOrder: MNQ20Z24 (FUT MNQ USD CME 20241220 0 ) BrokerId: 52
By then, IB tell us there is an open short position.
Expected Behavior
The algorithm state matches the IB portfolio,
Actual Behavior
We have observed the following case:
No positions at 5:21Z:
Sell 1 unit at 14:30:00Z
Rejected by IB at 14:30:01Z
By then, IB tell us there is an open short position.
At 16:45, we place an order to open a long position:
which closes the position:
We should see the mismatch that occurred at 2024-11-27T14:30:01.5744480Z.
Potential Solution
Check HandlePortfolioUpdates for inconsistencies. Exit the algorithm.
Reproducing the Problem
Underterminitic. Bug on IB side.
Checklist
master
branchThe text was updated successfully, but these errors were encountered: