* lipp f <
flip...@gmail.com> [2023-06-23 05:54]:
> "ledger bal --gain" returns all gains since inception but I would like to
> get the gains for last week only.
>
> I'm trying
> ledger bal --gain -p "last 7 days"
> but it does not return anything.
I don't think --gain can be used for this. However, what should be
possible is to value your holding on day 1 and then on day 2 and
calculate the difference (manually).
e.g.
ledger -p "until 2023-01-01" --price-db pricedb/funds.pricedb -V --now 2022-12-31
I think you need both -p and --now
--
Martin Michlmayr
https://www.cyrius.com/