sec

package
v0.0.0-...-b4f2217 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCik

func ParseCik() (cikData []types.ClkData, err error)

make post request to https://efts.sec.gov/LATEST/search-index

func SearchIndex

func SearchIndex(company string)

make post request to https://efts.sec.gov/LATEST/search-index

Types

type AutoGenerated

type AutoGenerated struct {
	Took     int        `json:"took"`
	TimedOut bool       `json:"timed_out"`
	Shards   Shards     `json:"_shards"`
	Hits     HitsParent `json:"hits"`
}

type Bool

type Bool struct {
	Should []Should `json:"should"`
}

type Entity

type Entity struct {
	Query    string `json:"query"`
	Operator string `json:"operator"`
}

type Exists

type Exists struct {
	Field string `json:"field"`
	Boost int    `json:"boost"`
}

type Hits

type Hits struct {
	Index  string  `json:"_index"`
	Type   string  `json:"_type"`
	ID     string  `json:"_id"`
	Score  float64 `json:"_score"`
	Source Source  `json:"_source,omitempty"`
}

type HitsParent

type HitsParent struct {
	Total    Total   `json:"total"`
	MaxScore float64 `json:"max_score"`
	Hits     []Hits  `json:"hits"`
}

type ID

type ID struct {
	Query string `json:"query"`
}

type Match

type Match struct {
	Entity Entity `json:"entity"`
}

type Match0

type Match0 struct {
	ID ID `json:"_id"`
}

type Must

type Must struct {
	Bool Bool `json:"bool"`
}

type Shards

type Shards struct {
	Total      int `json:"total"`
	Successful int `json:"successful"`
	Skipped    int `json:"skipped"`
	Failed     int `json:"failed"`
}

type Should

type Should struct {
	Match  Match  `json:"match,omitempty"`
	Match0 Match0 `json:"match,omitempty"`
	Exists Exists `json:"exists,omitempty"`
}

type Source

type Source struct {
	Entity      string `json:"entity"`
	EntityWords string `json:"entity_words"`
	Tickers     string `json:"tickers"`
	Rank        int    `json:"rank"`
}

type Tickers

type Tickers struct {
	Query    string `json:"query"`
	Operator string `json:"operator"`
	Boost    int    `json:"boost"`
}

type Total

type Total struct {
	Value    int    `json:"value"`
	Relation string `json:"relation"`
}

Jump to

Keyboard shortcuts

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