New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fondsweb: currency not always detected #179
Comments
For gnucash the symbol needs to be returned, therefore I added the symbol line:
See also https://lists.gnucash.org/pipermail/gnucash-devel/2021-March/045777.html |
There is another issue in the module: It does not support batched requests (as needed for e.g. gnucash):
Making tree local in the foreach loop fixes this:
Output looks good now:
In summary the patch above fixes three issues:
|
Thanks for the patch. It will be in the next release candidate. The changes only permit a single comma in the price. Does Fondsweb quote in other currencies where we might expect multiple commas? |
Many thanks for your response. You have a very good point. I browsed though fondsweb to find a fond with >= 1 Mio but could not find one. A few JPY fonds were in the order of 30.000 JPY, but nothing higher. I would expect that the correct format is [...]xxx.xxx.xxx,xxxx A fund in Indonesian rupiah (IDR) could be above one million IDR, but I did not find a fund in IDR at all. A more robust fix might be to first remove all . characters and use then the original regexp. Since I have essentially zero Perl experience it probably does not make sense if I come up with a change proposal. |
Added a simple function to handle multiple '.' separators and included your fix for batching. Will land in rc2. |
Many thanks :-) I noticed that you dropped
Without that information, I see a warning: rd@h370:/usr/share/doc/libfinance-quote-perl/examples$ gnc-fq-dump fondsweb LU0119891520 LU2027374805 ** This stock quote cannot be used by GnuCash! ===== Finance::Quote fields Gnucash uses: ** This stock quote cannot be used by GnuCash! rd@h370:/usr/share/doc/libfinance-quote-perl/examples$ which goes away if the symbol is returned. I did not yet find a malfunction inside gnucash, so the warning could also be a false alarm. |
Hi,
I just realized that the currency is not always correctly detected. Here is an example:
I suspect it is because the price 1.237,88 EUR is >= 1.000,00 EUR and there is a dot separate for the thousands.
Looking at the regexp, this
fixes the problem for me:
Note, I have essentially zero Perl experience, it would be good if somebody reviews the changes (which for regexps is always a pain for me) before committing them.
Thanks
Rainer
The text was updated successfully, but these errors were encountered: