예제 #1
0
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()
예제 #2
0
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()
예제 #3
0
 def __init__(self, session, pubsub):
     Thread.__init__(self)
     self.backtester = BackTester(session, pubsub)
예제 #4
0
 def __init__(self, session, pubsub):
     Thread.__init__(self)
     self.backtester = BackTester(session, pubsub)