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
if(_stopOrderTicket!=null&&orderEvent.OrderId==_stopOrderTicket.OrderId&&!orderEvent.Message.Contains("Brokerage failed to update order"))
88
88
{
89
89
thrownewRegressionTestException($"Order {_stopOrderTicket.OrderId} with symbol {_stopOrderTicket.Symbol} should have been invalid due to insufficient margin after the update, but its current status is {_stopOrderTicket.Status}.");
90
90
}
91
91
92
92
// Check if limit order is invalid due to insufficient margin after update
if(_limitOrderTicket!=null&&orderEvent.Id==_limitOrderTicket.OrderId&&!orderEvent.Message.Contains("Brokerage failed to update order"))
94
94
{
95
95
thrownewRegressionTestException($"Order {_limitOrderTicket.OrderId} with symbol {_limitOrderTicket.Symbol} should have been invalid due to insufficient margin after the update, but its current status is {_limitOrderTicket.Status}.");
96
96
}
97
97
98
98
// Check if trailing stop order is invalid due to insufficient margin after update
if(_trailingStopOrderTicket!=null&&orderEvent.Id==_trailingStopOrderTicket.OrderId&&!orderEvent.Message.Contains("Brokerage failed to update order"))
100
100
{
101
101
thrownewRegressionTestException($"Order {_trailingStopOrderTicket.OrderId} with symbol {_trailingStopOrderTicket.Symbol} should have been invalid due to insufficient margin after the update, but its current status is {_trailingStopOrderTicket.Status}.");
:$"Order Error: id: {order.Id.ToStringInvariant()}, Symbol: {order.Symbol.Value}, Insufficient buying power to complete order, Reason: {hasSufficientBuyingPowerResult.Reason}.";
1078
+
:$"Brokerage failed to update order with id: {order.Id.ToStringInvariant()}, Symbol: {order.Symbol.Value}, Insufficient buying power to complete order, Reason: {hasSufficientBuyingPowerResult.Reason}.";
0 commit comments