Skip to content

Python3.7 Wrong security Error #60

@songdragon

Description

@songdragon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions