leek-fund icon indicating copy to clipboard operation
leek-fund copied to clipboard

基金收益计算存在问题

Open admin8756 opened this issue 6 months ago • 9 comments

Bug Report

收益包含了正收益和负收益。

Current Behavior?

Image

Expected Behavior?

Steps to reproduce [Optional]

应该是计算负收益的时候。没有把负收益当做负值~

Your Environment [Optional]

admin8756 avatar Oct 21 '25 02:10 admin8756

@iporer

giscafer avatar Oct 21 '25 06:10 giscafer

暂时复现不了,看了下代码逻辑也是正确的。

Image

iporer avatar Oct 21 '25 06:10 iporer

Image 我这里显示还是有问题啊~编辑器是vscode

admin8756 avatar Oct 28 '25 01:10 admin8756

Image 持仓这边显示的也是错的

admin8756 avatar Oct 28 '25 01:10 admin8756

持仓那边我不是很了解,但是边栏的收益我这边亏损是显示负数的,用的你给的例子。

Image

iporer avatar Oct 28 '25 01:10 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: @.***>

admin8756 avatar Nov 06 '25 02:11 admin8756

估计和接口返回的数据有关,可能某个字段接口返回的不对,但是这种情况比较难复现,只能等个有缘的机会了。

iporer avatar Nov 06 '25 02:11 iporer

我没有看源代码。这个插件是有多个数据源吗?因为有时候收益会出现+-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: @.***>

admin8756 avatar Nov 06 '25 02:11 admin8756

这个问题我也遇到过几次 一般都是第二天来发现的 然后点击刷新数据大概率能恢复正常

huxianc avatar Nov 25 '25 03:11 huxianc