Hello.

I did some reading, but I still can't figure out how to do what I need.

I have a very simple ledger file:

==============================
2018-01-01  Opening Balance
    Assets:Checking                         1000.00 USD
    Equity:Opening Balances

P 2018-01-01 USD 1 EUR
P 2018-07-01 USD 2 EUR
===============================

So, so transactions what so ever, only opening balance and  price change

If I run balance report for the beginning of period I get expected result

============================

ledger -f ledger.txt balance -X EUR --now 2018-01-01
             EUR1000  Assets:Checking
            EUR-1000  Equity:Opening Balances
--------------------
                   0

===========================

If I run balance report for end of the year (after exchange rate changed), 
I also get correct result


=======================

C:\_code\ledger>ledger -f ledger.txt balance -X EUR --now 2018-12-31
             EUR2000  Assets:Checking
            EUR-2000  Equity:Opening Balances
--------------------
                   0
=======================

But I can't find any report, which would show me why assets have increased 
2 times. Option --unrealized  does not have any effect in this case

I would expect some report, which would say something like 

-1000 EUR Unrealized gain
-1000 EUR    Unrealized gain due to EUR/USD changes

So, how can it be done?


On Wednesday, February 27, 2019 at 2:26:01 PM UTC+1, Richard Lawrence wrote:
>
> Dear Chary, 
>
> Chary Chary <[email protected] <javascript:>> writes: 
>
> > So, I want to be able to explain a delta between a balance sheet at the 
> > beginning of the ear and at the end. 
> > 
> > E.g.: 
> > 
> > I got so much salary 
> > I paid so much costs 
> > 
> > But also: 
> > Lost so much due to exchange rate change 
> > Gained to much due to stock price increase etc. 
>
> The short answer to your question is yes, ledger can do that. 
>
> The long answer as to *how* exactly you get it to do that depends 
> somewhat on your needs.  It's straightforward to do things like show how 
> much salary you earned.  It's also pretty straightforward to find out 
> how much you lost or gained due to currency exchanges or stock gains, 
> though these depend on you representing your data in the right way.  I'd 
> suggest that you install ledger and then read the first few sections of 
> the manual: 
>
> https://www.ledger-cli.org/docs.html 
>
> Section 4.5 ("Currency and commodities") and Section 5 ("Transactions") 
> will be especially relevant for you.  I suggest you play around with 
> representing your data after reading these sections, then ask again here 
> if you need help building reports with exactly the output you want. 
>
> -- 
> Best, 
> Richard 
>

-- 

--- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to