2 Star 7 Fork 11

王布衣/engine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
dateset_minutes.go 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
王布衣 提交于 2023-12-20 07:47 . 统一数据到factors目录
package factors
import (
"context"
"gitee.com/quant1x/engine/cache"
"gitee.com/quant1x/engine/datasource/base"
"gitee.com/quant1x/gotdx/quotes"
)
// DataMinutes 分时数据
type DataMinutes struct {
Manifest
}
func init() {
summary := mapDataSets[BaseMinutes]
_ = cache.Register(&DataMinutes{Manifest: Manifest{DataSummary: summary}})
}
func (this *DataMinutes) Clone(date string, code string) DataSet {
summary := mapDataSets[BaseMinutes]
var dest = DataMinutes{
Manifest: Manifest{
DataSummary: summary,
Date: date,
Code: code,
},
}
return &dest
}
func (this *DataMinutes) Init(ctx context.Context, date string) error {
_ = ctx
_ = date
return nil
}
func (this *DataMinutes) Update(date string) {
base.UpdateMinutes(this.GetSecurityCode(), date)
}
func (this *DataMinutes) Repair(date string) {
this.Update(date)
}
func (this *DataMinutes) Increase(snapshot quotes.Snapshot) {
//TODO implement me
panic("implement me")
}
func (this *DataMinutes) Print(code string, date ...string) {
//TODO implement me
panic("implement me")
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/quant1x/engine.git
git@gitee.com:quant1x/engine.git
quant1x
engine
engine
v0.9.7

搜索帮助