package com.xeiam.xchange.btce.v2;
import com.xeiam.xchange.BaseExchange;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.ExchangeSpecification;
import com.xeiam.xchange.btce.v2.service.polling.BTCEAccountService;
import com.xeiam.xchange.btce.v2.service.polling.BTCEMarketDataService;
import com.xeiam.xchange.btce.v2.service.polling.BTCETradeService;
/**
* <p>
* Exchange implementation to provide the following to applications:
* </p>
* <ul>
* <li>A wrapper for the BTCE exchange API</li>
* </ul>
*/
@Deprecated
public class BTCEExchange extends BaseExchange implements Exchange {
/**
* Default constructor for ExchangeFactory
*/
public BTCEExchange() {
}
@Override
public void applySpecification(ExchangeSpecification exchangeSpecification) {
super.applySpecification(exchangeSpecification);
this.pollingMarketDataService = new BTCEMarketDataService(exchangeSpecification);
this.pollingAccountService = new BTCEAccountService(exchangeSpecification);
this.pollingTradeService = new BTCETradeService(exchangeSpecification);
}
@Override
public ExchangeSpecification getDefaultExchangeSpecification() {
ExchangeSpecification exchangeSpecification = new ExchangeSpecification(this.getClass().getCanonicalName());
exchangeSpecification.setSslUri("https://btc-e.com");
exchangeSpecification.setHost("btc-e.com");
exchangeSpecification.setPort(80);
exchangeSpecification.setExchangeName("BTC-e");
exchangeSpecification.setExchangeDescription("BTC-e is a Bitcoin exchange registered in Russia.");
return exchangeSpecification;
}
}