Hello,

I am very new to QuantConnect and have basic question.

How do I get for example previous high of traded stock?

I tried something like this:

def Rebalance(self): history = self.History("SPY",2, Resolution.Daily) history.loc["SPY"]['high'][0]

That works in Research but not in API.

What is correct way?

Thank you,

Peter

Author