Package com.xeiam.xchange.btcchina.service.polling

Examples of com.xeiam.xchange.btcchina.service.polling.BTCChinaAccountServiceRaw


    // System.out.println("withdrawResult = " + withdrawResult);
  }

  public static void raw() throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException {

    BTCChinaAccountServiceRaw btcChinaAccountService = (BTCChinaAccountServiceRaw) accountService;

    // Get the account information
    BTCChinaResponse<BTCChinaAccountInfo> accountInfo = btcChinaAccountService.getBTCChinaAccountInfo();
    System.out.println("AccountInfo as String: " + accountInfo.getResult().toString());

    // Get deposits
    BTCChinaGetDepositsResponse depositsResponse = btcChinaAccountService.getDeposits("BTC");
    for (BTCChinaDeposit deposit : depositsResponse.getResult().getDeposits()) {
      System.out.println(deposit);
    }
    depositsResponse = btcChinaAccountService.getDeposits("BTC", false);
    for (BTCChinaDeposit deposit : depositsResponse.getResult().getDeposits()) {
      System.out.println(deposit);
    }

    // Get withdrawals
    BTCChinaGetWithdrawalsResponse withdrawalsResponse = btcChinaAccountService.getWithdrawals("BTC");
    for (BTCChinaWithdrawal withdrawal : withdrawalsResponse.getResult().getWithdrawals()) {
      System.out.println(withdrawal);
    }
    withdrawalsResponse = btcChinaAccountService.getWithdrawals("BTC", false);
    for (BTCChinaWithdrawal withdrawal : withdrawalsResponse.getResult().getWithdrawals()) {
      System.out.println(withdrawal);
    }

    // Get withdrawal
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.btcchina.service.polling.BTCChinaAccountServiceRaw

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.