// 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