def get_co2_market_clearing_price(db_emlab_marketclearingpoints, current_emlab_tick):
    """
    This function retrieves the Market Clearing Price for the CO2Auction

    :param db_emlab_marketclearingpoints: Queried from SpineDB EMLab
    :param current_emlab_tick: int
    :return: The market clearing price (float)
    """
    print('Loading CO2 MarketClearingPrice...')
    mcp_object = next(row['object_name'] for row in db_emlab_marketclearingpoints if
                      row['parameter_name'] == 'Market' and row['parameter_value'] == 'CO2Auction' and row[
                          'alternative'] == str(current_emlab_tick))
    mcp = next(row['parameter_value'] for row in db_emlab_marketclearingpoints if
               row['object_name'] == mcp_object and row['parameter_name'] == 'Price')
    print('Price found: ' + str(mcp))
    return mcp