problems getting online price quotes
Anders Vinjar
anders.vinjar at notam.uio.no
Fri Feb 4 15:18:21 EST 2005
Thanks alot. This works now.
Ive got further, and the price-editor works. Howeever, some
stocks and funds return their 'date' field as "date: 1/1/1970"
while others return actual date. Is this something in F::Q or is
it related to the information available?
>>> " " == David Hampton <hampton at employees.org> writes:
>
> On Fri, 2005-02-04 at 10:57 +0100, Anders Vinjar wrote:
>> This works fine using 'dump-finance-quote europe NHY.OL', which
>> returns sensible info.
>
> This fails for me due to the lack of any currency being returned by
> F::Q.
>
> The query for NHY.OL failed!!
> Finance::Quote fields Gnucash uses:
> symbol: NHY.OL <=== required
> date: 2/4/2005 <=== required
> currency: ** missing ** <=== required
> last: 501.00 <=\
> nav: <=== one of these
> price: 501.00 <=/
> timezone: <=== optional
>
>> I have a feeling this is related to the "Type"-pane in the
>> commodity editor. What would be sensible values to put in there?
>
> F::Q is unable to extract the currency of the quote from the information
> it gets from Yahoo. (If anyone knows how to get this info from Yahoo,
> please tell me.) F::Q uses an internal mapping table from quote suffix
> to currency name. It appears that the entry in this table for the Oslo
> stock exchange is wrong. Its specified as 'OS', not 'OL'.
>
> I'll update the entry in F::Q, but I don't know when the next release
> will be. In the meantime you have two choices. Use the 'OS' suffix
> when entering stocks into gnucash, or fix the table in your copy of
> F::Q. To do the latter, change the line:
>
> OS => "NOK", # Norway Oslo
>
> to
>
> OL => "NOK", # Norway Oslo
>
> in the file .../Finance/Quote/Yahoo/Base.pm. The file is in
> /usr/lib/perl5/site_perl/5.8.5 on my system.
>
> David
>
>
>
>
More information about the gnucash-user
mailing list