Good day to all!

I'm new to ledger and I quite haven't figured out how to properly tag 
commodities so I could group values based on that metadata.

For instance:

commodity STOCKA
; market: NYSE
; type: Large corporations
; sector: Energy

commodity STOCKB
; market: NASDAQ
; type: Large corporations
; sector: Industry

commodity STOCKC
; market: BOVESPA
; type: Small companies
; sector: Goods and services

commodity STOCKD
; market: BOVESPA
; type: Mid-sized companies
; sector: Transportation

Then...

2012/01/01 Opening balances
Assets:Brokerage account one 10 STOCKA @ $10.00
Assets:Brokerage account two 20 STOCKB @ $20.00
Assets:Brokerage account one 30 STOCKC @ $30.00
Assets:Brokerage account two 40 STOCKD @ $40.00
Equity

the balance report would output:

10 STOCKA
30 STOCKC Assets:Brokerage account one
20 STOCKB
40 STOCKD Assets:Brokerage account two
----------------
10 STOCKA
20 STOCKB
30 STOCKC
40 STOCKD

Helpful, but not that much. How can I have something like below from the 
"market" perspective

30 STOCKC
40 STOCKD BOVESPA
20 STOCKB NASDAQ
10 STOCKA NYSE

or from the "type"...

10 STOCKA 
20 STOCKB Large corporations
40 STOCKD Mid-sized companies
30 STOCKC Small companies

This becomes extremelly useful when combined with -V in order to observe 
asset allocation.

$2500.00 BOVESPA
 $400.00 NASDAQ
 $100.00 NYSE

So... How to do this?

Thanks.

Reply via email to