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

     1  package factors
     2  
     3  import (
     4  	"encoding/json"
     5  	"fmt"
     6  	"gitee.com/quant1x/gox/api"
     7  	"testing"
     8  )
     9  
    10  func TestNewExchangeKLine(t *testing.T) {
    11  	code := "sh880652"
    12  	code = "sh603099"
    13  	code = "sh600354"
    14  	//code = "sh603029"
    15  	code = "sz002679"
    16  	code = "sh600313"
    17  	code = "002553"
    18  	code = "880482"
    19  	code = "sz300377"
    20  	code = "sz000828"
    21  	code = "sz300904"
    22  	code = "sh603038"
    23  	date := "2024-02-27"
    24  	ek := NewMiscKLine(code, date)
    25  	data, _ := json.Marshal(ek)
    26  	text := api.Bytes2String(data)
    27  	fmt.Println(text)
    28  }