Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCompanyList ¶
GetCompanyList looks up all the companies' code on HKEX
func InsertIndustry ¶
InsertIndustry inserts to the industry table
func InsertPerformance ¶
func InsertPerformance(data []Performance) error
InsertPerformance inserts to the industry_performance table
Types ¶
type Industry ¶
type Industry struct { Date string Sector string Industry string CodeF string Close float64 Change float64 ChangePct float64 Volume int Turnover int PE float64 // Price per Earnings PB float64 // Price to Book YieldPct float64 MarketCap int }
Industry Overview from aastock
func GetIndustryOverview ¶
Gets all the sectors + industry code
type Performance ¶
type Performance struct { Date string Sector string Industry string Code string Close float64 ThreeY float64 // 3-years OneY float64 // 1-year SixM float64 // 6-months ThreeM float64 // 3-months OneM float64 // 1-months OneW float64 // 1-week Ytd float64 // year to date }
Performance from aastock
func GetIndustryPerformance ¶
func GetIndustryPerformance(date string) ([]Performance, error)
Gets all the sectors + industry code
type Sector ¶
type Sector struct { Date string Sector string ChangePct float64 PchangePct float64 Turnover int AvgTurnover int AvgPE float64 ZoneA int // > +2% ZoneB int // 0 - +2% ZoneC int // 0% ZoneD int // 0 - -2% ZoneE int // < -2% ZoneN int // total no of stocks }
Sector for industry sector overview
func GetSectorOveriew ¶
Click to show internal directories.
Click to hide internal directories.