This commit is contained in:
2026-01-17 01:24:49 +08:00
parent 2fc2c89f25
commit 8b548dd13e
3 changed files with 5 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ package a
import (
"log"
"strings"
"git.apinb.com/dataset/stock/internal/impl"
"git.apinb.com/dataset/stock/internal/models"
@@ -22,7 +23,8 @@ func GetStockIndicator() {
continue
}
reply, err := TushareClient.Daily(params, []string{})
fields := strings.Split("ts_code,trade_date,close,turnover_rate,turnover_rate_f,volume_ratio,pe,pe_ttm,pb,ps,ps_ttm,dv_ratio,dv_ttm,total_share,float_share,free_share,total_mv,circ_mv", ",")
reply, err := TushareClient.Daily(params, fields)
if err != nil {
log.Println("ERROR", "GetStockIndicator", err)
return