def get_order_book_buysell(buy_asset, sell_asset, pct_fee_provided=None, pct_fee_required=None):
    # DEPRECATED 1.5
    base_asset, quote_asset = util.assets_to_asset_pair(buy_asset, sell_asset)
    bid_book_min_pct_fee_provided = None
    bid_book_min_pct_fee_required = None
    bid_book_max_pct_fee_required = None
    ask_book_min_pct_fee_provided = None
    ask_book_min_pct_fee_required = None
    ask_book_max_pct_fee_required = None
    if base_asset == config.BTC:
        if buy_asset == config.BTC:
            # if BTC is base asset and we're buying it, we're buying the BASE. we require a BTC fee (we're on the bid (bottom) book and we want a lower price)
            # - show BASE buyers (bid book) that require a BTC fee >= what we require (our side of the book)
            # - show BASE sellers (ask book) that provide a BTC fee >= what we require
            bid_book_min_pct_fee_required = pct_fee_required  # my competition at the given fee required
            ask_book_min_pct_fee_provided = pct_fee_required
        elif sell_asset == config.BTC:
            # if BTC is base asset and we're selling it, we're selling the BASE. we provide a BTC fee (we're on the ask (top) book and we want a higher price)
            # - show BASE buyers (bid book) that provide a BTC fee >= what we provide
            # - show BASE sellers (ask book) that require a BTC fee <= what we provide (our side of the book)
            bid_book_max_pct_fee_required = pct_fee_provided
            ask_book_min_pct_fee_provided = pct_fee_provided  # my competition at the given fee provided
    elif quote_asset == config.BTC:
        assert base_asset == config.XCP  # only time when this is the case
        if buy_asset == config.BTC:
            # if BTC is quote asset and we're buying it, we're selling the BASE. we require a BTC fee (we're on the ask (top) book and we want a higher price)
            # - show BASE buyers (bid book) that provide a BTC fee >= what we require
            # - show BASE sellers (ask book) that require a BTC fee >= what we require (our side of the book)
            bid_book_min_pct_fee_provided = pct_fee_required
            ask_book_min_pct_fee_required = pct_fee_required  # my competition at the given fee required
        elif sell_asset == config.BTC:
            # if BTC is quote asset and we're selling it, we're buying the BASE. we provide a BTC fee (we're on the bid (bottom) book and we want a lower price)
            # - show BASE buyers (bid book) that provide a BTC fee >= what we provide (our side of the book)
            # - show BASE sellers (ask book) that require a BTC fee <= what we provide
            bid_book_min_pct_fee_provided = pct_fee_provided  # my compeitition at the given fee provided
            ask_book_max_pct_fee_required = pct_fee_provided

    result = _get_order_book(
        base_asset, quote_asset,
        bid_book_min_pct_fee_provided=bid_book_min_pct_fee_provided,
        bid_book_min_pct_fee_required=bid_book_min_pct_fee_required,
        bid_book_max_pct_fee_required=bid_book_max_pct_fee_required,
        ask_book_min_pct_fee_provided=ask_book_min_pct_fee_provided,
        ask_book_min_pct_fee_required=ask_book_min_pct_fee_required,
        ask_book_max_pct_fee_required=ask_book_max_pct_fee_required)

    # filter down raw_orders to be only open sell orders for what the caller is buying
    open_sell_orders = []
    for o in result['raw_orders']:
        if o['give_asset'] == buy_asset:
            open_sell_orders.append(o)
    result['raw_orders'] = open_sell_orders
    return result