Revisiting problems with price updates

Jack ostroffjh at users.sourceforge.net
Tue Feb 22 00:47:21 GMT 2022


The latest is https://bugs.kde.org/show_bug.cgi?id=450426.  I think  
this is just another example of an issue that has been mentioned before  
on the mailing list, forum, and bug reports.  The common complaint is  
that the price updater fails - but if you look carefully, it seems to  
be trying to retrieve a pair that doesn't make sense - it is reversed  
from what you would expect - the value of a currency in terms of a  
stock, instead of the price of the stock in the currency.

When i started looking into my own kmy file, I've found things I can't  
explain, that I think are related.  Hopefully something here will  
trigger some thought and give a hint where we might look for the  
underlying problem..

As one example, I have an equity E0000416 for symbol CARR (Carrier  
Global Corp.)
If I look in the Price Editor for CARR, I see two entries - one is from  
KMyMOney Currency and the other from Yahoo Finance.  It is not clear  
why there are two en tries for the same ID and Name.  If I show all  
stored prices, the sources include Transaction, User, Yahoo Finance,  
Finance::Quote yahoo_json, Statement Importer, and KMyMoney Currency.   
All make sense to me except for the last.  In addition, if I look in my  
kmy file, I have five entries for <PRICEPAIR from="USD" to="E000416">  
including one User and four KMyMoney Currency.  <PRICEPAIR  
from="E000416" to="USD"> includes all the rest.  I had almost expected  
all the KMyMoney Currency entries to be in one group.  Can anyone  
explain why a stock price would ever get looked up through KMyMoney  
Currency?  If I sort those price entries by date, all the KMyMoney  
Currency entries are in the latter half of the list.  In a few cases  
where there is also another entry on the same date, they differ by a  
few cents - in only one case are they identical.

Then, in the Price Editor, the Stock name for CARR is "Carrier Global  
Corp,Carrier Global Corp,Carrier Global Corp,Carrier Global  
Corp,Carrier Global Corp".  How did the name get repeated five times?   
It only appears once in the Investment Views (once under Securities,  
and once under Equities tab for each account which held that stock (all  
not closed except one.)  If I scroll through the complete Price Editor,  
there are several other entries with the Stock Name repeated multiple  
times, but I see no pattern.

Then, if I look in the Price Updater, I see an entry for ID: CARR with  
Internal ID: E000416 and Source: Yahoo Finance.  However, if I scroll  
down, I see ID: USD > E000416 with internal ID: "USE E000416" a price  
of "CARR0.0218 and Source KMyMOney Currency.

Searching my kmy file for E000416 shows only the Security definition,  
the five Accounts holding that stock, and the two PRICEPAIR entries  
already mentioned.  In particular, I don't see what generates that  
USD > E000416 entry in the price updater.  My currency list includes  
only USD and EUR.

Any thoughts or suggestions for further troubleshooting?

Jack


More information about the KMyMoney-devel mailing list