All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xeiam.xchange.examples.bitcoincharts.BitcoinChartsRawDataDemo Maven / Gradle / Ivy

Go to download

Provides a set of examples that demonstrate how to use XChange in client applications

The newest version!
package com.xeiam.xchange.examples.bitcoincharts;

import java.io.IOException;

import com.xeiam.xchange.bitcoincharts.BitcoinCharts;
import com.xeiam.xchange.bitcoincharts.BitcoinChartsFactory;
import com.xeiam.xchange.bitcoincharts.dto.marketdata.BitcoinChartsTicker;

/**
 * Demonstrates using the REST proxy to get the raw deserialized JSON object from BitcoinCharts
 * 
 * @author timmolter
 */
public class BitcoinChartsRawDataDemo {

  public static void main(String[] args) throws IOException {

    BitcoinCharts bitcoinCharts = BitcoinChartsFactory.createInstance();
    BitcoinChartsTicker[] marketData = bitcoinCharts.getMarketData();
    for (BitcoinChartsTicker data : marketData) {
      System.out.println(data.getSymbol() + ": " + data);
    }

  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy