The gain option may not work with -M or -X

On Sun, Oct 24, 2021, at 11:54 AM, lipp f wrote:
> 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
>  
> <https://groups.google.com/d/msgid/ledger-cli/3cf4f1cd-cea6-4937-94ae-5ec756e12ed9n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 

--- 
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/4fb9e6d4-4ad3-44ce-8705-ba84d2354c80%40www.fastmail.com.

Reply via email to