郭易燔 wrote:
BarData会自动调用自己的post_init函数,然后会去调用exchange.value,但是你传进去的exchange是个字符串类型的,没有value所以报错,
你前面from vnpy.trader.constant import Exchange,然后传入时用Exchange(row.exchange)试一下
看到您的回复瞬间找到问题了,我直接用了insert字符串了,后来发现Exchage是有value的,非常感谢
请教各位大佬,报错AttributeError: 'str' object has no attribute 'value',找了两个小时不知道问题出在哪,从表面上看,DataFrame没啥问题啊