Package com.xeiam.xchange.justcoin.service.polling

Examples of com.xeiam.xchange.justcoin.service.polling.JustcoinMarketDataServiceRaw


  }

  private static void raw(Exchange justcoinExchange) throws IOException {

    // Interested in the public polling market data feed (no authentication)
    JustcoinMarketDataServiceRaw justcoinSpecificMarketDataService = (JustcoinMarketDataServiceRaw) justcoinExchange.getPollingMarketDataService();

    Collection<CurrencyPair> currencyPairs = justcoinSpecificMarketDataService.getExchangeSymbols();
    System.out.println(currencyPairs);

    // Get the latest ticker data for all markets on the Justcoin Exchange
    List<JustcoinTicker> justcoinTickers = justcoinSpecificMarketDataService.getTickers();

    System.out.println(justcoinTickers);

    // Get the latest market depth data for BTC/LTC
    JustcoinDepth justcoinMarketDepth = justcoinSpecificMarketDataService.getMarketDepth(Currencies.BTC, Currencies.LTC);

    System.out.println(justcoinMarketDepth);

    List<JustcoinPublicTrade> trades = justcoinSpecificMarketDataService.getTrades(Currencies.LTC, 92734L);
    System.out.println(trades);
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.justcoin.service.polling.JustcoinMarketDataServiceRaw

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.