Tencent stock Data Interface Http/javascript

Source: Internet
Author: User

Before using Sina's stock data, because Sina Http/javascript lacks some data, uses the chrome own development tool to monitor the Teng Xun financial HTTP information, obtains the following method to obtain the stock data.

  Take Wuliangye as an example, to get the latest quotes, access the 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~ ";   in ~ to split the contents of the string, the subscript starts at 0, followed by [html]  0: Unknown   1: Name   2: Code   3: Current Price    4: prev.   5: Today Open   6: Turnover (hand)   7: outer disk   8: Inner disk   9: Buy a  10: Buy a quantity (hand)  11-18: Buy two buy five  19: Sell a  20: Sell a quantity  21-28: Sell two sell five  29: The recent one-on-one deal  30: Time  31:  32:%  33: Highest  34: lowest  35: Price/volume (Lot)/turnover  36: Turnover (Lot)  37: Turnover (million)  38: Change rate  39: P/E  40:   41: Highest  42: lowest   43: Amplitude  44: Circulating market Value  45: Total Market value  46: City Net rate  47: Trading price  48: Fall Stop price    get real-time capital flow: [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 ";   in ~ to split the contents of the string, subscript starting from 0, followed by: [HTML]   0: Code   1: Main inflow   2: main outflow   3: main net inflow &nbsp ;  4: main net inflow/capital inflow outflow sum   5: Retail inflow   6: Retail outflow   7: Retail inflow   8: Retail net inflow/inflow/outflow sum Nbsp; 9: Capital inflow outflow sum 1+2+5+6  10: Unknown  11: Unknown  12: 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";   in ~ Split the contents of the string, subscript starting from 0, followed by: [html] 0: Buy a large single  1: buying small single  2: Sell a large single  3: Sell small single    get brief information: [HTML] &nb Sp; 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 ";   in ~ to split the contents of the string, subscript starting from 0, followed by: [HTML]  0: Unknown  1: Name  2: Code  3: Current price  4: Rise and Fall  5:%  6: Volume (hand)  7: Turnover (million)  8:   9: Total Market value  

Tandberg Stock Data Interface Http/javascript

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.