playbook/docs/tsl/syntax_book/function/financial/data_extraction.md

611 B
Raw Blame History

数据提取

内容
  • GetDataByMd
  • GetDataByMd2
  • StockIndustryLowerArr
GetDataByMd

范例

// "MA110C2375"在20210322日的开仓手续费额


  SetSysParam(PN_Date(),20210322T);


  return GetDataByMd("MA110C2375.SP",1);

//结果0.5
GetDataByMd2

范例

// "MA110C2375"在20210322日的开仓手续费额


  SetSysParam(PN_Date(),20210322T);


  return GetDataByMd2("MA110C2375.SP",1);

//结果0.5
StockIndustryLowerArr

范例

// 在20201207的申万一级行业列表

return StockIndustryLowerArr("SWHY110000",20201207T);