Skip to content

Commit eca2e0c

Browse files
authored
Update 20 Order Response Error Reference.php
1 parent 57800d5 commit eca2e0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

03 Writing Algorithms/22 Trading and Orders/10 Order Errors/20 Order Response Error Reference.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@
120120
{
121121
ExerciseOption(_contractSymbol, Math.Max(holdingQuantity, exerciseQuantity));
122122
}</pre>
123-
<pre class="python">holding_quantity = self.Portfolio[self.contract_symbol].Quantity
123+
<pre class="python">holding_quantity = self.portfolio[self._contract_symbol].quantity
124124
if holding_quantity > 0:
125-
self.ExerciseOption(self.contract_symbol, max(holding_quantity, exercise_quantity))</pre>
125+
self.exercise_option(self._contract_symbol, max(holding_quantity, exercise_quantity))</pre>
126126
</div>
127127

128128

0 commit comments

Comments
 (0)