Documentation ¶
Index ¶
- Constants
- Variables
- func GetAllocation(db *gorm.DB) gin.H
- func GetCapitalGains(db *gorm.DB) gin.H
- func GetDiagnosis(db *gorm.DB) gin.H
- func GetExpense(db *gorm.DB) gin.H
- func GetGain(db *gorm.DB) gin.H
- func GetHarvest(db *gorm.DB) gin.H
- func GetIncome(db *gorm.DB) gin.H
- func GetInvestment(db *gorm.DB) gin.H
- func GetLedger(db *gorm.DB) gin.H
- func GetOverview(db *gorm.DB) gin.H
- func GetPrices(db *gorm.DB) gin.H
- func GetScheduleAL(db *gorm.DB) gin.H
- func Listen(db *gorm.DB)
- func Sync(db *gorm.DB) gin.H
- type Aggregate
- type AllocationTarget
- type AllocationTargetConfig
- type Breakdown
- type CapitalGain
- type FYCapitalGain
- type Gain
- type HarvestBreakdown
- type Harvestable
- type Income
- type Issue
- type Level
- type Overview
- type PostingPair
- type Rule
- type ScheduleALConfig
- type ScheduleALEntry
- type ScheduleALSection
- type Tax
- type YearlyCard
Constants ¶
View Source
const DATE_FORMAT string = "02 Jan 2006"
Variables ¶
View Source
var CII_START_DATE, _ = time.Parse("2006-01-02", "2001-03-31")
View Source
var EQUITY_GRANDFATHER_DATE, _ = time.Parse("2006-01-02", "2018-02-01")
View Source
var Sections []ScheduleALSection
Functions ¶
Types ¶
type AllocationTarget ¶ added in v0.1.3
type AllocationTargetConfig ¶ added in v0.1.3
type Breakdown ¶
type Breakdown struct { Group string `json:"group"` InvestmentAmount float64 `json:"investment_amount"` WithdrawalAmount float64 `json:"withdrawal_amount"` MarketAmount float64 `json:"market_amount"` BalanceUnits float64 `json:"balance_units"` LatestPrice float64 `json:"latest_price"` XIRR float64 `json:"xirr"` }
type CapitalGain ¶ added in v0.2.2
type CapitalGain struct { Account string `json:"account"` TaxCategory string `json:"tax_category"` FY map[string]FYCapitalGain `json:"fy"` }
type FYCapitalGain ¶ added in v0.2.2
type FYCapitalGain struct { Gain float64 `json:"gain"` TaxableGain float64 `json:"taxable_gain"` ShortTermTax float64 `json:"short_term_tax"` LongTermTax float64 `json:"long_term_tax"` Units float64 `json:"units"` PurchasePrice float64 `json:"purchase_price"` SellPrice float64 `json:"sell_price"` PostingPairs []PostingPair `json:"posting_pairs"` }
type HarvestBreakdown ¶ added in v0.2.2
type HarvestBreakdown struct { Units float64 `json:"units"` PurchaseDate time.Time `json:"purchase_date"` PurchasePrice float64 `json:"purchase_price"` CurrentPrice float64 `json:"current_price"` PurchaseUnitPrice float64 `json:"purchase_unit_price"` UnrealizedGain float64 `json:"unrealized_gain"` TaxableUnrealizedGain float64 `json:"taxable_unrealized_gain"` }
type Harvestable ¶ added in v0.2.2
type Harvestable struct { Account string `json:"account"` TaxCategory string `json:"tax_category"` TotalUnits float64 `json:"total_units"` HarvestableUnits float64 `json:"harvestable_units"` UnrealizedGain float64 `json:"unrealized_gain"` TaxableUnrealizedGain float64 `json:"taxable_unrealized_gain"` HarvestBreakdown []HarvestBreakdown `json:"harvest_breakdown"` CurrentUnitPrice float64 `json:"current_unit_price"` GrandfatherUnitPrice float64 `json:"grandfather_unit_price"` CurrentUnitDate time.Time `json:"current_unit_date"` }
type PostingPair ¶ added in v0.2.6
type ScheduleALConfig ¶ added in v0.2.5
type ScheduleALEntry ¶ added in v0.2.5
type ScheduleALEntry struct { Section ScheduleALSection `json:"section"` Amount float64 `json:"amount"` }
type ScheduleALSection ¶ added in v0.2.5
type YearlyCard ¶ added in v0.1.5
type YearlyCard struct { StartDate time.Time `json:"start_date"` EndDate time.Time `json:"end_date"` Postings []posting.Posting `json:"postings"` GrossSalaryIncome float64 `json:"gross_salary_income"` GrossOtherIncome float64 `json:"gross_other_income"` NetTax float64 `json:"net_tax"` NetIncome float64 `json:"net_income"` NetInvestment float64 `json:"net_investment"` NetExpense float64 `json:"net_expense"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.