-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
停牌结束后复权因子错误 #17
Labels
Comments
SQL 语句有问题,需要重新发布 |
修复结果:
|
zjp-CN
added a commit
that referenced
this issue
Feb 23, 2023
zjp-CN
added a commit
that referenced
this issue
Feb 23, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
301089
在 2021-11-13 至 2021-11-21 期间停牌,但是停牌结束后的 2021-11-22 从数据库没有获取到前一天的信息,自动被赋予因子 1。修复此 bug:
取每只股票最后一次(因为索引是日期升序排列的)的收盘价和因子作为数据库最新的信息
注意:此
date
只是一个标记,并不会对date
做任何计算。TODO:
yesterday() AS date
也应改成last_value(date) AS date
(我忘了... 虽然暂时不改暂时没啥影响,改了可以更清楚知道哪些股票停牌)The text was updated successfully, but these errors were encountered: