How can I make copies of a portfolio efficiently for modelling and reporting purposes?
LUSID® also allows a portfolio to derive from another portfolio. A derived portfolio can contain its own transactions and inherits all transactions from its parent portfolio. Any changes made to the parent portfolio are automatically reflected in derived portfolio, with transactions in the latter taking precedence.
Derived portfolios in conjunction with scopes are a powerful construct. For example, to do pre-trade what-if analysis, a derived portfolio could be created in a new namespace linked to the underlying live (parent) portfolio in the ‘official’ scope. Analysis can then be undertaken on the derived portfolio without affecting the live portfolio.