Files
playbook/skills/tsl-api-reference/references/codegen/dotnet/financial/data_extraction.md
T

1.7 KiB

金融 / 数据提取

getDataByMd(stockid, n)

声明:function

返回使用Md获取指定日数据,与系统参数(时间)相关

参数 类型 说明
stockid string 字符串。证券代码
n integer 整数。第几个数据

返回:real

示例

范例01:调用函数

// "MA110C2375"在20210322日的开仓手续费额
setSysParam(PN_Date(), 20210322T);
return getDataByMd("MA110C2375.SP", 1);
// 输出:0.5

getDataByMd2(stockid, n)

声明:function

返回使用Md获取指定日数据(考虑交易日),与系统参数(时间)相关

参数 类型 说明
stockid string 字符串。证券代码
n integer 整数。第几个数据

返回:real

示例

范例01:调用函数

// "MA110C2375"在20210322日的开仓手续费额
setSysParam(PN_Date(), 20210322T);
return getDataByMd2("MA110C2375.SP", 1);
// 输出:0.5

stockIndustryLowerArr(industry_id, end_t)

声明:function

返回指定行业的所有下级行业列表

参数 类型 说明
industry_id string 字符串。行业代码
end_t t_date_time 日期。截止日期

返回:array

示例

范例01:调用函数

// 在20201207的申万一级行业列表
return stockIndustryLowerArr("SWHY110000", 20201207T);