market

package
v2.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCodeList

func GetCodeList() []string

GetCodeList 加载全部股票代码

func IndexSentiment

func IndexSentiment(codes ...string) (sentiment float64, consistent int)

IndexSentiment 情绪指数, 50%为平稳, 低于50%为情绪差, 高于50%为情绪好

func IsNeedIgnore

func IsNeedIgnore(securityCode string) bool

IsNeedIgnore 需要忽略的个股

检测需要的剔除ST、退市和摘牌的个股

func IsSubNewStock

func IsSubNewStock(code string) bool

IsSubNewStock 是否次新股

func SecuritySentiment

func SecuritySentiment(up, down int) (sentiment float64, consistent int)

SecuritySentiment 计算证券情绪

func SnapshotSentiment

func SnapshotSentiment(snapshot quotes.Snapshot) (sentiment float64, consistent int)

SnapshotSentiment 情绪指数, 50%为平稳, 低于50%为情绪差, 高于50%为情绪好

Types

type SentimentType

type SentimentType = int
const (
	SentimentZero SentimentType = iota // 情绪一般
	SentimentHigh SentimentType = 1    // 情绪高涨
	SentimentLow  SentimentType = -1   // 情绪低迷
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL