A gain report will report on unrealised gains by looking at the
difference between the valuation of an amount (by default, --value=end),
and the valuation of the cost of the amount.
A reusable library containing hledger’s core functionality. This is
used by most hledger* packages so that they support the same common file
formats, command line options, reports etc.