Documentation ¶
Overview ¶
Package market 二级市场相关的功能性函数
Index ¶
- func GetCodeList() []string
- func GetStockCodeList() []string
- func IndexSentiment(codes ...string) (sentiment float64, consistent int)
- func IsNeedIgnore(securityCode string) bool
- func IsSubNewStock(code string) bool
- func PriceLimit(securityCode string, lastClose float64) (limitUp, limitDown float64)
- func SecuritySentiment[E ~int | ~int64 | ~float32 | ~float64](up, down E) (sentiment float64, consistent int)
- func SnapshotSentiment(snapshot quotes.Snapshot) (sentiment float64, consistent int)
- type SentimentType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStockCodeList ¶ added in v0.7.7
func GetStockCodeList() []string
func IndexSentiment ¶
IndexSentiment 情绪指数, 50%为平稳, 低于50%为情绪差, 高于50%为情绪好
func PriceLimit ¶ added in v0.7.7
PriceLimit 计算涨停板和跌停板的价格
Types ¶
type SentimentType ¶
type SentimentType = int
const ( SentimentZero SentimentType = iota // 情绪一般 SentimentHigh SentimentType = 1 // 情绪高涨 SentimentLow SentimentType = -1 // 情绪低迷 )
Click to show internal directories.
Click to hide internal directories.