VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 1
声望: 0

PS D:\vnpy\examples\veighna_trader> python run.py
Traceback (most recent call last):
File "D:\temp\1\vnpy\examples\veighna_trader\run.py", line 31, in <module>
from vnpy_optionmaster import OptionMasterApp
File "D:\anaconda3\envs\vnpy\lib\site-packages\vnpy_optionmaster__init__.py", line 26, in <module>
from .engine import OptionEngine, APP_NAME
File "D:\anaconda3\envs\vnpy\lib\site-packages\vnpy_optionmaster\engine.py", line 22, in <module>
from .base import (
File "D:\anaconda3\envs\vnpy\lib\site-packages\vnpy_optionmaster\base.py", line 13, in <module>
from .time import calculate_days_to_expiry, ANNUAL_DAYS
File "D:\anaconda3\envs\vnpy\lib\site-packages\vnpy_optionmaster\time.py", line 9, in <module>
holidays: list = [x.to_pydatetime() for x in cn_calendar.precomputed_holidays]
TypeError: 'method' object is not iterable

Member
avatar
加入于:
帖子: 449
声望: 23

这是因为exchange_calendars库升级导致的,可以手动将这行修改下:

x.to_pydatetime() for x in cn_calendar.precomputed_holidays()
© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】