insidervizforms

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 9 Imported by: 0

README

insiderviz-forms

The functions InsiderViz uses to fetch and parse forms

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbForm4ToDeltaForm

func DbForm4ToDeltaForm(dbForm4 iv_models.DB_BaseForm4) (iv_models.DB_DeltaForm, bool)

func GetFormsFromJSON

func GetFormsFromJSON(path string, startDate string) (map[string][]string, iv_models.DB_Issuer_Doc, iv_models.DB_Reporter_Doc, string, error)

returns a map with the form uris, the issuer doc, the reporter doc, the type of entity, and an error

func GetThirteenFFromUrl

func GetThirteenFFromUrl(url string, accNum string, userAgent string) (iv_models.DB_Form13F_Base, error)

func RawForm4ToDbForm4

func RawForm4ToDbForm4(rawForm4 iv_models.RawForm4) iv_models.DB_BaseForm4

func XmlForm4ToRawForm4

func XmlForm4ToRawForm4(path string, accNum string, url string) (iv_models.RawForm4, error)

func XmlUrlForm4ToRawForm4

func XmlUrlForm4ToRawForm4(url string, accNum string, userAgent string) (iv_models.RawForm4, error)

Types

type CoverPage

type CoverPage struct {
	XMLName       xml.Name      `xml:"coverPage"`
	FilingManager FilingManager `xml:"filingManager"`
}

type Credentials

type Credentials struct {
	XMLName xml.Name `xml:"credentials"`
	Cik     string   `xml:"cik"`
}

type Filer

type Filer struct {
	XMLName     xml.Name    `xml:"filer"`
	Credentials Credentials `xml:"credentials"`
}

type FilerInfo

type FilerInfo struct {
	XMLName        xml.Name `xml:"filerInfo"`
	PeriodOfReport string   `xml:"periodOfReport"`
	Filer          Filer    `xml:"filer"`
}

type FilingManager

type FilingManager struct {
	XMLName xml.Name `xml:"filingManager"`
	Name    string   `xml:"name"`
}

type Form13_PrimaryDoc

type Form13_PrimaryDoc struct {
	XMLName  xml.Name   `xml:"edgarSubmission"`
	Header   HeaderData `xml:"headerData"`
	FormData FormData   `xml:"formData"`
}

type FormData

type FormData struct {
	XMLName   xml.Name  `xml:"formData"`
	CoverPage CoverPage `xml:"coverPage"`
}

type HeaderData

type HeaderData struct {
	XMLName   xml.Name  `xml:"headerData"`
	FilerInfo FilerInfo `xml:"filerInfo"`
}

type InfoTable

type InfoTable struct {
	XMLName xml.Name         `xml:"informationTable"`
	Entries []InfoTableEntry `xml:"infoTable"`
}

type InfoTableEntry

type InfoTableEntry struct {
	XMLName      xml.Name    `xml:"infoTable"`
	NameOfIssuer string      `xml:"nameOfIssuer"`
	Cusip        string      `xml:"cusip"`
	Value        float64     `xml:"value"`
	SharesOrAmt  SharesOrAmt `xml:"shrsOrPrnAmt"`
}

type SharesOrAmt

type SharesOrAmt struct {
	XMLName   xml.Name `xml:"shrsOrPrnAmt"`
	SshPrnamt float64  `xml:"sshPrnamt"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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