investment reporting

36 views
Skip to first unread message

lipp f

unread,
Oct 23, 2021, 10:53:02 AMOct 23
to Ledger
Assuming that all the investments are in Assets:Investment, how do I get a weekly / monthly report for realized / unrealized gains? 

I have tryed 

$ ledger reg  Assets:Investment  -p 2021 -X USD -M --unrealized

and it is not showing the proper numbers.

TIA.

John Wiegley

unread,
Oct 24, 2021, 12:49:43 PMOct 24
to lipp f, Ledger
>>>>> "lf" == lipp f <flip...@gmail.com> writes:

lf> Assuming that all the investments are in Assets:Investment, how do I get a
lf> weekly / monthly report for realized / unrealized gains?

lf> I have tryed

lf> $ ledger reg Assets:Investment -p 2021 -X USD -M --unrealized

lf> and it is not showing the proper numbers.

Try --gain

John

lipp f

unread,
Oct 24, 2021, 2:54:14 PMOct 24
to Ledger
It does not work, throws different errors:

$ ledger reg  Assets:Investment  -p 2021 -X USD -M --gain
While calling function 'get_at (CAD 97.45000
-2,234.66891242292 USD, 1)':
Error: Attempting to get argument at index 1 from a balance

$ ledger reg  Assets:Investment  -p 2019 -X USD -M --gain
While adding (7.0 TLT {122.65000000000 USD} [2019-04-12], 7.0 TLT {122.65000000000 USD} [2019-04-12]) to (353.02000000000 USD, 353.02000000000 USD, CAD -104.80000
-440.13695725000 USD):
Error: Cannot add sequences of different lengths

John Wiegley

unread,
Oct 25, 2021, 1:41:00 AMOct 25
to ledge...@googlegroups.com
The gain option may not work with -M or -X
--

---
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+...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages