How to obtain real-time stock transaction data

Source: Internet
Author: User
    1. WebService callHttp://www.webxml.com.cn/zh_cn/web_services.aspxThe website provides free and paid services, but the free limit on the number of requests per day is not practical here.

    2. I have used Sina's specialized JS server to parse data for a long time, and the speed is still quite good. Sometimes it is faster than the real-time data of specialized market software, the following section lists the data obtained.Code:

 

Java code

Url =Http://hq.sinajs.cn/list=sh600151,sz000830,s_sh000001,s_sz399001,s_sz399106";

the parameter after list is the relevant stock code. Multiple stock codes can be appended at the same time, and "sh ", add "SZ" to the front of the deep certificate.
If you only need to obtain the basic data of the stock transaction, add "s _" to the front, as shown in
s_sh000001, s_sz399001, s_sz399106: Shanghai Stock Index, Shenzhen stock index, and basic index data of Shenzhen stock index
the data format obtained is as follows:
var hq_str_sh600151 =" aerospace electromechanical, 14.49, 14.57, 14.37, 14.86, 14.10, 14.37, 14.38, 13146411,190836199, 1900, 14.37, 10601, 14.36, 16100, 14.35, 1700, 14.34, 6900, 14.33, 49200, 14.38, 60400, 14.39, 25373, 14.40, 4500, 14.41, 10650, 14.42-03-07,15: 05: 32 ";
var hq_str_sz000830 = "Luxi chemical, 8.82, 8.91, 8.53, 8.88, 8.38, 8.52, 8.53, 24754397,213, 118400, 8.52, 38400, 8.51, 368623, 8.50, 19000, 8.49, 69300, 8.48, 170948, 8.53, 57160, 8.55, 44729, 8.56, 27300, 8.57, 32700, 8.58-03-07,15: 20: 51 ";
var hq_str_sh1_01 = "Shanghai Stock Index, 4315.808, 4360.986, 4300.515, 4341.295, 4265.829, 56747402,92203521881, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2008-03-07,15: 05: 32 ";
var hq_str_s_sz399001 =" Deep certification into fingers, 15560.853,-135.272,-0.86, 3500683,963757 ";
var hq_str_s_sz399106 = "Deep certification index, 1369.839,-18.264,-1.32, 4279649095,4557752";

 

After obtaining the data, you can use the corresponding data based on the market software. This is a big success. I have been using the data for more than two months. It is generally very useful.

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.