r/plaintextaccounting • u/Nurahk • 12d ago
Ledger-cli currency conversion not working
I am trying to understand how to set currency conversion rates in my ledger file but I cannot figure out how it's supposed to work. I have the following example for testing:
P 2026/11/19 A$ $3
2026/11/19 don don
Expenses:Food A$15
Assets:Checking
P 2026/11/20 A$ $2
2026/11/20 laundry
Expenses:Utilities A$15
Assets:Checking
2026/11/20 aldi
Expenses:Groceries A$15
Assets:CheckingWhen I run ledger -f finances.ledger -X $ bal it only uses the 11/20 conversion rate, printing
$-90 Assets:Checking
$90 Expenses
$30 Food
$30 Groceries
$30 Utilities
--------------------
0How do I get the conversion rates for each day to be taken into account rather than just defaulting to the latest for every historical entry?
4
Upvotes
2
u/simonmic hledger creator 12d ago edited 11d ago
ledger reg -X $uses the daily rates. I don't know if ledger bal can do that. (In hledger it's bal --value=then)0
u/thomasvdb13 12d ago
!remindme next week