is service.query_data still the correct way to load sentiment data?

i am getting the following error when trying to load sentiment data in the on_start function:
` data = service.query_data(self.sources['SM_TW'],
File "/var/jenkins_home/miniconda/conda-bld/tradesim_1545674706232/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python2.7/site-packages/tradesim/service.py", line 392, in getattribute
AttributeError: 'Service' has no attribute 'query_data'

Comments

  • ptunneyptunney Posts: 246

    Your error seems to suggest that "service" has no attribute "query_data".
    I just ran the Public Script under Sentiment called Stocktwits_plus_History, it has the same callback in that demo script and it ran without any issue.
    Give it another try or try the demo script.

  • I encountered the same issue. It works well when you do not choose "enable fast simulation".

  • @pp794378 said:
    I encountered the same issue. It works well when you do not choose "enable fast simulation".

    Bingo! Will have to find a workaround for that.

  • ptunneyptunney Posts: 246

    Ha, yes, fast simulation is basically "CloudQuant Lite", the version new user's get access to, and so has a limited feature set so be aware when you have that box checked!

Sign In or Register to comment.