Hi,

Say I have a pandas dataframe filled with stocks ohlcv data. Let's say it has a format similar to the format of a History() call. So, I can easily implement functions like GetActiveStocks(date) or GetOhlcvForStock(stock, date) which in my opinions should be everything the algorithm needs to make a backtest. 

How do I go about feeding my algorithm with this data? I would like it to be my Universe and source of daily ohlcv data passed to OnData.

I looked into the examples of custom data sources but they almost always use either urls to pull data or local csv files which is not a big help here.