[libalkimia] [Bug 439411] Add support for downloading online prices based on a date range

Ralf Habacker bugzilla_noreply at kde.org
Wed Sep 20 07:43:32 BST 2023


https://bugs.kde.org/show_bug.cgi?id=439411

--- Comment #2 from Ralf Habacker <ralf.habacker at freenet.de> ---
(In reply to Ralf Habacker from comment #0)
> In kmymoney this is done by connecting the WebPriceQuote::csvquote() signal
> to a method, then calling the WebPriceQuote::setDate(from, to) [1] method,
> followed by a call to WebPriceQuote::launch(...) which triggers the
> mentioned signal. The signal returns the queried online prices in an
> instance of a class known only to kmymoney. Another method would have to be
> used here. 
> 
> Currently there is the following signal defined:
> 
>     void quote(const QString&, const QString&, const QDate&, const double&)
> 
> To cover multiple values an additional signal should be added providing a
> map of online prices
>   
>     void quote(const QString&, const QString&, QMap<QDateTime, double>); 
> 
> The type QDateTime was chosen to support also dates with times. [2]

It turns out that such a signal is a basic requirement for retrieving rate data
in csv format, which is handled by bug 474061. Adding a date range is then
limited to patching the url template and filtering the retrieved values.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list