and News Finance API

Source: Internet
Author: User

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

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.