Remove semicolons from Python statements
This commit is contained in:
@@ -117,7 +117,7 @@ class UpdateOrderRegressionAlgorithm(QCAlgorithm):
|
||||
|
||||
def OnOrderEvent(self, orderEvent):
|
||||
order = self.Transactions.GetOrderById(orderEvent.OrderId)
|
||||
ticket = self.Transactions.GetOrderTicket(orderEvent.OrderId);
|
||||
ticket = self.Transactions.GetOrderTicket(orderEvent.OrderId)
|
||||
|
||||
#order cancelations update CanceledTime
|
||||
if order.Status == OrderStatus.Canceled and order.CanceledTime != orderEvent.UtcTime:
|
||||
@@ -129,7 +129,7 @@ class UpdateOrderRegressionAlgorithm(QCAlgorithm):
|
||||
|
||||
# check the ticket to see if the update was successfully processed
|
||||
if len([ur for ur in ticket.UpdateRequests if ur.Response is not None and ur.Response.IsSuccess]) > 0 and order.CreatedTime != self.UtcTime and order.LastUpdateTime is None:
|
||||
raise ValueError("Expected updated order LastUpdateTime to equal submitted update order event time");
|
||||
raise ValueError("Expected updated order LastUpdateTime to equal submitted update order event time")
|
||||
|
||||
if orderEvent.Status == OrderStatus.Filled:
|
||||
self.Log("FILLED:: {0} FILL PRICE:: {1}".format(self.Transactions.GetOrderById(orderEvent.OrderId), orderEvent.FillPrice))
|
||||
|
||||
Reference in New Issue
Block a user