Documentation
¶
Index ¶
- Variables
- func CacheId(code string) string
- func CacheIdPath(code string) string
- func CorrectDate(date string) (cacheDate, resourcesDate string)
- func DefaultCanReadDate() string
- func DefaultCanUpdateDate() string
- func GetConfigFilename() string
- func GetDayPath() string
- func GetFeaturesPath() string
- func GetFundFlowPath() string
- func GetHoldingPath() string
- func GetInfoPath() string
- func GetLoggerPath() string
- func GetMetaPath() string
- func GetQuarterlyPath() stringdeprecated
- func GetRootPath() string
- func GetSnapshotPath() string
- func GetTickPath() string
- func GetVariablePath() string
- func GetXdxrPath() string
- func KLineFilename(code string) string
- func QuarterlyReportFilename(code, date string) string
- func Register(plugin DataPlugin) error
- func ReportsFilename(date string) string
- func Reset()
- func Top10HoldersFilename(code, date string) string
- func XdxrFilename(code string) string
- type DataItem
- type DataPlugin
- type Depend
- type Handover
- type Kind
- type Quant1XConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrIsExists = errors.New("plugin is already exists")
)
Functions ¶
func CacheIdPath ¶
CacheIdPath code从后保留3位, 市场缩写+从头到倒数第3的代码, 确保每个目录只有000~999个代码
func CorrectDate ¶ added in v0.1.5
CorrectDate 校正日期
func DefaultCanReadDate ¶ added in v0.1.5
func DefaultCanReadDate() string
DefaultCanReadDate 获取默认可以读缓存文件的日期
func DefaultCanUpdateDate ¶ added in v0.1.5
func DefaultCanUpdateDate() string
DefaultCanUpdateDate 获取默认可以更新缓存文件的日期
func GetQuarterlyPath
deprecated
added in
v0.1.5
func QuarterlyReportFilename ¶ added in v0.1.5
QuarterlyReportFilename 季报存储路径
info
|-- YYYYQ1
|-- sh600105.report
|-- YYYYQ2
|-- YYYYQ3
|-- YYYYQ4
Deprecated: 不推荐使用
func ReportsFilename ¶ added in v0.1.5
ReportsFilename 报告数据文件名
func Top10HoldersFilename ¶ added in v0.1.5
Top10HoldersFilename 前十大流通股股东缓存文件名
Types ¶
type DataPlugin ¶ added in v0.1.7
type DataPlugin interface {
// Kind 优先级排序字段, 潜在的依赖关系
Kind() Kind
// Init 初始化, 加载配置信息
Init(barIndex *int, date string) error
}
DataPlugin 数据插件
type Handover ¶ added in v0.1.7
type Handover interface {
// ChangingOverDate 缓存数据转换日期
// 数据集等基础数据不需要切换日期
ChangingOverDate(date string)
}
Handover 缓存切换接口
type Quant1XConfig ¶
type Quant1XConfig struct {
BaseDir string `json:"basedir"`
}
Quant1XConfig Quant1X基础配置
Click to show internal directories.
Click to hide internal directories.