yahoo

package module
v0.0.0-...-798ab6b Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: MIT Imports: 7 Imported by: 0

README

Yahoo Finance

Scrape Yahoo Finance to fetch upcoming events and stock details:

  • Earnings
  • IPOs
  • Stock Info
  • Stock Splits

Note: Annual General Meeting calendar is not provided by Yahoo Finance.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(httpClient *http.Client) *Client

func (*Client) GetEarningsCall

func (c *Client) GetEarningsCall(date time.Time) (earnings []EarningsCall, err error)

func (*Client) GetIPOs

func (c *Client) GetIPOs(date time.Time) (ipos []IPO, err error)

func (*Client) GetStock

func (c *Client) GetStock(symbol string) (stock Stock, err error)

type EarningsCall

type EarningsCall struct {
	Ticker             string
	Company            string
	StartTime          EarningsCallTime
	EPSEstimate        *float64
	EPSActual          *float64
	EPSSurprisePercent *float64
	QuoteType          string
	Date               string
}

type EarningsCallTime

type EarningsCallTime string
const (
	TransferAgentSystem EarningsCallTime = "TAS"
	TimeNotSupplied     EarningsCallTime = "TNS"
	BeforeMarketOpen    EarningsCallTime = "BMO"
	AfterMarketClose    EarningsCallTime = "AFC"
)

type IPO

type IPO struct {
	Ticker    string
	Company   string
	Exchange  string
	PriceFrom *float64
	PriceTo   *float64
	Currency  string
	QuoteType string
	Date      string
}

type Stock

type Stock struct {
	Symbol    string
	Company   string
	Exchange  string
	MarketCap int64
	Price     float64
}

Jump to

Keyboard shortcuts

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