use of org.knowm.xchange.bitso.dto.account.BitsoDepositAddress in project XChange by knowm.
the class BitsoAccountDemo method raw.
private static void raw(BitsoAccountServiceRaw accountService) throws IOException {
BitsoBalance bitsoBalance = accountService.getBitsoBalance();
System.out.println("Bitso balance: " + bitsoBalance);
BitsoDepositAddress depositAddress = accountService.getBitsoBitcoinDepositAddress();
System.out.println("Bitcoin deposit address: " + depositAddress);
String withdrawResult = accountService.withdrawBitsoFunds(new BigDecimal(1).movePointLeft(4), "XXX");
System.out.println("Bitso withdrawal response = " + withdrawResult);
}
Aggregations