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