I am trying to get the OHLC from the previous bar. I understand how the history method works but it seems in order to pull the data I want I would need to run history() 4 times, once for each the O,H,L, and C.
Is this the only way to get yesterdays data or am I missing something here?