com.xeiam.xchange.clevercoin.CleverCoinExchange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-clevercoin Show documentation
Show all versions of xchange-clevercoin Show documentation
XChange implementation for the CleverCoin Exchange
The newest version!
package com.xeiam.xchange.clevercoin;
import com.xeiam.xchange.BaseExchange;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.ExchangeSpecification;
import com.xeiam.xchange.clevercoin.service.polling.CleverCoinAccountService;
import com.xeiam.xchange.clevercoin.service.polling.CleverCoinMarketDataService;
import com.xeiam.xchange.clevercoin.service.polling.CleverCoinTradeService;
import com.xeiam.xchange.utils.nonce.CurrentTimeNonceFactory;
import si.mazi.rescu.SynchronizedValueFactory;
/**
* @author Karsten Nilsen
*/
public class CleverCoinExchange extends BaseExchange implements Exchange {
private SynchronizedValueFactory nonceFactory = new CurrentTimeNonceFactory();
@Override
protected void initServices() {
this.pollingMarketDataService = new CleverCoinMarketDataService(this);
this.pollingTradeService = new CleverCoinTradeService(this);
this.pollingAccountService = new CleverCoinAccountService(this);
}
@Override
public ExchangeSpecification getDefaultExchangeSpecification() {
ExchangeSpecification exchangeSpecification = new ExchangeSpecification(this.getClass().getCanonicalName());
exchangeSpecification.setSslUri("https://api.clevercoin.com");
exchangeSpecification.setHost("api.clevercoin.com");
exchangeSpecification.setPort(80);
exchangeSpecification.setExchangeName("CleverCoin");
exchangeSpecification.setExchangeDescription("CleverCoin is a Bitcoin exchange registred in The Netherlands with banking partner in France.");
return exchangeSpecification;
}
@Override
public SynchronizedValueFactory getNonceFactory() {
return nonceFactory;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy