2 Star 15 Fork 17

王布衣/engine

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tdx_utils.go 401 Bytes
一键复制 编辑 原始数据 按行查看 历史
王布衣 提交于 2023-12-20 07:47 +08:00 . 统一数据到factors目录
package base
import (
"gitee.com/quant1x/engine/cache"
"gitee.com/quant1x/gotdx/trading"
"strconv"
)
// 通达信协议日期为YYYYMMDD格式的十进制整型
func toTdxProtocolDate(date string) uint32 {
protoDate := trading.FixTradeDate(date, cache.TDX_FORMAT_PROTOCOL_DATE)
transDate, err := strconv.ParseUint(protoDate, 10, 32)
if err != nil {
panic(err)
}
return uint32(transDate)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/quant1x/engine.git
git@gitee.com:quant1x/engine.git
quant1x
engine
engine
v1.0.7

搜索帮助