Skip to content
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

总是报错TradeBehaviorError: You cannot sell first when you never buy,是什么问题? #184

Open
ljztrust opened this issue May 16, 2024 · 3 comments

Comments

@ljztrust
Copy link

我的交易单结构如下:

  | date | 000390 | 001300 | 001487 | 001605 | 001938 | 002258 | 002943 | 004241 | 004997 | 005598 -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- 2021-10-08 | 1000.000 | 1000.000 | 1000.000 | 1000.000 | 1000.000 | NaN | NaN | NaN | NaN | NaN 2022-05-05 | -0.005 | -0.005 | -0.005 | -0.005 | -0.005 | 1000.0 | 1000.0 | 1000.0 | 1000.0 | 1000.0

运行sys = xa.mul(status=df_jihua) ,就出现报错,所没有买过的股票不能卖出,可是我明明都买了呀!哪位大神帮我看看,小弟不甚感激!!

@ljztrust
Copy link
Author

交易账单图
交易账单表截图见附件!

@refraction-ray
Copy link
Owner

是不是 NaN 的原因,你把那些换成 0 呢?

@ljztrust
Copy link
Author

换成0就好了,感谢呀!不过我看文档说明里面明明写的NaN是可以的,是不是也要更新一下文档

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants