Yahoo Stock interface
This article by ARTHURXF portrait dedication, reprint please keep the author's description. Another I was employed in Shanghai Special Education Institute to teach it technical courses, admission brochure here: http://www.bizeway.net/read.php/285.htm, interested in learning, can contact me or telephone consultation. qq:29011218,tel:021-51097877.Recently, the
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=
This program uses Python 2.7.6 to write, expand the python comes with the htmlparser, self-actively according to the preset stock code list, from Yahoo Finance crawl list of data date, stock name, real-time quote, change rate of the day, the lowest price of the day, the highest price of the day.Because the values in the Yahoo
Code for capturing YAHOO stock quotes in real time .? FunctiongetYahooQuote ($ stockSymbolCCR) {if (! $ TargetURL) $ targetURLfinance. yahoo. comq? S $ stockSymbolquot; set the URL target to be crawled $ fdfopen ($ targetURL, r)
Function getYahooQuote ($ stockSymbol = "CCR ")
{
If (! $ TargetURL) $ targetURL = "http://finance.yahoo.com/q? S = $ stockSymbol d = t
The function of capturing YAHOO stock quotes in real time. you can learn the ideas and specific code to broaden your knowledge.
The code is as follows:
Function getYahooQuote ($ stockSymbol = "CCR "){If (! $ TargetURL) $ targetURL = "http://finance.yahoo.com/q? S = $ stockSymbol d = t "; // Set the URL target to be crawled$ Fd = fopen ("$ targetURL", "r ");$ StopExtract = 0;$ StartExtract = 0;While (!
Class that crawls YAHOO stock quotes. Copy the code as follows :? FunctiongetYahooQuote ($ stockSymbolCCR) {if (! $ TargetURL) $ targetURLfinance. yahoo. comq? S $ stockSymbol set the URL target to be crawled $
The code is as follows:
Function getYahooQuote ($ stockSymbol = "CCR "){If (! $ TargetURL) $ targetURL = "http://finance.yahoo.com/q? S = $ stockSymbo
The php code that captures YAHOO stock quotes in real time. FunctiongetYahooQuote ($ stockSymbolCCR) {if (! $ TargetURL) $ targetURLfinance. yahoo. comq? S $ stockSymbol set the URL target to be crawled $ fdfopen ($ targetURL, r) function getYahooQuote ($ stockSymbol = "CCR ")
{
If (! $ TargetURL) $ targetURL = "http://finance.yahoo.com/q? S = $ stockSymbol d =
Class that captures YAHOO stock quotes in real time .? FunctiongetYahooQuote ($ stockSymbolCCR) {if (! $ TargetURL) $ targetURLfinance. yahoo. comq? S $ stockSymboldt; set the URL target to be crawled $ fdfopen ($ targetURL, r );
Function getYahooQuote ($ stockSymbol = "CCR ")
{
If (! $ TargetURL) $ targetURL = "http://finance.yahoo.com/q? S = $ stockSymbol d =
The function of capturing YAHOO stock quotes in real time. you can learn the ideas and specific code to broaden your knowledge.
The code is as follows:
Function getYahooQuote ($ stockSymbol = "CCR ")
{
If (! $ TargetURL) $ targetURL = "http://finance.yahoo.com/q? S = $ stockSymbol d = t "; // Set the URL target to be crawled
$ Fd = fopen ("$ targetURL", "r ");
$ StopExtract = 0;
$ StartExtract = 0;
While
Code for capturing YAHOO stock quotes in real time
Function getYahooQuote ($ stockSymbol = "CCR ")
{
If (! $ TargetURL) $ targetURL = "http://finance.yahoo.com/q? S = $ stockSymbol d = t "; // Set the URL target to be crawled
$ Fd = fopen ("$ targetURL", "r ");
$ StopExtract = 0;
$ StartExtract = 0;
While (! Feof ($ fd ))
{
$ Buffer = fgets ($ fd, 4096 );
// Echo trim ($ buffer). "\ n ";
If (strstr ($ buff
consolidated Order book makes it difficult for you to make explicit cross-exchange arbitrage on the physical body- Because a look at the national exchange has become an exchange.I believe that China's stock index futures arbitrage practitioners also experienced a similar process, the early futures and stock index gap often to about 40 yuan, and now intraday high may be around 20 yuan-and a short-lived, tha
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.