Exemple #1
0
    def start(self, block=True):
        TradeService.start(self)
        ExternalAppConnectionAdapter().init().start()
        PropAppConnectionAdapter().init().start()

        self.queryOuterBoxList()
        self.queryInnerBoxList()
Exemple #2
0
 def __init__(self, name):
     TradeService.__init__(self, name)
     self.logger = instance.getLogger()
     self.servers = {}
     self.command_controllers = {}
     self.outerbox_list = {}  # id:ip
     self.innerbox_list = {}  # ip:{doorid,ip}
Exemple #3
0
    def __init__(self, name):
        TradeService.__init__(self, name)

        self.active = False  # 工作状态
        self.queue = Queue()  # 队列
        # self.thread = Thread(target=self.threadDataFanout)  # 线程
        self.ee = None
        self.mainEngine = None
        self.logger = instance.getLogger()
        self.symbols = {}  # 已经订阅的合约
        self.contracts = OrderedDict()
        self.ticks_counter = 0
        self.ticks_samples = []
        self.tick_filters = []
Exemple #4
0
 def stop(self):
     TradeService.stop(self)
Exemple #5
0
 def start(self,block=True):
     TradeService.start(self)
     CheckProcessController().init().start()
Exemple #6
0
 def __init__(self,name):
     TradeService.__init__(self,name)
     self.logger = instance.getLogger()
     self.servers = {}
     self.command_controllers ={}
Exemple #7
0
 def syncDownServiceConfig(self):
     TradeService.syncDownServiceConfig(self)
Exemple #8
0
 def join(self):
     # self.thread.join()
     TradeService.join(self)
     pass
Exemple #9
0
 def initCommandChannels(self):
     TradeService.initCommandChannels(self)
Exemple #10
0
 def stop(self):
     TradeService.stop(self)
     ExternalAppConnectionAdapter().stop()
     PropAppConnectionAdapter().stop()