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

org.knowm.xchange.livecoin.service.LivecoinBaseService Maven / Gradle / Ivy

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