Canadian Stock Qoutes troubles

David Hampton hampton at employees.org
Mon Sep 29 20:01:35 CDT 2003


On Mon, 2003-09-29 at 17:38, Paul B. wrote:
> One more thing  David,
> Look at below:
> 
> $/usr/bin/dump-finance-quote
> 
> Usage: /usr/bin/dump-finance-quote <quote-source> <stock> [<stock> ...]
> 
> Available sources are:
>       vwd australia usa troweprice amfiindia nasdaq bmonesbittburns 
> yahoo_asia canada tiaacref troweprice_direct yahoo fidelity dwsfunds 
> yahoo_australia indiamutual asia canadamutual fidelity_direct nyse asx 
> fool tdwaterhouse trustnet ftportfolios_direct uk_unit_trusts dutch 
> ftportfolios fundlibrary aex yahoo_europe vanguard europe
> 
> There is no source for Canadian stock. Source "canada" returns quotes in 
>   USD always.

In F::Q "Canada" is an alias to Yahoo.  You have to tell yahoo to pull
quotes from the Toronto or other Canadian stock exchange if you want the
quotes in CAD.  Otherwise it will pull them from an American exchange
and give you the quote in USD. 

  $ echo '(yahoo "CSCO" "TTV.TO")' | ./finance-quote-helper
  (("CSCO" (symbol . "CSCO")
   (gnc:time-no-zone . "2003-09-29 16:00:00")
   (last . 20.20)
   (currency . "USD"))
   ("TTV.TO" (symbol . "TTV.TO")
   (gnc:time-no-zone . "2003-09-24 15:43:00")
   (last . 1.23)
   (currency . "CAD")))

See http://finance.yahoo.com/sd or
http://eur.help.yahoo.com/help/uk/fin/quote/quote-02.html for a list of
supported exchanges.  F::Q handles all exchanges listed.*

David

*Note that the second reference contains an error.  The suffix for the
Paris stock exchange is ".PA", as shown in the first reference.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.gnucash.org/pipermail/gnucash-user/attachments/20030929/73100065/attachment.pgp


More information about the gnucash-user mailing list