代码拉取完成,页面将自动刷新
package datasets
import (
"context"
"gitee.com/quant1x/engine/cache"
"gitee.com/quant1x/engine/datasets/base"
"gitee.com/quant1x/gotdx/quotes"
)
// TransactionRecord 成交记录
//
// 最短3秒内的合并统计数据, 与行情数据保持一致
// 不可以当作tick数据来使用
type TransactionRecord struct {
DataCache
}
func init() {
_ = cache.Register(&TransactionRecord{})
}
func (r *TransactionRecord) Print(code string, date ...string) {
//TODO implement me
panic("implement me")
}
func (r *TransactionRecord) Kind() cache.Kind {
return BaseTransaction
}
func (r *TransactionRecord) Key() string {
return mapDataSets[r.Kind()].Key()
}
func (r *TransactionRecord) Name() string {
return mapDataSets[r.Kind()].Name()
}
func (r *TransactionRecord) Owner() string {
return mapDataSets[r.Kind()].Owner()
}
func (r *TransactionRecord) Usage() string {
return mapDataSets[r.Kind()].Name()
}
func (r *TransactionRecord) Init(ctx context.Context, date, securityCode string) error {
_ = ctx
_ = date
_ = securityCode
return nil
}
func (r *TransactionRecord) Checkout(securityCode, date string) {
//TODO implement me
panic("implement me")
}
func (r *TransactionRecord) Check(cacheDate, featureDate string) error {
//TODO implement me
panic("implement me")
}
func (r *TransactionRecord) Filename(date, code string) string {
//TODO implement me
panic("implement me")
}
func (r *TransactionRecord) Update(cacheDate, featureDate string) {
base.UpdateTickStartDate(cacheDate)
base.GetTickAll(r.Code)
_ = featureDate
}
func (r *TransactionRecord) Repair(cacheDate, featureDate string) {
//base.GetTickAll(r.Code)
base.GetTickData(r.Code, cacheDate)
_ = featureDate
}
func (r *TransactionRecord) Increase(snapshot quotes.Snapshot) {
//TODO implement me
panic("implement me")
}
func (r *TransactionRecord) Clone(date string, code string) DataSet {
var dest = TransactionRecord{DataCache: DataCache{Date: date, Code: code}}
return &dest
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。