从获取谷歌财经,雅虎财经或Exchange本身股票行情 [英] fetch stock quotes from google finance, yahoo finance or the exchange itself

查看:238
本文介绍了从获取谷歌财经,雅虎财经或Exchange本身股票行情的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建在哪里买,卖信号将通过从雅虎财经,谷歌金融或交易所(印度NSE)阅读报价生成一个基于网络的交易系统itself.My第一preference将获取数据从这个网址:

I am building a web based trading system where buy and sell signals would be generated by reading quotes from either Yahoo finance, google finance or the exchange(NSE of India) itself.My first preference would be to fetch data from this url:

<一个href=\"http://www.nseindia.com/content/equities/niftywatch.htm\">http://www.nseindia.com/content/equities/niftywatch.htm

该网站上的页面使用的表,我想用一个特定行的类/ ID获取特定的股票数据。
现在的问题是我无法弄清楚如何从我的服务器上的不同势域获取数据。我使用jQuery在客户端,服务器端我在VB中使用ASP.Net。
所以,请帮助我,并建议我怎么从上面获取源股票行情。
即使我能对表的访问上述网址,我的工作将完成。
请帮忙。
感谢很多提前。

the page on the site uses tables and i want to fetch data for a particular stock by using class/id of a particular row. Now the problem is I can't figure out how to fetch data from a diffrent domain on my server. I use jquery at the client side, on server-side I use ASP.Net in VB. So please help me out and suggest how do i fetch stock quotes from the above source. Even if i can get access to the table on the above url, my work will be done. Please help. Thanks a lot in advance.

PS:刚才注意到了,他们流的实时报价为这个特殊的交流,所以如果它很容易从谷歌获取数据(据我所知,他们几乎他们的每一个服务API),然后请解释相同谷歌金融。

P.S.: Just noticed on google finance that they stream real time quote for this particular exchange, so if it is easy to fetch data from google(I understand that they have apis for virtually their every service) then please explain the same.

推荐答案

下面是如何从雅虎财经CSV格式抢的历史每日股票价格(最高至今天):

Here's how to grab historical daily stock prices (up through today) from Yahoo Finance in CSV format:

http://ichart.finance.yahoo.com/table.csv?s=AAPL

其中, AAPL 为股票代码。

您可以限制哪些与一些额外的参数返回:

You can limit what that returns with some additional parameters:


  • 秒 - 股票代码。这是不可选的唯一参数。

  • s - Ticker symbol. This is the only parameter that isn't optional.

有关的历史价格开始日期:

Start date for historical prices:

一个 - 月份的数字,从0开始一月

a - Month number, starting with 0 for January.

B - ,天数,例如,1为第一个月

b - Day number, eg, 1 for the first of the month.

C - 年

结束日期为历史价格(默认为最新的可用收盘价):

End date for historical prices (default is the most current available closing price):

D - 月份的数字,从0开始一月

d - Month number, starting with 0 for January.

E - 天数,例如,1为第一个月

e - Day number, eg, 1 for the first of the month.

的F - 。年

最后,历史价格的频率:

And finally, the frequency of historical prices:

G - 可能的值是'D'每日(默认值),W为每周和M每月

g - Possible values are 'd' for daily (the default), 'w' for weekly, and 'm' for monthly.

这篇关于从获取谷歌财经,雅虎财经或Exchange本身股票行情的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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