Package com.xeiam.xchange.btcchina.service.polling

Examples of com.xeiam.xchange.btcchina.service.polling.BTCChinaMarketDataServiceRaw


  }

  public static void raw() throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException {

    BTCChinaMarketDataServiceRaw marketDataServiceRaw = ((BTCChinaMarketDataServiceRaw) marketDataService);

    // Get the latest ticker data showing BTC to CNY
    BTCChinaTicker ticker = marketDataServiceRaw.getBTCChinaTicker("ltccny");

    System.out.println("Date: " + ticker.getTicker().getDate());

    System.out.println("Last: " + ticker.getTicker().getLast().toString());
    System.out.println("Volume: " + ticker.getTicker().getVol().toString());
    System.out.println("High: " + ticker.getTicker().getHigh().toString());
    System.out.println("Low: " + ticker.getTicker().getLow().toString());

    System.out.println("vwap: " + ticker.getTicker().getVwap());
    System.out.println("prev_close: " + ticker.getTicker().getPrevClose());
    System.out.println("open: " + ticker.getTicker().getOpen());

    Map<String, BTCChinaTickerObject> tickers = marketDataServiceRaw.getBTCChinaTickers();
    System.out.println(tickers);

    System.out.println(((BasePollingService) marketDataServiceRaw).getExchangeSymbols());

  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.btcchina.service.polling.BTCChinaMarketDataServiceRaw

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.