def start(self, block=True): TradeService.start(self) ExternalAppConnectionAdapter().init().start() PropAppConnectionAdapter().init().start() self.queryOuterBoxList() self.queryInnerBoxList()
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}
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 = []
def stop(self): TradeService.stop(self)
def start(self,block=True): TradeService.start(self) CheckProcessController().init().start()
def __init__(self,name): TradeService.__init__(self,name) self.logger = instance.getLogger() self.servers = {} self.command_controllers ={}
def syncDownServiceConfig(self): TradeService.syncDownServiceConfig(self)
def join(self): # self.thread.join() TradeService.join(self) pass
def initCommandChannels(self): TradeService.initCommandChannels(self)
def stop(self): TradeService.stop(self) ExternalAppConnectionAdapter().stop() PropAppConnectionAdapter().stop()