瀏覽代碼

上传文件至 'modules'

Joey 6 月之前
父節點
當前提交
f32d4756e0

+ 54 - 0
modules/fund_indicator_dolphin.sql

@@ -0,0 +1,54 @@
+USE mfdb;
+
+CREATE TABLE `fund_indicator_dolphin` (
+  `fund_id` varchar(10) NOT NULL COMMENT '基金id',
+  `end_date` varchar(7) NOT NULL COMMENT '截至日期',
+  `info_ratio_6m` decimal(22,6) DEFAULT NULL,
+  `info_ratio_1y` decimal(22,6) DEFAULT NULL,
+  `info_ratio_2y` decimal(22,6) DEFAULT NULL,
+  `info_ratio_3y` decimal(22,6) DEFAULT NULL,
+  `info_ratio_4y` decimal(22,6) DEFAULT NULL,
+  `info_ratio_5y` decimal(22,6) DEFAULT NULL,
+  `info_ratio_10y` decimal(22,6) DEFAULT NULL,
+  `info_ratio_ytd` decimal(22,6) DEFAULT NULL,
+  `info_ratio_incep` decimal(22,6) DEFAULT NULL,
+  `m2_6m` decimal(22,6) DEFAULT NULL,
+  `m2_1y` decimal(22,6) DEFAULT NULL,
+  `m2_2y` decimal(22,6) DEFAULT NULL,
+  `m2_3y` decimal(22,6) DEFAULT NULL,
+  `m2_4y` decimal(22,6) DEFAULT NULL,
+  `m2_5y` decimal(22,6) DEFAULT NULL,
+  `m2_10y` decimal(22,6) DEFAULT NULL,
+  `m2_ytd` decimal(22,6) DEFAULT NULL,
+  `m2_incep` decimal(22,6) DEFAULT NULL,
+  `tracking_error_6m` decimal(22,6) DEFAULT NULL,
+  `tracking_error_1y` decimal(22,6) DEFAULT NULL,
+  `tracking_error_2y` decimal(22,6) DEFAULT NULL,
+  `tracking_error_3y` decimal(22,6) DEFAULT NULL,
+  `tracking_error_4y` decimal(22,6) DEFAULT NULL,
+  `tracking_error_5y` decimal(22,6) DEFAULT NULL,
+  `tracking_error_10y` decimal(22,6) DEFAULT NULL,
+  `tracking_error_ytd` decimal(22,6) DEFAULT NULL,
+  `tracking_error_incep` decimal(22,6) DEFAULT NULL,
+  `var_2y` decimal(22,6) DEFAULT NULL,
+  `var_3y` decimal(22,6) DEFAULT NULL,
+  `var_4y` decimal(22,6) DEFAULT NULL,
+  `var_5y` decimal(22,6) DEFAULT NULL,
+  `var_10y` decimal(22,6) DEFAULT NULL,
+  `var_incep` decimal(22,6) DEFAULT NULL,
+  `cvar_2y` decimal(22,6) DEFAULT NULL,
+  `cvar_3y` decimal(22,6) DEFAULT NULL,
+  `cvar_4y` decimal(22,6) DEFAULT NULL,
+  `cvar_5y` decimal(22,6) DEFAULT NULL,
+  `cvar_10y` decimal(22,6) DEFAULT NULL,
+  `cvar_incep` decimal(22,6) DEFAULT NULL,
+  `creatorid` int DEFAULT NULL COMMENT '创建者Id,默认第一次创建者名称,创建后不变更',
+  `createtime` datetime DEFAULT NULL COMMENT '创建时间,默认第一次创建的getdate()时间',
+  `updaterid` int DEFAULT NULL COMMENT '修改者Id;第一次创建时与Creator值相同,修改时与修改人值相同',
+  `updatetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间;第一次创建时与CreatTime值相同,修改时与修改时间相同',
+  `isvalid` tinyint NOT NULL DEFAULT '1' COMMENT '记录的有效性;1-有效;0-无效;',
+
+  PRIMARY KEY (`fund_id`,`end_date`),
+  KEY (`end_date`),
+  KEY (`updatetime`)
+) COMMENT='DolphinDB写回的基金历史指标表'

+ 96 - 0
modules/fund_risk_stats_dolphin.sql

@@ -0,0 +1,96 @@
+USE mfdb;
+
+CREATE TABLE `fund_risk_stats_dolphin` (
+  `fund_id` varchar(10) NOT NULL COMMENT '基金id',
+  `end_date` varchar(7) NOT NULL COMMENT '截至日期',
+  `stddev_6m` decimal(22,6) DEFAULT NULL,
+  `stddev_1y` decimal(22,6) DEFAULT NULL,
+  `stddev_2y` decimal(22,6) DEFAULT NULL,
+  `stddev_3y` decimal(22,6) DEFAULT NULL,
+  `stddev_4y` decimal(22,6) DEFAULT NULL,
+  `stddev_5y` decimal(22,6) DEFAULT NULL,
+  `stddev_10y` decimal(22,6) DEFAULT NULL,
+  `stddev_ytd` decimal(22,6) DEFAULT NULL,
+  `stddev_incep` decimal(22,6) DEFAULT NULL,
+  `downsidedev_6m` decimal(22,6) DEFAULT NULL,
+  `downsidedev_1y` decimal(22,6) DEFAULT NULL,
+  `downsidedev_2y` decimal(22,6) DEFAULT NULL,
+  `downsidedev_3y` decimal(22,6) DEFAULT NULL,
+  `downsidedev_4y` decimal(22,6) DEFAULT NULL,
+  `downsidedev_5y` decimal(22,6) DEFAULT NULL,
+  `downsidedev_10y` decimal(22,6) DEFAULT NULL,
+  `downsidedev_ytd` decimal(22,6) DEFAULT NULL,
+  `downsidedev_incep` decimal(22,6) DEFAULT NULL,
+  `alpha_6m` decimal(22,6) DEFAULT NULL,
+  `alpha_1y` decimal(22,6) DEFAULT NULL,
+  `alpha_2y` decimal(22,6) DEFAULT NULL,
+  `alpha_3y` decimal(22,6) DEFAULT NULL,
+  `alpha_4y` decimal(22,6) DEFAULT NULL,
+  `alpha_5y` decimal(22,6) DEFAULT NULL,
+  `alpha_10y` decimal(22,6) DEFAULT NULL,
+  `alpha_ytd` decimal(22,6) DEFAULT NULL,
+  `alpha_incep` decimal(22,6) DEFAULT NULL,
+  `winrate_6m` decimal(22,6) DEFAULT NULL,
+  `winrate_1y` decimal(22,6) DEFAULT NULL,
+  `winrate_2y` decimal(22,6) DEFAULT NULL,
+  `winrate_3y` decimal(22,6) DEFAULT NULL,
+  `winrate_4y` decimal(22,6) DEFAULT NULL,
+  `winrate_5y` decimal(22,6) DEFAULT NULL,
+  `winrate_10y` decimal(22,6) DEFAULT NULL,
+  `winrate_ytd` decimal(22,6) DEFAULT NULL,
+  `winrate_incep` decimal(22,6) DEFAULT NULL,
+  `beta_6m` decimal(22,6) DEFAULT NULL,
+  `beta_1y` decimal(22,6) DEFAULT NULL,
+  `beta_2y` decimal(22,6) DEFAULT NULL,
+  `beta_3y` decimal(22,6) DEFAULT NULL,
+  `beta_4y` decimal(22,6) DEFAULT NULL,
+  `beta_5y` decimal(22,6) DEFAULT NULL,
+  `beta_10y` decimal(22,6) DEFAULT NULL,
+  `beta_ytd` decimal(22,6) DEFAULT NULL,
+  `beta_incep` decimal(22,6) DEFAULT NULL,
+  `skewness_6m` decimal(22,6) DEFAULT NULL,
+  `skewness_1y` decimal(22,6) DEFAULT NULL,
+  `skewness_2y` decimal(22,6) DEFAULT NULL,
+  `skewness_3y` decimal(22,6) DEFAULT NULL,
+  `skewness_4y` decimal(22,6) DEFAULT NULL,
+  `skewness_5y` decimal(22,6) DEFAULT NULL,
+  `skewness_10y` decimal(22,6) DEFAULT NULL,
+  `skewness_ytd` decimal(22,6) DEFAULT NULL,
+  `skewness_incep` decimal(22,6) DEFAULT NULL,
+  `kurtosis_6m` decimal(22,6) DEFAULT NULL,
+  `kurtosis_1y` decimal(22,6) DEFAULT NULL,
+  `kurtosis_2y` decimal(22,6) DEFAULT NULL,
+  `kurtosis_3y` decimal(22,6) DEFAULT NULL,
+  `kurtosis_4y` decimal(22,6) DEFAULT NULL,
+  `kurtosis_5y` decimal(22,6) DEFAULT NULL,
+  `kurtosis_10y` decimal(22,6) DEFAULT NULL,
+  `kurtosis_ytd` decimal(22,6) DEFAULT NULL,
+  `kurtosis_incep` decimal(22,6) DEFAULT NULL,
+  `worstmonth_6m` decimal(22,6) DEFAULT NULL,
+  `worstmonth_1y` decimal(22,6) DEFAULT NULL,
+  `worstmonth_2y` decimal(22,6) DEFAULT NULL,
+  `worstmonth_3y` decimal(22,6) DEFAULT NULL,
+  `worstmonth_4y` decimal(22,6) DEFAULT NULL,
+  `worstmonth_5y` decimal(22,6) DEFAULT NULL,
+  `worstmonth_10y` decimal(22,6) DEFAULT NULL,
+  `worstmonth_ytd` decimal(22,6) DEFAULT NULL,
+  `worstmonth_incep` decimal(22,6) DEFAULT NULL,
+  `maxdrawdown_6m` decimal(22,6) DEFAULT NULL,
+  `maxdrawdown_1y` decimal(22,6) DEFAULT NULL,
+  `maxdrawdown_2y` decimal(22,6) DEFAULT NULL,
+  `maxdrawdown_3y` decimal(22,6) DEFAULT NULL,
+  `maxdrawdown_4y` decimal(22,6) DEFAULT NULL,
+  `maxdrawdown_5y` decimal(22,6) DEFAULT NULL,
+  `maxdrawdown_10y` decimal(22,6) DEFAULT NULL,
+  `maxdrawdown_ytd` decimal(22,6) DEFAULT NULL,
+  `maxdrawdown_incep` decimal(22,6) DEFAULT NULL,
+  `creatorid` int DEFAULT NULL COMMENT '创建者Id,默认第一次创建者名称,创建后不变更',
+  `createtime` datetime DEFAULT NULL COMMENT '创建时间,默认第一次创建的getdate()时间',
+  `updaterid` int DEFAULT NULL COMMENT '修改者Id;第一次创建时与Creator值相同,修改时与修改人值相同',
+  `updatetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间;第一次创建时与CreatTime值相同,修改时与修改时间相同',
+  `isvalid` tinyint NOT NULL DEFAULT '1' COMMENT '记录的有效性;1-有效;0-无效;',
+
+  PRIMARY KEY (`fund_id`,`end_date`),
+  KEY (`end_date`),
+  KEY (`updatetime`)
+) COMMENT='DolphinDB写回的基金历史风险指标表'

+ 78 - 0
modules/fund_riskadjret_stats_dolphin.sql

@@ -0,0 +1,78 @@
+USE mfdb;
+
+CREATE TABLE `fund_riskadjret_stats_dolphin` (
+  `fund_id` varchar(10) NOT NULL COMMENT '基金id',
+  `end_date` varchar(7) NOT NULL COMMENT '截至日期',
+  `sharperatio_6m` decimal(22,6) DEFAULT NULL,
+  `sharperatio_1y` decimal(22,6) DEFAULT NULL,
+  `sharperatio_2y` decimal(22,6) DEFAULT NULL,
+  `sharperatio_3y` decimal(22,6) DEFAULT NULL,
+  `sharperatio_4y` decimal(22,6) DEFAULT NULL,
+  `sharperatio_5y` decimal(22,6) DEFAULT NULL,
+  `sharperatio_10y` decimal(22,6) DEFAULT NULL,
+  `sharperatio_ytd` decimal(22,6) DEFAULT NULL,
+  `sharperatio_incep` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_6m` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_1y` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_2y` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_3y` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_4y` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_5y` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_10y` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_ytd` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_incep` decimal(22,6) DEFAULT NULL,
+  `treynorratio_6m` decimal(22,6) DEFAULT NULL,
+  `treynorratio_1y` decimal(22,6) DEFAULT NULL,
+  `treynorratio_2y` decimal(22,6) DEFAULT NULL,
+  `treynorratio_3y` decimal(22,6) DEFAULT NULL,
+  `treynorratio_4y` decimal(22,6) DEFAULT NULL,
+  `treynorratio_5y` decimal(22,6) DEFAULT NULL,
+  `treynorratio_10y` decimal(22,6) DEFAULT NULL,
+  `treynorratio_ytd` decimal(22,6) DEFAULT NULL,
+  `treynorratio_incep` decimal(22,6) DEFAULT NULL,
+  `jensen_6m` decimal(22,6) DEFAULT NULL,
+  `jensen_1y` decimal(22,6) DEFAULT NULL,
+  `jensen_2y` decimal(22,6) DEFAULT NULL,
+  `jensen_3y` decimal(22,6) DEFAULT NULL,
+  `jensen_4y` decimal(22,6) DEFAULT NULL,
+  `jensen_5y` decimal(22,6) DEFAULT NULL,
+  `jensen_10y` decimal(22,6) DEFAULT NULL,
+  `jensen_ytd` decimal(22,6) DEFAULT NULL,
+  `jensen_incep` decimal(22,6) DEFAULT NULL,
+  `calmarratio_6m` decimal(22,6) DEFAULT NULL,
+  `calmarratio_1y` decimal(22,6) DEFAULT NULL,
+  `calmarratio_2y` decimal(22,6) DEFAULT NULL,
+  `calmarratio_3y` decimal(22,6) DEFAULT NULL,
+  `calmarratio_4y` decimal(22,6) DEFAULT NULL,
+  `calmarratio_5y` decimal(22,6) DEFAULT NULL,
+  `calmarratio_10y` decimal(22,6) DEFAULT NULL,
+  `calmarratio_ytd` decimal(22,6) DEFAULT NULL,
+  `calmarratio_incep` decimal(22,6) DEFAULT NULL,
+  `omegaratio_6m` decimal(22,6) DEFAULT NULL,
+  `omegaratio_1y` decimal(22,6) DEFAULT NULL,
+  `omegaratio_2y` decimal(22,6) DEFAULT NULL,
+  `omegaratio_3y` decimal(22,6) DEFAULT NULL,
+  `omegaratio_4y` decimal(22,6) DEFAULT NULL,
+  `omegaratio_5y` decimal(22,6) DEFAULT NULL,
+  `omegaratio_10y` decimal(22,6) DEFAULT NULL,
+  `omegaratio_ytd` decimal(22,6) DEFAULT NULL,
+  `omegaratio_incep` decimal(22,6) DEFAULT NULL,
+  `kapparatio_6m` decimal(22,6) DEFAULT NULL,
+  `kapparatio_1y` decimal(22,6) DEFAULT NULL,
+  `kapparatio_2y` decimal(22,6) DEFAULT NULL,
+  `kapparatio_3y` decimal(22,6) DEFAULT NULL,
+  `kapparatio_4y` decimal(22,6) DEFAULT NULL,
+  `kapparatio_5y` decimal(22,6) DEFAULT NULL,
+  `kapparatio_10y` decimal(22,6) DEFAULT NULL,
+  `kapparatio_ytd` decimal(22,6) DEFAULT NULL,
+  `kapparatio_incep` decimal(22,6) DEFAULT NULL,
+  `creatorid` int DEFAULT NULL COMMENT '创建者Id,默认第一次创建者名称,创建后不变更',
+  `createtime` datetime DEFAULT NULL COMMENT '创建时间,默认第一次创建的getdate()时间',
+  `updaterid` int DEFAULT NULL COMMENT '修改者Id;第一次创建时与Creator值相同,修改时与修改人值相同',
+  `updatetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间;第一次创建时与CreatTime值相同,修改时与修改时间相同',
+  `isvalid` tinyint NOT NULL DEFAULT '1' COMMENT '记录的有效性;1-有效;0-无效;',
+
+  PRIMARY KEY (`fund_id`,`end_date`),
+  KEY (`end_date`),
+  KEY (`updatetime`)
+) COMMENT='DolphinDB写回的基金历史风险调整收益指标表'

+ 51 - 0
modules/fund_style_stats_dolphin.sql

@@ -0,0 +1,51 @@
+USE mfdb;
+
+CREATE TABLE `fund_style_stats_dolphin` (
+  `fund_id` varchar(10) NOT NULL COMMENT '基金id',
+  `end_date` varchar(7) NOT NULL COMMENT '截至日期',
+  `upsidecapture_ret_6m` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ret_1y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ret_2y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ret_3y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ret_4y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ret_5y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ret_10y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ret_ytd` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ret_incep` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_6m` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_1y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_2y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_3y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_4y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_5y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_10y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_ytd` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_incep` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_6m` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_1y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_2y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_3y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_4y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_5y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_10y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_ytd` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_incep` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ratio_6m` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ratio_1y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ratio_2y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ratio_3y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ratio_4y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ratio_5y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ratio_10y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ratio_ytd` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ratio_incep` decimal(22,6) DEFAULT NULL,
+  `creatorid` int DEFAULT NULL COMMENT '创建者Id,默认第一次创建者名称,创建后不变更',
+  `createtime` datetime DEFAULT NULL COMMENT '创建时间,默认第一次创建的getdate()时间',
+  `updaterid` int DEFAULT NULL COMMENT '修改者Id;第一次创建时与Creator值相同,修改时与修改人值相同',
+  `updatetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间;第一次创建时与CreatTime值相同,修改时与修改时间相同',
+  `isvalid` tinyint NOT NULL DEFAULT '1' COMMENT '记录的有效性;1-有效;0-无效;',
+
+  PRIMARY KEY (`fund_id`,`end_date`),
+  KEY (`end_date`),
+  KEY (`updatetime`)
+) COMMENT='DolphinDB写回的基金历史捕获率指标表'