org.knowm.xchange.kuna.service.KunaBaseService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-kuna Show documentation
Show all versions of xchange-kuna Show documentation
XChange implementation for the Kuna Exchange
package org.knowm.xchange.kuna.service;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.kuna.Kuna;
import org.knowm.xchange.kuna.KunaAuthenticated;
import org.knowm.xchange.service.BaseExchangeService;
import org.knowm.xchange.service.BaseService;
import si.mazi.rescu.RestProxyFactory;
/** @author Dat Bui */
public class KunaBaseService extends BaseExchangeService implements BaseService {
private Kuna kuna;
private KunaAuthenticated kunaAuthenticated;
/**
* Constructor.
*
* @param exchange
*/
protected KunaBaseService(Exchange exchange) {
super(exchange);
kuna =
RestProxyFactory.createProxy(
Kuna.class, exchange.getExchangeSpecification().getSslUri(), getClientConfig());
kunaAuthenticated =
RestProxyFactory.createProxy(
KunaAuthenticated.class,
exchange.getExchangeSpecification().getSslUri(),
getClientConfig());
}
protected Kuna getKuna() {
return kuna;
}
protected KunaAuthenticated getKunaAuthenticated() {
return kunaAuthenticated;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy