Skip to content

Commit

Permalink
[Fix] 修复遍历期权对象列表错误
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Apr 23, 2022
1 parent daa8c54 commit a75735e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vnpy_optionmaster/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def set_inverse(self, inverse: bool) -> None:

def set_portfolio(self, portfolio: "PortfolioData") -> None:
""""""
for option in self.options:
for option in self.options.values():
option.set_portfolio(portfolio)

def calculate_atm_price(self) -> None:
Expand Down

0 comments on commit a75735e

Please sign in to comment.