sdementen / piecash

Pythonic interface to GnuCash SQL documents
Other
290 stars 73 forks source link

Use past prices to convert past balances #190

Open bunburya opened 2 years ago

bunburya commented 2 years ago

Currently it seems the latest available price is always used to convert the balance of an account to a different currency, even if we are looking for the balance at some date in the past. This makes it difficult to accurately depict the balance of accounts on dates in the past if they are foreign currency or non-cash accounts.

It would be nice if, when getting an account balance as of a date in the past, we had the option to use the available price that is closest in time to that date.

I would be happy to work on a PR for this when I have time, if there is no objection to including this feature.

sdementen commented 2 years ago

no objection to include this feature!