fix a typo, and remove all unnecessary semicolumns in Python (#5795)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled

This commit is contained in:
Marco Grassi
2021-07-28 03:05:13 +08:00
committed by GitHub
parent 4469d18eb6
commit e823dfdfb7
51 changed files with 143 additions and 143 deletions
@@ -48,12 +48,12 @@ class AddOptionContractExpiresRegressionAlgorithm(QCAlgorithm):
option = next((option for option in options if option.ID.Date == self._expiration and option.ID.OptionRight == OptionRight.Call and option.ID.OptionStyle == OptionStyle.American), None)
if option != None:
self._option = self.AddOptionContract(option).Symbol;
self._option = self.AddOptionContract(option).Symbol
if self._option != None and self.Securities[self._option].Price != 0 and not self._traded:
self._traded = True;
self.Buy(self._option, 1);
self._traded = True
self.Buy(self._option, 1)
if self.Time > self._expiration and self.Securities[self._twx].Invested:
# we liquidate the option exercised position
self.Liquidate(self._twx);
self.Liquidate(self._twx)