org.knowm.xchange.livecoin.service.LivecoinBaseService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-livecoin Show documentation
Show all versions of xchange-livecoin Show documentation
A convenient way to buy and sell Bitcoin
package org.knowm.xchange.livecoin.service;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.livecoin.Livecoin;
import org.knowm.xchange.livecoin.LivecoinDigest;
import org.knowm.xchange.service.BaseExchangeService;
import org.knowm.xchange.service.BaseService;
import si.mazi.rescu.RestProxyFactory;
public class LivecoinBaseService extends BaseExchangeService
implements BaseService {
protected final T service;
protected final LivecoinDigest signatureCreator;
protected final String apiKey;
public LivecoinBaseService(Class type, Exchange exchange) {
super(exchange);
this.service =
RestProxyFactory.createProxy(
type, exchange.getExchangeSpecification().getSslUri(), getClientConfig());
this.apiKey = exchange.getExchangeSpecification().getApiKey();
this.signatureCreator =
LivecoinDigest.createInstance(exchange.getExchangeSpecification().getSecretKey(), apiKey);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy