Documentation
¶
Index ¶
- func APR(db *gorm.DB, ps []posting.Posting) decimal.Decimal
- func CapitalGainsAccount(account string) string
- func CapitalGainsSourceAccount(account string) string
- func ClearInterestCache()
- func ClearPriceCache()
- func GetAllPrices(db *gorm.DB, commodity string) []price.Price
- func GetMarketPrice(db *gorm.DB, p posting.Posting, date time.Time) decimal.Decimal
- func GetPrice(db *gorm.DB, commodity string, quantity decimal.Decimal, date time.Time) decimal.Decimal
- func GetUnitPrice(db *gorm.DB, commodity string, date time.Time) price.Price
- func IsCapitalGains(p posting.Posting) bool
- func IsInterest(db *gorm.DB, p posting.Posting) bool
- func IsInterestRepayment(db *gorm.DB, p posting.Posting) bool
- func IsSellWithCapitalGains(db *gorm.DB, p posting.Posting) bool
- func IsStockSplit(db *gorm.DB, p posting.Posting) bool
- func PopulateMarketPrice(db *gorm.DB, ps []posting.Posting) []posting.Posting
- func XIRR(db *gorm.DB, ps []posting.Posting) decimal.Decimal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CapitalGainsAccount ¶ added in v0.5.6
func CapitalGainsSourceAccount ¶ added in v0.5.6
func ClearInterestCache ¶ added in v0.2.8
func ClearInterestCache()
func ClearPriceCache ¶ added in v0.2.8
func ClearPriceCache()
func GetMarketPrice ¶
func GetUnitPrice ¶ added in v0.2.2
func IsCapitalGains ¶ added in v0.5.6
func IsInterestRepayment ¶ added in v0.5.2
func IsSellWithCapitalGains ¶ added in v0.5.7
func PopulateMarketPrice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.