stock

package
v0.0.0-...-035b4ae Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StockCal

type StockCal struct {
	// contains filtered or unexported fields
}

func GetStockCalendar

func GetStockCalendar() *StockCal

func (*StockCal) Is

func (o *StockCal) Is(date string) bool

func (*StockCal) IsByInt

func (o *StockCal) IsByInt(date int) bool

func (*StockCal) List

func (o *StockCal) List(iprev int, pin int, inext int, reverse bool) []string

func (*StockCal) ListByDate

func (o *StockCal) ListByDate(from string, to string, reverse bool) ([]string, error)

func (*StockCal) ListByDateEx

func (o *StockCal) ListByDateEx(interval StockCalInterval, from string, to string, reverse bool) ([]string, error)

func (*StockCal) ListEx

func (o *StockCal) ListEx(interval StockCalInterval, iprev int, pin int, inext int, reverse bool) []string

func (*StockCal) ListMonth

func (o *StockCal) ListMonth(iprev int, pin int, inext int, reverse bool) []string

func (*StockCal) ListMonthByDate

func (o *StockCal) ListMonthByDate(from string, to string, reverse bool) ([]string, error)

func (*StockCal) ListWeek

func (o *StockCal) ListWeek(iprev int, pin int, inext int, reverse bool) []string

func (*StockCal) ListWeekByDate

func (o *StockCal) ListWeekByDate(from string, to string, reverse bool) ([]string, error)

type StockCalInterval

type StockCalInterval int
const (
	Day StockCalInterval = iota
	Week
	Month
)

type StockProfile

type StockProfile struct {
	Code  string
	Lows  []float64
	Highs []float64
}

Jump to

Keyboard shortcuts

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