financialmodelingprep

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 9 Imported by: 0

README

Financial Modeling Prep Go SDK

Build Status Go Report Card Docs License

Go SDK for Financial Modeling Prep API:

https://site.financialmodelingprep.com/developer/

Documentation

Index

Constants

View Source
const (
	APIEndpoint        = "https://financialmodelingprep.com"
	IncomeStatementURL = "api/v3/income-statement"
)
View Source
const (
	Revenue                          = "Revenue"
	CostOfRevenue                    = "Cost of Revenue"
	ResearchAndDevelopmentExpenses   = "Research and Development Expenses"
	GeneralAndAdministrativeExpenses = "General and Administrative Expenses"
	SellingAndMarketingExpenses      = "Selling and Marketing Expenses"
	OtherExpenses                    = "Other Expenses"
	OperatingExpenses                = "Operating Expenses"
	InterestExpense                  = "InterestExpense"
	DepreciationAndAmortization      = "Depreciation and Amortization"
)

Variables

This section is empty.

Functions

func Ordered

func Ordered() []string

Types

type IncomeStatement

type IncomeStatement struct {
	Symbol                           string  `json:"symbol"`
	FillingDate                      string  `json:"fillingDate"`
	CalendarYear                     string  `json:"calendarYear"`
	Revenue                          float64 `json:"revenue"`
	CostOfRevenue                    float64 `json:"costOfRevenue"`
	GrossProfit                      float64 `json:"grossProfit"`
	ResearchAndDevelopmentExpenses   float64 `json:"researchAndDevelopmentExpenses"`
	GeneralAndAdministrativeExpenses float64 `json:"generalAndAdministrativeExpenses"`
	SellingAndMarketingExpenses      float64 `json:"sellingAndMarketingExpenses"`
	OtherExpenses                    float64 `json:"otherExpenses"`
	OperatingExpenses                float64 `json:"operatingExpenses"`
	CostAndExpenses                  float64 `json:"costAndExpenses"`
	InterestIncome                   float64 `json:"interestIncome"`
	InterestExpense                  float64 `json:"interestExpense"`
	DepreciationAndAmortization      float64 `json:"depreciationAndAmortization"`
	EBITDA                           float64 `json:"ebitda"`
	EBITDAratio                      float64 `json:"ebitdaratio"`
	OperatingIncome                  float64 `json:"operatingIncome"`
	OperatingIncomeRatio             float64 `json:"operatingIncomeRatio"`
	TotalOtherIncomeExpensesNet      float64 `json:"totalOtherIncomeExpensesNet"`
	IncomeBeforeTax                  float64 `json:"incomeBeforeTax"`
	IncomeBeforeTaxRatio             float64 `json:"incomeBeforeTaxRatio"`
	IncomeTaxExpense                 float64 `json:"incomeTaxExpense"`
	NetIncome                        float64 `json:"netIncome"`
}

func (*IncomeStatement) CalendarYearInt

func (is *IncomeStatement) CalendarYearInt() (int, error)

type IncomeStatementOpts

type IncomeStatementOpts struct {
	APIKEY string `url:"apikey"`
	Limit  uint   `url:"limit"`
	Period string `url:"period"`
}

type IncomeStatements

type IncomeStatements []IncomeStatement

func ParseIncomeStatements

func ParseIncomeStatements(data []byte) (IncomeStatements, error)

func ParseIncomeStatementsFile

func ParseIncomeStatementsFile(filename string) (IncomeStatements, error)

func (IncomeStatements) ChartAnnual

func (iss IncomeStatements) ChartAnnual() (chart.Chart, error)

func (IncomeStatements) FinancialsMatrixAnnual

func (iss IncomeStatements) FinancialsMatrixAnnual() ([][]int, error)

func (IncomeStatements) TimeSeriesSetAnnual

func (iss IncomeStatements) TimeSeriesSetAnnual() (*timeseries.TimeSeriesSet, error)

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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