Fund
A fund represents a portfolio position, including all entities and properties that are needed to represent the position and compute its metrics.
For example:
- entities may be transactions and prices (via series),
- properties may be classification values, e.g. sector or strategy, some of which may even be historized.
There is a specific implementation of Fund for every asset class type.
Every specific version may have additional properties and even a specific way to implement the computation of a given metric.
Dynamic properties
Some properties are dynamic, meaning that they are not stored in data but computed with a logic that depends on the internal state of the entity (at a given date).
Open/Active
A fund is considered open if its market value is not zero, or if it has no series or no transactions (i.e. a newly create one).
Closed
A fund is closed if is not open.
Inactive
A fund is inactive (in a given period of time [t1,t2]) if it is closed at t2 and open at t1 and has a non-zero PL in the period.