I go about it like this: 2015/01/01 Balance Assets::Stock = 3 AAPL 2015/01/01 Balance Assets::Stock = 5 GOOGL 2015/01/01 Balance Assets::Stock = 3 MSFT
And so on for Assets::Cash. It works for me, without complaints from Ledger. I might be running my reports with different options, though. On Tue, Jan 6, 2015 at 6:00 PM, Pascal Fleury <[email protected]> wrote: > Hello, > > I love the multiple currency/commodity that one can have in the accounts. > It let's me manage e.g. cash in USD, CHF and EUR, or my stock portfolio > with different stock tickers. > > When reconciling, though, I face an issues when I want to write a balance > assertion. Either I'd like to only assert the amount for one > currency/commodity, or all of them. > > I did not find a way to express multiple currencies in a balance > statement, and specifying only a single one will let ledger complain that > there is more in that account (which is correct). Ideally, something like > > 2015/01/01 Balance > Assets::Stock = (3 AAPL + 5 GOOGL + 3 MSFT) > Assets::Cash = (50.00 USD + 25.00 CHF + 15.00 EUR) > > Alas, this is no valid syntax. Is there a way to assert such balance > amounts ? > > thanks, > --paf > > -- > > --- > 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]. > For more options, visit https://groups.google.com/d/optout. > -- --- 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]. For more options, visit https://groups.google.com/d/optout.
