代码拉取完成,页面将自动刷新
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")
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。