service

package
v0.4.8-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APR added in v0.2.8

func APR(db *gorm.DB, ps []posting.Posting) float64

func ClearInterestCache added in v0.2.8

func ClearInterestCache()

func ClearPriceCache added in v0.2.8

func ClearPriceCache()

func GetAllPrices added in v0.3.5

func GetAllPrices(db *gorm.DB, commodity string) []price.Price

func GetMarketPrice

func GetMarketPrice(db *gorm.DB, p posting.Posting, date time.Time) float64

func GetUnitPrice added in v0.2.2

func GetUnitPrice(db *gorm.DB, commodity string, date time.Time) price.Price

func IsInterest

func IsInterest(db *gorm.DB, p posting.Posting) bool

func PopulateMarketPrice

func PopulateMarketPrice(db *gorm.DB, ps []posting.Posting) []posting.Posting

func XIRR

func XIRR(db *gorm.DB, ps []posting.Posting) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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