Yahoo Finance virtual currency query
There are three ways to get data, specifically as follows:
1. Get real-time data through API
request address: http://finance.yahoo.com/d/quotes.csv?s=< Stock name & gt& amp; f=< Data column options & gt
specific parameters:
s – indicates the name of the stock, and multiple stocks are separated by "+" in English, such as: "XOM + bbdb.to + MSFT", which indicates the stocks of three companies: XOM, bbdb.to, MSFT
F – indicates the returned data column, such as "snd11yr". For more details, please refer to the comparison table of API f parameters of Yahoo stock
2. Obtain historical data through API
the request address is as follows: http://ichart.yahoo.com/table.csv?s=< string>& amp; a=< int>& amp; b=< int>& amp; c=< int>& amp; d=< int>& amp; e=< int>& amp; f=< int>& amp; g=d& Ignore =. CSV
specific parameters:
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 cycle
for example: g = w, which means the period is "week & quot;. D means "day", w means "week", m means "month". Pay attention to the month parameter, whose value is 1 less than the real data. If September data is needed, write it as 08
3. Access to Shenzhen and Shanghai stock data through API
Yahoo's API is international and supports querying the data of domestic Shanghai and Shenzhen stock markets, but the code changes slightly. For example, the code of Shanghai Pudong Development Bank is 600000.ss. The rule is: add. SS at the end of Shanghai market and. SZ at the end of Shenzhen market
The upper right corner of the page is
0 http://stock.cn.yahoo.com/
you can also directly enter the code
in the market search column
stock symbols use numbers to represent different meanings of stocks. In addition to distinguishing various stocks, the stock code also has its potential significance. For example, 600 * * is the stock code listed on the Shanghai Stock Exchange, and 6006 * * is the earliest listed stock. The stock code of a company is similar to the license plate number, which can show the strength and popularity of the company, such as 000088 Yantian port, 000888 Emeishan
stock is the certificate of ownership issued by a joint-stock company, which is a kind of valuable securities issued by a joint-stock company to each shareholder as a certificate of shareholding in order to raise funds and obtain dividends and dividends. Each share represents the ownership of a basic unit of the enterprise. Behind every stock is a listed company. At the same time, every listed company will issue shares
each share of the same class represents the same ownership of the company. Each shareholder's share of the ownership of the company depends on the proportion of the number of shares held in the total share capital of the company
stock is an integral part of the capital of a joint-stock company, which can be transferred, traded, and is the main long-term credit tool in the capital market, but the company cannot be required to return its capital contribution.
request address
http://finance.yahoo.com/d/quotes.csv?s=< Stock name & gt& f=< Data column options & gt
the parameter
s – indicates the name of the stock. Multiple stocks are separated by a plus sign in English, such as "XOM + bbdb.to + JNJ + MSFT", which lists the stocks of four companies: XOM, bbdb.to, JNJ and MSFT
F – indicates the returned data column, such as "snd11yr". For more details, please refer to the comparison table of API f parameters of Yahoo stock
2. Get historical data through API
request address
2 http://ichart.yahoo.com/table.csv?s=< string>& a=< int>& b=< int>& c=< int>& d=< int>& e=< int>& f=< int>& G = D & ignore =. CSV
parameters
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 cycle. Example: g = w, which means the period is' week '. d->’ Day, W - & gt Week, M - & gt Month, V - & gt Divisively '
pay attention to the month parameter, which is higher than the real data - 1. If September data is needed, write it as 08<
3. Access to Shenzhen and Shanghai stock data through API
Yahoo's API is international and supports querying domestic Shanghai and Shenzhen stock market data, but the code changes slightly. For example, the code of Shanghai Pudong Development Bank is 600000.ss. The rule is: add. SS at the end of Shanghai market and. SZ at the end of Shenzhen market
recently, the stock market is very hot. I was hired to develop a stock website. Where does the stock data come from has become a big problem. Stock software is generally encrypted, and some web services also need accounts. There is only one free way to capture other people's website data. Fortunately, after my research, I found that Yahoo provides daily trading data of domestic and foreign stock markets, which is a great blessing< br /> http://table.finance.yahoo.com/table.csv?s=ibm&d=6&e=22&f=2006&g=d&a=11&b=16&c=1991&ignore=.csv
the link above can capture the data of IBM stock from November 16, 1991 to June 22, 2006. If you change IBM to Sohu, you can get the stock data of Sohu< br /> http://table.finance.yahoo.com/table.csv?s=sohu&d=6&e=22&f=2008&g=d&a=11&b=16&c=2008&ignore=.csv
the above link can capture the data of Sohu stock
are there any data on China's stock market? The answer is yes, but some adjustments should be made according to the following parameters. The information of global stock exchanges is provided below< For example: 00000 1 = 00000 1. SZ
Shenzhen stock market data link: http://table.finance.yahoo.com/table.csv?s=000001.sz
listing data link: http://table.finance.yahoo.com/table.csv?s=600000.ss
code of Shanghai Composite Index: 00000 1.ss, Shenzhen stock index code: 399001.sz, CSI 300 Code: 000300. SS
the following is the website and abbreviation of the world stock exchange. To find the data of which stock exchange, follow the above format and so on
Shanghai Stock Exchange = cn.finance.yahoo.com,. SS, Chinese, sl1d1t1ohgv
Shenzhen Stock Exchange = cn.finance.yahoo.com,. SZ, Chinese, sl1d1t1ohgv
US stock exchange = finance.yahoo.com,. United States, sl1d1t1ohgv
Canada = ca.finance.yahoo.com,. To, Toronto, sl1d1t1ohgv
New Zealand = au.finance.yahoo.com,. NZ, This is the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one of the first one
Australia = au.finance.yahoo.com,. Ax, Sydney, sl1d1t1ohgv
Brazil = br.finance.yahoo.com,. SA, Sao Paulo, sl1d1t1ohgv
Sweden = se.finance.yahoo.com,. St, Stockholm, sl1d1t1ohgv
16 years, it is bzz16
