public static OrderBook adaptOrderBook ( BitcoindeOrderbookWrapper bitcoindeOrderbookWrapper , CurrencyPair currencyPair ) { // System.out.println("bitcoindeOrderbookWrapper = " + // bitcoindeOrderbookWrapper); // System.out.println("credits = " + bitcoindeOrderbookWrapper.getCredits()); List < LimitOrder > asks = createOrders ( currencyPair , Order . OrderType . ASK , bitcoindeOrderbookWrapper . getBitcoindeOrders ( ) . getAsks ( ) ) ; List < LimitOrder > bids = createOrders ( currencyPair , Order . OrderType . BID , bitcoindeOrderbookWrapper . getBitcoindeOrders ( ) . getBids ( ) ) ; Collections . sort ( bids , BID_COMPARATOR ) ; Collections . sort ( asks , ASK_COMPARATOR ) ; return new OrderBook ( null , asks , bids ) ; }
Adapt a org . knowm . xchange . bitcoinde . dto . marketdata . BitcoindeOrderBook object to an OrderBook object .