Bug 474321

Summary: Online Quote Config Dialog - Dump CSV not working
Product: [Frameworks and Libraries] alkimia Reporter: KB.claim <kb.claim>
Component: GeneralAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED WORKSFORME    
Severity: normal CC: ralf.habacker
Priority: NOR    
Version: 8.1.72   
Target Milestone: 8.2   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: the button wihout function

Description KB.claim 2023-09-09 08:27:29 UTC
Created attachment 161519 [details]
the button wihout function

Windows 11.

The configuration parameters of a online quote source should be "dumpable". There is a button "dump CSV" but this has no effect, there is no CSV created.

Menu -> Settings -> configure kmymoney -> Online Quotes -> Select any source and press "dump CSV" button
Comment 1 Ralf Habacker 2024-03-05 18:56:44 UTC
The aforementioned button was used to download csv content and not to read the configuration parameters of an online course source. 
With version 5.2, this functionality will be moved to the alkimia library. I have therefore assigned this ticket accordingly.
Comment 2 Ralf Habacker 2024-05-31 16:01:45 UTC
(In reply to KB.claim from comment #0)
> The configuration parameters of an online course source should be "dumpable".

The desired configuration parameters are stored in configuration files on the file system in a file called 'kmymoneyrc'. Under Windows, you can search for this file in the user's home directory using Explorer.

Under Linux, the actual paths used can be queried with a command line tool from the KDE framework. See the following example:

$ kf5-config --path config
/home/user/.config/:....

Adding 'kmymoney/kmymoneyrc' results in the actual path. 

In this file, online quotes are defined in categories like this:

[online-quote-source-<name-of-source>]
DataFormat=2
DateFormatRegex=%y-%m-%d
DateRegex=Date
StandardId=EUR-USD
DownloadType=0
IDBy=0
IDRegex=
PriceDecimalSeparator=0
PriceRegex=Close
ReferenceName=
URL=https://query1.finance.yahoo.com/v7/finance/download/%1%2=X?events=history&includeAdjustedClose=true