sure. let's assume the I have the following in the broker account: - 1000 AAPL @ 172.62USD - 1000 CNR.TO @ 174.28CAD - 1000 BAYN.DE @ 26.24EUR - 100 USD cash - 100 CAD cash - 100 EUR cash the value of all assets priced in EUR is 1000 BAYN.DE @ 26.24EUR plus 100 EUR cash, which means 26340EUR. i want to limit bal / reg to those two assets. *-*
On Saturday, March 16, 2024 at 12:10:45 PM UTC-4 Tavis Ormandy wrote: > On 2024-03-16, lipp f wrote: > > In my portfolio account I have US / CA / EU securities and I would like > get > > balance by market. > > Wondering if there is a way to have a limit filter able to limit to > > securities in specific currency in ledger bal / reg. > > > > TIA. > > > > I can't parse the question, can you show an example of two commodity > purchases from different markets, and the output you're trying to get? > > I think what you're asking for is --group-by, but are you using tags, or > accounts, or do you differentiate them based on purchase currency? > > If tags, try --group-by 'tag("exchange")', or for purchase currency, > maybe something like --group-by 'commodity(lot_price(amount))'. > > Tavis. > > -- > _o) $ lynx lock.cmpxchg8b.com > /\\ _o) _o) $ finger tav...@sdf.org > _\_V _( ) _( ) @taviso > > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/449bbeee-605c-43fc-9e80-216ee7f24c60n%40googlegroups.com.