def get_o_pct(o):
        if o['give_asset'] == config.BTC:  # NB: fee_provided could be zero here
            pct_fee_provided = float((D(o['fee_provided_remaining']) / D(o['give_quantity'])))
        else:
            pct_fee_provided = None
        if o['get_asset'] == config.BTC:  # NB: fee_required could be zero here
            pct_fee_required = float((D(o['fee_required_remaining']) / D(o['get_quantity'])))
        else:
            pct_fee_required = None
        return pct_fee_provided, pct_fee_required