Recently want to write a small stock query software, the Internet found Sina's JavaScript interface, more convenient, but Sina's interface did not change the rate of exchange and other information directly back, just see Hexun interface has this information, so record down.
Query Interface Example:
http://bdcjhq.hexun.com/quote?s2=000001.sh,399001.sz,399300.sz,601186.sh
return Result:
From the returned results, the stock data should be JSON strings, so the resolution is more convenient.
The meanings of each field are as follows:
"601186.sh"://Stock Code
{
NA: "China Railway Construction",//stock Chinese name
PC: "7.22",//closed yesterday
OP: "7.22",//Open today
VO: "174035",//volume
Tu: "12804",//turnover
Hi: "7.42",//High price
Lo: "7.22",//Low price
LA: "7.39",//Pay
Type: "2",//Type, 1: Index, 2: Stock?
Time: "2011-01-26-11:30:15",//Times
SY: "18.45",//price/earnings ratio = Current price/the sum of diluted earnings per share in the last four quarters
LT: "24.50",//circulation of shares (unit: million shares)
SZ: "911.74",//Total market value (unit: Billion)
HS: "0.71",//Change hand rate
is: "0"//?? temporarily unknown
}
and News Finance API