how to generate daily investments pnl report?

102 views
Skip to first unread message

Joseph Li

unread,
Jan 9, 2025, 11:48:39 PM1/9/25
to Beancount
Hi Everybody,

I'm new to beancount, and I find the accouting tool fascinating.It helps me to keep track of my expenses and income well.

I'm currently learn to deal with my investments, mainly funds and etfs. I've learned how to get a position report of one specific day. But have no idea how to get my investments performance time series.  For example, i need a daily time series including the following columns:

- date
- fund
- position
- market value
- daily pnl - realized
- daily pnl - unrealized
- daily return

how to realize this ? Thanks!


Martin Blais

unread,
Jan 10, 2025, 3:59:09 AM1/10/25
to Beancount
Look at beangrow

--
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 beancount+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/beancount/5b779cfb-43a5-48c2-a41e-92be2a74e9b2n%40googlegroups.com.

Joseph Li

unread,
Jan 10, 2025, 8:52:55 AM1/10/25
to bean...@googlegroups.com
The beangrow manual is too simplified. I don't get the idea how to run the plugin. The CLI command beangrow does not exist. is there more detailed hands-on details on how to run the  scripts? 

Thanks. Regards

Martin Blais <bl...@furius.ca> 于2025年1月10日周五 16:59写道:
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/w5-pDKpXtuM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/beancount/CAK21%2BhMgV_bSMCO1pj30PNH%2BAFFvTbaXJ3xm_jaa-s%2BBHVHtZQ%40mail.gmail.com.

Joseph Li

unread,
Jan 10, 2025, 7:23:22 PM1/10/25
to bean...@googlegroups.com
Hi Martin,

I have found how to run the code. but there is a error message:

TypeError: Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

Currently my python package info:

protobuf                  5.29.2

is there any package out of date in the beangrow scripts? How to solve this problem? 

Thanks. Regards

Martin Blais <bl...@furius.ca> 于2025年1月10日周五 16:59写道:
Look at beangrow
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/w5-pDKpXtuM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/beancount/CAK21%2BhMgV_bSMCO1pj30PNH%2BAFFvTbaXJ3xm_jaa-s%2BBHVHtZQ%40mail.gmail.com.

Martin Blais

unread,
Jan 10, 2025, 7:41:27 PM1/10/25
to Beancount
Probably a version mismatch of some sort.
I'm not sure.

Reply all
Reply to author
Forward
0 new messages