Documentation ¶
Index ¶
- func AllCodeList() []string
- func CheckoutSecurityInfo(securityCode string) (*quotes.Security, bool)
- func GetCodeList() []string
- func GetStockName(securityCode string) string
- func IndexList() []string
- func IndexSentiment(codes ...string) (sentiment float64, consistent int)
- func IsNeedIgnore(securityCode string) bool
- func IsSubNewStock(code string) bool
- func SecuritySentiment(up, down int) (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 CheckoutSecurityInfo ¶ added in v1.12.0
CheckoutSecurityInfo 获取证券名称
func GetStockName ¶ added in v1.12.0
GetStockName 获取证券名称
func IndexSentiment ¶ added in v1.12.0
IndexSentiment 情绪指数, 50%为平稳, 低于50%为情绪差, 高于50%为情绪好
func IsNeedIgnore ¶ added in v1.12.0
IsNeedIgnore 需要忽略的个股
func SecuritySentiment ¶ added in v1.12.0
SecuritySentiment 计算证券情绪
Types ¶
type SentimentType ¶ added in v1.12.0
type SentimentType = int
const ( SentimentZero SentimentType = iota // 情绪一般 SentimentHigh SentimentType = 1 // 情绪高涨 SentimentLow SentimentType = -1 // 情绪低迷 )
Click to show internal directories.
Click to hide internal directories.