2022-04-11 13:35:16,598 - Admin logged in
Traceback (most recent call last):
File "D:/pythonProject/tbproject/getdata.py", line 78, in <module>
UpdateFutureData()
File "D:/pythonProject/tbproject/getdata.py", line 56, in UpdateFutureData
ifBars = tbpy.get_history(symbols, freq, begintime, endtime, flag=tbpy.QuoteFlag.RolloverBackWard , fields=None, timeout='30s')
File "D:\ProgramData\Anaconda3\lib\site-packages\tbpy\__init__.py", line 25, in get_history
return tbpy.get_history(symbol, frequency, begin_time, end_time, flag, fields, timeout)
Boost.Python.ArgumentError: Python argument types in
tbpy.tbpy.get_history(tuple, str, datetime.datetime, datetime.datetime, QuoteFlag, NoneType, str)
did not match C++ signature:
get_history(class boost::python::list symbol, class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > frequency, class boost::python::api::object begin_time, class boost::python::api::object end_time, int flag=tbpy.tbpy.QuoteFlag.Null, class boost::python::api::object fields=None, class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > timeout='30s')
get_history(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > symbol, class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > frequency, class boost::python::api::object begin_time, class boost::python::api::object end_time, int flag=tbpy.tbpy.QuoteFlag.Null, class boost::python::api::object fields=None, class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > timeout='30s')
找到问题了,传入参数错误了。抱歉打扰了。