Hi Fab,
welcome to your journey with beancount :)
First for your journey questions. I think if you need/want the days, having it as a special currency instead of just metadata might be useful.
This allows you to do calculations/aggregations on them, which I think you can't do with the metadata. I use here a separate expense account for the "NIGHTS", because I don't like to mix "Currencies", but you could keep it in the same one as you keep the monetary expenses.
I'm modeling the other side of the nights as Equity, personally
that feels cleaner than putting in Assets/Liabilities.
I'm guessing this is just for your own interest, not for
reimbursing, otherwise I would model it differently.
```
option "operating_currency"
"EUR"
2025-01-01 open Expenses:Travel:Accommodation:Hotel EUR
2025-01-01 open Assets:Bank:Checking EUR
2025-01-01 open Expenses:Travel:Nights NIGHTS
2025-01-01 open Equity:Nights NIGHTS
2025-03-11 * "Hotel in Berlin (3 nights)"
date: "2025-03-08" ; Booking date
purpose: "Conference"
Expenses:Travel:Accommodation:Hotel 300.00 EUR
Expenses:Travel:Nights 3 NIGHTS
Assets:Bank:Checking -300.00 EUR
Equity:Nights -3 NIGHTS
2025-03-08 * "Hotel in Berlin (3 nights)"
firstNightDate: "2025-03-11" ; date of 1st
night
purpose: "Conference"
Expenses:Travel:Accommodation:Hotel 300.00 EUR
Expenses:Travel:Nights 3 NIGHTS
Assets:Bank:Checking -300.00 EUR
Equity:Nights -3 NIGHTS

and you can query that information like
As for dealing with investments from IBKR, I'm doing this as well.
My use case is pretty simple and boring, mostly buy and hold. For this I have built two things which are useful for me
An importer which pulls, buys and dividends directly from IBKR
https://tariochbctools.readthedocs.io/en/latest/importers.html#interactivebrokers
A price import which pulls the price information for securities from IBKR
https://tariochbctools.readthedocs.io/en/latest/price_fetchers.html
For general documentation about investments, this part of the official beancount doc is a very good starting point
https://beancount.github.io/docs/trading_with_beancount.html
Regards,
Patrick
--
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/fb28e70a-7ee3-4d56-9dcc-081de1ecc923n%40googlegroups.com.