Skip to content

Commit 5ddcf12

Browse files
committed
Remove order event logging in BasicTemplateFuturesAlgorithm
Regression run time is now about 50% less
1 parent 206d3be commit 5ddcf12

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

‎Algorithm.CSharp/BasicTemplateFuturesAlgorithm.cs‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,6 @@ select futuresContract
9292
}
9393
}
9494

95-
/// <summary>
96-
/// Order fill event handler. On an order fill update the resulting information is passed to this method.
97-
/// </summary>
98-
/// <param name="orderEvent">Order event details containing details of the evemts</param>
99-
/// <remarks>This method can be called asynchronously and so should only be used by seasoned C# experts. Ensure you use proper locks on thread-unsafe objects</remarks>
100-
public override void OnOrderEvent(OrderEvent orderEvent)
101-
{
102-
Log(orderEvent.ToString());
103-
}
104-
10595
/// <summary>
10696
/// This is used by the regression test system to indicate if the open source Lean repository has the required data to run this algorithm.
10797
/// </summary>

‎Algorithm.Python/BasicTemplateFuturesAlgorithm.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,3 @@ def OnData(self,slice):
6060
self.MarketOrder(front.Symbol , 1)
6161
else:
6262
self.Liquidate()
63-
64-
65-
def OnOrderEvent(self, orderEvent):
66-
self.Log(str(orderEvent))

0 commit comments

Comments
 (0)