def onPosition(self, position):
    '持仓信息推送'
    event1 = Event(type_=EVENT_POSITION)
    event1.dict_['data'] = position
    self.eventEngine.put(event1)
    event2 = Event(type_=(EVENT_POSITION + position.vtSymbol))
    event2.dict_['data'] = position
    self.eventEngine.put(event2)
持仓信息推送
def onPosition(self, position):
    
    event1 = Event(type_=EVENT_POSITION)
    event1.dict_['data'] = position
    self.eventEngine.put(event1)
    event2 = Event(type_=(EVENT_POSITION + position.vtSymbol))
    event2.dict_['data'] = position
    self.eventEngine.put(event2)