@ Override public Ticker getTicker ( CurrencyPair currencyPair , Object ... args ) throws IOException { String marketName = DSXAdapters . currencyPairToMarketName ( currencyPair ) ; String accountType = null ; try { if ( args != null ) { accountType = ( String ) args [ 0 ] ; } } catch ( ArrayIndexOutOfBoundsException e ) { // ignore, can happen if no argument given. } DSXTickerWrapper dsxTickerWrapper = getDSXTicker ( marketName , accountType ) ; // Adapt to XChange DTOs return DSXAdapters . adaptTicker ( dsxTickerWrapper . getTicker ( marketName ) , currencyPair ) ; }
Get ticker from exchange