Hi, 

A little stuck here. If I get the historical BTCUSD data in the research notebook using:

ticker_symbol = qb.AddCrypto("BTCUSD", Resolution.Hour).Symbol
df = qb.History(ticker_symbol, 100000, Resolution.Hour)

and then take an example datetime of 2020-02-06 09:00, the close price is 9622.62.

When I backtest using OnData with the code:

def Initialize(self):

.   BTC = self.AddCrypto("BTCUSD", Resolution.Hour)

def OnData(self, data):


    self.close = self.Securities["BTCUSD"].Close

    self.MarketOrder("BTCUSD", btcAmount)
    self.Debug(str(self.time))
    self.Debug('close: ' + str(self.close))

The console prints:

2020-02-06 09:00:00
close: 9747.95

Can anyone help me understand why this is the case?