Search in sources :

Example 1 with BitsoDepositAddress

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);
}
Also used : BitsoBalance(org.knowm.xchange.bitso.dto.account.BitsoBalance) BitsoDepositAddress(org.knowm.xchange.bitso.dto.account.BitsoDepositAddress) BigDecimal(java.math.BigDecimal)

Aggregations

BigDecimal (java.math.BigDecimal)1 BitsoBalance (org.knowm.xchange.bitso.dto.account.BitsoBalance)1 BitsoDepositAddress (org.knowm.xchange.bitso.dto.account.BitsoDepositAddress)1