class BackTesterThread(Thread): """ This thread will retrieve info from the store and it will broadcast it to all trading engines. Trading Center must ignore this since is not realtime """ def __init__(self, session, pubsub): Thread.__init__(self) self.backtester = BackTester(session, pubsub) def run(self): while True: self.backtester.consume()
def __init__(self, session, pubsub): Thread.__init__(self) self.backtester = BackTester(session, pubsub)