Sentiment demos throw error on the _second_ day

Tried alexandria_demo and bloomberg_demo. Both run fine on the first day, but fail on the second day of the simulation with a puzzling error:

File "job/alexandria_demo.py", line 74, in on_start
    hours=sentiment_hours_prior))
  File "/var/jenkins_home/miniconda/conda-bld/tradesim_1509125774473/_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 221, in _do_not_allow_query_data
NotImplementedError: service.query_data may only be called from on_strategy_start and on_start

alexandria_demo submission hash: 8ace1b3190bda9f3844bdfd58e2e192e
bloomberg_demo submission hash: e12e25b90211bef61724507757fd74bf

It seems like despite what the error message says the function service.query_data can currently only be called from on_strategy_start but not from on_start.

Comments

Sign In or Register to comment.