service

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: AGPL-3.0 Imports: 17 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) decimal.Decimal

func CapitalGainsAccount added in v0.5.6

func CapitalGainsAccount(account string) string

func CapitalGainsSourceAccount added in v0.5.6

func CapitalGainsSourceAccount(account string) string

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) decimal.Decimal

func GetPrice added in v0.5.9

func GetPrice(db *gorm.DB, commodity string, quantity decimal.Decimal, date time.Time) decimal.Decimal

func GetUnitPrice added in v0.2.2

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

func IsCapitalGains added in v0.5.6

func IsCapitalGains(p posting.Posting) bool

func IsContraPostingRefund added in v0.6.5

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

func IsInterest

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

func IsInterestRepayment added in v0.5.2

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

func IsRefund added in v0.6.5

func IsRefund(p posting.Posting) bool

func IsSellWithCapitalGains added in v0.5.7

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

func IsStockSplit added in v0.5.3

func IsStockSplit(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) decimal.Decimal

Types

This section is empty.

Jump to

Keyboard shortcuts

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