// Portfolio B : Security B + Security X
client = new Client();
securityA = new Security();
securityA.addPrice(new SecurityPrice(Dates.date(2010, Calendar.JANUARY, 1), 1000));
client.addSecurity(securityA);
securityB = new Security();
securityB.addPrice(new SecurityPrice(Dates.date(2010, Calendar.JANUARY, 1), 1100));
client.addSecurity(securityB);
securityX = new Security();
securityX.addPrice(new SecurityPrice(Dates.date(2010, Calendar.JANUARY, 1), 1200));
client.addSecurity(securityX);
Portfolio portfolioA = new Portfolio();
portfolioA.addTransaction(new PortfolioTransaction(Dates.date(2010, Calendar.JANUARY, 1), securityA,
PortfolioTransaction.Type.BUY, 1000000, 10000, 0, 0));