Hi, I'm new to Quantconnect.

Using the Boot camp in the Buy and Hold -> Accessing Quote Prices excercise even if I cut and past the solution the exericise fails. Any idea why?

 

class BootCampTask(QCAlgorithm):

    def Initialize(self):

        self.SetCash(100000)
        self.SetStartDate(2017, 5, 1)
        self.SetEndDate(2017, 5, 31)
        # add forex data
        self.AddForex("EURUSD", Resolution.Hour, Market.Oanda)
        # set brokerage model
        self.SetBrokerageModel(BrokerageName.OandaBrokerage)

    def OnData(self, data):
        if self.Time.day == 1 and self.Time.hour == 10:
            self.Debug(str(data["EURUSD"].Ask.Close))
            

Author