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

qt.qpa.fonts: Populating font family aliases took 77 ms. Replace uses of missing font family "微软雅黑" with one that exists to avoid this cost.
2023-02-12 18:08:29.750 python[14653:285221] TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhibit
Traceback (most recent call last):
File "/opt/homebrew/anaconda3/envs/toberich/lib/python3.9/site-packages/vnpy_portfoliostrategy/ui/widget.py", line 140, in add_strategy
self.strategy_engine.add_strategy(
File "/opt/homebrew/anaconda3/envs/toberich/lib/python3.9/site-packages/vnpy_portfoliostrategy/engine.py", line 344, in add_strategy
strategy: StrategyTemplate = strategy_class(self, strategy_name, vt_symbols, setting)
File "/opt/homebrew/anaconda3/envs/toberich/lib/python3.9/site-packages/vnpy_portfoliostrategy/strategies/pair_trading_strategy.py", line 66, in init
self.leg1_symbol, self.leg2_symbol = vt_symbols
ValueError: not enough values to unpack (expected 2, got 1)

Member
avatar
加入于:
帖子: 1471
声望: 105

合约代码应该是这个格式:

IF2303.CFFEX
rb2305.SHFE

等等

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

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