显示来自 Google 财经或 Yahoo! 的股票数据 金融
我可以使用 Google Finance API 获取股票数据吗?
如果有一个 Flash 或 Javascript 查看器来查看此类股票数据,那就太好了。
我发现了一些可用于相同用途的图表组件:
Can I use the Google Finance API to get stock data?
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:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
Google 员工 Dion Loy 最近证实,在商业网站上使用 Finance API 是完全合法的,这一点已经很清楚了。
使用 Google 财经投资组合数据javascript API,通过 MarkMail。
在以下位置使用 Google Finance API商业应用程序?,通过 MarkMail。
Thats cleared out, Dion Loy, a Google employee recently affirmed that it was perfectly legal to use the Finance API on commercial websites.
Using Google Finance Portfolio Data javascript API, via MarkMail.
Using Google Finance API in commercial app?, via MarkMail.
雅虎! 财务为您提供实时股票报价。 数据以 CSV 格式返回。
请参阅此纳斯达克页面:http://finance.yahoo.com/q?s=^ IXIC
单击“下载数据”按钮访问实时数据
单击“下载到电子表格”按钮访问历史数据
您可以使用 LoadVars 或 URLLoader 类从 Flash 访问该数据。
使用 unescape() 从 URL 编码格式解码字符串。
Yahoo! Finance gives you real-time stock quotes. Data is returned as a CSV.
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
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 财经的替代方案,请考虑 http://www.mergent.com/servius(历史证券数据API)
As an alternative to Google Finance, consider http://www.mergent.com/servius (the Historical Securities Data API)
关于通过 API 使用雅虎财经数据的合法性:
Drupal 项目的 Khalid 最近向我们保证,尽管 Yahoo! 知道第三方(自动脚本等)对其 CSV 的使用 Yahoo! 让他们可以接受,即使是商业网站!
~ 使用 Yahoo! 的合法性 商业网站上的数据?
About the legality of using Yahoo Finance data via the API:
Khalid, from the Drupal project recently assured us that although Yahoo! is aware of the use of its CSV's by third parties (automated scripts and the like) Yahoo! allows them to take it, even for commercial websites!
~ Legality of use of Yahoo! data on commercial website?
几点:
1)Google 最近弃用了 Finance API:http://code.google.com/apis /finance/
2) 从阅读论坛上的讨论来看,谷歌无权提供股票报价,仅提供投资组合表现数据,因此没有直接方法通过 API 获取报价
3) 有几个项目被破坏在这一点上,例如获得头寸或投资组合的市场价值的能力以及获得投资组合中的现金头寸的能力
雅虎金融似乎是目前最好的选择。
Several points:
1) Google has recently deprecated the finance API: http://code.google.com/apis/finance/
2) From reading discussions on the forums, google does not have rights to deliver stock quotes, only portfolio performance data, so there is no direct way to get a quote via the API
3) Several items are broken in the web service at this point such as the ability to get market value for a position or portfolio and ability to get the cash position in a portfolio
Yahoo finance seems the best option at this point.
不久前对此进行了研究,但据我所知,谷歌不允许您在谷歌本身之外使用他们的财务数据。 因此,您可以在 Google 小工具中使用它,但不允许您在 Google 之外重新发布财务数据。 我认为这与谷歌对所有(昂贵的)市场数据的许可条款有关。 如果我错了..请有人回复并让我知道,因为我可以做类似的事情;)
马特
Had a look into this a while ago but, as far as I can tell, google dont let you use their finance data outside of google itself. So, you could use it in a google gadget but you're not allowed to re-publish the finance data outside of google. I assume its something to do with googles licence terms on all that (expensive) market data. If I'm wrong.. someone please please reply and let me know as I could do to do something similar ;)
Matt
我遇到了同样的问题,也就是说,如果我在本地执行 Flex 应用程序,一切都工作正常,但是当我将其发布到服务器上时,我收到 2048 沙箱错误。 我认为问题是由yahoo Finance服务器上的crossdomain.xml文件引起的; 如果我是对的,你可以这样解决:你的Flex应用程序不必直接调用雅虎财经下载页面,而是调用另一个页面(你可以用php,jsp,asp制作)调用雅虎财经下载页面并返回给你数据。
I experienced the same problem, that is, if I executed my flex apps locally all worked fine, but when I published it on the server I got 2048 sandbox error. I think that the problem is caused by the crossdomain.xml file on yahoo finance server; if I am right, you can solve it in this way: your flex app do not have to call directly yahoo finance download page but another page (that you can make with php,jsp, asp) that call yahoo finance download page and returns you the data.
看起来至少雅虎现在正在对实时报价收费:
http://billing.finance.yahoo.com/realtime_quotes/signup?.src=quote&.refer=quote
It looks like at least yahoo is charging for real-time quotes now:
http://billing.finance.yahoo.com/realtime_quotes/signup?.src=quote&.refer=quote
当我尝试访问该 URL 时,我遇到了这个问题。
When I try to access the URL, I get this problem..