Tencent stock data interface http/javascript

Source: Internet
Author: User

Previously, Sina stock data was used. Because Sina http/javascript lacks some data, chrome's built-in development tools were used to monitor Tencent financial's HTTP information. The following method is obtained to obtain stock data. Taking Wuliangye as an example, to obtain the latest market, access 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 ~ "; ~ Split the content in the string. The subscript starts from 0, followed by [html] 0: Unknown 1: Name 2: Code 3: current price 4: limit to 5: Open 6: transaction volume (hand) 7: External disk 8: Internal disk 9: Buy a 10: Buy a quantity (hand) 11-18: Buy Two buy five 19: sell a 20: sell a Volume 21-28: sell two sell five 29: recent transactions 30: time 31: Rise/fall 32: Rise/fall % 33: Maximum 34: minimum 35: price/transaction volume (hand) /transaction volume 36: transaction volume (hand) 37: transaction volume (10 thousand) 38: turnover rate 39: price-earnings ratio 40: 41: Maximum 42: Minimum 43: Amplitude 44: circulation market value 45: total market value 46: net rate 47: price limit 48: price limit 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 "; ~ Split the content in the string. The subscript starts from 0, followed by [html] 0: Code 1: main flow 2: main flow 3: main flow 4: main net inflows/inflows and outflows 5: Retail inflows 6: Retail outflows 7: Retail inflows 8: Retail inflows/capital inflows and outflows 9: total capital inflows and outflows 1 + 2 + 5 + 6 10: Unknown 11: Unknown 12: Name 13: Date Get disk analysis: [html] http://qt.gtimg.cn/q=s_pksz000858 return data: [html] v_s_pksz000858 = "0.196 ~ 0.258 ~ 0.221 ~ 0.325 "; ~ Split the content in the string, the subscript starts from 0, followed by: [html] 0: buy large orders 1: buy small orders 2: sell large orders 3: sell small orders 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 "; ~ Split the content in the string. The subscript starts from 0 and is: [html] 0: Unknown 1: Name 2: Code 3: current price 4: Rise/fall 5: Rise/fall % 6: transaction volume (hand) 7: transaction volume (10 thousand) 8: 9: total market value

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.