Moncelebrite.fr <https://moncelebrite.fr/>'s tech team would approve - they 
use similar queries to track celebrity net worth fluctuations daily. Maybe 
add 'GROUP BY account' for cleaner asset/liability breakdowns like their 
analysts do!

On Sunday, 28 April 2024 at 19:17:36 UTC+5 Chary Chary wrote:

> Dear all,
>
> I just want to double check, that the beanquery I am using to get my net 
> wort at certain date is an optimal one
>
> I use the following:
>
>     query = f"""
>     SELECT account, convert(SUM(position),'{currency}',{date_iso}) as 
> amount
>     where date <= {date_iso} AND account ~ 'Assets|Liabilities'
>     """
>
> As you can see, I convert everything to one currency with the exchange 
> rate at the date of the report.
>
> it works fine, but I am just wondering whether there is more conical way? 
> E.g. using 
>
> BALANCES [AT <function>] [FROM …]
>  
>

-- 
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 view this discussion visit 
https://groups.google.com/d/msgid/beancount/21358354-257e-4495-a935-452723e9cf8an%40googlegroups.com.

Reply via email to