显示Google财经或Yahoo! Finance的股票数据 [英] Display stocks data from Google Finance or Yahoo! Finance

查看:984
本文介绍了显示Google财经或Yahoo! Finance的股票数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用 Google财经API 获取股票数据吗?



如果有这样的股票数据的Flash或Javascript查看器,这将是好的。

我发现一些图表组件可以用于相同: p>


解决方案

Yahoo!财经给你实时股票报价。数据以CSV形式返回。



请参阅纳斯达克页面 http://finance.yahoo.com/q?s= ^ IXIC


  1. 点击

  2. ol>

    您可以使用LoadVars或URLLoader类从Flash访问该数据。
    使用unescape()从其URL编码格式解码字符串。


    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:

    解决方案

    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

    1. Click the Download Data button to access live data

    2. 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财经或Yahoo! Finance的股票数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆