[Kmymoney] TR: [KMymoney] : Finance::quote for Bourso

Jack ostroffjh at sbcglobal.net
Thu Oct 11 22:13:13 UTC 2012


On 2012.10.11 17:43, Allan wrote:
> On 11/10/12 22:23, Thomas Baumgart wrote:
>> Hi,
>> 
>> On Thursday 11 October 2012 22:54:15 Vincent de Laborderie wrote:
>> 
>>> Bonjour,
>>> 
>>> I ran this script line from the DOS command line :
>>> Perl "c:/program  
>>> files/kde4/share/apps/kmymoney/misc/financequote.pl" bourse
>>> FR0000985053 And I got:
>>> Error 2
>>> 
>>> As a check, I ran
>>> Perl "c:/program  
>>> files/kde4/share/apps/kmymoney/misc/financequote.pl" bourse
>>> FR0000985053 And I got
>>> "KN.PA", "2012-10-11", "2.561"
>> 
>> Where is the difference between those two calls? I just don't see it.
> 
> I think Vincent in the second attempt probably used KN.PA as the  
> symbol.
> 
>> And in case financequote.pl returns an error, we should consult the  
>> developers
>> of this project. I don't know if we can fix it.
>> 
>> Just my 0.02
> 
> Thomas, your reply crossed with my first post.  I think using Yahoo  
> might work if the KMM regex were edited, possibly.
> 
> Allan
> 
> 
>>> So the installation and the path work.
>>> 
>>> I tried with the uncommented diagnostic, but I did not get anything  
>>> more...
>>> So, what is error 2? In the script, it just says :
>>> {$errcode = 2;} # got data but quote failed (?bad symbol?)
>>> 
>>> So it points back to the bourso script...
>>> 
>>> Thanks
>>> 
>>> -----Message d'origine-----
>>> De : kmymoney-bounces at kde.org [mailto:kmymoney-bounces at kde.org] De  
>>> la part
>>> de Cristian One? Envoyé : jeudi 11 octobre 2012 09:38
>>> À : KMyMoney Users' mailing list
>>> Objet : Re: [Kmymoney] TR: [KMymoney] : Finance::quote for Bourso
>>> 
>>> 2012/10/10 Vdelab <vdelab at melix.org>:
>>>> Hello,
>>>> Yes, for those who may have a clue,
>>>> 
>>>> There is indeed an error message when I launch the online update:
>>>> For example,
>>>> "Executing c:/program
>>>> files/kde4/share/apps/kmymoney/misc/financequote.pl
>>>> bourso FR0000985053...
>>>> Unable to update price for FR0000985053 (no price or no date)"
>>> 
>>> Try to run the finance quote script directly like this:
>>> 
>>> perl c:/program files/kde4/share/apps/kmymoney/misc/financequote.pl
>>> bourso FR0000985053
>>> 
>>> and see what the output is, also you can try to uncomment the "#use
>>> diagnostics; # while testing" line from the financequte perl script  
>>> to
>>> obtain more debugging data to see what's wrong.
>>>> When I run it with normal code (not ISIN) and from yahoo, it works
>>>> "Executing c:/program
>>>> files/kde4/share/apps/kmymoney/misc/financequote.pl
>>>> yahoo KN.PA...
>>>> Symbol found: KN.PA
>>>> Price found: 2.513 (2,513)
>>>> Date found: mer. oct. 10 2012
>>>> Price for KN.PA updated (id E000111)"
>>>> 
>>>> So there is something about bourse and/or the ISiN code
>>>> 
>>>> But if I go on the boursorama site, they know the ISIN LCL  
>>>> Obligations
>>>> Inflation Europe (D)
>>>> FR0000985053     - Amundi
>>>> 
>>>> Thanks for the help...
>>>> V.
>>>> 
>>>> -----Message d'origine-----
>>>> De : kmymoney-bounces at kde.org [mailto:kmymoney-bounces at kde.org] De  
>>>> la
>>>> part de Allan Envoyé : mardi 9 octobre 2012 23:48 À :  
>>>> kmymoney at kde.org
>>>> Objet : Re: [Kmymoney] TR: [KMymoney] : Finance::quote for Bourso
>>>> 
>>>> On 09/10/12 21:34, Vdelab wrote:
>>>>> Hello,
>>>>> 
>>>>> This is the first time I use the mailing list to raise a  
>>>>> question. If
>>>>> I am doing it wrong, I apologize…
>>>>> 
>>>>> My question is related to online quote for stocks.
>>>>> 
>>>>> I use the finance::quote perl script and it is running well for  
>>>>> stock
>>>>> which have a short code, like EAD.PA, etc… with the yahoo script.
>>>>> 
>>>>> But before, I was using the bourse script as it allowed usage of  
>>>>> INSI
>>>>> codes. However it seems it has changed…
>>>>> 
>>>>> 
>>>>> Now, what I face is how to have the online quotation of some  
>>>>> mutual
>>>> 
>>>> funds,.
>>>> 
>>>>> It seems the bourso or france choice is not working anymore (with
>>>>> codes like FR0000018897), and neither Yahoo (I tried FR0000018897,
>>>>> FR0000018897.PA,
>>>>> FR0000018897EUR,....)
>>>>> 
>>>>> 75% of the equities I need to follow are mutual funds, only a few  
>>>>> are
>>>>> actual stocks (and those update properly with the yahoo choice).
>>>>> 
>>>>> If anyone has any clue... I don't know if it is typical for  
>>>>> France or
>>>> 
>>>> not...
>>>> 
>>>>> thanks in advance,
>>>> 
>>>> I'm afraid I can't help you directly, but it possibly would help
>>>> someone else, to know the detail given for the error, plus the url  
>>>> of
>>>> the finance site's page.

With the debug print (around line 93 in financequote.pl) uncommented,  
looking for the ISIN at yahoo (with or without the .PA) appears to  
return
all "undef" values, so it appears yahoo doesn't recognize the ISIN  
either.  It does not seem to be a question of parsing what yahoo  
returns.

Jack


More information about the KMyMoney mailing list