Documentation ¶
Index ¶
Constants ¶
View Source
const ( 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: securities.GetStockName(code), VolUnit: 100, DecimalPoint: 2, SubNew: market.IsSubNewStock(code), } securityInfo, ok := securities.CheckoutSecurityInfo(code) if ok { v.VolUnit = int(securityInfo.VolUnit) v.DecimalPoint = int(securityInfo.DecimalPoint) v.Name = securityInfo.Name } return v } )
Functions ¶
func UpdateL5Exchange ¶
func UpdateL5Exchange(extension Exchange)
Types ¶
type Exchange ¶
type Exchange struct { Date string `name:"日期" dataframe:"日期"` // 数据日期 Code string `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"` OpenSentiment float64 `name:"开盘情绪值" dataframe:"开盘情绪值"` OpenConsistent int `name:"开盘情绪一致" dataframe:"开盘情绪一致"` CloseSentiment float64 `name:"收盘情绪值" dataframe:"收盘情绪值"` CloseConsistent int `name:"收盘情绪一致" dataframe:"收盘情绪一致"` AveragePrice float64 `name:"均价线" dataframe:"均价线"` // 均价线 Change5 float64 `name:"5日涨幅" dataframe:"5日涨幅"` Change10 float64 `name:"10日涨幅" dataframe:"10日涨幅"` DBull int `name:"日线排列" dataframe:"日线排列"` // 日线多头排列 MA5D float64 `name:"5日均线" dataframe:"5日均线"` // 5日均线 StepBack5D bool `name:"回踩5日线" dataframe:"回踩5日线"` // 回踩5日均线 MA10D float64 `name:"10日均线" dataframe:"10日均线"` // 10日均线 StepBack10D bool `name:"回踩10日线" dataframe:"回踩10日线"` // 回踩10日均线 MA20D float64 `name:"20日均线" dataframe:"20日均线"` // 20日均线 StepBack20D bool `name:"回踩20日线" dataframe:"回踩20日线"` // 回踩20日均线 WBull int `name:"周线排列" dataframe:"周线排列"` // 周线多头排列 MA5W float64 `name:"5周均线" dataframe:"5周均线"` // 5周均线 StepBack5W bool `name:"回踩5周线" dataframe:"回踩5周线"` // 回踩5周均线 MA10W float64 `name:"10周均线" dataframe:"10周均线"` // 10周均线 StepBack10W bool `name:"回踩10周线" dataframe:"回踩10周线"` // 回踩10周均线 MA20W float64 `name:"20周均线" dataframe:"20周均线"` // 20周均线 StepBack20W bool `name:"回踩20周线" dataframe:"回踩20周线"` // 回踩20周均线 MBull int `name:"月线排列" dataframe:"月线排列"` // 月线多头排列 MA5M float64 `name:"5月均线" dataframe:"5月均线"` // 5月均线 StepBack5M bool `name:"回踩5月线" dataframe:"回踩5月线"` // 回踩5月均线 MA10M float64 `name:"10月均线" dataframe:"10月均线"` // 10月均线 StepBack10M bool `name:"回踩10月线" dataframe:"回踩10月线"` // 回踩10月均线 MA20M float64 `name:"20月均线" dataframe:"20月均线"` // 20月均线 StepBack20M bool `name:"回踩20月线" dataframe:"回踩20月线"` // 回踩20月均线 State uint64 `name:"样本状态" dataframe:"样本状态"` }
Exchange 昨日数据快照
func GetL5Exchange ¶
GetL5Exchange 获取扩展信息
func (Exchange) GetSecurityCode ¶
type F10 ¶
type F10 struct { Date string `name:"日期"` // 日期 Code string `name:"代码"` // 代码 Name string `name:"名称"` // 名称 SubNew bool `name:"次新股"` // 是否次新股 VolUnit int `name:"每手"` // 每手单位 DecimalPoint int `name:"小数点"` // 小数点 IpoDate string `name:"上市日期"` // 上市日期 UpdateDate string `name:"更新日期"` // 更新日期 TotalCapital float64 `name:"总股本"` // 总股本 Capital float64 `name:"流通股本"` // 流通股本 FreeCapital float64 `name:"自由流通股本"` // 自由流通股本 Top10Capital float64 `name:"前十大流通股东总股本"` // 前十大流通股东股本 Top10Change float64 `name:"前十大流通股东总股本变化"` //前十大流通股东股本变化 ChangeCapital float64 `name:"前十大流通股东持仓变化"` // 前十大流通股东持仓变化 IncreaseRatio float64 `name:"当期增持比例"` // 当期增持比例 ReductionRatio float64 `name:"当期减持比例"` // 当期减持比例 BPS float64 `name:"每股净资产"` // 每股净资产 BasicEPS float64 `name:"每股收益"` // 每股收益 SafetyScore int `name:"安全分"` // 通达信安全分 Increase int `name:"增持"` // 公告-增持 Reduce int `name:"减持"` // 公告-减持 Risk int `name:"风险数"` // 公告-风险数 }
F10 证券基本面
func (F10) GetSecurityCode ¶
Click to show internal directories.
Click to hide internal directories.