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

com.xeiam.xchange.examples.therock.TheRockExampleUtils 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.therock;

import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.ExchangeFactory;
import com.xeiam.xchange.therock.TheRockExchange;

public class TheRockExampleUtils {

  private TheRockExampleUtils() {
  }

  public static Exchange createTestExchange() {
    Exchange exchange = ExchangeFactory.INSTANCE.createExchange(TheRockExchange.class.getName());
    exchange.getExchangeSpecification().setApiKey("API Key");
    exchange.getExchangeSpecification().setSecretKey("Secret==");
    exchange.getExchangeSpecification().setUserName("user");
    exchange.applySpecification(exchange.getExchangeSpecification());
    return exchange;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy