Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Using data.history on Fetcher columns fails, but using data.current succeeds

Hi,
As mentioned in the docs, Fetcher columns may be used as the fields argument of data.history.

This code: data.current(stock, "max") is working as intended in my algorithm, but this code: data.history(stock, "max", 3, "1d") fails with ValueError: Invalid field: max. Anyone know how I can use data.history with Fetcher column names?

1 response

i believe you need "high"
" Possible fields include 'price', 'open', 'high', 'low', 'close' and 'volume'. Possible frequencies are '1d' for daily and '1m' for minutely" based on the API reference below

https://www.quantopian.com/tutorials/futures-getting-started#lesson9