deving
This commit is contained in:
13
internal/logic/strategy/rule/new.go
Normal file
13
internal/logic/strategy/rule/new.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package rule
|
||||
|
||||
import "git.apinb.com/quant/gostock/internal/models"
|
||||
|
||||
type RuleFactory struct {
|
||||
Model *models.StratModel
|
||||
}
|
||||
|
||||
func NewRule(m *models.StratModel) *RuleFactory {
|
||||
return &RuleFactory{
|
||||
Model: m,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user