problems getting online price quotes

Anders Vinjar andersvi at extern.uio.no
Sat Feb 5 06:23:16 EST 2005


Right.

Seems the date field is'nt returned from Yahoo.  So this problem
is somewhere at yahoo.finance?

Heres the output of one such call:

bash-2.05b$ dump-finance-quote -v yahoo_europe di-smb.ol
Finance::Quote fields Gnucash uses:
    symbol: DI-SMB.OL            <=== required
      date: 1/1/1970             <=== required
  currency: NOK                  <=== required
      last: 162.38               <=\       
       nav:                      <=== one of these
     price: 162.38               <=/        
  timezone:                      <=== optional

All fields returned by Finance::Quote for stock DI-SMB.OL

stock           field  value
-----           -----  -----
DI-SMB.OL         ask: 
DI-SMB.OL     avg_vol: 0
DI-SMB.OL         bid: 
DI-SMB.OL         cap: 
DI-SMB.OL       close: 162.38
DI-SMB.OL    currency: NOK
DI-SMB.OL        date: 1/1/1970
DI-SMB.OL   day_range: 162.38 - 163.83
DI-SMB.OL         div: 
DI-SMB.OL    div_date: 
DI-SMB.OL   div_yield: 
DI-SMB.OL         eps: 
DI-SMB.OL      ex_div: 
DI-SMB.OL        high: 163.83
DI-SMB.OL        last: 162.38
DI-SMB.OL         low: 162.38
DI-SMB.OL        name: DI-SMB
DI-SMB.OL         net: +1.45
DI-SMB.OL        open: 162.38
DI-SMB.OL    p_change: 0.00
DI-SMB.OL          pe: 
DI-SMB.OL       price: 162.38
DI-SMB.OL     success: 1
DI-SMB.OL      symbol: DI-SMB.OL
DI-SMB.OL        time: 0:00
DI-SMB.OL      volume: 0
DI-SMB.OL  year_range: 0.00 - 0.00


>>> "D" == David Hampton <hampton at employees.org> writes:
D> 
D> On Fri, 2005-02-04 at 21:18 +0100, Anders Vinjar wrote:
>> 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?
D> 
D> The date 1970-01-01 is the start of time as far as unix systems are
D> concerned.  Its likely that date isn't being returned by Yahoo (or isn't
D> understood by F::Q).  Can you post the results of dump-finance-quote
D> with the '-v' argument for one of the problem stocks.
D> 
D> David
D> 


More information about the gnucash-user mailing list