Now that we have several great methods of importing quotes for USA stocks and funds using Yahoo! Finance, I’ve gotten inquiries regarding quotes from other exchanges and countries around the world. It appears to be as easy as locating the Yahoo! Finance compatible symbols from the appropriate Yahoo! Finance websites and plugging them in as you would for the USA quotes.
Hera are the YAHOO! FINANCE WORLDWIDE sites:
- Australia & NZ
- French Canada
- Hong Kong
- UK & Ireland
I’ve just tried this out for a Canadian mutual fund and a Toronto Exchange stock with successful results…
|FICDX||FIDELITY CANADA FUND||47.29||2/12/2010||6:25pm|
|YLO-UN.TO||YELLOW PAGES INCOME TRUST||5.67||2/12/2010||4:15pm|
The quotes do seem to be in US Dollars though. The section of Python script that gathers the quote is…
url = “http://finance.yahoo.com/d/quotes.csv?s=%s&f=nl1d1t1” % self.ticker
csv = urllib2.urlopen(url).read()
and could be easily changed, if someone found a similar function at one of the other websites.