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

org.knowm.xchange.kuna.service.KunaBaseService Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version
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