Documentation ¶
Index ¶
- Constants
- func Calculate(code string, date string)
- func CalculateScore(code string) (Score, []Metrics)
- func CashFlowScore(cashRatio, cashFlowRatio, receivableTurnoverDays float64) int
- func FinanceScore(lev, longTermRatio float64) int
- func GetGrowingStocks(n int, rate float64)
- func OperationScore(totalAssetTurnover, inventoryTurnoverDays float64) int
- func ProfitabilityScore(roe, grossMargin, netProfitRatio, operatingExpenseRatio float64) int
- func SolvencyScore(currentRatio, quickRatio float64) int
- type GrowthData
- type Metrics
- func CashFlowRatioMetrics(v float64) Metrics
- func CashMetrics(v float64) Metrics
- func GrossMarginMetrics(v float64) Metrics
- func InventoryTurnoverDaysMetrics(v float64) Metrics
- func LevMetrics(v float64) Metrics
- func LongTermRatioMetrics(v float64) Metrics
- func NetProfitRatioMetrics(v float64) Metrics
- func OperatingExpenseRatioMetrics(v float64) Metrics
- func QuickRatioMetrics(v float64) Metrics
- func ROEMetrics(v float64) Metrics
- func ReceivableTurnoverDaysMetrics(v float64) Metrics
- func TotalAssetsTurnoverMetrics(v float64) Metrics
- type Score
Constants ¶
const ( LevelWorst = iota LevelBad LevelWarning LevelNormal LevelGood LevelExcellent LevelBest )
Metrics levels
Variables ¶
This section is empty.
Functions ¶
func CalculateScore ¶
CalculateScore calculates currenct financial score for given stock
func CashFlowScore ¶
CashFlowScore calculates cash flow score, full sore is 100
func FinanceScore ¶
FinanceScore calculates finance score, full sore is 100
func GetGrowingStocks ¶
GetGrowingStocks gets growing stocks
func OperationScore ¶
OperationScore calculates operation score, full sore is 100
func ProfitabilityScore ¶
ProfitabilityScore calculates profitability score, full sore is 100
func SolvencyScore ¶
SolvencyScore calculates solvency score, full sore is 100
Types ¶
type GrowthData ¶
type GrowthData struct { Year string Income float64 Cost float64 Profit float64 OwnersEquity float64 CurrentAsset float64 Cash float64 }
GrowthData is the annual growth data
func CalculateGrowthRate ¶
func CalculateGrowthRate(code string, n int) ([]GrowthData, error)
CalculateGrowthRate calculates growth rate of last n years
type Metrics ¶
Metrics is the financial metrics
func CashFlowRatioMetrics ¶
CashFlowRatioMetrics is cash flow ratio metrics
func GrossMarginMetrics ¶
GrossMarginMetrics is gross margin metrics
func InventoryTurnoverDaysMetrics ¶
InventoryTurnoverDaysMetrics is inventory turnover days metrics
func LevMetrics ¶
LevMetrics is ratio of liabilities to assets metrics
func LongTermRatioMetrics ¶
LongTermRatioMetrics is long term capital ratio metrics
func NetProfitRatioMetrics ¶
NetProfitRatioMetrics is net profit ratio metrics
func OperatingExpenseRatioMetrics ¶
OperatingExpenseRatioMetrics is operating expense ratio metrics
func QuickRatioMetrics ¶
QuickRatioMetrics is quick ratio metrics
func ReceivableTurnoverDaysMetrics ¶
ReceivableTurnoverDaysMetrics is receivable turnover days metrics
func TotalAssetsTurnoverMetrics ¶
TotalAssetsTurnoverMetrics is total assets turnover metrics