Documentation ¶
Index ¶
- Constants
- Variables
- func FundFlowFilename(securityCode string) string
- func HoldingFilename() string
- func NoticeFilename() string
- func QuarterlyReportFilename() string
- func RefreshL5Exchange()
- func ReportFilename() string
- func SnapshotFilename(securityCode string) string
- func UpdateL5Exchange(extension Exchange)
- type Exchange
- type F10
Constants ¶
View Source
const ( FundFlowPath = Quant1XCacheRoot + "/fund" SnapshotPath = Quant1XCacheRoot + "/snapshot" HoldersFilename = Quant1XCacheRoot + "/holders" QuarterlyReport = Quant1XCacheRoot + "/reports" )
View Source
const (
CACHE_META_PATH = "meta"
)
View Source
const (
CacheL5KeyExchange = "cache/exchange"
)
View Source
const (
CacheL5KeyF10 = "cache/f10"
)
View Source
const (
Quant1XCacheRoot = "cache"
)
Variables ¶
View Source
var ( ExchangeDefaultFactory = func(date, code string) Exchange { v := Exchange{ Date: date, Code: code, } return v } )
View Source
var ( F10DefaultFactory = func(date, code string) F10 { v := F10{ Date: date, Code: code, Name: market.GetStockName(code), VolUnit: 100, DecimalPoint: 2, } securityInfo, ok := market.CheckoutSecurityInfo(code) if ok { v.VolUnit = int(securityInfo.VolUnit) v.DecimalPoint = int(securityInfo.DecimalPoint) v.Name = securityInfo.Name } return v } )
Functions ¶
func FundFlowFilename ¶ added in v1.12.0
FundFlowFilename 通过证券代码获取资金流向的缓存文件路径
func QuarterlyReportFilename ¶ added in v1.12.0
func QuarterlyReportFilename() string
QuarterlyReportFilename 季报保存路径
func SnapshotFilename ¶ added in v1.12.0
SnapshotFilename 快照数据文件
func UpdateL5Exchange ¶ added in v1.12.0
func UpdateL5Exchange(extension Exchange)
Types ¶
type Exchange ¶ added in v1.12.0
type Exchange struct { Date string `name:"日期" dataframe:"日期"` // 数据日期 Code string `name:"证券代码" dataframe:"证券代码"` // 证券代码 SubNew bool `name:"次新股" dataframe:"次新股"` // 次新股 Shape uint64 `name:"K线形态" dataframe:"K线形态"` // K线形态 MAV5 float64 `name:"分钟均量" dataframe:"分钟均量"` // 前5日每分钟均量, 量比(QuantityRelativeRatio)需要 AIC5 float64 `name:"5日涨幅" dataframe:"5日涨幅"` // 前5日累积涨幅,Accumulated5DIncrease, 5日涨幅统计需要 FundFlow float64 `name:"资金流向" dataframe:"资金流向"` // 资金流向, 暂时无用 VolumeRatio float64 `name:"成交量比" dataframe:"成交量比"` // 成交量放大比例, 相邻的两个交易日进行比对 OpenBiddingDirection int `name:"开盘竞价" dataframe:"开盘竞价"` // 竞价方向, 交易当日集合竞价开盘时更新 OpenVolumeDirection int `name:"开盘竞量" dataframe:"开盘竞量"` // 委托量差, 交易当日集合竞价开盘时更新 CloseBiddingDirection int `name:"收盘竞价" dataframe:"收盘竞价"` // 竞价方向, 交易当日集合竞价收盘时更新 CloseVolumeDirection int `name:"收盘竞量" dataframe:"收盘竞量"` // 委托量差, 交易当日集合竞价收盘时更新 OpenVolume int64 `name:"开盘量" dataframe:"开盘量"` OpenTurnZ float64 `name:"开盘换手z" dataframe:"开盘换手z"` CloseVolume int64 `name:"收盘量" dataframe:"收盘量"` // TODO:快照数据实际上有好几条, 应该用当日成交记录修订 CloseTurnZ float64 `name:"收盘换手z" dataframe:"收盘换手z"` Increase int `name:"增持" dataframe:"增持"` // 公告-增持 Reduce int `name:"减持" dataframe:"减持"` // 公告-减持 Risk int `name:"风险数" dataframe:"风险数"` // 公告-风险数 OpenSentiment float64 `name:"开盘情绪值" dataframe:"开盘情绪值"` OpenConsistent int `name:"开盘情绪一致" dataframe:"开盘情绪一致"` CloseSentiment float64 `name:"收盘情绪值" dataframe:"收盘情绪值"` CloseConsistent int `name:"收盘情绪一致" dataframe:"收盘情绪一致"` }
Exchange 昨日数据快照
func GetL5Exchange ¶ added in v1.12.0
GetL5Exchange 获取扩展信息
func (Exchange) GetSecurityCode ¶ added in v1.12.0
type F10 ¶ added in v1.12.0
type F10 struct { Date string `name:"日期"` // 日期 Code string `name:"代码"` // 代码 Name string `name:"名称"` // 名称 VolUnit int `name:"每手"` // 每手单位 DecimalPoint int `name:"小数点"` // 小数点 IpoDate string `name:"上市日期"` // 上市日期 UpdateDate string `name:"更新日期"` // 更新日期 TotalCapital float64 `name:"总股本"` // 总股本 Capital float64 `name:"流通股本"` // 流通股本 Top10Capital float64 `name:"前十大流通股东股本"` // 前十大流通股东股本 Top10Change float64 `name:"前十大流通股东股本变化"` //前十大流通股东股本变化 FreeCapital float64 `name:"自由流通股本"` // 自由流通股本 ChangeCapital float64 `name:"前十大流通股东持仓变化"` // 前十大流通股东持仓变化 IncreaseRatio float64 `name:"当期增持比例"` // 当期增持比例 ReductionRatio float64 `name:"当期坚持比例"` // 当期减持比例 BPS float64 `name:"每股净资产"` // 每股净资产 BasicEPS float64 `name:"每股收益"` // 每股收益 SafetyScore int `name:"安全分"` // 通达信安全分 }
F10 证券基本面
func (F10) GetSecurityCode ¶ added in v1.12.0
Click to show internal directories.
Click to hide internal directories.