增加codes2的示例

This commit is contained in:
injoyai
2025-11-17 09:46:58 +08:00
parent d19cfb4416
commit e250223e57

16
example/Codes2/main.go Normal file
View File

@@ -0,0 +1,16 @@
package main
import (
"fmt"
"github.com/injoyai/logs"
"github.com/injoyai/tdx"
)
func main() {
cs, err := tdx.NewCodes2()
logs.PanicErr(err)
c := cs.Get("sz000001")
fmt.Println(c.FloatStock, c.TotalStock)
}