fix(turnover): 修复换手率计算,FloatShares 单位是万股导致结果偏大 10000 倍#27
Open
363045841 wants to merge 3 commits into
Open
Conversation
…ion(start=0,count=1) to avoid looping all pages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复换手率计算中 FloatShares 单位问题。
问题
FloatShares(流通股本)来自通达信协议,单位是万股,但代码按股计算,导致 Turnover 结果偏大 10000 倍。例如实际换手率 0.44% 被返回为 4369.56。MAC 代码
items[i].Turnover = round2(items[i].Vol / (items[i].FloatShares * 10000) * 100)中确认 FloatShares 是万股,故作此修改。修改
验证
Closes #26