Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplified the calculation of total portfolio value in Portfolio #235

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nme01
Copy link

@nme01 nme01 commented Oct 16, 2017

The value of self.equity is incremented by the position's P&L. In my opinion there is no need to calculate unrealised P&L once again, since there is already a field for that in the Position class. The field is updated on each Position.update_market_value() call.

@coveralls
Copy link

coveralls commented Oct 16, 2017

Coverage Status

Coverage remained the same at 57.143% when pulling 8265881 on nme01:master into dfa6693 on mhallsmoore:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants