public static OrderBook adaptOrderBook ( MercadoBitcoinOrderBook mercadoBitcoinOrderBook , CurrencyPair currencyPair ) { List < LimitOrder > asks = createOrders ( currencyPair , OrderType . ASK , mercadoBitcoinOrderBook . getAsks ( ) ) ; List < LimitOrder > bids = createOrders ( currencyPair , OrderType . BID , mercadoBitcoinOrderBook . getBids ( ) ) ; return new OrderBook ( null , asks , bids ) ; }
Adapts a org . knowm . xchange . mercadobitcoin . dto . marketdata . OrderBook to a OrderBook Object