what sets the default online price source?

Thomas Baumgart thb at net-bembel.de
Thu Feb 4 10:37:49 GMT 2021


Jack,

On Mittwoch, 3. Februar 2021 23:30:57 CET Jack wrote:

> When an ofx direct connect update includes the purchase of a new  
> security, it always gets set up with stooq as the online price source.   
> I did use this for a brief period of time long ago, but have not  
> intentionally used it in a long time.   I end up having to grep my data  
> file every time new stocks get added just to be sure I've caught all  
> instances and changed them to my preferred source.  I can't figure out  
> why it is choosing this particular source as the default.  Thanks for  
> any pointers to where I can find and configure this.

In MyMoneyStatementReader::processSecurityEntry(...) there is a line that says:

    security.setValue("kmm-online-source", "Stooq");

which is in the part that creates new securities. No configuration item (yet) available.
I can imagine that this is the location you look for.

Another spot is in bool WebPriceQuote::launchCSV(...) where it says

  // for historical exchange rates we switch to Stooq
  if (sourcename == QLatin1String("KMyMoney Currency"))
    sourcename = QLatin1String("Stooq Currency");

Hope that helps.


-- 

Regards

Thomas Baumgart

https://www.signal.org/       Signal, the better WhatsApp
-------------------------------------------------------------
Black holes are where God divided by zero.
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 868 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20210204/8f7ec2d3/attachment.sig>


More information about the KMyMoney-devel mailing list