dev mock report

This commit is contained in:
yanweidong
2026-02-11 19:25:56 +08:00
parent 0a2e26035f
commit 09be57182a
3 changed files with 45 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ func run() {
var daily models.StockDaily
impl.DBService.Model(&models.StockDaily{}).Where("ts_code=?", item.Code).Order("id desc").Limit(1).First(&daily)
high := utils.FloatRound(daily.High*0.997, 2)
high := utils.FloatRound(daily.High*0.995, 2)
pnl := utils.FloatRound(high-item.OpenPrice, 2)
pnlRate := utils.FloatRound(pnl/item.OpenPrice*100, 2)