# 应用专题 / 因子研究 / 量化数据 ## `newRfinancialReleaseDateOfEndT(end_t)` 声明:function 获取指定日的最新公布日,正式财报取自表 42,业绩快报取自表 41,业绩预测取自表 40 | 参数 | 类型 | 说明 | | ------- | ---- | ------------ | | `end_t` | date | Date,指定日 | 返回:integer ## `newRfinancialReportDateOfEndT(end_t, if_source)` 声明:function 获取指定日的最新报告期,正式财报取自表 42,业绩快报取自表 41,业绩预测取自表 40 | 参数 | 类型 | 说明 | | ----------- | ------- | -------------------- | | `end_t` | date | Date,指定日 | | `if_source` | integer | 控制该项处理是否启用 | 返回:int_or_array ## `newRfinancialReportDateOfYear(end_t, if_source)` 声明:function 获取指定日的最新年度报告期,正式财报取自表 42,业绩快报取自表 41,业绩预测取自表 40 | 参数 | 类型 | 说明 | | ----------- | ------- | -------------------- | | `end_t` | date | Date,指定日 | | `if_source` | integer | 控制该项处理是否启用 | 返回:int_or_array ## `reportSource(id, r_date)` 声明:function 获取指定报告期 ID的数据源,与系统证券、时间、系统参数 pn_ReportType相关 | 参数 | 类型 | 说明 | | -------- | ------- | ------------------------------------------------------------------------------------------------------------------ | | `id` | integer | Integer,天软正式财报基础数据 ID,仅对部分 ID 适用,详见基础 ID对照 若 ID不是取值基础 ID对照,则直接返回"正式财报" | | `r_date` | integer | Integer,报告期,即通常意义上的一季报、中报、三季报、年报 | 返回:string ## `reportSourceRelease(r_date, return_type)` 声明:function 获取指定报告期的数据源及公布日,与系统证券、时间、系统参数pn_ReportType相关 | 参数 | 类型 | 说明 | | ------------- | ------- | -------------------------------------------------------------------- | | `r_date` | integer | Integer,报告期,即通常意义上的一季报、中报、三季报、年报 | | `return_type` | integer | Integer,返回类型,0表示返回数据源+公布日(默认),1表示返回数据详情 | 返回:array ## `reportSourceValue(id, r_date)` 声明:function 获取指定报告期 ID的不同数据源取值详情,与系统证券、时间相关,帮助用户掌握ID的发布 | 参数 | 类型 | 说明 | | -------- | ------- | ------------------------------------------------------------------- | | `id` | integer | Integer,天软正式财报基础数据 ID,仅对部分 ID 适用,详见基础 ID对照 | | `r_date` | integer | Integer,报告期,即通常意义上的一季报、中报、三季报、年报 | 返回:array ## `reportTableExists(rdate, table_id)` 声明:function 判断指定报告期的报表是否公布,与系统证券相关 | 参数 | 类型 | 说明 | | ---------- | ------- | -------------------------------------------------------------------------------------------------------------- | | `rdate` | integer | Integer,报告期,即通常意义上的一季报、中报、三季报、年报 | | `table_id` | integer | Integer,表 ID,对于本文涉及到的三种报告,其对应的表 ID如下 报告类型 表 ID 正式财报 42 业绩快报 41 业绩预测 40 | 返回:boolean