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

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


   * @throws IOException indicates I/O exception.
   */
  public BTCChinaGetOrderResponse getBTCChinaOrder(int id) throws IOException {

    BTCChinaGetOrderRequest request = new BTCChinaGetOrderRequest(id);
    BTCChinaGetOrderResponse returnObject = btcChina.getOrder(signatureCreator, getNonce(), request);
    return checkResult(returnObject);
  }
View Full Code Here


   * @throws IOException indicates I/O exception.
   */
  public BTCChinaGetOrderResponse getBTCChinaOrder(int id, String market) throws IOException {

    BTCChinaGetOrderRequest request = new BTCChinaGetOrderRequest(id, market);
    BTCChinaGetOrderResponse returnObject = btcChina.getOrder(signatureCreator, getNonce(), request);
    return checkResult(returnObject);
  }
View Full Code Here

  }

  public BTCChinaGetOrderResponse getBTCChinaOrder(int id, String market, Boolean withdetail) throws IOException {

    BTCChinaGetOrderRequest request = new BTCChinaGetOrderRequest(id, market, withdetail);
    BTCChinaGetOrderResponse response = btcChina.getOrder(signatureCreator, getNonce(), request);
    return checkResult(response);
  }
View Full Code Here

    final int orderId = Integer.parseInt(args[0]);
    final String market = args.length > 1 ? args[1] : null;
    final Boolean withdetail = args.length > 2 ? Boolean.valueOf(args[2]) : null;

    BTCChinaGetOrderResponse response;
    if (market == null) {
      response = tradeServiceRaw.getBTCChinaOrder(orderId);
    }
    else if (withdetail == null) {
      response = tradeServiceRaw.getBTCChinaOrder(orderId, market);
    }
    else {
      response = tradeServiceRaw.getBTCChinaOrder(orderId, market, withdetail);
    }
    System.out.println(response);

    BTCChinaOrder order = response.getResult().getOrder();
    System.out.println("OrderID:\t" + order.getId());
    System.out.println("Side:\t" + order.getType());
    System.out.println("Price:\t" + order.getPrice());
    System.out.println("Currency: \t" + order.getCurrency());
    System.out.println("LeavesQty:\t" + order.getAmount());
View Full Code Here

TOP

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

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.