add 加入资金流向特大的标地
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user