CNE5风险模型

支持获取CNE5版本风险因子暴露数据、因子收益、特质收益率数据

使用代码数据样例
参数 含义 支持格式 说明
start_date 开始日期 str,int,float,datetime-like
end_date 结束日期 str,int,float,datetime-like
datatype 风险模型数据项 str 支持以下三种数据项:
'exposure':因子暴露度
'factor_ret':因子收益率
'specific_ret':特质收益率
is_panel 返回数据格式 bool 只有当 datatype = 'exposure'时生效
#获取因子暴露度数据
get_stylefactor('20230406','20230410','exposure',is_panel=1)['2023-04-06']
#获取因子收益数据
get_stylefactor('20230406', '20230410', 'factor_ret')
#获取特质收益率数据
get_stylefactor('20230406', '20230410', 'specific_ret')