修复指数判断不全的问题

This commit is contained in:
injoyai
2025-11-26 16:49:11 +08:00
parent 6fd178245a
commit 0d1e6b6b51
2 changed files with 11 additions and 0 deletions

View File

@@ -2,6 +2,8 @@ package main
import (
"fmt"
"strings"
"github.com/injoyai/logs"
"github.com/injoyai/tdx"
)
@@ -13,4 +15,11 @@ func main() {
c := cs.Get("sz000001")
fmt.Println(c.FloatStock, c.TotalStock)
for _, v := range cs.GetIndexes().Codes() {
if strings.HasPrefix(v, "sz") {
logs.Debug(v)
}
}
}