market

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllCodeList

func AllCodeList() []string

AllCodeList 获取全部证券代码

func CheckoutSecurityInfo added in v1.12.0

func CheckoutSecurityInfo(securityCode string) (*quotes.Security, bool)

CheckoutSecurityInfo 获取证券名称

func GetCodeList added in v1.12.0

func GetCodeList() []string

GetCodeList 加载全部股票代码

func GetStockName added in v1.12.0

func GetStockName(securityCode string) string

GetStockName 获取证券名称

func IndexList added in v1.12.0

func IndexList() []string

IndexList 指数列表

func IndexSentiment added in v1.12.0

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

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

func IsNeedIgnore added in v1.12.0

func IsNeedIgnore(securityCode string) bool

IsNeedIgnore 需要忽略的个股

func IsSubNewStock added in v1.12.0

func IsSubNewStock(code string) bool

IsSubNewStock 是否次新股

func SecuritySentiment added in v1.12.0

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

SecuritySentiment 计算证券情绪

func SnapshotSentiment added in v1.12.0

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

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

Types

type SentimentType added in v1.12.0

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