FAQ > 金融建模 > 数据提取 > 基本面数据

Q:如何获取股票指定报告期最新财报预计公布日?    

  • A:天软采集交易所提供的股票定期报告预约披露数据,参考:FAQ:定期报告披露日期
    可获取股票指定报告期财报的预计公布日,通过查询该表来数据获取最新的预计公布日。
    实现模型
    getstocknewExpectRdate
    function getstocknewExpectRdate(stock,rdate);
    begin
      t:=select * from infotable 128 of stock where ["截止日"]=rdate end;
      if not istable(t) then return 0;
      if t[0,"实际披露日期"] then v:= t[0,"实际披露日期"];
      else if t[0,"第三次变更日期"] then v:= t[0,"第三次变更日期"];
      else if t[0,"第二次变更日期"] then v:= t[0,"第二次变更日期"];
      else if t[0,"第一次变更日期"] then v:= t[0,"第一次变更日期"];
      else v:= t[0,"首次预约日期"];
      return v;
    end

    范例
    //获取浦发银行2022年年报的最新预计公布日
    return getstocknewExpectRdate("SH600000",20221231);
    //返回:20230419