Call Tencent stock Data interface with Http/javascript

Source: Internet
Author: User

Chrome's own development tool monitors the financial HTTP information and obtains the following methods for obtaining stock data.

To Wuliangye as an example, to obtain the latest market, access to data interface:
[HTML]
http://qt.gtimg.cn/q=sz000858
Return Data:
[HTML]
v_sz000858= "51~ Wuliangye ~000858~27.78~27.60~27.70~417909~190109~227800~27.78~492~27.77~332~27.76~202~27.75~334~27.74 ~291~27.79~305~27.80~570~27.81~269~27.82~448~27.83~127~15:00:13/27.78/4365/s/12124331/24602|14:56:55/27.80/14/ s/38932/24395|14:56:52/27.81/116/b/322585/24392|14:56:49/27.80/131/s/364220/24385|14:56:46/27.81/5/b/13905/ 24381|14:56:43/27.80/31/b/86199/24375~20121221150355~0.18~0.65~28.11~27.55~27.80/413544/1151265041~417909~ 116339~1.10~10.14~~28.11~27.55~2.03~1054.39~1054.52~3.64~30.36~24.84~ ";
To split the contents of the string, the subscript starts at 0, followed by
[HTML]
0: Unknown
1: the name
2: Code
3: Current Price
4: Yesterday Collection
5: Open today
6: Turnover (hand)
7: Outer Plate
8: Inner Plate
9: Buy a
10: Buy One quantity (hand)
11-18: Buy two buy five
19: Sell One
20: Sell One quantity
21-28: Sell two sell five
29: A recent deal by the pen
30: The Time
31: Ups and downs
32: Ups and downs
33: Highest
34: The lowest
35: Price/Turnover (hand)/turnover
36: Turnover (hand)
37: Turnover (million)
38: Change Hand Rate
39: P/E
40:
41: Highest
42: The lowest
43: Amplitude
44: Circulation Market Value
45: Total Market value
46: The City net rate
47: Trading Price
48: Fall off the price

Get real-time capital flows:
[HTML]
http://qt.gtimg.cn/q=ff_sz000858
Return Data:
[HTML]
V_ff_sz000858= "sz000858~41773.67~48096.67~-6322.99~-5.53~10200.89~14351.02~-4150.13~-3.63~114422.25~53015.90~ 59770.57~ Wuliangye ~20121221 ";
To split the contents of the string, the subscript starts at 0, followed by:
[HTML]
0: Code
1: The main inflow
2: The main outflow
3: The main net inflow
4: Main net inflow/capital inflow outflow sum
5: Retail Inflow
6: Retail Outflow
7: Net inflow of retail investors
8: Net retail inflow/capital inflow and outflow total
9: Capital inflow outflow sum 1+2+5+6
10: Unknown
11: Unknown
12: The name
13: Date

Get Handicap Analysis:
[HTML]
http://qt.gtimg.cn/q=s_pksz000858
Return Data:
[HTML]
V_s_pksz000858= "0.196~0.258~0.221~0.325";
To split the contents of the string, the subscript starts at 0, followed by:
[HTML]
0: Buy a large list
1: Buying Small list
2: Sell a large list
3: Selling Small list

Get brief information:
[HTML]
http://qt.gtimg.cn/q=s_sz000858
Return Data:
[HTML]
v_s_sz000858= "51~ Wuliangye ~000858~27.78~0.18~0.65~417909~116339~~1054.52";
To split the contents of the string, the subscript starts at 0, followed by:
[HTML]
0: Unknown
1: the name
2: Code
3: Current Price
4: Ups and downs
5: Ups and downs
6: Turnover (hand)
7: Turnover (million)
8:
9: Total Market value

Related Article

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.