gitee.com/quant1x/engine@v1.8.4/factors/feature_ism_test.go (about)

     1  package factors
     2  
     3  import (
     4  	"encoding/json"
     5  	"fmt"
     6  	"gitee.com/quant1x/engine/cache"
     7  	"gitee.com/quant1x/gox/api"
     8  	"testing"
     9  )
    10  
    11  func TestS8(t *testing.T) {
    12  	code := "002632"
    13  	date := "2024-04-10"
    14  	cacheDate, featureDate := cache.CorrectDate(date)
    15  	s8 := NewInvestmentSentimentMaster(cacheDate, code)
    16  	s8.Update(code, cacheDate, featureDate, true)
    17  	data, _ := json.Marshal(s8)
    18  	text := api.Bytes2String(data)
    19  	fmt.Println(text)
    20  }