custom

package
v0.0.0-...-5571e90 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backtest

func Backtest(days int, symbols []string)

func Calculate

func Calculate(symbols []string)

func Filter

func Filter()

func PrintDataReport

func PrintDataReport(symbols []string, report *backtest.DataReport)

func UploadFile

func UploadFile() error

uploadFile uploads an object.

Types

type Cafef

type Cafef struct{}

func (*Cafef) FetchData

func (f *Cafef) FetchData(symbols []string, days int)

type DailyData

type DailyData struct {
	Date     string
	Open     float64
	High     float64
	Low      float64
	Close    float64
	AdjClose float64
	Volume   float64
}

type FetchSource

type FetchSource interface {
	FetchData(symbols []string, days int)
}

func NewFetchData

func NewFetchData(t string) FetchSource

type Money24h

type Money24h struct{}

func (*Money24h) FetchData

func (f *Money24h) FetchData(symbols []string, days int)

type ReadSymbols

type ReadSymbols interface {
	Read() []string
}

func NewEnvSymbols

func NewEnvSymbols() ReadSymbols

func NewFileSymbols

func NewFileSymbols() ReadSymbols

func NewSymbolsReader

func NewSymbolsReader(source string) ReadSymbols

type WeekUtil

type WeekUtil interface {
	GetNextStart() int
}

func NewWeekUtil

func NewWeekUtil(days int) WeekUtil

Jump to

Keyboard shortcuts

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