Package com.xeiam.xchange.bitstamp.dto.account

Examples of com.xeiam.xchange.bitstamp.dto.account.BitstampWithdrawal


    System.out.println("BitstampBalance as String: " + bitstampBalance.toString());

    BitstampDepositAddress depositAddress = accountService.getBitstampBitcoinDepositAddress();
    System.out.println("BitstampDepositAddress address: " + depositAddress);

    BitstampWithdrawal withdrawResult = accountService.withdrawBitstampFunds(new BigDecimal(1).movePointLeft(4), "1PxYUsgKdw75sdLmM7HYP2p74LEq3mxM6L");
    System.out.println("BitstampBooleanResponse = " + withdrawResult);
  }
View Full Code Here


    return bitstampBalance;
  }

  public BitstampWithdrawal withdrawBitstampFunds(final BigDecimal amount, final String address) throws IOException {

    final BitstampWithdrawal response = bitstampAuthenticated.withdrawBitcoin(exchangeSpecification.getApiKey(), signatureCreator, BitstampUtils.getNonce(), amount, address);
    if (response.getError() != null) {
      throw new ExchangeException("Withdrawing funds from Bitstamp failed: " + response.getError());
    }
    return response;

  }
View Full Code Here

  }

  @Override
  public String withdrawFunds(String currency, BigDecimal amount, String address) throws IOException {

    final BitstampWithdrawal response = withdrawBitstampFunds(amount, address);
    return Integer.toString(response.getId());
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.bitstamp.dto.account.BitstampWithdrawal

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.