Documentation ¶
Index ¶
- Constants
- func CacheId(code string) string
- func CacheIdPath(code string) string
- func CheckFilepath(filename string) error
- func CorrectDate(date string) string
- func FileExist(path string) bool
- func GetCache(fullCode string) *os.File
- func GetDayPath() string
- func GetInfoPath() string
- func GetKLineFilename(fullCode string) stringdeprecated
- func GetTickPath() string
- func KLineFilename(code string) string
- func KLinePath(fc string) (string, string, int)
- func LastDate() time.Time
- func TickFilename(code string, date string) string
- func Today() string
- type CacheType
- type DataFrame
- type FastCache
Constants ¶
View Source
const ( DAY_PATH = "day" // 日线路径 INFO_PATH = "info" // 信息路径 TICK_PATH = "tick" // tick路径 )
View Source
const ( CACHE_TARS CacheType = iota CACHE_CSV = 1 // CSV CACHE_EXCEL = 2 // EXCEL )
Variables ¶
This section is empty.
Functions ¶
func CacheIdPath ¶ added in v0.7.6
CacheIdPath code从后保留3位, 市场缩写+从头到倒数第3的代码, 确保每个目录只有000~999个代码
func GetKLineFilename
deprecated
func GetTickPath ¶ added in v0.7.4
func GetTickPath() string
func TickFilename ¶ added in v0.7.4
TickFilename tick文件比较多, 目录结构${tick}/${YYYY}/${YYYYMMDD}/${CacheIdPath}
Types ¶
type CacheType ¶
type CacheType int
var ( // CACHE_ROOT_PATH cache路径 CACHE_ROOT_PATH = category.DATA_ROOT_PATH CACHE_TYPE CacheType = CACHE_TARS )
Click to show internal directories.
Click to hide internal directories.