2 Star 13 Fork 14

王布衣/engine

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
tdx_zxg.go 598 Bytes
Copy Edit Raw Blame History
王布衣 authored 2025-10-28 16:39 +08:00 . 用quant1x/data替换exchange和gotdx
package base
import (
"gitee.com/quant1x/data/exchange"
"gitee.com/quant1x/engine/cache"
"gitee.com/quant1x/pandas"
)
const (
BlockPath = "/T0002/blocknew"
ZxgBlk = "zxg.blk"
BkltBlk = "BKLT.blk"
ZdBk = "ZDBK.blk"
)
func GetZxgList() []string {
filename := cache.GetZxgFile()
df := pandas.ReadCSV(filename)
if df.Nrow() == 0 {
return []string{}
}
rows := df.Col("code")
if rows.Len() == 0 {
return []string{}
}
// 校验证券代码, 统一格式前缀加代码
cs := rows.Strings()
for i, v := range cs {
cs[i] = exchange.CorrectSecurityCode(v)
}
return cs
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/quant1x/engine.git
git@gitee.com:quant1x/engine.git
quant1x
engine
engine
v1.12.11

Search