market

package
v0.0.0-...-56e6e87 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Quote(symbols []string) ([]Quote, error)
}

type FakeBackend

type FakeBackend struct {
	BaseQuote Quote
}

func (*FakeBackend) Quote

func (f *FakeBackend) Quote(symbols []string) ([]Quote, error)

type Quote

type Quote = finance.Quote

Quote represents a market quote for a symbol. TODO Since yahoo finance via piquette/finance-go is the only supported backend and it contains the fields we actually care about, just alias the type for now.

type YahooBackend

type YahooBackend struct{}

func NewYahooBackend

func NewYahooBackend() *YahooBackend

func (*YahooBackend) Quote

func (y *YahooBackend) Quote(symbols []string) ([]Quote, error)

Jump to

Keyboard shortcuts

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