public static Ticker adaptTicker ( BitMarketTicker bitMarketTicker , CurrencyPair currencyPair ) { BigDecimal bid = bitMarketTicker . getBid ( ) ; BigDecimal ask = bitMarketTicker . getAsk ( ) ; BigDecimal high = bitMarketTicker . getHigh ( ) ; BigDecimal low = bitMarketTicker . getLow ( ) ; BigDecimal volume = bitMarketTicker . getVolume ( ) ; BigDecimal vwap = bitMarketTicker . getVwap ( ) ; BigDecimal last = bitMarketTicker . getLast ( ) ; return new Ticker . Builder ( ) . currencyPair ( currencyPair ) . last ( last ) . bid ( bid ) . ask ( ask ) . high ( high ) . low ( low ) . volume ( volume ) . vwap ( vwap ) . build ( ) ; }
Adapts BitMarket ticker to Ticker .