Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
help with deprecated warnings while selling insurance against a crash

thanks

1 response

If you'd like to get the prior day's close price you'll want to use the data.history() method with "1d" as the frequency parameter. The most recent bar in the returned data structure is the same value returned by data.current, the other bars are the close prices from previous days.

The logs in this algo should help clarify what's going on.