Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
467 views
in Technique[技术] by (71.8m points)

java - 如何使用Google财经API获取股票报价?(How can I get stock quotes using Google Finance API?)

I'm looking for access to financial data from Google services.(我正在寻找从Google服务访问财务数据的途径。)

I found this URL that gets the stock data for Microsoft.(我发现这个URL可以获取Microsoft的库存数据。)

What are all the possible parameters that Google allows for this kind of HTTP request?(Google允许此类HTTP请求的所有可能参数是什么?)

I'd like to see all the different information that I could get.(我希望看到我能得到的所有不同信息。)   ask by Josema translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The Google Finance Gadget API has been officially deprecated since October 2012 , but as of April 2014, it's still active:(Google财务小工具API 自2012年10月起正式弃用 ,但截至2014年4月,它仍然有效:)

http://www.google.com/finance/info?q=NASDAQ:GOOG ( http://www.google.com/finance/info?q=NASDAQ:GOOG )


http://www.google.com/finance/info?q=CURRENCY:GBPUSD ( http://www.google.com/finance/info?q=CURRENCY:GBPUSD )
http://finance.google.com/finance/info?client=ig&q=AAPL,YHOO ( http://finance.google.com/finance/info?client=ig&q=AAPL,YHOO )

You can also get charts: https://www.google.com/finance/getchart?q=YELP(您还可以获取图表: https//www.google.com/finance/getchart?q = YESP)

Note that if your application is for public consumption, using the Google Finance API is against Google's terms of service .(请注意,如果您的应用程序是供公众使用,则使用Google财经API会违反Google的服务条款)

Check google-finance-get-stock-quote-realtime for the complete code in python(检查google-finance-get-stock-quote-realtime以获取python中的完整代码)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...