Package com.xeiam.xchange.lakebtc

Source Code of com.xeiam.xchange.lakebtc.LakeBTCExchange

package com.xeiam.xchange.lakebtc;

import com.xeiam.xchange.BaseExchange;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.ExchangeSpecification;
import com.xeiam.xchange.lakebtc.service.polling.LakeBTCMarketDataService;

/**
* @author kpysniak
*/
public class LakeBTCExchange extends BaseExchange implements Exchange {

  @Override
  public ExchangeSpecification getDefaultExchangeSpecification() {

    ExchangeSpecification exchangeSpecification = new ExchangeSpecification(this.getClass().getCanonicalName());
    exchangeSpecification.setSslUri("https://www.LakeBTC.com/api_v1");
    exchangeSpecification.setHost("https://lakebtc.com");
    exchangeSpecification.setPort(80);
    exchangeSpecification.setExchangeName("LakeBTC");
    exchangeSpecification.setExchangeDescription("LakeBTC is a Bitcoin exchange for USD and CNY.");

    return exchangeSpecification;
  }

  @Override
  public void applySpecification(ExchangeSpecification exchangeSpecification) {

    super.applySpecification(exchangeSpecification);
    this.pollingMarketDataService = new LakeBTCMarketDataService(exchangeSpecification);
    this.pollingTradeService = null;
    this.pollingAccountService = null;
  }

}
TOP

Related Classes of com.xeiam.xchange.lakebtc.LakeBTCExchange

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.