This commit is contained in:
yanweidong
2026-01-27 02:09:44 +08:00
parent f74299fd25
commit e17421a2f3
7 changed files with 143 additions and 2 deletions

View File

@@ -0,0 +1,27 @@
package rule
import (
"strings"
"git.apinb.com/quant/gostock/internal/logic/types"
)
type ST struct {
Key string
Name string
}
func NewST() *ST {
return &ST{
Key: "ST",
Name: "ST",
}
}
func (r *ST) Run(in string) *types.RuleResult {
if strings.Contains(in, "ST") {
return &types.RuleResult{Key: r.Key, Name: r.Name, Score: -1, Desc: "有退市风险"}
}
return &types.RuleResult{Key: r.Key, Name: r.Name, Score: 1, Desc: "无退市风险"}
}