def METHOD_NAME(minimum, maximum) -> float:
    if maximum == minimum:
        ## no trade possible
        return maximum
    if minimum > 0:
        return minimum
    if maximum < 0:
        return maximum
    return 0.0