cron

package
v0.0.0-...-8093eda Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronServer

type CronServer struct {
	Config *config.CronConfig
	// contains filtered or unexported fields
}

func New

func New(cronConfig *config.CronConfig) *CronServer

func (*CronServer) GetStockOverview

func (c *CronServer) GetStockOverview()

func (*CronServer) Init

func (c *CronServer) Init() error

func (*CronServer) Start

func (c *CronServer) Start() error

type StockOverview

type StockOverview struct {
	Symbol                     string  `json:"Symbol"`
	AssetType                  string  `json:"AssetType"`
	Name                       string  `json:"Name"`
	Description                string  `json:"Description"`
	CIK                        string  `json:"CIK"`
	Exchange                   string  `json:"Exchange"`
	Currency                   string  `json:"Currency"`
	Country                    string  `json:"Country"`
	Sector                     string  `json:"Sector"`
	Industry                   string  `json:"Industry"`
	Address                    string  `json:"Address"`
	FiscalYearEnd              string  `json:"FiscalYearEnd"`
	LatestQuarter              string  `json:"LatestQuarter"`
	MarketCapitalization       int64   `json:"MarketCapitalization,string"`
	EBITDA                     string  `json:"EBITDA"`
	PERatio                    string  `json:"PERatio"`
	PEGRatio                   float32 `json:"PEGRatio,string"`
	BookValue                  float32 `json:"BookValue,string"`
	DividendPerShare           string  `json:"DividendPerShare"`
	DividendYield              string  `json:"DividendYield"`
	EPS                        float32 `json:"EPS,string"`
	RevenuePerShareTTM         float32 `json:"RevenuePerShareTTM,string"`
	ProfitMargin               float32 `json:"ProfitMargin,string"`
	OperatingMarginTTM         float32 `json:"OperatingMarginTTM,string"`
	ReturnOnAssetsTTM          float32 `json:"ReturnOnAssetsTTM,string"`
	ReturnOnEquityTTM          float32 `json:"ReturnOnEquityTTM,string"`
	RevenueTTM                 int64   `json:"RevenueTTM,string"`
	GrossProfitTTM             int64   `json:"GrossProfitTTM,string"`
	DilutedEPSTTM              float32 `json:"DilutedEPSTTM,string"`
	QuarterlyEarningsGrowthYOY float32 `json:"QuarterlyEarningsGrowthYOY,string"`
	QuarterlyRevenueGrowthYOY  float32 `json:"QuarterlyRevenueGrowthYOY,string"`
	AnalystTargetPrice         float32 `json:"AnalystTargetPrice,string"`
	TrailingPE                 string  `json:"TrailingPE"`
	ForwardPE                  string  `json:"ForwardPE"`
	PriceToSalesRatioTTM       float32 `json:"PriceToSalesRatioTTM,string"`
	PriceToBookRatio           float32 `json:"PriceToBookRatio,string"`
	EVToRevenue                float32 `json:"EVToRevenue,string"`
	EVToEBITDA                 string  `json:"EVToEBITDA"`
	Beta                       string  `json:"Beta"`
	FiftyTwoWeekHigh           float32 `json:"52WeekHigh,string"`
	FiftyTwoWeekLow            float32 `json:"52WeekLow,string"`
	FiftyDayMovingAverage      float32 `json:"50DayMovingAverage,string"`
	TwoHundredDayMovingAverage float32 `json:"200DayMovingAverage,string"`
	SharesOutstanding          int64   `json:"SharesOutstanding,string"`
	DividendDate               string  `json:"DividendDate"`
	ExDividendDate             string  `json:"ExDividendDate"`
}

Jump to

Keyboard shortcuts

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