S SPARKDATA
← Back to data results

China equities

Stock Risk Analysis

StockRiskAnalysis
Paid · PlusJSONTry online

This API requires paid access or an active trial. Review its fields and examples first; online payments are not available yet.

Data description

Use the field names shown below when building requests.

股票风险分析API用于获取沪深北上市公司β、α、波动率、夏普比率、市场收益率等风险指标,具体包括相对沪深300的α和β、相对综合指数的α和β、相对申万行业的α和β、相对中证500的α和β、日步长波动率、周步长波动率、年化夏普比率和市场收益率等关键指标。 使用场景: -支持用户获取沪深北上市公司阿尔法、β、波动率和夏普比率等关键指标; -用户需要了解A股公司市场收益率情况

POST /v1/data/operations/StockRiskAnalysis · JSON

Input parameters

FieldTypeConstraintDescription and example
stockObject
A股
string_array
string_array
Required
Dictionary selection: STOCK_A_COMPANY
证券市场主板,创业板,科创板通用的交易代码、证券简称、公司全名、曾用名、英文名

Example: ["1679"]

beginDate
开始日期
string
string
Optional查询开始日期,输入格式“YYYY-MM-DD”

Example: Example text

endDate
截止日期
string
string
Optional查询截止日期,输入格式“YYYY-MM-DD”(截止日期≥开始日期,当截止日期=开始日期时,交易区间为单日)

Example: Example text

pageNo
页面编号
string
string
Optional定位分页查询的目标页码,默认不限

Example: 1

pageSize
页内记录数
string
string
Optional单页返回的最大记录条数,默认不限

Example: 5

Response fields

FieldTypeConstraintDescription and example
stockobject
股票内码
string
string
—聚源用于确定证券唯一性的内码,包括证券市场主板,创业板,科创板的证券内码

Example: Example text

stockname
股票名称
string
string
—证券市场主板,创业板,科创板通用的证券简称

Example: Example text

stockcode
股票代码
string
string
—证券市场主板,创业板,科创板通用的证券代码

Example: Example text

tradingday
交易日期
string
string
—区间内交易日期,格式“YYYY-MM-DD”

Example: Example text

betalargecapindex
Beta值(相对沪深300,一年)
string
string
—Beta值(相对沪深300,一年):股票相对沪深300的Beta值,时间跨度为1年

Example: Example text

betacompositeindex
Beta值(相对综合指数,一年)
string
string
—Beta值(相对综合指数,一年):股票相对综合指数(股票在上海交易所上市,则取沪综指;在深圳交易所上市,则取深综指)的Beta值,时间跨度为1年

Example: Example text

betasywgindustryindex
Beta值(相对申万行业,一年)
string
string
—Beta值(相对申万行业,一年):股票相对申万行业的Beta值,时间跨度为1年

Example: Example text

betamidcapindex
Beta值(相对中证500,一年)
string
string
—Beta值(相对中证500,一年):股票相对中证500的Beta值,时间跨度为1年

Example: Example text

betaweekly
Beta值(两年,周步长)
string
string
—Beta值(两年,周步长):Beta=[n∑RXiRi-(∑RXi)*(∑Ri)]/[n∑(RXi^2)-(∑RXi)^2]Ri为步长区间股票增长率Rxi为步长区间基准增长率

Example: Example text

adjustbetaweekly
调整Beta值(两年,周步长)
string
string
—调整Beta值(两年,周步长):BETA值(两年,周步长)*0.67+0.33

Example: Example text

alphalargecapindex
阿尔法(相对沪深300,一年)
string
string
—阿尔法(相对沪深300,一年):股票相对沪深300的阿尔法,时间跨度为1年

Example: Example text

alphacompositeindex
阿尔法(相对综合指数,一年)
string
string
—阿尔法(相对综合指数,一年):股票相对综合指数(股票在上海交易所上市,则取沪综指;在深圳交易所上市,则取深综指)的阿尔法,时间跨度为1年

Example: Example text

alphasywgindustryindex
阿尔法(相对申万行业,一年)
string
string
—阿尔法(相对申万行业,一年):股票相对申万行业的阿尔法,时间跨度为1年

Example: Example text

alphamidcapindex
阿尔法(相对中证500,一年)
string
string
—阿尔法(相对中证500,一年):股票相对中证500的阿尔法,时间跨度为1年

Example: Example text

yearvolatilitybyday
波动率(日步长)
string
string
—波动率(日步长):计算中为日步长数据,时间跨度为1年

Example: Example text

yearvolatilitybyweek
波动率(周步长)
string
string
—波动率(周步长):计算中为周步长数据,时间跨度为1年

Example: Example text

yearsharperatio
夏普比率(年化)
string
string
—夏普比率(年化):股票年化夏普比率

Example: Example text

marketindexrorarithavg
市场收益率(算术平均)
string
string
—市场收益率(算术平均):Rm=(Rm1+Rm2)/2Rm1为上证综指年收益率(算术平均)Rm2为深证综指年收益率(算术平均)指数年平均收益率Rxi=(∑(Ri)/10)*100%

Example: Example text

marketindexrorgeommean
市场收益率(几何平均)
string
string
—市场收益率(几何平均):Rm=(Rm1+Rm2)/2Rm1为上证综指年收益率(几何平均)Rm2为深证综指年收益率(几何平均)

Example: Example text

Request example

Example instruments, required parameters and applicable page limits are prefilled. Open the side drawer for field notes and a live response.

{
  "parameters": {
    "stockObject": [
      "1679"
    ],
    "pageNo": "1",
    "pageSize": "5"
  }
}
  • stockObject: 贵州茅台 · 600519.SH
  • Samples use verified instruments and dictionary values. Records depend on the query range, data updates and the selected key's permissions.
  • The sample requests 5 records; some business aggregates may return more rows, as shown in the actual response.

Coverage and access boundaries

Run the example to check the securities, dates and fields you need. Available history and content rights vary by endpoint. Requests use your account access and the selected API key.

Follow the parameter notes for minute intervals, price adjustment and time units. A missing field does not mean a zero value.