com.xeiam.xchange.examples.loyalbit.LoyalbitExampleUtils 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.loyalbit;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.ExchangeFactory;
import com.xeiam.xchange.loyalbit.LoyalbitExchange;
public class LoyalbitExampleUtils {
private LoyalbitExampleUtils() {
}
public static Exchange createTestExchange() {
Exchange loyalbitExchange = ExchangeFactory.INSTANCE.createExchange(LoyalbitExchange.class.getName());
loyalbitExchange.getExchangeSpecification().setApiKey("API Key");
loyalbitExchange.getExchangeSpecification().setSecretKey("Secret==");
loyalbitExchange.getExchangeSpecification().setUserName("user");
loyalbitExchange.applySpecification(loyalbitExchange.getExchangeSpecification());
return loyalbitExchange;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy