2 Star 4 Fork 10

王布衣/engine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
tdx_utils.go 401 Bytes
一键复制 编辑 原始数据 按行查看 历史
王布衣 提交于 2023-10-11 14:23 . 调整源文件名
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)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/quant1x/engine.git
git@gitee.com:quant1x/engine.git
quant1x
engine
engine
v0.2.3

搜索帮助

Cb406eda 1850385 E526c682 1850385