We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
雪球组合是比例调仓,按仓位管理,实时成交,基本跟price和amount无关。也就是说接口暴露出weight足矣,price和amount都没用,代码里面weight 是计算来的,还round四舍五入,太容易导致仓位不足,出错,建议考虑修改一下。
The text was updated successfully, but these errors were encountered:
可以考虑在buy sell方法里面加一个weight参数就可搞定问题。。 当初这样做是为了能和实盘无缝切换。。 只不过最终没有做到。。。
Sorry, something went wrong.
雪球实盘和组合比较难无缝切换吧,毕竟两种不同的业务逻辑。可否独立出来,分为两部分?
No branches or pull requests
雪球组合是比例调仓,按仓位管理,实时成交,基本跟price和amount无关。也就是说接口暴露出weight足矣,price和amount都没用,代码里面weight 是计算来的,还round四舍五入,太容易导致仓位不足,出错,建议考虑修改一下。
The text was updated successfully, but these errors were encountered: