quote

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIURL = "https://finviz.com/quote.ashx"
)

Variables

This section is empty.

Functions

func GenerateURL added in v1.0.6

func GenerateURL(ticker string) (string, error)

func Scrape added in v1.0.6

func Scrape(doc *goquery.Document) (*map[string]interface{}, error)

Scrape scrapes FinViz views to a KVP map

Types

type Client added in v1.0.6

type Client struct {
	*http.Client
	// contains filtered or unexported fields
}

func New added in v1.0.6

func New(config *Config) *Client

func (*Client) Do added in v1.0.6

func (c *Client) Do(req *http.Request) (*http.Response, error)

func (*Client) GetQuotes added in v1.0.6

func (c *Client) GetQuotes(tickers []string) (finalResults Results, err error)

func (*Client) RandomizeUserAgent added in v1.2.3

func (c *Client) RandomizeUserAgent()

type Config added in v1.0.6

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

type Error added in v1.1.0

type Error struct {
	Ticker string
	Error  error
}

type Results added in v1.1.0

type Results struct {
	Data     *dataframe.DataFrame
	Warnings []Warning
	Errors   []Error
}

type Warning added in v1.1.0

type Warning struct {
	Ticker string
	Error  error
}

Jump to

Keyboard shortcuts

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