public static Ticker adaptTicker ( KoineksTicker koineksTicker , CurrencyPair currencyPair ) { switch ( currencyPair . base . getCurrencyCode ( ) ) { case KoineksCurrency . BTC : return getTickerOf ( koineksTicker . getKoineksBTCTicker ( ) , currencyPair . base ) ; case KoineksCurrency . ETH : return getTickerOf ( koineksTicker . getKoineksETHTicker ( ) , currencyPair . base ) ; case KoineksCurrency . LTC : return getTickerOf ( koineksTicker . getKoineksLTCTicker ( ) , currencyPair . base ) ; case KoineksCurrency . DASH : return getTickerOf ( koineksTicker . getKoineksDASHTicker ( ) , currencyPair . base ) ; case KoineksCurrency . DOGE : return getTickerOf ( koineksTicker . getKoineksDOGETicker ( ) , currencyPair . base ) ; default : throw new NotAvailableFromExchangeException ( ) ; } }
Adapts a KoineksTicker to a Ticker Object