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

雪球组合不是实盘,代码问题多多 #76

Closed
xdbaqiao opened this issue Jun 23, 2016 · 2 comments
Closed

雪球组合不是实盘,代码问题多多 #76

xdbaqiao opened this issue Jun 23, 2016 · 2 comments

Comments

@xdbaqiao
Copy link
Contributor

雪球组合是比例调仓,按仓位管理,实时成交,基本跟price和amount无关。也就是说接口暴露出weight足矣,price和amount都没用,代码里面weight 是计算来的,还round四舍五入,太容易导致仓位不足,出错,建议考虑修改一下。

@haogefeifei
Copy link
Contributor

可以考虑在buy sell方法里面加一个weight参数就可搞定问题。。 当初这样做是为了能和实盘无缝切换。。 只不过最终没有做到。。。

@xdbaqiao
Copy link
Contributor Author

雪球实盘和组合比较难无缝切换吧,毕竟两种不同的业务逻辑。可否独立出来,分为两部分?

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