为什么订阅周、日、小时K线都正常,而订阅月K线时就会提示超时及网络错误?
klinesM = api.get_kline_serial(SYMBOL,30*24*60*60,data_length=i) # 30日
File “D:\Python313\Lib\site-packages\tqsdk\utils.py”, line 220, in wrapper
return f(self, *args, **kwargs)
File “D:\Python313\Lib\site-packages\tqsdk\api.py”, line 749, in get_kline_serial
raise TqTimeoutError(“获取 %s (%d) 的K线超时,请检查客户端及网络是否正常” % (symbol, duration_seconds))
tqsdk.exceptions.TqTimeoutError: 获取 [‘INE.ec2504’] (2592000) 的K线超时,请检查客户端及网络是否正常
Task was destroyed but it is pending!