@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());
}