String password = args[1];
String ipAddress = args[2];
Exchange coinsetter = CoinsetterExamplesUtils.getExchange();
CoinsetterClientSessionServiceRaw clientSessionService = new CoinsetterClientSessionServiceRaw(coinsetter.getExchangeSpecification());
CoinsetterAccountServiceRaw accountService = new CoinsetterAccountServiceRaw(coinsetter.getExchangeSpecification());
CoinsetterFinancialTransactionServiceRaw financialTransactionService = new CoinsetterFinancialTransactionServiceRaw(coinsetter.getExchangeSpecification());
CoinsetterClientSession clientSession = clientSessionService.login(username, password, ipAddress);
log.info("Client session: {}", clientSession);
CoinsetterAccountList coinsetterAccounts = accountService.list(clientSession.getUuid());
for (CoinsetterAccount account : coinsetterAccounts.getAccountList()) {
log.info("account: {}", account.getAccountUuid());
CoinsetterAccount a = accountService.get(clientSession.getUuid(), account.getAccountUuid());
log.info("account: {}", a);
CoinsetterFinancialTransactionList financialTransactions = financialTransactionService.list(clientSession.getUuid(), account.getAccountUuid());
for (CoinsetterFinancialTransaction transaction : financialTransactions.getFinancialTransactionList()) {
CoinsetterFinancialTransaction t = financialTransactionService.get(clientSession.getUuid(), transaction.getUuid());