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
On Sunday, October 24, 2021 at 12:49:43 PM UTC-4 [email protected] wrote:

> >>>>> "lf" == lipp f <[email protected]> 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
>

-- 

--- 
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/3cf4f1cd-cea6-4937-94ae-5ec756e12ed9n%40googlegroups.com.

Reply via email to