Micro-sheep / efinance

efinance 是一个可以快速获取基金、股票、债券、期货数据的 Python 库,回测以及量化交易的好帮手!🚀🚀🚀
MIT License
1.89k stars 477 forks source link

ef.stock.get_all_company_performance('2013-12-01')获取公司年份表现数据,出现其他年年份数据问题 #109

Open WangChen663 opened 1 year ago

WangChen663 commented 1 year ago

如题,感谢拨冗阅读,望不吝赐教🫡

df = ef.stock.get_all_company_performance('2013-12-31') with open("2013-12-31.csv", "w") as f: df.to_csv(f)

image
Micro-sheep commented 1 year ago

已收到你的反馈,我将在近期尝试解决这个问题。

在 2023年2月11日,00:16,wangchen @.***> 写道:



如题,感谢拨冗阅读,望不吝赐教🫡

df = ef.stock.get_all_company_performance('2013-12-31') with open("2013-12-31.csv", "w") as f: df.to_csv(f)

[image]https://user-images.githubusercontent.com/29452426/218140994-4feb52d8-5058-4876-8750-a7e17fdf67f7.png

— Reply to this email directly, view it on GitHubhttps://github.com/Micro-sheep/efinance/issues/109, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANNDA5ZORES4IMZZZJFP5HDWWZSUBANCNFSM6AAAAAAUX7HBMY. You are receiving this because you are subscribed to this thread.Message ID: @.***>

WangChen663 commented 1 year ago

感谢🙏发自我的 iPhone在 2023年2月15日,19:13,sheep @.***> 写道: 已收到你的反馈,我将在近期尝试解决这个问题。

在 2023年2月11日,00:16,wangchen @.***> 写道:



如题,感谢拨冗阅读,望不吝赐教🫡

df = ef.stock.get_all_company_performance('2013-12-31') with open("2013-12-31.csv", "w") as f: df.to_csv(f)

[image]https://user-images.githubusercontent.com/29452426/218140994-4feb52d8-5058-4876-8750-a7e17fdf67f7.png

Reply to this email directly, view it on GitHubhttps://github.com/Micro-sheep/efinance/issues/109, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANNDA5ZORES4IMZZZJFP5HDWWZSUBANCNFSM6AAAAAAUX7HBMY.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

rootphantomer commented 1 year ago

如题,感谢拨冗阅读,望不吝赐教🫡

df = ef.stock.get_all_company_performance('2013-12-31') with open("2013-12-31.csv", "w") as f: df.to_csv(f)

image

@WangChen663

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。 image

上传了pr ,详细见 https://github.com/Micro-sheep/efinance/pull/136