API for oPortfolio