Examples of OERRates


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

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

      // 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

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

  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
Copyright © 2018 www.massapi.com. 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.