efinance icon indicating copy to clipboard operation
efinance copied to clipboard

fix get_all_company_performance

Open rootphantomer opened this issue 1 year ago • 0 comments

修复 https://github.com/Micro-sheep/efinance/issues/109 的问题。

原因

http://datacenter-web.eastmoney.com/api/data/get?st=NOTICE_DATE%2CSECURITY_CODE&sr=-1%2C-1&ps=500&p=1&type=RPT_LICO_FN_CPD&sty=ALL&token=894050c76af8597a853f5b408b759f5d&filter=%28SECURITY_TYPE_CODE+in+%28%22058001001%22%2C%22058001008%22%29%29%28REPORTDATE%3D%272013-12-31%27%29

本身结果正常,只不过NOTICE_DATE的时间和UPDATE_DATE的时间一样,算最后更新时间。

报告正确时间应该是返回结果中的REPORTDATE。

修复方法

返回的结果删除了NOTICE_DATE,新增了REPORTDATE,UPDATE_DATE,DATATYPE,DATAYEAR四个字段来更好的展示数据年份。 image

rootphantomer avatar Jul 05 '23 12:07 rootphantomer