Examples of BitVcCancelOrderResult


Examples of com.xeiam.xchange.bitvc.dto.trade.BitVcCancelOrderResult

  @Override
  public boolean cancelOrder(String orderId) throws IOException {

    final long id = Long.parseLong(orderId);

    BitVcCancelOrderResult result = null;
    for (CurrencyPair currencyPair : getExchangeSymbols()) {
      result = cancelBitVcOrder(coinTypes.get(currencyPair), id);

      if (result.getCode() == 0) {
        break;
      }
      else if (result.getCode() == 26) { // Order does not exist
        continue;
      }
      else {
        break;
      }
    }
    return result != null && "success".equals(result.getResult());
  }
View Full Code Here
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.