quantOS-org / JAQS

http://www.quantos.org/jaqs/
Other
619 stars 343 forks source link

Python3.7 Wrong security Error #60

Open songdragon opened 5 years ago

songdragon commented 5 years ago

As shown in following log, "wrong security" error is raised when query data in python 3.7 on Mac OS. This issue can be reporduced by running first_example.py.

Initialize config success. Query data... Query data - query... NOTE: price adjust method is [post adjust] Traceback (most recent call last): File "first_example.py", line 144, in save_data() File "first_example.py", line 63, in save_data dv.prepare_data() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/jaqs/data/dataview.py", line 497, in prepare_data data_d, data_q = self._prepare_daily_quarterly(self.fields) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/jaqs/data/dataview.py", line 550, in _prepare_daily_quarterly daily_list, quarterly_list = self._query_data(self.symbol, fields) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/jaqs/data/dataview.py", line 609, in _query_data adjust_mode=None, fields=sep.join(fields_market_daily), limit=100000) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/jaqs/data/dataview.py", line 490, in distributed_query **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/jaqs/data/dataservice.py", line 391, in daily self._raise_error_if_msg(err_msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/jaqs/data/dataservice.py", line 346, in _raise_error_if_msg raise QueryDataError(err_msg) jaqs.data.dataservice.QueryDataError: -1,wrong security

li-yong commented 5 years ago

JAQS 已经死了吗?

songdragon commented 5 years ago

JAQS 已经死了吗?

感觉像是,一直没有人回答。从异常看,是JAQS服务器端出问题了。

zonnin commented 5 years ago

股票代码有问题,换另一个股票代码就可以了