Open grostim opened 4 years ago
Hmm, I'm not sure. It is almost certainly related to the conversion from USD to EUR. I added some extra logging/warning around that a week or two ago. Could you download the most recent version and see if those warnings trigger anything?
It is probably similar to #3 which is caused by convert_position() doing weird/bad things if the price_map isn't 100% perfect.
Once I have a fix for #3 we'll see if it also fixes this.
Ah, forgot to mention. One other thing to try is to add explicit price statements for the USD/EUR conversion on 2019-01-14 and see if that makes the spurious cashflow go away.
Hello,
I have a portfolio whose main currency is EURO, but some of the stocks are quoted in CAD, USD or other currencies.
When i use you script, I can see some cashflows entries that should not exist.
Exemple:
What i expect: The cashflows should only include the situation at 01/01/2019, 31/12/2019 and the monthly deposit of 150EUR. All the other values (with many decimal digits) should not be taken in consideration in the IRR calculation.
In order to understand what happen, here is the transaction of the January 14th that created the following cashflow: (datetime.date(2019, 1, 14), Decimal('0.093647131589160751001238694')),
As the "Revenus" and "Depenses" should be treated as internal, i do not expect any cashflow for this transaction.
Other situation which is probably not related to the multicurrencies but to a split: On April 19th, i have th follwing cashflow: (datetime.date(2019, 4, 19), Decimal('-2843.796426581529348899641038')),
Here is the corresponding transaction (a stock split):
Any idea of what may happen ?