add 加入资金流向特大的标地

This commit is contained in:
yanweidong
2026-02-12 20:29:02 +08:00
parent 8de6c2a23a
commit c4fb37761b
6 changed files with 64 additions and 36 deletions

View File

@@ -86,8 +86,8 @@ func Report() {
})
}
// 3.判断盈亏超过20%,才确定平仓
if pnlRate >= 20 {
// 3.判断盈亏超过10%,才确定平仓
if pnlRate >= 10 {
impl.DBService.Model(&models.MockPosition{}).Where("id=?", p.ID).Updates(map[string]any{
"close_price": newClosePrice,
"pnl": pnl,