Package com.xeiam.xchange.campbx.service.polling

Examples of com.xeiam.xchange.campbx.service.polling.CampBXMarketDataServiceRaw


  }

  private static void raw(Exchange campBXExchange) throws IOException {

    // Interested in the public polling market data feed (no authentication)
    CampBXMarketDataServiceRaw campBXspecificMarketDataService = (CampBXMarketDataServiceRaw) campBXExchange.getPollingMarketDataService();

    // Get the latest ticker data showing BTC to USD
    CampBXTicker campBXTicker = campBXspecificMarketDataService.getCampBXTicker();

    System.out.println("Last: " + campBXTicker.getLast());
    System.out.println("Bid: " + campBXTicker.getBid());
    System.out.println("Ask: " + campBXTicker.getAsk());

    // Get the latest order book data for BTC/USD
    CampBXOrderBook campBXOrderBook = campBXspecificMarketDataService.getCampBXOrderBook();

    System.out.println("Order book: " + campBXOrderBook);
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.campbx.service.polling.CampBXMarketDataServiceRaw

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.