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 noticed that when I try to use it under gnucash, I find it not under "Get Online Quotes -> Single" combobox, but under "Get Online Quotes -> Unknown" in the "Edit Security" dialog box. What does this mean? I've tried this exact perl script under gnucash 2.2.7 on Windows, and it works perfectly. It does not, however, work under Ubuntu and gnucash 2.2.6. Where in the gnucash code does the rejection of my quote happen? Thanks! /Fredrik On Mon, 2008-11-03 at 17:21 -0500, Dave Reiser wrote: > 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 > >>> gnucash-devel@gnucash.org > >>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel > >> -- > >> David Reiser > >> [EMAIL PROTECTED] > >> > >> > >> > >> > > > > > > > > _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel