Package name.abuchen.portfolio.snapshot

Examples of name.abuchen.portfolio.snapshot.SecurityPosition.calculateValue()


            if (assignment.getInvestmentVehicle() instanceof Security)
            {
                PortfolioSnapshot portfolio = snapshot.getJointPortfolio();
                SecurityPosition p = portfolio.getPositionsBySecurity().get(assignment.getInvestmentVehicle());
                if (p != null)
                    actual += Math.round(p.calculateValue() * assignment.getWeight()
                                    / (double) Classification.ONE_HUNDRED_PERCENT);
            }
            else if (assignment.getInvestmentVehicle() instanceof Account)
            {
                for (AccountSnapshot s : snapshot.getAccounts())
View Full Code Here


                    SecurityPosition position = p.getPositionsBySecurity().get(security);
                    if (position != null && (portfolio == null || p.getSource().equals(portfolio)))
                    {
                        setShares(position.getShares());
                        setPortfolio(p.getSource());
                        setTotal(position.calculateValue());
                        break;
                    }
                }
            }
            else
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.