Documentation ¶
Index ¶
- func GetCodeList() []string
- func IndexSentiment(codes ...string) (sentiment float64, consistent int)
- func IsNeedIgnore(securityCode string) bool
- func IsSubNewStock(code string) bool
- 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 IndexSentiment ¶
IndexSentiment 情绪指数, 50%为平稳, 低于50%为情绪差, 高于50%为情绪好
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.