This document explains methodology of calculation for the Canopy website.
...
is the absolute gain (or loss) in the account at current market values. This therefore includes realized as well as unrealized items.
...
Portfolio > Holdings
Base Value
Base Value is related to the term Base Currency, which is used for accounting purposes to refer to the currency in which an investor maintains his accounting book. Base Value is the value of your holdings in your base currency.
Profit Till Date
The change in the market value of the position compared to the settlement amount paid for it. In most cases this is
Profit till date Till Date for all securities except bonds = Quantity x (current_price - average_purchase_price)
In the case of bonds where we consider accrued interest and , the formula becomes
Profit till date for all securities except Till Date for bonds = Quantity x (current_dirty_price - average_purchase_dirty_price)
All coupon flows are excluded. This only covers the current positions relative to it's its average purchase price.
Security Screen
Profit Till Now
...
All items are added up in contract currency (i.e. currency of the money flow) and converted to base currency at the current fx rate.
Explainer > Realized Earnings
...
Profit from trades closed out
Realized moneys monies for transactions fully closing out a position where the trade date of such closing out is in the relevant period. Currently we do not calculate partial close of position in this amount.
...
This captures the translation effect of Money In and Money Out of the account in a currency which is not the base currency of the account. e.g. Fx translation loss due to funds brought into the account in SGD, when the base currency is USD, will be captured here.