performance

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Perf added in v0.1.2

func Performance

func Performance(dpv *journal.Performance) float64

Performance computes the portfolio performance.

Types

type Calculator

type Calculator struct {
	Context         *registry.Registry
	Valuation       *model.Commodity
	AccountFilter   predicate.Predicate[*model.Account]
	CommodityFilter predicate.Predicate[*model.Commodity]
}

Calculator calculates portfolio performance

func (*Calculator) ComputeFlows added in v0.1.2

func (calc *Calculator) ComputeFlows() *journal.Processor

func (*Calculator) ComputeValues added in v0.1.2

func (calc *Calculator) ComputeValues() *journal.Processor

ComputeValues computes portfolio performance.

type Universe added in v0.1.2

type Universe map[*model.Commodity][]string

func LoadUniverse added in v0.1.2

func LoadUniverse(reg *commodity.Registry, r io.Reader) (Universe, error)

func LoadUniverseFromFile added in v0.1.2

func LoadUniverseFromFile(reg *commodity.Registry, path string) (Universe, error)

func (Universe) Locate added in v0.1.2

func (un Universe) Locate(c *model.Commodity) []string

Jump to

Keyboard shortcuts

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