Package com.xeiam.xchange.btcchina.dto

Examples of com.xeiam.xchange.btcchina.dto.BTCChinaRequest


  @Override
  public String digestParams(RestInvocation restInvocation) {

    String tonce = restInvocation.getHttpHeadersFromParams().get("Json-Rpc-Tonce");

    BTCChinaRequest request = null;
    for (Object param : restInvocation.getUnannanotatedParams()) {
      if (param instanceof BTCChinaRequest) {
        request = (BTCChinaRequest) param;
      }
    }

    if (request == null) {
      throw new IllegalArgumentException("No BTCChinaRequest found.");
    }

    final long id = request.getId();
    final String method = request.getMethod();
    final String params = stripParams(request.getParams());

    String signature = String.format("tonce=%s&accesskey=%s&requestmethod=%s&id=%d&method=%s&params=%s", tonce, exchangeAccessKey, "post", id, method, params);
    log.debug("signature message: {}", signature);

    Mac mac = getMac();
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.btcchina.dto.BTCChinaRequest

Copyright © 2018 www.massapicom. 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.