Documentation
¶
Index ¶
Constants ¶
View Source
const CompanyFactsEndpoint string = Protocol + SecDataUrl + "/api/xbrl/companyfacts"
View Source
const FilingsUrlEndpoint string = Protocol + SecReportUrl + "/Senate-Stock-Disclosures/Filings"
View Source
const Protocol string = "https://"
View Source
const SECDateFormat = "2006-01-02"
View Source
const SecDataUrl string = "data.sec.gov"
View Source
const SecReportUrl string = "www.sec.report"
View Source
const SecUrl string = "www.sec.gov"
View Source
const TickerEndpoint string = Protocol + SecUrl + "/files/company_tickers.json"
Variables ¶
This section is empty.
Functions ¶
func CompleteUrl ¶
Types ¶
type CompanyFacts ¶
type PersistenceLayer ¶ added in v0.1.0
type PersistenceLayer interface {
SaveFacts(Ticker, *CompanyFacts) error
LoadFacts(Ticker) (*CompanyFacts, error)
}
type SecClient ¶
type SecClient struct {
// contains filtered or unexported fields
}
func NewSecClient ¶
func NewSecClient() *SecClient
func NewSecClientWithPersistence ¶ added in v0.1.0
func NewSecClientWithPersistence(persistenceLayer PersistenceLayer) *SecClient
func (*SecClient) GetAllFactsForTicker ¶
func (client *SecClient) GetAllFactsForTicker(ticker Ticker) (CompanyFacts, error)
func (*SecClient) GetAllTickers ¶
Fetches all current tickers from the sec.gov api
type Ticker ¶
type Ticker struct {
// Central Index Key (CIK) is used on the SEC's computer systems to identify corporations
// and individual people who have filed disclosure with the SEC
CIK uint64 `json:"cik_str"`
// The symbol of the company for exampel NDAQ
Symbol string `json:"ticker"`
// The name of the company
Name string `json:"title"`
}
Represents a ticker in the given SEC format
Click to show internal directories.
Click to hide internal directories.