On Tue, Feb 26, 2019 at 3:31 PM Chary Chary <[email protected]> wrote:

> Hello everybody!
>
> I stumbled on Beancount in my search for finance bookkeeping system, as
> Excel does not really satisfy all my needs
>
> I first tested gnucash but I was told
> <http://gnucash.1415818.n4.nabble.com/GNC-Cashflow-like-report-to-show-realized-and-unrealized-gains-balance-sheet-delta-report-tc4708109.html>
>  it
> can't do what I need. So I am just wondering whether Beancount can do this:
>

Depends what you mean.
On the positive side, Beancount can store all the data you need to compute
your year-to-date profits, if you stored in your file
1. your positions with their cost basis
2. the price at the beginning of the year
3. the recent price



>
> Sorry, if express what I need in gnucash terms, I am just not familiar
> with Beancount  terminology yet
>
> What I need is following:
>
> ======================================
>
> I am looking for Income Statement" aka "Profit/Loss Statement"  report
> which would show unrealized gain due to changes in stock and currency
> exchange rate
>
> Say at the beginning of the year I have produced a Balance Sheet report.
> This report shows how much assets I have, which liabilities and delta
> between them. Suppose at begging of the year I had checking accounts in
> USD
> and Euro and some stock.
> Throughout the year I was getting salary, paying expenses, at the same
> time
> exchange rate was changing, stock price was changing etc. My be I sold
> some
> stock, moved money between USD and Euro accounts
>
> Now at the end of the year I have produced a new balance sheet.
>
> So, I want to be able to explain a delta between a balance sheet at the
> beginning of the ear and at the end.
>

It's possible to compute that, but I don't think any of the reports there
by default do it now.
You might want to look into Fava, which may do offer this on the balance
sheet.

With queries you can do something like this, replacing the date to get the
amount at each date:
bean-query $L "select convert(units(sum(position)), 'USD') from close on
2018-03-01 where account ~ 'Assets:US:Broker:Main:VTI' "

You can issue this for a set of accounts by loosening the regexp in the
where clause.
You'd have to run multiple queries, and please note that Beancount only
renders prices that you stored in the input file, so if you want prices
close to those dates, you'll have to fetch them and insert them. The
bean-price tools provides some support for automating that some. It's not
perfect.




E.g.:
>
> I got so much salary
> I paid so much costs
>
> But also:
> Lost so much due to exchange rate change
>

re. exchange rate; it's possible to compute but you'll have to write some
code for that.

I think you could write a script to do all that you've described (and
that's what I would do).
Beancount allows you to store all the information you need for this.
Needs a bit of code for this specific report though.

Enjoy,



>
> Gained to much due to stock price increase etc.
>
> So, effectively I need to be able to drill down in the delta in Balance
> Sheet report
>
> Regards.
> Chary
>
> --
> You received this message because you are subscribed to the Google Groups
> "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/2cef9db8-20b9-49d3-b91b-ec3591e10a3b%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/2cef9db8-20b9-49d3-b91b-ec3591e10a3b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhNoCqvvR9n_HoJkuMUvcPv2%2BFt7sWK9ds4wotti%2BgMvYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to