public static OrderBook adaptOrderBook ( CryptonitOrderBook cryptonitOrderBook , CurrencyPair currencyPair ) { List < LimitOrder > asks = createOrders ( currencyPair , OrderType . ASK , cryptonitOrderBook . getAsks ( ) ) ; List < LimitOrder > bids = createOrders ( currencyPair , OrderType . BID , cryptonitOrderBook . getBids ( ) ) ; return new OrderBook ( cryptonitOrderBook . getTimestamp ( ) , asks , bids ) ; }
Adapts a org . knowm . xchange . cryptonit2 . api . model . OrderBook to a OrderBook Object