* Richard M Kreuter <
kre...@progn.net> [2022-01-13 08:48]:
> Is the following behavior a bug?
No.
> That is, the --end date appears to act as an upper exclusive bound
> for the purpose of summing postings, but seemingly not as an
> exclusive bound for price db lookup involved in calculating market
> value.
--end stops evaluating transactions, but things are still evaluated as
of the _current_ date, including pricedb entries after the end of
--end.
What you want is --now (maybe in combination with --end) which
specifies when to value things.
(Note that --end is exclusive whereas --now is inclusive, i.e. --end
stops one day before --end; --now is on the date of --now)
I use this command for value my investments at the end of the year:
-p "until 2021-01-01" --now 2020-12-31 bal --price-db pricedb/funds.pricedb -V
--
Martin Michlmayr
https://www.cyrius.com/