com.xeiam.xchange.examples.bitcoincharts.BitcoinChartsRawDataDemo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-examples Show documentation
Show all versions of xchange-examples Show documentation
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