Examples of AccountInfo


Examples of com.xeiam.xchange.dto.account.AccountInfo

  private static void generic(Exchange justcoinExchange) throws IOException {

    PollingAccountService genericAccountService = justcoinExchange.getPollingAccountService();

    AccountInfo accountInfo = genericAccountService.getAccountInfo();
    System.out.println(accountInfo);

    String depositAddr = genericAccountService.requestDepositAddress(Currencies.LTC);
    System.out.println("LTC deposit address: " + depositAddr);
View Full Code Here

Examples of com.xeiam.xchange.dto.account.AccountInfo

        Wallet wallet = new Wallet(itBitAccountBalance.getCurrency(), itBitAccountBalance.getAvailableBalance(), itBitAccountInfoReturn.getName());
        wallets.add(wallet);
      }
    }

    return new AccountInfo(userId, wallets);
  }
View Full Code Here

Examples of com.xeiam.xchange.dto.account.AccountInfo

    BigDecimal pln = funds.getPlns();
    if (pln != null)
      wallets.add(new Wallet(Currencies.PLN, pln));

    return new AccountInfo(userName, null, wallets);
  }
View Full Code Here

Examples of com.xeiam.xchange.dto.account.AccountInfo

    for (BittrexBalance balance : balances) {
      wallets.add(new Wallet(balance.getCurrency().toUpperCase(), balance.getAvailable()));
    }

    return new AccountInfo(null, wallets);
  }
View Full Code Here

Examples of com.xeiam.xchange.dto.account.AccountInfo

    wallets.add(new Wallet(Currencies.BTC, balance.getBtcBalance().add(balance.getBtcReserved())));
    wallets.add(new Wallet(Currencies.LTC, balance.getLtcBalance().add(balance.getLtcReserved())));
    wallets.add(new Wallet(Currencies.DOGE, balance.getDogeBalance().add(balance.getDogeReserved())));
    wallets.add(new Wallet("YBC", balance.getYbcBalance().add(balance.getYbcReserved())));
    wallets.add(new Wallet(Currencies.CNY, balance.getCnyBalance().add(balance.getCnyReserved())));
    return new AccountInfo(null, wallets);
  }
View Full Code Here

Examples of com.xeiam.xchange.dto.account.AccountInfo

    final CoinbaseMoney balance = user.getBalance();
    final Wallet wallet = new Wallet(balance.getCurrency(), balance.getAmount());
    final List<Wallet> wallets = new ArrayList<Wallet>();
    wallets.add(wallet);

    final AccountInfo accountInfo = new AccountInfo(username, wallets);
    return accountInfo;
  }
View Full Code Here

Examples of com.xeiam.xchange.dto.account.AccountInfo

    for (String lcCurrency : funds.keySet()) {
      String currency = lcCurrency.toUpperCase();

      wallets.add(new Wallet(currency, funds.get(lcCurrency)));
    }
    return new AccountInfo(null, wallets);
  }
View Full Code Here

Examples of com.xeiam.xchange.dto.account.AccountInfo

    System.out.println("ASKS: " + orderBook.getAsks());

    Trades trades2 = marketDataService.getTrades(new CurrencyPair("XBT", "USD"), 22233);
    System.out.println("Current trades:" + trades2);

    AccountInfo accountInfo = accout.getAccountInfo();

    System.out.println(accountInfo);
    OpenOrders openOrders = trades.getOpenOrders();
    System.out.println("open orders: " + openOrders);
View Full Code Here

Examples of com.xeiam.xchange.dto.account.AccountInfo

    raw((BTERPollingAccountServiceRaw) accountService);
  }

  private static void generic(PollingAccountService accountService) throws IOException {

    AccountInfo accountInfo = accountService.getAccountInfo();
    System.out.println(accountInfo);
  }
View Full Code Here

Examples of com.xeiam.xchange.dto.account.AccountInfo

  }

  public static void generic() throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException {

    // Get the account information
    AccountInfo accountInfo = accountService.getAccountInfo();
    System.out.println("AccountInfo as String: " + accountInfo.toString());

    String depositAddress = accountService.requestDepositAddress("BTC");
    System.out.println("Deposit address: " + depositAddress);

    // API key has no withdraw rights - returns 401 unauthorized
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.