显示来自 Google Finance 或 Yahoo! 的股票数据金融 [英] Display stocks data from Google Finance or Yahoo! Finance
问题描述
我可以使用 Google 财经 API 来获取股票数据吗?
Can I use the Google Finance API to get stock data?
如果有针对此类股票数据的 Flash 或 Javascript 查看器,那就太好了.
我发现了一些可用于相同目的的图表组件:
If there is a Flash or Javascript viewer for such stocks data it would be good.
I found some chart components that could be used for the same:
推荐答案
Yahoo!财经为您提供实时股票报价.数据以 CSV 格式返回.
Yahoo! Finance gives you real-time stock quotes. Data is returned as a CSV.
在 http://finance.yahoo.com/q?s= 上查看此纳斯达克页面a>^IXIC
See this NASDAQ page at http://finance.yahoo.com/q?s=^IXIC
点击下载数据"按钮访问实时数据
Click the Download Data button to access live data
单击下载到电子表格"按钮以访问历史数据
Click the Download To Spreadsheet button to access historical data
您可以使用 LoadVars 或 URLLoader 类从 Flash 访问该数据.使用 unescape() 从 URL 编码格式解码字符串.
You can access that data from Flash using the LoadVars or URLLoader classes. Use unescape() to decode the string from its URL-encoded format.
这篇关于显示来自 Google Finance 或 Yahoo! 的股票数据金融的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!