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? > > /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 > last: <=\ > nav: 498.03 <=== one of these > price: <=/ > timezone: <=== optional > > All fields returned by Finance::Quote for stock FXIRL00109 > > stock field value > ----- ----- ----- > FXIRL00109 a: Defaults: Year 2008, Month 11, Day 3 > > FXIRL00109 currency: USD > FXIRL00109 date: 11/03/2008 > FXIRL00109 isodate: 2008-11-03 > FXIRL00109 method: fredrik_funds > FXIRL00109 nav: 498.03 > FXIRL00109 success: 1 > FXIRL00109 symbol: FXIRL00109 > > > > On Sun, 2008-11-02 at 16:35 -0500, David Reiser wrote: >> 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 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 <=== required >>> date: 10/31/2008 <=== required >>> currency: USD <=== required >>> last: <=\ >>> nav: 488.74 <=== one of these >>> price: <=/ >>> timezone: <=== optional >>> >>> As you can see, things look rather well. The NAV value is correct. >>> >>> However, when I try to use this in gnucash, I get a popup saying >>> "There >>> was an unknown error while retrieving the price quotes." No other >>> indication on what's wrong, not in the terminal either. >>> >>> I'm running gnucash 2.2.6 r17427 on Ubuntu 8.10. >>> >>> What could be wrong? Any idea how to fix this? >>> >>> TIA >>> >>> Fredrik Persson >>> <Ftest.pm>_______________________________________________ >>> gnucash-devel mailing list >>> [email protected] >>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel >> -- >> David Reiser >> [EMAIL PROTECTED] >> >> >> >> > > > -- David Reiser [EMAIL PROTECTED] _______________________________________________ gnucash-devel mailing list [email protected] https://lists.gnucash.org/mailman/listinfo/gnucash-devel
