Skip to content

Commit 40def51

Browse files
committed
Add python to regression test languages. Remove code with no effects from CustomModelsAlgorithm.py
1 parent ad06996 commit 40def51

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

Algorithm.CSharp/CustomModelsAlgorithm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public decimal GetSlippageApproximation(Security asset, Order order)
163163
/// <summary>
164164
/// This is used by the regression test system to indicate which languages this algorithm is written in.
165165
/// </summary>
166-
public Language[] Languages { get; } = { Language.CSharp };
166+
public Language[] Languages { get; } = { Language.CSharp, Language.Python };
167167

168168
/// <summary>
169169
/// This is used by the regression test system to indicate what the expected statistics are from running the algorithm

Algorithm.Python/CustomModelsAlgorithm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ def MarketFill(self, asset, order):
7878

7979
if order.Id in self.absoluteRemainingByOrderId.keys():
8080
absoluteRemaining = self.absoluteRemainingByOrderId[order.Id]
81-
self.absoluteRemainingByOrderId[order.Id] = order.AbsoluteQuantity
8281

8382
fill = super().MarketFill(asset, order)
8483
absoluteFillQuantity = int(min(absoluteRemaining, self.random.Next(0, 2*int(order.AbsoluteQuantity))))

0 commit comments

Comments
 (0)