def get_risk_per_unit(price, sl_price):
    """Returns the risk per unit as difference of the current price
    minus the stop loss price.

    Example:
    If the current price of the unit is 10$ and your stop loss price is
    set to 9$ the risk per unit is 1$

    :price: Current price you want to buy/sell.
    :sl_price: Stop loss pricel.
    :returns: Amount the buy/sell price can raise/fall per unit.
    """
    return abs(price - sl_price)
