Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Getting incorrect values from before_trading_start()

When I access previous day's close price values from before_trading_start(), it gives me the value of close price but as it was at the open of the previous day. Could someone please guide me what am I doing wrong here?
For example the log output for 2015-01-06, gives me the close price for 2015-01-05 as "2015-01-05 14:31:00+00:00 103.62" , which is incorrect as the time suggests, the same value as taken from log output for 2015-01-07 is "2015-01-05 21:00:00+00:00 103.87", which is the correct value. I can't figure out why it is working like this.

Thanks