deving
This commit is contained in:
@@ -7,7 +7,9 @@ import (
|
||||
"git.apinb.com/quant/gostock/internal/config"
|
||||
"git.apinb.com/quant/gostock/internal/impl"
|
||||
"git.apinb.com/quant/gostock/internal/logic/strategy"
|
||||
"git.apinb.com/quant/gostock/internal/logic/strategy/rule"
|
||||
"git.apinb.com/quant/gostock/internal/logic/types"
|
||||
"git.apinb.com/quant/gostock/internal/models"
|
||||
"github.com/gocarina/gocsv"
|
||||
)
|
||||
|
||||
@@ -15,15 +17,26 @@ var (
|
||||
ServiceKey = "gostock"
|
||||
)
|
||||
|
||||
func main2() {
|
||||
func main() {
|
||||
log.Println("Hello Cli!")
|
||||
config.New(ServiceKey)
|
||||
impl.NewImpl()
|
||||
|
||||
strategy.GenMarkData("601899.SH")
|
||||
code := "601899.SH"
|
||||
strategy.InitCacheByCode(code)
|
||||
model := models.NewStratModel("selector", code)
|
||||
stratRule := rule.NewRule(model)
|
||||
stratRule.RunUpDate(strategy.Cache[code].Basic.ListDate)
|
||||
stratRule.RunST(strategy.Cache[code].Basic.Name)
|
||||
stratRule.RunIndustry(strategy.Cache[code].Basic.Industry)
|
||||
stratRule.RunPrice(code)
|
||||
stratRule.RunAmount(code)
|
||||
stratRule.RunRoe(code)
|
||||
|
||||
model.Save()
|
||||
}
|
||||
|
||||
func main() {
|
||||
func main2() {
|
||||
log.Println("Hello Cli!")
|
||||
config.New(ServiceKey)
|
||||
impl.NewImpl()
|
||||
|
||||
Reference in New Issue
Block a user