Hi fellow quants! 

Pretty basic question, but it's something I'm having a hard time with: How can I get the TotalUnrealizedProfit in percentage terms of my entire portfolio (not just of one security)? PS: I code in Python.

Thank you in advance,

Giulio