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

com.xeiam.xchange.examples.lakebtc.LakeBTCExamplesUtils 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.lakebtc;

import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.ExchangeFactory;
import com.xeiam.xchange.lakebtc.LakeBTCExchange;

/**
 * Created by cristian.lucaci on 12/19/2014.
 */
public class LakeBTCExamplesUtils {

  private LakeBTCExamplesUtils() {

  }

  public static Exchange createTestExchange() {

    Exchange lakeBtcExchange = ExchangeFactory.INSTANCE.createExchange(LakeBTCExchange.class.getName());

    lakeBtcExchange.getExchangeSpecification().setSslUri("https://www.LakeBTC.com");
    lakeBtcExchange.getExchangeSpecification().setHost("https://lakebtc.com");
    lakeBtcExchange.getExchangeSpecification().setPort(80);
    lakeBtcExchange.getExchangeSpecification().setApiKey("API Key");
    lakeBtcExchange.getExchangeSpecification().setSecretKey("Secret==");
    lakeBtcExchange.getExchangeSpecification().setUserName("email");
    lakeBtcExchange.applySpecification(lakeBtcExchange.getExchangeSpecification());
    return lakeBtcExchange;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy