public static Ticker adaptTicker ( BitbayTicker bitbayTicker , CurrencyPair currencyPair ) { BigDecimal ask = bitbayTicker . getAsk ( ) ; BigDecimal bid = bitbayTicker . getBid ( ) ; BigDecimal high = bitbayTicker . getMax ( ) ; BigDecimal low = bitbayTicker . getMin ( ) ; BigDecimal volume = bitbayTicker . getVolume ( ) ; BigDecimal last = bitbayTicker . getLast ( ) ; return new Ticker . Builder ( ) . currencyPair ( currencyPair ) . last ( last ) . bid ( bid ) . ask ( ask ) . high ( high ) . low ( low ) . volume ( volume ) . build ( ) ; }
Adapts a BitbayTicker to a Ticker Object