Documentation ¶
Index ¶
- Constants
- Variables
- func AllCodeList() []string
- func BlockTypeNameByCode(blockCode int) (name string, ok bool)
- func BlockTypeNameByTypeCode(blockType BlockType) (string, bool)
- func CheckoutSecurityInfo(securityCode string) (*quotes.Security, bool)
- func GetStockName(securityCode string) string
- func IndexList() []string
- func OpenEmbed(name string) (fs.File, error)
- type BlockInfo
- type BlockType
- type IndustryInfo
Constants ¶
View Source
const ( BK_UNKNOWN BlockType = 0 // 未知类型 BK_HANGYE BlockType = 2 // 行业 BK_DIQU BlockType = 3 // 地区 BK_GAINIAN BlockType = 4 // 概念 BK_FENGGE BlockType = 5 // 风格 BK_ZHISHU BlockType = 6 // 指数 BK_YJHY BlockType = 12 // 研究行业 BKN_HANGYE = "行业" BKN_DIQU = "地区" BKN_GAINIAN = "概念" BKN_FENGGE = "风格" BKN_ZHISHU = "指数" BKN_YJHY = "研究行业" )
Variables ¶
View Source
var (
// ResourcesPath 资源路径
ResourcesPath = "resources"
)
Functions ¶
func BlockTypeNameByCode ¶
BlockTypeNameByCode 通过板块类型代码获取板块类型名称
func BlockTypeNameByTypeCode ¶
BlockTypeNameByTypeCode 通过板块类型代码获取板块类型名称
func CheckoutSecurityInfo ¶
CheckoutSecurityInfo 获取证券名称
Types ¶
type BlockInfo ¶
type BlockInfo struct { Name string `dataframe:"name"` // 名称 Code string `dataframe:"code"` // 代码 Type int `dataframe:"type"` // 类型 Count int `dataframe:"count"` // 个股数量 Block string `dataframe:"block"` // 通达信板块编码 ConstituentStocks []string `dataframe:"ConstituentStocks"` // 板块成份股 }
BlockInfo 板块信息
func GetBlockInfo ¶
type IndustryInfo ¶
IndustryInfo 行业板块对应
Click to show internal directories.
Click to hide internal directories.