liabilities

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBalance added in v0.2.9

func GetBalance(db *gorm.DB) gin.H

func GetInterest

func GetInterest(db *gorm.DB) gin.H

func GetRepayment added in v0.3.4

func GetRepayment(db *gorm.DB) gin.H

Types

type AssetBreakdown added in v0.2.9

type AssetBreakdown struct {
	Group          string          `json:"group"`
	DrawnAmount    decimal.Decimal `json:"drawn_amount"`
	RepaidAmount   decimal.Decimal `json:"repaid_amount"`
	InterestAmount decimal.Decimal `json:"interest_amount"`
	BalanceAmount  decimal.Decimal `json:"balance_amount"`
	APR            decimal.Decimal `json:"apr"`
}

type Interest

type Interest struct {
	Account          string          `json:"account"`
	OverviewTimeline []Overview      `json:"overview_timeline"`
	APR              decimal.Decimal `json:"apr"`
}

type Overview

type Overview struct {
	Date           time.Time       `json:"date"`
	DrawnAmount    decimal.Decimal `json:"drawn_amount"`
	RepaidAmount   decimal.Decimal `json:"repaid_amount"`
	InterestAmount decimal.Decimal `json:"interest_amount"`
}

Jump to

Keyboard shortcuts

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