I've written (or rather, modified an existing) .pm file for fetching
fund quotes from www.morningstar.se. (Attached.)
Installing this script works fine with gnc-fq-dump, example:
$ gnc-fq-dump ftest_funds FXIRL00109
I am in my module!
Finance::Quote fields Gnucash uses:
symbol: FXIRL00109
do
gnc-fq-dump -v ftest_funds FXIRL00109
to see if the time field or some other field is screwed up.
On Nov 2, 2008, at 2:59 PM, Fredrik Persson wrote:
> I've written (or rather, modified an existing) .pm file for fetching
> fund quotes from www.morningstar.se. (Attached.)
>
> Installing this s
This is what I get. Anything out of the ordinary?
/Fredrik
$ gnc-fq-dump -v ftest_funds FXIRL00109
I am in my module!
Finance::Quote fields Gnucash uses:
symbol: FXIRL00109 <=== required
date: 11/03/2008 <=== required
currency: USD <=== required
I think the problem is you're not having finance-quote ask for a time.
While gnucash doesn't display it, the program does attempt to construct
a full valid timestamp. If gnucash can't get it, the quote is rejected.
Dave
Fredrik Persson wrote:
> This is what I get. Anything out of the ordinary?
I don't understand. Do you mean a time like in 5:45PM, or a date such as
2008-11-04? How do I have finance-quote ask for this? I've stolen most
of the code from the script SEB.pm, included in finance-quote module. My
script does everything almost exactly the same. Still it doesn't work.
I've notic
Fredrik Persson wrote:
> I don't understand. Do you mean a time like in 5:45PM, or a date such as
> 2008-11-04? How do I have finance-quote ask for this? I've stolen most
> of the code from the script SEB.pm, included in finance-quote module. My
> script does everything almost exactly the same. Sti
Very interesting, thank you. I'm using Finance::Quote 1.13, which is
default in Ubuntu 8.10. I'll try to upgrade.
This beeing *funds*, a time in hours, minutes and seconds has no
meaning, since the NAV is calculated only once every business day.
Therefore, a default time supplied by gnucash is ver
On Nov 4, 2008, at 2:27 PM, Fredrik Persson wrote:
> Very interesting, thank you. I'm using Finance::Quote 1.13, which is
> default in Ubuntu 8.10. I'll try to upgrade.
>
> This beeing *funds*, a time in hours, minutes and seconds has no
> meaning, since the NAV is calculated only once every busi
David, (and others)
I've rewritten my Finance::Quote plugin and now it works for *some*
quotes, but not for others. (Script attached.)
The symbol "FXXIN06789" works fine. The symbols "NTJUL00779" and
"FXIRL00109" gets the same error as before. But I see no difference
between those results in gnc-
On Nov 8, 2008, at 7:17 AM, Fredrik Persson wrote:
> David, (and others)
>
> I've rewritten my Finance::Quote plugin and now it works for *some*
> quotes, but not for others. (Script attached.)
>
> The symbol "FXXIN06789" works fine. The symbols "NTJUL00779" and
> "FXIRL00109" gets the same error
On Nov 8, 2008, at 9:55 AM, David Reiser wrote:
>
> On Nov 8, 2008, at 7:17 AM, Fredrik Persson wrote:
>
>> David, (and others)
>>
>> I've rewritten my Finance::Quote plugin and now it works for *some*
>> quotes, but not for others. (Script attached.)
>>
>> The symbol "FXXIN06789" works fine. The
That's it! That's the problem!
I had forgotten that I needed to return ALL the symbols requested, not
just one. (I guess I was under the impression that gnucash called the
function repeatedly for each individual quote.)
Anyway, here's the script that works and I'll also try to get this
into Finan
12 matches
Mail list logo