gitee.com/quant1x/engine@v1.8.4/config/config_test.go (about)

     1  package config
     2  
     3  import (
     4  	"fmt"
     5  	"testing"
     6  
     7  	"gitee.com/quant1x/gotdx/securities"
     8  )
     9  
    10  func TestConfig(t *testing.T) {
    11  	config, found := LoadConfig()
    12  	fmt.Println(found)
    13  	fmt.Println(config)
    14  	strategyCode := uint64(82)
    15  	v := GetStrategyParameterByCode(strategyCode)
    16  	fmt.Println(v)
    17  }
    18  
    19  func TestBlocks(t *testing.T) {
    20  	sectorCode := "sh880884"
    21  	blk := securities.GetBlockInfo(sectorCode)
    22  	fmt.Println(len(blk.ConstituentStocks))
    23  }