symbol

package
v0.0.0-...-6a42377 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(symbol string, intervalRanges []IntervalRange)

Types

type IntervalRange

type IntervalRange int
const (
	OneDay IntervalRange = iota
	FiveDay
	OneMonth
	ThreeMonth
	SixMonth
	OneYear
	TwoYear
	FiveYear
	TenYear
	YearToDate
)

func (IntervalRange) String

func (d IntervalRange) String() string

type YahooFinanceResponse

type YahooFinanceResponse struct {
	Chart struct {
		Result []struct {
			Meta struct {
				RegularMarketPrice float64 `json:"regularMarketPrice"`
			} `json:"meta"`
			Timestamp  []int64 `json:"timestamp"`
			Indicators struct {
				Quote []struct {
					Close []float64 `json:"close"`
				} `json:"quote"`
			} `json:"indicators"`
		} `json:"result"`
	} `json:"chart"`
}

Jump to

Keyboard shortcuts

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