I'm not sure if I'm using the fetcher wrong or I'm not accessing the data correctly, any suggestions?
I'm not sure if I'm using the fetcher wrong or I'm not accessing the data correctly, any suggestions?
In the initialize method, "add a stock" to trigger method handle_data, for example:
set_benchmark(symbol('SPY'))
or
context.stock = symbol('SPY')
Thanks that seemed to work, do you know how to access specific dates from the file? It doesn't seem to be responding like a pandas usually does. For example how would I get the value from JAN 1 2015?
Take a look at the examples provided here.
I also do this same thing, for the VIX (and other volatility indices), my solution is here: https://www.quantopian.com/posts/function-like-history-but-for-fetch-csv-data