Package com.xeiam.xchange.oer.dto.marketdata

Examples of com.xeiam.xchange.oer.dto.marketdata.OERRates


  }

  @Override
  public Ticker getTicker(CurrencyPair currencyPair, Object... args) throws IOException {

    OERRates rates = getOERTicker();

    // Use reflection to get at data.
    Method method = null;
    try {
      method = OERRates.class.getMethod("get" + currencyPair.baseSymbol, null);
View Full Code Here


      // if we make it here, set the timestamp so we know a cached request has been successful
      tickerRequestTimeStamp = System.currentTimeMillis();
    }

    OERRates rates = cachedOERTickers.getRates();

    // Adapt to XChange DTOs
    return rates;
  }
View Full Code Here

  private static void raw(Exchange openExchangeRates) throws IOException {

    OERMarketDataServiceRaw oERMarketDataServiceRaw = (OERMarketDataServiceRaw) openExchangeRates.getPollingMarketDataService();

    // Get the latest ticker data showing BTC to EUR
    OERRates oERRates = oERMarketDataServiceRaw.getOERTicker();

    System.out.println(oERRates.toString());
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.oer.dto.marketdata.OERRates

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.