Sina A shares, Hong Kong stocks, US stocks, stock options market interface

Recently, I have been doing stock-related things, but it is still too expensive for individual users to spend money on stock market data. I have checked a lot of information, and in general, Sina's market interface is relatively stable and complete. The following is to separate the obtained market strings by commas to generate an array, and list the corresponding meanings of each, some are not found, welcome everyone to improve

 

details as follows:

 

A crotch

sh Shanghai sz Shenzhen

http://hq.sinajs.cn/list=sh600379

 

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_sh600379 = "Baoguang shares, 18.100,18.190,19.080,19.090,18.100,19.080,19.090,2871283,53939719.000,1100,19.080,4600,19.070,5500,19.060,6200,19.050,13900,19.040,13159,19.090, 20122,19.100,8000,19.110,7800,19.120,1300,19.130,2016-06-22,15:00:00,00";  

 

temp[0]------Baoguang shares------stock name

temp[1]------18.100------ Today's opening price

temp[2]------18.190------ Yesterday's closing price

temp[3]------19.080------current price (the current price of the stock, after the closing, this price is the closing price of the day)

temp[4]------19.090------Highest price

temp[5]------18.100------Lowest price

temp[6]------19.080------buy one

temp[7]------19.090------Sell one

temp[8]------2871283------Total amount (trading volume, the number of stocks traded, since stock trading takes one hundred shares as the basic unit, so when using, usually divide this value by one hundred;)

temp[9]------53939719.000------The transaction value, the unit is "yuan". For the sake of clarity, the unit of transaction amount is usually "10,000 yuan", so the value is usually divided by 10,000 ;

temp[10]------1100------Buy one pending order quantity (that is, 11 lots)

temp[11]------19.080------buy one

temp[12]------4600------Buy 2 pending order quantity

temp[13]------19.070------buy two

temp[14]------5500------Buy three pending order quantity

temp[15]------19.060------Buy three

temp[16]------6200------Buy four pending order quantity

temp[17]------19.050------buy four

temp[18]------13900------Buy 5 pending order quantity

temp[19]------19.040------buy five

temp[20]------13159------Sell one pending order quantity

temp[21]------19.090------Sell one

temp[22]------20122------Number of sell second pending orders

temp[23]------19.100------Sell two

temp[24]------8000------Sell three quantity

temp[25]------19.110------Sell three

temp[26]------7800------Sell four quantity

temp[27]------19.120------Sell four

temp[28]------1300------Sell five quantity

temp[29]------19.130------Sell five

temp[30]------2016-06-22------date

temp[31]------15:00:00------time

temp[32]------00------00 means closing

 

 

Hong Kong stocks

http://hq.sinajs.cn/list=hk00001

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_hk00001="CHEUNG KONG,Changhe,90.300,91.050,91.050,90.000,90.750,-0.300,-0.329,90.650,90.750,627798876,61932826,2.954,2.810,118.600,87 01";  

 

temp[0]------CHEUNG KONG------name

temp[1]------long sum------stock name

temp[2]------90.300------ Today's opening price

temp[3]------91.050------Yesterday's closing price

temp[4]------91.050------Highest price

temp[5]------90.000------Lowest price

temp[6]------90.750------Current price (current price)

temp[7]------ -0.300------ Changes

temp[8]------ -0.329------ Increase

temp[9]------90.650------buy one

temp[10]------90.750------Sell one

temp[11]------627798876------transaction volume

temp[12]------6932826------volume

temp[13]------2.954------P/E ratio

temp[14]------2.810------Cost rate (2.810%)

temp[15]------118.800------The highest in 52 weeks

temp[16]------87.600------52-week minimum

temp[17]------2016/06/22------date

temp[18]------16:01------time

 

US stocks

http://hq.sinajs.cn/list=gb_sina

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_gb_sina="Sina,48.98,-0.57,2016-06-22 08:19:42,-0.28,49.31,49.83,48.92,57.01,32.61,280771,609728,3443098080,0.79,62,00,0.00,1. ,0.00,70296000,58.00,48.98,0.00,0.00,,Jun 21 04:00PM EDT,49.26,0.00";  

 

temp[0]------Sina------

temp[1]------48.98------current price

temp[2]------ -0.57------ Increase (-0.57%)

temp[3]------2016-06-22 08:19:42------time

temp[4]------ -0.28------ Changes

temp[5]------49.31------Opening price

temp[6]------49.83------Highest price

temp[7]------48.92------lowest price

temp[8]------57.01------52 weeks highest

temp[9]------32.61------52-week minimum

temp[10]------280775------volume

temp[11]------609728------10 daily average

temp[12]------3443098080------Market value

temp[13]------0.79------Earnings per share

temp[14]------62.00------P/E ratio

temp[15]------0.00------

temp[16]------1.15------beta coefficient

temp[17]------0.00------

temp[18]------0.00------

temp[19]------70296000------Share capital

temp[20]------58.00------

temp[21]------48.98------Today's closing price

temp[22]------0.00------

temp[23]------0.00------

temp[24]------------

temp[25]------Jun 21 04:00PM EDT------

temp[26]------49.26------ Yesterday's closing price

temp[27]------0.00------

 

 

stock options

http://hq.sinajs.cn/list=OP_UP_5100501606 (call option)

 

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_OP_UP_5100501606 = "CON_OP_10000567, CON_OP_10000551, CON_OP_10000552, CON_OP_10000541, CON_OP_10000535, CON_OP_10000529, CON_OP_10000523, CON_OP_10000459, CON_OP_10000449, CON_OP_10000450, CON_OP_10000451, CON_OP_10000452, CON_OP_10000453, CON_OP_10000463, CON_OP_10000464, CON_OP_10000469, CON_OP_10000473, CON_OP_10000477,";  

http://hq.sinajs.cn/list=OP_DOWN_5100501606 (put option)

 

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_OP_DOWN_5100501606 = "CON_OP_10000568, CON_OP_10000553, CON_OP_10000554, CON_OP_10000542, CON_OP_10000536, CON_OP_10000530, CON_OP_10000524, CON_OP_10000460, CON_OP_10000454, CON_OP_10000455, CON_OP_10000456, CON_OP_10000457, CON_OP_10000458, CON_OP_10000465, CON_OP_10000466, CON_OP_10000470, CON_OP_10000474, CON_OP_10000478,";  

 

You can obtain the code of the current month's call and put options through the above two addresses. The last four digits of OP_UP_5100501606 and OP_DOWN_5100501606 are the last two digits of the year + the current month. For example, in July 2017, the last four digits are 1707. Then get the market data of the specific option through the address below.

 

 

http://hq.sinajs.cn/list=CON_OP_10000555

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_CON_OP_10000555="2,0.2527,0.2537,0.2545,1,4078,5.27,1.8500,0.2410,0.2438,0.4732,0.0508,0.2600,1,0.2574,10,0.2571,1,0.2550.2,1,0.257 2,0.2524,1,0.2523,2,0.2513,10,0.2504,14,2016-06-22 15:05:45,0,E01,EBS,510050,50ETF purchase September 1850,6.64,0.2549,0.2389,263 ,653858.00";  

 

temp[0]------2------ buy a pending order

temp[1]------0.2527------buy one price

temp[2]------0.2537------current price current price

temp[3]------0.2545------Sell one price

temp[4]------1------Sell a pending order

temp[5]------4078------Position

temp[6]------5.27------Increase

temp[7]------1.8500------ exercise price

temp[8]------0.2410------Yesterday

temp[9]------0.2438------This opening

temp[10]------0.4732------Daily limit price

temp[11]------0.0508------Limit-down price

temp[12]------0.2600------Sell 5

temp[13]------1------Sell 5 pending order volume

temp[14]------0.2574------Sell 4

temp[15]------10------Sell 4 pending order volume

temp[16]------0.2571------Sell 3

temp[17]------1------Sell 3 pending order

temp[18]------0.2550------Sell 2

temp[19]------1------Sell 2 pending order

temp[20]------0.2545------Sell 1

temp[21]------1------Sell 1 pending order

temp[22]------0.2527------buy 1

temp[23]------2------Buy 1 pending order volume

temp[24]------0.2524------buy 2

temp[25]------1------buy 2 pending order volume

temp[26]------0.2523------buy 3

temp[27]------2------buy 3 pending order

temp[28]------0.2513------buy 4

temp[29]------10------Buy 4 pending order

temp[30]------0.2504------buy 5

temp[31]------14------Buy 5 pending order

temp[32]------2016-06-22 15:05:45------time

temp[33]------0------0 is a call option, 1 is a put option

temp[34]------E01------

temp[35]------EBS------

temp[36]------510050------Option constituent stocks

temp[37]------50ETF purchase September 1850------Option name

temp[38]------6.64------

temp[39]------0.2549------Highest price

temp[40]------0.2389------lowest price

temp[41]------263------Total turnover

temp[42]------653858.00------transaction amount

 

The above is the acquisition of the market, and the following is the acquisition of some indexes

 

 

http://hq.sinajs.cn/list=s_sh000001

 

 

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_s_sh000001="Shanghai Index,2905.5495,26.9920,0.94,1305904,15633938";  

 

 

 

http://hq.sinajs.cn/list=s_sz399001

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_s_sz399001="Shenzhen Component Index,10297.98,166.121,1.64,197126765,32967027";  

 

http://hq.sinajs.cn/list=s_sz399300

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_s_sz399300="CSI300,3133.96,27.644,0.89,66487113,8134871";  

 

http://hq.sinajs.cn/list=s_sz399006

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_s_sz399006="GEM index,2144.82,52.818,2.52,14222178,2902867";  

 

http://hq.sinajs.cn/list=int_hangseng

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_int_hangseng="Hang Seng Index,20795.12,126.68,0.61";  

 

http://hq.sinajs.cn/list=int_dji

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_int_dji="Dow,17829.73,24.86,0.14";  

 

http://hq.sinajs.cn/list=int_nasdaq

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_int_nasdaq="NASDAQ,4843.76,6.55,0.14";  

 

http://hq.sinajs.cn/list=int_sp500

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_int_sp500="S&P,2088.90,5.65,0.27";  

 

http://hq.sinajs.cn/list=int_ftse

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_int_ftse="London Index,6236.51,9.96,0.16";  

 

http://hq.sinajs.cn/list=s_sz399005

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_s_sz399005="Small board finger,6801.21,103.199,1.54,18323453,3113027";  

 

http://hq.sinajs.cn/list=int_nikkei

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_int_nikkei="Nikkei,16065.72,-103.39,-0.64";  

 

http://hq.sinajs.cn/list=b_TWSE

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_b_TWSE="Taiwan Taipei Index,8716.25,31.40,0.36,1:49 AM";  

http://hq.sinajs.cn/list=b_FSSTI

[html] view plain copy on CODE to view the code slice derived to my code slice

var hq_str_b_FSSTI="FTSE Singapore Straits Times Index,2786.13,-3.32,-0.12,5:10 AM";  

 

Sina picture interface

 

View the daily candlestick chart:

http://image.sinajs.cn/newchart/daily/n/sh601006.gif

 

Time-sharing query:

http://image.sinajs.cn/newchart/min/n/sh000001.gif

 

Daily K line query:

http://image.sinajs.cn/newchart/daily/n/sh000001.gif

 

Weekly K line query:

http://image.sinajs.cn/newchart/weekly/n/sh000001.gif

 

Monthly K-line query:

http://image.sinajs.cn/newchart/monthly/n/sh000001.gif

 

Attached below is a method I use C# to get market data

 

     

 

[csharp] view plain copy on CODE view code slice derived to my code slice

/// <summary>  

/// Get web content from url  

/// </summary>  

/// <param name="url"></param>  

/// <returns></returns>  

private static string GetHttpString(string url)  

{  

    try  

    {  

        HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);  

  

  

        HttpWebResponse response = (HttpWebResponse)request.GetResponse();  

        string ret = string.Empty;  

        if (response.StatusCode == HttpStatusCode.OK)  

        {  

            StreamReader reader = new StreamReader(response.GetResponseStream(), System.Text.Encoding.GetEncoding("GB2312"));  

            ret = reader.ReadToEnd();  

        }  

        return ret;  

    }  

    catch  

    {  

        return null;  

    }  

}  

 

 

http://mizarrr.blog.163.com/blog/static/1651594112011101882538362/

http://blog.csdn.net/simon803/article/details/7784682

 

http://blog.csdn.net/zai_yuzhong/article/details/51735769

 

http://www.aigaogao.com/tools/history.html?s=000877

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326360446&siteId=291194637