Package com.xeiam.xchange.bitvc.dto.trade

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

Related Classes of com.xeiam.xchange.bitvc.dto.trade.BitVcCancelOrderResult

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.