market

package
v0.0.0-...-cca5604 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeSZZS = "SH000001"
	CodeSZCZ = "SZ399001"
	CodeCYB  = "SZ399006"
	CodeKC50 = "SH000688"

	CodeETF5G             = "SH515050"
	CodeETFQuanShang      = "SH512000"
	CodeETFXinNengChe     = "SH515700"
	CodeETFZhengQuan      = "SH512880"
	CodeETFHengSheng      = "SZ159920"
	CodeETFJunGongLongTou = "SH512710"
	CodeETFHongLi         = "SH510880"

	CodeLOFHBYouQi = "SZ162411"
)
View Source
const (
	CodeTypeMain = iota
	CodeTypeETF
	CodeTypeLOF
	CodeTypeIndex
	CodeTypeStock

	CodeTypeUnknown = -1
)

Variables

View Source
var (
	CodeChineseMap = map[string]string{
		CodeSZZS:              "上证指数",
		CodeSZCZ:              "深证成指",
		CodeCYB:               "创业板",
		CodeKC50:              "科创50",
		CodeETF5G:             "5GETF",
		CodeETFQuanShang:      "券商ETF",
		CodeETFXinNengChe:     "新能车",
		CodeLOFHBYouQi:        "华宝油气",
		CodeETFHengSheng:      "恒生ETF",
		CodeETFHongLi:         "红利ETF",
		CodeETFJunGongLongTou: "军工龙头ETF",
		CodeETFZhengQuan:      "证券ETF",
	}
)
View Source
var (
	ETFIndexCodeMap = map[string]string{
		CodeETF5G:         "931079",
		CodeETFQuanShang:  "399975",
		CodeETFXinNengChe: "930997",
		CodeLOFHBYouQi:    "",
	}
)

Functions

func CodeType

func CodeType(code string) int

Types

type OverviewModule

type OverviewModule struct {
	// contains filtered or unexported fields
}

func NewOverviewModule

func NewOverviewModule(messageSender message.Sender) *OverviewModule

func (*OverviewModule) Run

func (*OverviewModule) Start

func (m *OverviewModule) Start(stop <-chan struct{})

Jump to

Keyboard shortcuts

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