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

     1  package factors
     2  
     3  import (
     4  	"encoding/json"
     5  	"fmt"
     6  	"testing"
     7  
     8  	"gitee.com/quant1x/gox/api"
     9  )
    10  
    11  func TestNewBreaksThrough(t *testing.T) {
    12  	code := "sh600600"
    13  	code = "sz002043"
    14  	code = "sz000638"
    15  	code = "600105"
    16  	code = "sh603193"
    17  	date := "20231012"
    18  	v := NewKLineBox(code, date)
    19  	data, _ := json.Marshal(v)
    20  	text := api.Bytes2String(data)
    21  	fmt.Println(text)
    22  }