Package com.xeiam.xchange.bitvc.service.polling

Source Code of com.xeiam.xchange.bitvc.service.polling.BitVcBaseTradeService

package com.xeiam.xchange.bitvc.service.polling;

import si.mazi.rescu.RestProxyFactory;

import com.xeiam.xchange.ExchangeSpecification;
import com.xeiam.xchange.bitvc.BitVc;
import com.xeiam.xchange.bitvc.service.BitVcDigest;

public class BitVcBaseTradeService extends BitVcBasePollingService {

  protected final BitVc bitvc;
  protected final String accessKey;
  protected final BitVcDigest digest;

  protected BitVcBaseTradeService(ExchangeSpecification exchangeSpecification) {

    super(exchangeSpecification);
    final String baseUrl = exchangeSpecification.getSslUri();
    bitvc = RestProxyFactory.createProxy(BitVc.class, baseUrl);
    accessKey = exchangeSpecification.getApiKey();
    digest = new BitVcDigest(exchangeSpecification.getSecretKey());
  }

  protected long nextCreated() {

    return System.currentTimeMillis() / 1000;
  }

}
TOP

Related Classes of com.xeiam.xchange.bitvc.service.polling.BitVcBaseTradeService

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.