def onTrade(self, trade):
    '成交信息推送'
    event1 = Event(type_=EVENT_TRADE)
    event1.dict_['data'] = trade
    self.eventEngine.put(event1)
    event2 = Event(type_=(EVENT_TRADE + trade.vtSymbol))
    event2.dict_['data'] = trade
    self.eventEngine.put(event2)
成交信息推送
def onTrade(self, trade):
    
    event1 = Event(type_=EVENT_TRADE)
    event1.dict_['data'] = trade
    self.eventEngine.put(event1)
    event2 = Event(type_=(EVENT_TRADE + trade.vtSymbol))
    event2.dict_['data'] = trade
    self.eventEngine.put(event2)