public static void main(String[] args) throws IOException { Exchange ANX = ANXExamplesUtils.createExchange(); // Interested in the private account functionality (authentication) PollingAccountService accountService = ANX.getPollingAccountService(); // Request a Bitcoin deposit address String address = accountService.requestDepositAddress(Currencies.BTC.toString()); System.out.println("Address to deposit Bitcoins to: " + address); }
private static void generic(PollingAccountService accountService) throws IOException { AccountInfo accountInfo = accountService.getAccountInfo(); System.out.println(accountInfo); }