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

com.xeiam.xchange.examples.kraken.KrakenExampleUtils 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.kraken;

import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.ExchangeFactory;
import com.xeiam.xchange.kraken.KrakenExchange;

public class KrakenExampleUtils {

  private KrakenExampleUtils() {

  }

  public static Exchange createTestExchange() {

    Exchange krakenExchange = ExchangeFactory.INSTANCE.createExchange(KrakenExchange.class.getName());
    krakenExchange.getExchangeSpecification().setApiKey("API Key");
    krakenExchange.getExchangeSpecification().setSecretKey("Secret==");
    krakenExchange.getExchangeSpecification().setUserName("user");
    krakenExchange.applySpecification(krakenExchange.getExchangeSpecification());
    return krakenExchange;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy