With the following records, 
I want to get the balance of "Stock" on 01/02
with -X $
Should be $10.00
----------
2021-01-01 * Opening Balance
    Assets:Broker:Cash                        $10.00
    Equity:Opening Balances

2021/01/01 * Stock purchase
    Assets:Broker:Stock                            1 AA @ $1.00
    Assets:Broker:Cash

2021/01/02 * Stock purchase
    Assets:Broker:Stock                            1 AA @ $5.00
    Assets:Broker:Cash

2021/01/03 * Stock purchase
    Assets:Broker:Stock                           -1 AA @ $2.00
    Assets:Broker:Cash

2021/01/04 * Stock purchase
    Assets:Broker:Stock                           -1 AA @ $3.00
    Assets:Broker:Cash

----------

bal Stock -X $ -e 01/03
The result is $4.00
Not the expected result $10.00


-e Limit the processing to transactions before 01/03,is 01/02
but price on 01/03

How to get the correct result?



-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/d2f4ac2b-2324-47a9-bf42-cd01c9eb4f91n%40googlegroups.com.

Reply via email to