Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Storing yesterday's closing 15min candle?

I'm looking at storing yesterday's closing 15min candle (OHLC values) but unsure on how to reference it given the get_datetime() method.
Would anyone have any ideas?

 context.prices = data.history(sec,'price', 10000 , '1m').resample('15T',  closed='right', label='right') .last().dropna()  
yesterday_close = ???  
context.prices[yesterday_close]