public static Ticker adaptTicker ( CryptopiaTicker cryptopiaTicker , CurrencyPair currencyPair ) { return new Ticker . Builder ( ) . currencyPair ( currencyPair ) . last ( cryptopiaTicker . getLast ( ) ) . bid ( cryptopiaTicker . getBid ( ) ) . ask ( cryptopiaTicker . getAsk ( ) ) . high ( cryptopiaTicker . getHigh ( ) ) . low ( cryptopiaTicker . getLow ( ) ) . volume ( cryptopiaTicker . getVolume ( ) ) . timestamp ( new Date ( ) ) . build ( ) ; }
Adapts a CryptopiaTicker to a Ticker Object