factors

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factor

type Factor interface {
	Init()                                       // 初始化
	Name() string                                // 因子名称
	Weight() uint64                              // 权重
	Execute(securityCode, date string) (ok bool) // 执行
}

Factor 因子

type Smart added in v0.1.7

type Smart interface {
	Checkout(securityCode, date string)   // 捡出指定日期的缓存数据
	Update(cacheDate, featureDate string) // 更新数据
	Repair(cacheDate, featureDate string) // 回补数据
	Increase(snapshot quotes.Snapshot)    // 增量计算, 用快照增量计算特征
}

Smart 快速接口

type Weight

type Weight = uint64

Weight 权重数据类型为64, 实际容纳63个

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL