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]