Exemplo n.º 1
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.º 2
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.º 3
0
 def __init__(self,name):
     TradeService.__init__(self,name)
     self.logger = instance.getLogger()
     self.servers = {}
     self.command_controllers ={}