import math


def exponential_price_impact(fraction_sold, param):
    """
    exponential price impact as described in Cont Schaanning 2017 equation 30
    https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2541114
    """
    return math.exp(-fraction_sold * param)