Exemplo n.º 1
0
    def start(self, block=True):
        TradeService.start(self)
        ExternalAppConnectionAdapter().init().start()
        PropAppConnectionAdapter().init().start()

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