liabilities

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: AGPL-3.0 Imports: 12 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

Types

type AssetBreakdown added in v0.2.9

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

type Interest

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

type Overview

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

Jump to

Keyboard shortcuts

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