Jacek Witkowski
Results
2
comments of
Jacek Witkowski
I'm using Python 3.5.1. Here's the code. ```python from dic.container import ContainerBuilder class Dummy(object): def __init__(self) -> None: pass builder = ContainerBuilder() builder.register_class(Dummy) container = builder.build() container.resolve(Dummy) ```
My impression is that ``self.equity`` holds the total portfolio value. Take a look at ``update_portfolio()`` method. The ``equity`` field is calculated by adding: - initial cash value, - realised P&L...