This article is a mirror article of machine translation, please click here to jump to the original article.

View: 9177|Reply: 0

Tencent, Hexun.com, Sina, Snowball, NetEase stock interface data

[Copy link]
Posted on 8/8/2020 10:17:54 AM | | |
Tencent Stock Interface:

Time-sharing chart
http://data.gtimg.cn/flashdata/h ... 0.28163905744440854

Five-day time-sharing chart
http://data.gtimg.cn/flashdata/h ... &visitDstTime=1

Day k
http://data.gtimg.cn/flashdata/h ... &visitDstTime=1

The day K of the specified year comes first
http://data.gtimg.cn/flashdata/h ... 0.js?visitDstTime=1

Zhou K
http://data.gtimg.cn/flashdata/h ... &visitDstTime=1

Month k
http://data.gtimg.cn/flashdata/h ... 002.js?maxage=43201

Real-time volume breakdown
http://stock.gtimg.cn/data/index ... ;c=sz002451&p=2
p is pagination

Big order data
http://stock.finance.qq.com/ssto ... &opt=10&o=0
opt=10 11 12 13 The corresponding turnover is greater than or equal to (1 million, 2 million, 5 million, 10 million)
opt=1,2,3,4,5,6,7,8 The corresponding trading volume is greater than or equal to (100 lots, 200 lots, 300 lots, 400 lots, 500 lots, 800 lots, 1000 lots, 1500 lots, 2000 lots)

Hexun.com stock interface:

Day K (all data)
http://flashquote.stock.hexun.com/Quotejs/DA/1_601398_DA.html

Day k for the specified time zone
http://webstock.quote.hermes.hex ... p; callback=callback

Timeline
http://flashquote.stock.hexun.com/Quotejs/MA/1_000001_MA.html?

Specify the timeline for the time zone
http://webstock.quote.hermes.hex ... p; callback=callback

Detail interface
http://flashquote.stock.hexun.co ... =0.6584310308098793

Sina Stock Interface:

Data every 5 minutes for the last twenty days or so
http://money.finance.sina.com.cn ... =5&datalen=1023
(Parameters: stock code, minute interval (5, 15, 30, 60), mean (5, 10, 15, 20, 25), query number point (maximum value 242))

Sina Keyword Query Stock Interface
http://suggest3.sinajs.cn/sugges ... tdata_1429775785401

Check the latest stock market
http://hq.sinajs.cn/list=sh601003,sh601001

The return result is as follows:

var hq_str_sz002142="Bank of Ningbo, 22.19,22.18,22.39,22.46,21.91,22.38,22.39,68778438,1527185943.73,674547,22.38,14600,22.37,3600,22.36,12700,22.35,2000,22.34,109847,22.39,255400,22.40,13100,22.41,35200,22.42,39200,22.43,2015-06-12,15:05:37 ,00";
Open today, close yesterday, close today, highest, lowest, volume, turnover
var hq_str_sh601006="Daqin Railway, 27.55, 27.25, 26.91, 27.55, 26.20, 26.91, 26.92,
22114263, 589824680, 4695, 26.91, 57590, 26.90, 14700, 26.89, 14300,
26.88, 15100, 26.87, 3100, 26.92, 8900, 26.93, 14230, 26.94, 25150, 26.95, 15220, 26.96, 2008-01-11, 15:05:32";



This string is made up of many data spliced together, separated by commas of different meanings, and according to the programmer's idea, the sequence number starts from 0.
0: "Daqin Railway", stock name;
1: "27.55", today's opening price;
2: "27.25", yesterday's closing price;
3: "26.91", current price;
4: "27.55", today's high price;
5: "26.20", today's low;
6: "26.91", the bid price, that is, the "buy one" offer;
7: "26.92", the bidding price, that is, the "sell one" quotation;
8: "22114263", the number of shares traded, because the stock transaction is based on 100 shares, so when using, the value is usually divided by 100;
9: "589824680", the transaction amount, the unit is "yuan", for the sake of clarity at a glance, usually "10,000 yuan" is used as the unit of transaction amount, so the value is usually divided by 10,000;
10: "4695", "buy one" to apply for 4695 shares, that is, 47 lots;
11: "26.91", "buy one" quotation;
12: "57590", "buy two"
13: "26.90", "Buy 2"
14: "14700", "Buy 3"
15: "26.89", "Buy 3"
16: "14300", "Buy 4"
17: "26.88", "Buy 4"
18: "15100", "buy five"
19: "26.87", "Buy Five"
20: "3100", "sell one" declares 3100 shares, that is, 31 lots;
21: "26.92", "Sell One" quote
(22, 23), (24, 25), (26, 27), (28, 29) are "sell two" to "sell four" respectively
30: "2008-01-11", date;
31: "15:05:32", time;

For candlestick charts of stocks, daily charts, etc. can be obtained by requesthttp://image.sinajs.cn/..../.../.gif this URL, which represents the stock code, as shown below:
Check out the daily candlestick chart:
http://image.sinajs.cn/newchart/daily/n/sh601006.gif

Timeline 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

NetEase's data problem is that it can only provide non-reinstated data, so we extract the circulating market value and total market value from NetEase, and the others extract from Snowball.

NetEase's interface is:

NetEase's data format is CSV file

Daily

http://quotes.money.163.com/service/chddata.html?code=Code &start=start time &end = end time &fields=TCLOSE; HIGH; LOW; TOPEN; LCLOSE; CHG; PCHG; TURNOVER; VOTURNOVER; VATURNOVER; TCAP; MCAP

Parameter description: The code is the stock code, add 0 before Shanghai stocks, if 600756 becomes 0600756, Shenzhen stocks add 1 before it. The time is a 6-digit identifier, year, month, day, and fields identify the data you want to request. It can remain unchanged.

For example, large-cap index data query (Shanghai Composite Index 000001 plus 0, CSI 300 Index 000300 stock plus 0, Shenzhen Component Index 399001 plus 1, Small and Medium Board Index 399005 plus 1, ChiNext Index 399006 plus 1):
http://quotes.money.163.com/serv ... CHG;PCHG;VOTURNOVER

Shanghai stock data query (Inspur):http://quotes.money.163.com/serv ... HG;PCHG;VOTURNOVER;

The interface of the snowball is:

The data format of Snowball is a json string

https://xueqiu.com/stock/forchartk/stocklist.json?symbol=Code &period=1day&type=Reinstated or not reinstated &begin=Start timestamp&end=End timestamp&_=End timestamp

Address parameters: Shanghai stocks are represented by after and before the number of SH, Shenzhen stocks are added before the number, and SZ is added before the number, and the time interval represented by period is represented by after and before, and the start time and end time are represented by timestamps.

Please note that you must click on the URL below before accessing ithttps://xueqiu.com/, enter the official website once, and then record your data in the http header, and then you can get the data through the following URL.






Previous:ASP.NET Allows cross-domain OPTIONS requests
Next:.NET/C# gets all the days of the year
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com