使用Web服务获取NSE和BSE的股票报价并使用json进行解析 [英] Get stock quotes of NSE and BSE using web-service and parse it using json

查看:82
本文介绍了使用Web服务获取NSE和BSE的股票报价并使用json进行解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在简单的html页面上显示NSE和BSE的所有股价.

I want to show all stock price of NSE and BSE on simple html page.

我从Google那里获得了可以调用任何已经存在的Web服务的信息,它们将以json形式给出所有信息.然后我必须解析该杰森代码.

I got information from google that i can call any web service that is already exist and they will give all information in json form. And then I have to parse that jason code.

现在,我希望有人为我提供链接,通过该链接我可以调用网络服务.并且让我知道如何使用jQuery调用该Web服务.以及如何解析输出json数据. 如果有人可以给我示例代码,那将是最好的.

Now I want someone to provide me link by which i can call the webservice. And let me know how can i call that web service using jQuery. And how can i parse output json data. If any one can give me sample code then it will be best..

非常感谢您对我的帮助.:)

Thank you so much for helping me.. :)

推荐答案

如果要从NSE Web服务获取数据,则下面是链接:

If you want to fetch the data from NSE web service, then below is the link:

http://www.nseindia.com/live_market/dynaContent/live_watch/get_quote/ajaxGetQuoteJSON.jsp?symbol = dhfl

但是我不确定您是否可以将此链接用于非商业目的和商业目的.

But I'm not sure whether you can use this link or not for non commercial as well as commercial purpose.

这篇关于使用Web服务获取NSE和BSE的股票报价并使用json进行解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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