fred

package
v0.0.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(apiKey string) source.Source

Types

type Entry

type Entry struct {
	Timestamp time.Time `json:"date"`
	Value     float64   `json:"value"`
}

func (*Entry) UnmarshalJSON

func (e *Entry) UnmarshalJSON(b []byte) error

type FRED

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

func (*FRED) Candles

func (f *FRED) Candles(res source.Resolution, symbol string, from time.Time, to time.Time) ([]*source.Candle, error)

func (*FRED) Quote

func (f *FRED) Quote(symbol string) (*source.Quote, error)

type Observations

type Observations struct {
	Observations []Entry `json:"observations"`
}

Jump to

Keyboard shortcuts

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