finance

package
v0.0.0-...-177a272 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelLastPrice                = "last-price"
	LabelMovingAverage            = "moving-average"
	LabelExponentialMovingAverage = "exponential-moving-average"
	LabelRSI                      = "rsi"
	LabelMACD                     = "macd"
	LabelStochasticOscillator     = "stochastic-oscillator"
	LabelTopPercentChange         = "top-percent-change"
)

Variables

This section is empty.

Functions

func NewExponentialMovingAverage

func NewExponentialMovingAverage(span, interval time.Duration, points int) utils.QueryFillerMaker

func NewLastPrice

func NewLastPrice(core utils.QueryGenerator) utils.QueryFiller

func NewMACD

func NewMACD(span, interval time.Duration, firstPoints, secondPoints, signalPoints int) utils.QueryFillerMaker

func NewMovingAverage

func NewMovingAverage(span, interval time.Duration, points int) utils.QueryFillerMaker

func NewRSI

func NewRSI(span, interval time.Duration, points int) utils.QueryFillerMaker

func NewStochasticOscillator

func NewStochasticOscillator(span, interval time.Duration, points int) utils.QueryFillerMaker

func NewTopPercentChange

func NewTopPercentChange(span, interval time.Duration) utils.QueryFillerMaker

Types

type Core

type Core struct {
	*common.Core
}

func NewCore

func NewCore(start, end time.Time, scale int) (*Core, error)

type ExponentialMovingAverage

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

func (*ExponentialMovingAverage) Fill

type ExponentialMovingAverageFiller

type ExponentialMovingAverageFiller interface {
	ExponentialMovingAverage(query.Query, time.Duration, time.Duration, int)
}

type LastPrice

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

func (*LastPrice) Fill

func (d *LastPrice) Fill(q query.Query) query.Query

type LastPriceFiller

type LastPriceFiller interface {
	LastPrice(query.Query)
}

type MACD

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

func (*MACD) Fill

func (d *MACD) Fill(q query.Query) query.Query

type MACDFiller

type MACDFiller interface {
	MACD(query.Query, time.Duration, time.Duration, int, int, int)
}

type MovingAverage

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

func (*MovingAverage) Fill

func (d *MovingAverage) Fill(q query.Query) query.Query

type MovingAverageFiller

type MovingAverageFiller interface {
	MovingAverage(query.Query, time.Duration, time.Duration, int)
}

type RSI

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

func (*RSI) Fill

func (d *RSI) Fill(q query.Query) query.Query

type RSIFiller

type RSIFiller interface {
	RSI(query.Query, time.Duration, time.Duration, int)
}

type StochasticOscillator

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

func (*StochasticOscillator) Fill

type StochasticOscillatorFiller

type StochasticOscillatorFiller interface {
	StochasticOscillator(query.Query, time.Duration, time.Duration, int)
}

type TopPercentChange

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

func (*TopPercentChange) Fill

func (d *TopPercentChange) Fill(q query.Query) query.Query

type TopPercentChangeFiller

type TopPercentChangeFiller interface {
	TopPercentChange(query.Query, time.Duration, time.Duration)
}

Jump to

Keyboard shortcuts

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