2 Star 7 Fork 11

王布衣/engine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
dataset_minutes.go 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
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) {
_ = snapshot
//TODO implement me
panic("implement me")
}
func (this *DataMinutes) Print(code string, date ...string) {
_ = code
_ = date
//TODO implement me
panic("implement me")
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/quant1x/engine.git
git@gitee.com:quant1x/engine.git
quant1x
engine
engine
v1.8.3

搜索帮助