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

com.xeiam.xchange.examples.coinsetter.CoinsetterPingDemo 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.coinsetter;

import java.io.IOException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.coinsetter.service.polling.CoinsetterPingServiceRaw;

public class CoinsetterPingDemo {

  private static final Logger log = LoggerFactory.getLogger(CoinsetterPingDemo.class);

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

    Exchange coinsetter = CoinsetterExamplesUtils.getExchange();
    CoinsetterPingServiceRaw pingService = new CoinsetterPingServiceRaw(coinsetter);

    String text = pingService.ping("HelloWorld");
    log.info("ping result: {}", text);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy