data

package
v0.0.0-...-00a2561 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompanyNews

func CompanyNews() (companyNewsList []string, pause bool, e error)

CompanyNews ..

func ExportAllBFs

func ExportAllBFs(trigger <-chan bool)

ExportAllBFs ..

func ExportAllFRs

func ExportAllFRs(trigger <-chan bool)

ExportAllFRs ..

func GetBasicFinancials

func GetBasicFinancials() (result [][]string, e error)

GetBasicFinancials ..

func GetEarningsCals

func GetEarningsCals() (cals []string, pause bool, e error)

GetEarningsCals ..

func GetFinancialReports

func GetFinancialReports() (result [][]string, e error)

GetFinancialReports ..

func GetNewsSentiment

func GetNewsSentiment() (t float64, p float64, e error)

GetNewsSentiment ..

func GetTrend

func GetTrend() (target []int, peers []int, e error)

GetTrend ..

func MarketNews

func MarketNews() (mktNewsList []string, pause bool, e error)

MarketNews ..

Types

type CompanyNewsStruct

type CompanyNewsStruct []struct {
	Category string `json:"category"`
	Datetime int64  `json:"datetime"`
	Headline string `json:"headline"`
	ID       int    `json:"id"`
	Image    string `json:"image"`
	Related  string `json:"related"`
	Source   string `json:"source"`
	Summary  string `json:"summary"`
	URL      string `json:"url"`
}

CompanyNewsStruct ..

type EarningsCalendarStruct

type EarningsCalendarStruct struct {
	EarningsCalendar []struct {
		Date            string  `json:"date"`
		EpsActual       float64 `json:"epsActual"`
		EpsEstimate     float64 `json:"epsEstimate"`
		Hour            string  `json:"hour"`
		Quarter         int     `json:"quarter"`
		RevenueActual   float64 `json:"revenueActual"`
		RevenueEstimate float64 `json:"revenueEstimate"`
		Symbol          string  `json:"symbol"`
		Year            int     `json:"year"`
	} `json:"earningsCalendar"`
}

EarningsCalendarStruct ..

type News

type News []struct {
	Category string `json:"category"`
	Datetime int64  `json:"datetime"`
	Headline string `json:"headline"`
	ID       int    `json:"id"`
	Image    string `json:"image"`
	Related  string `json:"related"`
	Source   string `json:"source"`
	Summary  string `json:"summary"`
	URL      string `json:"url"`
}

News ..

type NewsSentiment

type NewsSentiment struct {
	Buzz struct {
		ArticlesInLastWeek int     `json:"articlesInLastWeek"`
		Buzz               float64 `json:"buzz"`
		WeeklyAverage      int     `json:"weeklyAverage"`
	} `json:"buzz"`
	CompanyNewsScore            float64 `json:"companyNewsScore"`
	SectorAverageBullishPercent float64 `json:"sectorAverageBullishPercent"`
	SectorAverageNewsScore      float64 `json:"sectorAverageNewsScore"`
	Sentiment                   struct {
		BearishPercent float64 `json:"bearishPercent"`
		BullishPercent float64 `json:"bullishPercent"`
	} `json:"sentiment"`
	Symbol string `json:"symbol"`
}

NewsSentiment ..

type Trend

type Trend []struct {
	Buy        int    `json:"buy"`
	Hold       int    `json:"hold"`
	Period     string `json:"period"`
	Sell       int    `json:"sell"`
	StrongBuy  int    `json:"strongBuy"`
	StrongSell int    `json:"strongSell"`
	Symbol     string `json:"symbol"`
}

Trend ..

Jump to

Keyboard shortcuts

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