Package com.xeiam.xchange.btcchina.dto.trade.response

Examples of com.xeiam.xchange.btcchina.dto.trade.response.BTCChinaBooleanResponse


  public boolean cancelOrder(String orderId) throws IOException {

    boolean ret;

    try {
      BTCChinaBooleanResponse response = cancelBTCChinaOrder(Integer.parseInt(orderId));
      ret = response.getResult();
    } catch (BTCChinaExchangeException e) {
      if (e.getErrorCode() == -32026) {
        // Order already completed
        ret = false;
      }
View Full Code Here


  }

  public BTCChinaBooleanResponse cancelIcebergOrder(int id, String market) throws IOException {

    BTCChinaCancelIcebergOrderRequest request = new BTCChinaCancelIcebergOrderRequest(id, market);
    BTCChinaBooleanResponse response = btcChina.cancelIcebergOrder(signatureCreator, tonce, request);
    return checkResult(response);
  }
View Full Code Here

   * @see BTCChinaCancelStopOrderRequest
   */
  public BTCChinaBooleanResponse cancelStopOrder(int id, String market) throws IOException {

    BTCChinaCancelStopOrderRequest request = new BTCChinaCancelStopOrderRequest(id, market);
    BTCChinaBooleanResponse response = btcChina.cancelStopOrder(signatureCreator, tonce, request);
    return checkResult(response);
  }
View Full Code Here

        result = orderId;
      }
    }

    // Cancel the added order
    BTCChinaBooleanResponse cancelResult = ((BTCChinaTradeServiceRaw) tradeService).cancelBTCChinaOrder(limitOrderReturnValue.getResult().intValue());
    System.out.println("Canceling returned " + cancelResult);

    printOpenOrders();
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.btcchina.dto.trade.response.BTCChinaBooleanResponse

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.