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

com.xeiam.xchange.yacuna.YacunaExchange Maven / Gradle / Ivy

The newest version!
package com.xeiam.xchange.yacuna;

import com.xeiam.xchange.BaseExchange;
import com.xeiam.xchange.ExchangeSpecification;
import com.xeiam.xchange.utils.nonce.CurrentTimeNonceFactory;
import com.xeiam.xchange.yacuna.service.polling.YacunaMarketDataService;

import si.mazi.rescu.SynchronizedValueFactory;

public class YacunaExchange extends BaseExchange {

  private final SynchronizedValueFactory nonceFactory = new CurrentTimeNonceFactory();

  public YacunaExchange() {

  }

  @Override
  protected void initServices() {
    this.pollingMarketDataService = new YacunaMarketDataService(this);
  }

  @Override
  public ExchangeSpecification getDefaultExchangeSpecification() {

    ExchangeSpecification exchangeSpecification = new ExchangeSpecification(this.getClass().getCanonicalName());
    exchangeSpecification.setSslUri("https://www.yacuna.com/api");
    exchangeSpecification.setHost("www.yacuna.com");
    exchangeSpecification.setPort(80);
    exchangeSpecification.setExchangeName("Yacuna");
    exchangeSpecification.setExchangeDescription("Yacuna is a Bitcoin exchange");
    return exchangeSpecification;
  }

  @Override
  public SynchronizedValueFactory getNonceFactory() {

    return nonceFactory;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy