TIAA-CREF & finance-quote-helper

Paul Fenwick
Thu, 3 May 2001 22:06:18 +1000

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

G'day Everyone.  Delurking for a bit,

On Sun, Apr 29, 2001 at 07:28:27PM -0400, Kevin A. Foss wrote:


> but and several other of the reporting mechanisms don't
> return 'last', so if I change the first line above to 'price' or 'nav'
> f-q-h returns a closing price.
> I don't honestly know which is preferable -- NAV or price with regards
> to other securities. (Tiaacref only returns 1 number so they will
> always be equal).  I also don't know how this is reflected back in
> gnucash if the values were actually loaded, or if they would be refused
> without a 'last' -- I didn't try. =20

"price" is the preferred field to use.  All F::Q methods should
return a "price" field which is the most sensible indication
of current value.  This can be the NAV, last traded price,
yield, and so on, depending upon what you're actually dealing with.

If you want to avoid price because sometimes it contains non-dollar
values such as percentage yields, then you might want to do
something like:

	$value =3D $info{last} || $info{nav};

providing you with the NAV if a last traded price does not



Paul Fenwick <>         | "When I see an adult on a bicycle,
Senior Consultant                   |  I have a hope for the human race."
Obsidian Consulting Group           |      -- H.G. Wells

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see