gitee.com/quant1x/engine@v1.8.4/tracker/mod_sentiment.go (about)

     1  package tracker
     2  
     3  // MarketSentiment 市场情绪
     4  func MarketSentiment() {
     5  	//sh000001 := GetStrategySnapshot("sh000001")
     6  	//sz399107 := GetStrategySnapshot("sz399107")
     7  	//fmt.Println("上证上涨: ", sh000001.IndexUp)
     8  	//fmt.Println("上证下跌: ", sh000001.IndexDown)
     9  	//fmt.Println("深证上涨: ", sz399107.IndexUp)
    10  	//fmt.Println("深证下跌: ", sz399107.IndexDown)
    11  	//
    12  	//fmt.Println("上涨: ", sh000001.IndexUp+sz399107.IndexUp)
    13  	//fmt.Println("下跌: ", sh000001.IndexDown+sz399107.IndexDown)
    14  	//zdjs := "sh880005"
    15  	////sh880005 := models.GetTickFromMemory("sh880005")
    16  	//tdxApi := gotdx.GetTdxApi()
    17  	//defer tdxApi.Close()
    18  	//stockShots, _ := tdxApi.GetSnapshot([]string{zdjs})
    19  	//sh880005 := stockShots[0]
    20  	//up := sh880005.BidVol1 + sh880005.BidVol2 + sh880005.BidVol3 + sh880005.BidVol4 + sh880005.BidVol5
    21  	//down := sh880005.AskVol1 + sh880005.AskVol2 + sh880005.AskVol3 + sh880005.AskVol4 + sh880005.AskVol5
    22  	//fmt.Println(up, down)
    23  }