use of org.knowm.xchange.bitstamp.dto.account.BitstampDepositAddress in project XChange by knowm.
the class BitstampAccountDemo method raw.
private static void raw(BitstampAccountServiceRaw accountService) throws IOException {
// Get the account information
BitstampBalance bitstampBalance = accountService.getBitstampBalance();
System.out.println("BitstampBalance: " + bitstampBalance);
BitstampDepositAddress depositAddress = accountService.getBitstampBitcoinDepositAddress();
System.out.println("BitstampDepositAddress address: " + depositAddress);
final List<DepositTransaction> unconfirmedDeposits = accountService.getUnconfirmedDeposits();
System.out.println("Unconfirmed deposits:");
for (DepositTransaction unconfirmedDeposit : unconfirmedDeposits) {
System.out.println(unconfirmedDeposit);
}
final List<WithdrawalRequest> withdrawalRequests = accountService.getWithdrawalRequests(50000000l);
System.out.println("Withdrawal requests:");
for (WithdrawalRequest unconfirmedDeposit : withdrawalRequests) {
System.out.println(unconfirmedDeposit);
}
BitstampWithdrawal withdrawResult = accountService.withdrawBitstampFunds(Currency.BTC, new BigDecimal(1).movePointLeft(4), "XXX");
System.out.println("BitstampBooleanResponse = " + withdrawResult);
}
use of org.knowm.xchange.bitstamp.dto.account.BitstampDepositAddress in project XChange by knowm.
the class BitstampFiatWithdrawal method raw.
private static void raw(BitstampAccountServiceRaw accountService) throws IOException {
// Get the account information
BitstampBalance bitstampBalance = accountService.getBitstampBalance();
System.out.println("BitstampBalance: " + bitstampBalance);
BitstampDepositAddress depositAddress = accountService.getBitstampBitcoinDepositAddress();
System.out.println("BitstampDepositAddress address: " + depositAddress);
accountService.withdrawSepa(new BigDecimal("150"), "Test User", "BY13NBRB3600900000002Z00AB00", "DABAIE2D", "Minsk, Belarus, Main street 2", "197372", "Minsk", Country.Belarus.alpha2);
accountService.withdrawInternational(new BigDecimal("150"), "Test User", "BY13NBRB3600900000002Z00AB00", "DABAIE2D", "Minsk, Belarus, Main street 2", "197372", "Minsk", Country.Belarus.alpha2, "Great Bank", "Great Bank Address", "Great Bank Postal Code", "Great Bank City", "Bank Country Alpha 2 code", BankCurrency.AUD);
}
use of org.knowm.xchange.bitstamp.dto.account.BitstampDepositAddress in project XChange by knowm.
the class BitstampSepaWithdrawal method raw.
private static void raw(BitstampAccountServiceRaw accountService) throws IOException {
// Get the account information
BitstampBalance bitstampBalance = accountService.getBitstampBalance();
System.out.println("BitstampBalance: " + bitstampBalance);
BitstampDepositAddress depositAddress = accountService.getBitstampBitcoinDepositAddress();
System.out.println("BitstampDepositAddress address: " + depositAddress);
accountService.withdrawSepa(new BigDecimal("150"), "Kovin Kostner", "BY13NBRB3600900000002Z00AB00", "DABAIE2D", "Minsk, Belarus, Main street 2", "197372", "Minsk", Country.Belarus.alpha2);
}
Aggregations