在輸入股票代號時常常會不知道公司的股票代號
這時就可以用Yahoo 的這個API來搜尋
使用方式如下
http://d.yimg.com/autoc.finance.yahoo.com/autoc?query=關鍵字&callback=YAHOO.Finance.SymbolSuggest.ssCallback
此API可以尋找各交易所的股票代號相當的方便
但因為資料都是英文所以要搜尋中文公司也要輸入英文的關鍵字才行
用關鍵字Yahoo搜尋的結果如下
YAHOO.Finance.SymbolSuggest.ssCallback({"ResultSet":{"Query":"yahoo","Result":[{"symbol":"YHOO","name": "Yahoo! Inc.","exch": "NMS","type": "S","exchDisp":"NASDAQ","typeDisp":"Equity"},{"symbol":"YOJ.F","name": "YAHOO JAPAN","exch": "FRA","type": "S","exchDisp":"Frankfurt","typeDisp":"Equity"},{"symbol":"YOJ.BE","name": "YAHOO JAPAN","exch": "BER","type": "S","exchDisp":"Berlin","typeDisp":"Equity"},{"symbol":"YHO.MU","name": "YAHOO","exch": "MUN","type": "S","exchDisp":"Munich","typeDisp":"Equity"},{"symbol":"YHO.F","name": "YAHOO","exch": "FRA","type": "S","exchDisp":"Frankfurt","typeDisp":"Equity"},{"symbol":"YAHOF.PK","name": "YAHOO JAPAN CORP","exch": "PNK","type": "S","exchDisp":"Pink Sheets","typeDisp":"Equity"},{"symbol":"ETD","name": "Citigroup Inc. ELKS On Yahoo","exch": "PCX","type": "S","typeDisp":"Equity"},{"symbol":"YHO.DU","name": "YAHOO","exch": "DUS","type": "S","exchDisp":"Dusseldorf Stock Exchange","typeDisp":"Equity"},{"symbol":"YOJ.DE","name": "YAHOO JAPAN","exch": "GER","type": "S","exchDisp":"XETRA","typeDisp":"Equity"},{"symbol":"YHO.HM","name": "YAHOO","exch": "HAM","type": "S","exchDisp":"Hamburg","typeDisp":"Equity"}]}})
和Google Stock Api一樣...也是JSON格式
symbol = 代號
name = 公司名稱
exch = 證券交易所
type = 應該是上市上櫃分別
exchDisp = 交易所地點
參考自
http://stackoverflow.com/questions/885456/stock-ticker-symbol-lookup-api&rurl=translate.google.com.tw&twu=1&usg=ALkJrhgoUpKv7sDtcpKatP_oy50z7GI2Jg