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

        self.queryOuterBoxList()
        self.queryInnerBoxList()
示例#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}
示例#3
0
文件: main.py 项目: liguifan/Tibet
    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 = []
示例#4
0
 def stop(self):
     TradeService.stop(self)
示例#5
0
 def start(self,block=True):
     TradeService.start(self)
     CheckProcessController().init().start()
示例#6
0
 def __init__(self,name):
     TradeService.__init__(self,name)
     self.logger = instance.getLogger()
     self.servers = {}
     self.command_controllers ={}
示例#7
0
 def syncDownServiceConfig(self):
     TradeService.syncDownServiceConfig(self)
示例#8
0
文件: main.py 项目: liguifan/Tibet
 def join(self):
     # self.thread.join()
     TradeService.join(self)
     pass
示例#9
0
文件: main.py 项目: adoggie/BlueEarth
 def initCommandChannels(self):
     TradeService.initCommandChannels(self)
示例#10
0
 def stop(self):
     TradeService.stop(self)
     ExternalAppConnectionAdapter().stop()
     PropAppConnectionAdapter().stop()