finviz

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: 5 Imported by: 0

README

FinViz API

Scrape FinViz overview table by providing query string.

Usage

package main

import "github.com/t73liu/trading-bot/lib/finviz"

func main() {
  httpClient := &http.Client{Timeout: 15 * time.Second}
  finvizClient := finviz.Client(httpClient)
  // Ordered by descending gap with lower limit of +5%
  finvizClient.ScreenStocks("v=111&f=ta_gap_u5&ft=4&o=-gap")
}

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) ScreenStocks

func (c *Client) ScreenStocks(query string) (stocks []StockInfo, err error)

type StockInfo

type StockInfo struct {
	Symbol        string
	Company       string
	Sector        string
	Industry      string
	Country       string
	MarketCap     int64
	Price         float64
	PercentChange float64
	Volume        int64
}

Jump to

Keyboard shortcuts

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