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

com.xeiam.xchange.clevercoin.CleverCoinExchange Maven / Gradle / Ivy

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