prioritize pricedb over last purchase price?

17 views
Skip to first unread message

Jim Robinson

unread,
Mar 24, 2021, 9:26:57 AMMar 24
to Ledger

Hi folks,

Is there a way for us to tell ledger to prefer the pricedb value over the @@ purchase value in an entry?

My situation here is that yesterday I made a purchase of an ETF on the secondary market and while my pricedb has the end-of-day price of the ETF ledger is preferring my purchase price (which was higher than the end-of-day price in the pricedb file).

Martin Michlmayr

unread,
Mar 24, 2021, 9:59:51 AMMar 24
to ledge...@googlegroups.com
* Jim Robinson <jim.ro...@gmail.com> [2021-03-24 06:26]:
> Is there a way for us to tell ledger to prefer the pricedb value
> over the @@ purchase value in an entry?

No, but you could turn the @@ purchase value into a (@@) virtual cost,
which means it won't be entered into the pricedb.

https://www.ledger-cli.org/3.0/doc/ledger3.html#Virtual-posting-costs

--
Martin Michlmayr
https://www.cyrius.com/

Jim Robinson

unread,
Mar 24, 2021, 6:11:58 PMMar 24
to Ledger
That works for me, thank you!
Reply all
Reply to author
Forward
0 new messages