基金收益计算存在问题
Bug Report
收益包含了正收益和负收益。
Current Behavior?
Expected Behavior?
Steps to reproduce [Optional]
应该是计算负收益的时候。没有把负收益当做负值~
Your Environment [Optional]
@iporer
暂时复现不了,看了下代码逻辑也是正确的。
持仓那边我不是很了解,但是边栏的收益我这边亏损是显示负数的,用的你给的例子。
数据是变动的啊,我这边其实也不能百分百复现😂 发自我的 iPhone
在 2025年10月28日,09:53,Henry Rao @.***> 写道:
[https://avatars.githubusercontent.com/u/8085344?s=20&v=4]iporer left a comment (LeekHub/leek-fund#557)https://github.com/LeekHub/leek-fund/issues/557#issuecomment-3454111068
持仓那边我不是很了解,但是边栏的收益我这边亏损是显示负数的,用的你给的例子。
image.png (view on web)https://github.com/user-attachments/assets/43b857ed-47f2-401b-9624-1105d48f6c8d
— Reply to this email directly, view it on GitHubhttps://github.com/LeekHub/leek-fund/issues/557#issuecomment-3454111068, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFCZEPJDXIWM6Y2RXAZ262T3Z3EB5AVCNFSM6AAAAACJXR22H2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINJUGEYTCMBWHA. You are receiving this because you authored the thread.Message ID: @.***>
估计和接口返回的数据有关,可能某个字段接口返回的不对,但是这种情况比较难复现,只能等个有缘的机会了。
我没有看源代码。这个插件是有多个数据源吗?因为有时候收益会出现+-20 这种情况
发自我的 iPhone
在 2025年11月6日,10:42,Henry Rao @.***> 写道:
[https://avatars.githubusercontent.com/u/8085344?s=20&v=4]iporer left a comment (LeekHub/leek-fund#557)https://github.com/LeekHub/leek-fund/issues/557#issuecomment-3494601693
估计和接口返回的数据有关,可能某个字段接口返回的不对,但是这种情况比较难复现,只能等个有缘的机会了。
— Reply to this email directly, view it on GitHubhttps://github.com/LeekHub/leek-fund/issues/557#issuecomment-3494601693, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFCZEPNV433634NLXOVVGWL33KYQDAVCNFSM6AAAAACJXR22H2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIOJUGYYDCNRZGM. You are receiving this because you authored the thread.Message ID: @.***>
这个问题我也遇到过几次 一般都是第二天来发现的 然后点击刷新数据大概率能恢复正常