Use Yahoo API to get Yahoo's Securities stock data Interface (price line, etc.) _api

Source: Internet
Author: User
From the Internet to search the Yahoo Financial API interface, the basic can be taken to the world market stocks, indices, foreign exchange and other data

But the test was not as if Japan's domestic data were available, but the survey found that it could be obtained in other ways, and that the method would be appended to the subsequent post.



1. Get Real-time data

http://finance.yahoo.com/d/quotes.csv?s= stock name &f= data column Options

S is the name of the stock, a plurality of shares are separated by the English plus sign, such as "xom+bbdb.to+jnj+msft", listing the shares of four companies: XOM, BBDb.TO, JNJ, MSFT.

F-Means returns a data column, such as "snd1l1yr".





2. Historical Data request

Http://ichart.yahoo.com/table.csv?s=string&a=int&b=int&c=int&d=int&e=int&f=int&g=d &ignore=.csv

S-Stock Name

A-start time, month

B-Start time, day

C Start time, year

D-End time, month

E-end time, day

F-end time, year

G-time period.

Parameter G range:d-> ' Day ', w-> ' Week ' (week),m-> ' month ' (mouth),v-> ' dividends only '

The month starts at 0, as in September, and is written as 08.



Reference URL:

Http://blog.sina.com.cn/s/blog_71302a17010100on.html

Http://www.gummy-stuff.org/Yahoo-data.htm

Http://hi.baidu.com/arjsyy/blog/item/3057167ab50157d50ad1878a.html
--------------------------------------------------------------------------------------
-Copyright Notice:
-If there is no special description in this page, the content of this article is [Li Daren blog] original, this article copyright [Li Daren Blog] all.
-Welcome to reprint, reprint please be sure to provide the original page in the article site link and indicate the source. You are welcome to retain this paragraph when you reprint this article.
-Article title: Use Yahoo API to get Yahoo's Securities stock data Interface (price line, etc.)
-Independent blog: Li Daren Blog
-Permanent Link: http://www.lidaren.com/archives/741
--------------------------------------------------------------------------------------
The above content is automatically released by the blog Automatic Publishing tool, the final display content and effect will be with the original content deviation, please understand.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.