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 symbols "NTJUL00779" and >> "FXIRL00109" gets the same error as before. But I see no difference >> between those results in gnc-fq-helper, or gnc-fq-dump. >> >> Any idea what could be causing this? I see no difference in the time >> stamps either. >> >> /Fredrik > > Something is wrong with your setting up or returning an array of > multiple quotes. Each of those symbols works if you only ask for one > quote, but any attempt to retrieve multiple quotes fails: > > echo '(ftest_funds "NTJUL00779" "FXXIN06789")' | gnc-fq-helper > (("NTJUL00779" (symbol . "NTJUL00779") (gnc:time-no-zone . "2008-11-04 > 12:00:00") (price . 8391.00) (currency . "EUR")) > #f) > > echo '(yahoo "IBM" "AAPL")' | gnc-fq-helper > (("IBM" (symbol . "IBM") (gnc:time-no-zone . "2008-11-07 16:02:00") > (last . 86.27) (currency . "USD")) > ("AAPL" (symbol . "AAPL") (gnc:time-no-zone . "2008-11-07 16:00:00") > (last . 98.24) (currency . "USD")))
I'm using gnucash trunk, which has a change in gnc-fq-helper to modify finance-quote queries that come back with no time. If you are using a gnucash version older than yesterday's, your ftest_funds quotes will come back with a time 00:00:00. Dave -- David Reiser [EMAIL PROTECTED] _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel