@staticmethod
def format_as_price_amount(list_data):
    """
        transfer list<DepthEntry> as list<{price:amount}> for data search and merge
        :param list_data:
        :return:
        """
    price_amount_dict = {}
    if list_data and len(list_data):
        for row in list_data:
            price_amount_dict[row.price] = row.amount
    return price_amount_dict
