
com.xeiam.xchange.yacuna.YacunaExchange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-yacuna Show documentation
Show all versions of xchange-yacuna Show documentation
XChange implementation for Yacuna exchange
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