base

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BasicFields 特征基础字段
	BasicFields = []string{"date", "open", "close", "high", "low", "volume", "amount"}
)
View Source
var (
	// DataDaysDiff 日期差异偏移量
	DataDaysDiff = 1
)

Functions

func GetCacheXdxrList added in v0.1.1

func GetCacheXdxrList(securityCode string) []quotes.XdxrInfo

GetCacheXdxrList 获取除权除息的数据列表

func UpdateXdxrInfo added in v0.1.1

func UpdateXdxrInfo(securityCode string)

UpdateXdxrInfo 除权除息数据

Types

type KLine

type KLine struct {
	Date   string  `dataframe:"date"`   // 日期
	Open   float64 `dataframe:"open"`   // 开盘价
	Close  float64 `dataframe:"close"`  // 收盘价
	High   float64 `dataframe:"high"`   // 最高价
	Low    float64 `dataframe:"low"`    // 最低价
	Volume float64 `dataframe:"volume"` // 成交量
	Amount float64 `dataframe:"amount"` // 成交金额
	Up     int     `dataframe:"up"`     // 上涨家数
	Down   int     `dataframe:"down"`   // 下跌家数
}

KLine 日K线基础结构

func CheckoutKLines added in v0.1.1

func CheckoutKLines(code, date string) []KLine

func LoadBasicKline added in v0.1.1

func LoadBasicKline(securityCode string) []KLine

LoadBasicKline 加载基础K线

func UpdateAllBasicKLine added in v0.1.1

func UpdateAllBasicKLine(securityCode string) []KLine

UpdateAllBasicKLine 更新全部日K线基础数据并保存文件

Jump to

Keyboard shortcuts

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