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

org.knowm.xchange.yobit.service.YoBitBaseService Maven / Gradle / Ivy

package org.knowm.xchange.yobit.service;

import org.knowm.xchange.Exchange;
import org.knowm.xchange.service.BaseExchangeService;
import org.knowm.xchange.service.BaseService;
import org.knowm.xchange.yobit.YoBit;
import org.knowm.xchange.yobit.YoBitDigest;
import si.mazi.rescu.RestProxyFactory;

public class YoBitBaseService extends BaseExchangeService implements BaseService {
  protected final T service;
  protected final YoBitDigest signatureCreator;

  protected YoBitBaseService(Class type, Exchange exchange) {
    super(exchange);

    this.signatureCreator =
        YoBitDigest.createInstance(
            exchange.getExchangeSpecification().getSecretKey(),
            exchange.getExchangeSpecification().getApiKey());
    this.service =
        RestProxyFactory.createProxy(
            type, exchange.getExchangeSpecification().getSslUri(), getClientConfig());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy