polygon

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const PolygonSource = "POLYGON"

Variables

This section is empty.

Functions

func New

func New(key string) source.Source

Types

type Polygon

type Polygon struct {
	Client *polygonClient.Client
}

func (*Polygon) Candles

func (p *Polygon) Candles(
	res models.Resolution, symbol *symbols.Symbol, from, to time.Time) ([]*models.Candle, error)

func (*Polygon) Quote

func (p *Polygon) Quote(symbol *symbols.Symbol) (*models.Quote, error)

Jump to

Keyboard shortcuts

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