[GNC] weird price for LU0067412154

Geoff cleanoutmyshed at gmail.com
Wed Mar 17 20:09:36 EDT 2021


This looks like a problem with Finance Quote's MStaruk.pm module.  Did 
Morningstar change their web site recently?

Testing the recent Finance Quote v1.50 release candidate, without using 
any GnuCash code, I get the same results.

See attached screenshot - I think the problem lies with the long regular 
expression on line 160.  It contains a couple of "greedy" matches that 
are probably causing a match on the last decimal number (Share Class 
Size) instead of the first (NAV).

Geoff
=====

On 18/03/2021 6:48 am, Andrea Borgia wrote:
> Il 17/03/21 20:32, Derek Atkins ha scritto:
> 
> 
>> The screenshot didn't make it through the email, most likely because you
>> sent it as an embedded image in HTML instead of as a text with 
>> attachment.
> 
> Yes and I never had any issues before. Weird.
> 
> My apologies.
> 
>>> gnc-fq-dump morningstarch LU0067412154
>> When I run this, I get:
>>
>> gnc-fq-dump morningstarch LU0067412154
>> Finance::Quote fields Gnucash uses:
>>      symbol: LU0067412154         <=== required
>>        date: 03/17/2021           <=== recommended
>>    currency: USD                  <=== required
>>        last: 2150.31              <=\
>>         nav: 2150.31              <=== one of these
>>       price: 2150.31              <=/
>>    timezone:                      <=== optional
>>
>>
>>> gnc-fq-dump mstaruk LU0067412154
>> This gives me different results:
>>
>> gnc-fq-dump mstaruk LU0067412154
>> Finance::Quote fields Gnucash uses:
>>      symbol: LU0067412154         <=== required
>>        date: 03/17/2021           <=== recommended
>>    currency: USD                  <=== required
>>        last: 5356.02              <=\
>>         nav: 5356.02              <=== one of these
>>       price: 5356.02              <=/
>>    timezone:                      <=== optional
>>
>> So I would say the issue is upstream, possibly with the quote sources.
> Hmm, the UK site of MorningStar gives a totally reasonable value.
> 
> That's why I asked.
> 
> Pity, the screenshot of the website is missing as well.
> 
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see 
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnc_fq_mstaruk.jpg
Type: image/jpeg
Size: 319384 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-user/attachments/20210318/64f623d1/attachment-0001.jpg>


More information about the gnucash-user mailing list