Hi, I'm trying to use ObjectStore to save order fill data. I want to read it in my OnData function to use the data in my buy rules. Is there a way to do this? I'd like it to work like this:

class CalculatingBlackManatee(QCAlgorithm):

     def Initialize(self):

     def OnData(self, data):


     def OnOrderEvent(self, orderEvent):


Or to be able to store and recall the data outside the functions so that data from all the functions could be stored or used by all the functions.

My goal is to save/recall/delete certain data so that I can use past variables etc. but right now I'm only able to recall the data under the function that I saved it under.