Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
func NewNotifier ¶
func NewNotifier(r recommendationProvider, w watchlistList, sc stockGetter, ss stockRecommendator, uc userprofileGetter, ec emailSender) *Notifier
func (*Notifier) NotifyChanges ¶
func (n *Notifier) NotifyChanges()
type StockService ¶
type StockService struct {
// contains filtered or unexported fields
}
func NewStockService ¶
func NewStockService(s sP500Client) *StockService
func (*StockService) Calculate ¶
func (ss *StockService) Calculate(stockInfo *model.StockData, expectedRaise float64, expectedReturn float64) model.CalculatedStockInfo
Calculate returns the dynamically computed data from the latest information
func (*StockService) GetAllRecommendedStock ¶
func (ss *StockService) GetAllRecommendedStock(stocks []model.StockData, numReqs int, userprofile *userprofileModel.Userprofile) []model.CalculatedStockInfo
GetAllRecommendedStock returns all the recommended stocks based on the requirements
Click to show internal directories.
Click to hide internal directories.