def onRspQryInvestorPosition(self, data, last):
        """持仓查询回报"""

        if data['InstrumentID']:
            order_book_id = make_order_book_id(data['InstrumentID'])
            if order_book_id not in self.pos_cache:
                self.pos_cache[order_book_id] = PositionDict(data, self.gateway.get_ins_dict(order_book_id))
            else:
                self.pos_cache[order_book_id].update_data(data)

        if last:
            return self.pos_cache