2 Star 15 Fork 17

王布衣/engine

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sessions.go 318 Bytes
一键复制 编辑 原始数据 按行查看 历史
王布衣 提交于 2024-01-11 11:15 +08:00 . 适配exchange工具包
package realtime
import (
"gitee.com/quant1x/engine/cache"
"gitee.com/quant1x/exchange"
"time"
)
// TradeSessionHasEnd 是否收盘
func TradeSessionHasEnd(date string) bool {
tm, _ := time.Parse(cache.INDEX_DATE, date)
_, status := exchange.CanUpdateInRealtime(tm)
return status == exchange.ExchangeClosing
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/quant1x/engine.git
git@gitee.com:quant1x/engine.git
quant1x
engine
engine
v1.2.4

搜索帮助