gamco

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: AGPL-3.0 Imports: 6 Imported by: 1

README

Lint/Test Latest Release Go Report Card Go Reference

go-gamco

Practicing API wrapping with GAMCO's Closed End Funds.

License

This work is licensed under the GNU Affero General Public License v3 (AGPLv3). This means that if you distribute this source code or work derived from it, you mustalso license that distribution under the AGPLv3 and follow its requirements, including making the distribution's source code freely available.

Note that under the AGPLv3, distribution includes both usage of this work as a dependency, or consuming it through a web API.

Documentation

Overview

Package gamco provides an unofficial API wrapper for GAMCO's Closed-End Funds API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fund

type Fund struct {
	ID                   int       `json:"id"`
	FundCode             int       `json:"fund_code"`
	SecurityID           string    `json:"security_id"`
	FundShortName        string    `json:"fundshortname"`
	NAVDate              time.Time `json:"pricedate"`
	NAV                  string    `json:"price"`
	PriorNAV             string    `json:"prior_price"`
	Change               string    `json:"change"`
	PctChange            string    `json:"pct_change"`
	Sort                 string    `json:"sort"`
	YtdReturn            float64   `json:"ytd_return"`
	YtdReturnMonthly     float64   `json:"ytd_return_monthly"`
	YtdReturnQuarterly   float64   `json:"ytd_return_quarterly"`
	OneYrReturn          float64   `json:"one_yr_return"`
	OneYrReturnMonthly   float64   `json:"one_yr_return_monthly"`
	OneYrReturnQuarterly float64   `json:"one_yr_return_quarterly"`
	ThreeYrAvg           float64   `json:"three_yr_avg"`
	ThreeYrAvgMonthly    float64   `json:"three_yr_avg_monthly"`
	ThreeYrAvgQuarterly  float64   `json:"three_yr_avg_quarterly"`
	FiveYrAvg            float64   `json:"five_yr_avg"`
	FiveYrAvgMonthly     float64   `json:"five_yr_avg_monthly"`
	FiveYrAvgQuarterly   float64   `json:"five_yr_avg_quarterly"`
	TenYrAvg             float64   `json:"ten_yr_avg"`
	TenYrAvgMonthly      float64   `json:"ten_yr_avg_monthly"`
	TenYrAvgQuarterly    float64   `json:"ten_yr_avg_quarterly"`
	InceptAvg            float64   `json:"incept_avg"`
	InceptAvgMonthly     float64   `json:"incept_avg_monthly"`
	InceptAvgQuarterly   float64   `json:"incept_avg_quarterly"`
	Symbol               string    `json:"symbol"`
	AssetType            string    `json:"asset_type"`
	InceptionDate        time.Time `json:"inception_date"`
	LegalName2           string    `json:"legalname2"`
	SeriesName           string    `json:"seriesname"`
	DisplayName          string    `json:"displayname"`
	DisplayName_         string    `json:"displayname_"`
	Category             string    `json:"category"`
	AnnualReport         string    `json:"annual_report"`
	SemiAnnualReport     string    `json:"semi_annual_report"`
	Cusip                string    `json:"cusip"`
	QuarterlyReport      string    `json:"quarterly_report"`
	Prospectus           string    `json:"prospectus"`
	Sai                  string    `json:"sai"`
	Soi                  string    `json:"soi"`
	Factsheet            string    `json:"factsheet"`
	Commentary           string    `json:"commentary"`
	LastMonthEnd         time.Time `json:"last_month_end"`
	LastQtrEnd2          time.Time `json:"last_qtr_end_2"`
}

A Fund represents a single closed-end GAMCO fund.

func GetCommonFundList added in v0.3.0

func GetCommonFundList() ([]Fund, error)

GetCommonFundList returns a list of common GAMCO Funds.

func GetFund

func GetFund(symbol string) (Fund, error)

GetFund returns the symbol's matching Fund.

func (*Fund) UnmarshalJSON

func (f *Fund) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals data into a Fund.

Jump to

Keyboard shortcuts

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