portfolio

package
v1.3.48 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertPortfolio

func InsertPortfolio(portfolio Portfolio) (int, error)

func RemovePortfolio

func RemovePortfolio(portfolioID int) error

func UpdatePortfolio

func UpdatePortfolio(portfolio Portfolio) error

Types

type Portfolio

type Portfolio struct {
	ID              *int       `json:"id"`
	UUID            string     `json:"uuid"`
	Name            string     `json:"name"`
	AlternateName   string     `json:"alternateName"`
	StartDate       *time.Time `json:"startDate"`
	EndDate         *time.Time `json:"endDate"`
	UserEmail       string     `json:"userEmail"`
	Description     string     `json:"description"`
	BaseAssetID     *int       `json:"baseAssetId"`
	PortfolioTypeID *int       `json:"portfolioTypeId"`
	ParentID        *int       `json:"parentId"`
	CreatedBy       string     `json:"createdBy"`
	CreatedAt       time.Time  `json:"createdAt"`
	UpdatedBy       string     `json:"updatedBy"`
	UpdatedAt       time.Time  `json:"updatedAt"`
}

Portfolio

func GetPortfolio

func GetPortfolio(portfolioID int) (*Portfolio, error)

func GetPortfolios

func GetPortfolios(ids []int) ([]Portfolio, error)

func GetTopTenPortfolios

func GetTopTenPortfolios() ([]Portfolio, error)

Jump to

Keyboard shortcuts

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