from datetime import datetime


def unpack_sale(sale_object: dict, num_sales: int):
    """
    Unpacks sale object for the relevant information
    :param sale_object: dict with sale information
    :param num_sales: number of sales of the relevant item
    :return: dict with processed information
    """
    timestamp = sale_object['transaction']['timestamp']
    timestamp = datetime.fromisoformat(timestamp)
    year, month, day = timestamp.year, timestamp.month, timestamp.day
    wei = float(sale_object['total_price'])
    ether = wei / (10 ** 18)
    return {'num_sales': num_sales, 'price': ether, 'date_year': year, 'date_month': month, 'date_day': day}