def convert(amount, rate):
    return amount * rate

def spread(bid, ask):
    return ask - bid
