Ah! I see what it is. — There's pricing information, but ledger doesn't know what to do with it.
I modified the ledger to add some transactions after the pricing information changed.
2024/04/01 * Acme
Assets 7 ACM @ $10
Tax 3 ACM @ = $10
Income
P 2024/04/04 ACM $15
2024/04/04 ACM Spend
Expenses 1 ACM
Assets
With this, when you run the balance report with ledger -f file.ledger balance -X $, you see the price is used in the next transaction.
$55 Assets
$15 Expenses
$-100 Income
$30 Tax
--------------------
0
Again, if there's some way to see the realtime value of a commodity, I don't currently know this. But I've just realized if there's a transaction after the pricing information, ledger will use that most recent pricing information.
Hope this helps clarify.
- Igbanam