Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterClient ¶
type FilterClient struct {
// contains filtered or unexported fields
}
FilterClient implements the Filter API reference: https://www.openfigi.com/api#post-v3-filter
func NewDefaultFilterClient ¶
func NewDefaultFilterClient(apiKey string) *FilterClient
NewDefaultFilterClient creates a new instance of FilterClient using the http.DefaultClient
func NewFilterClient ¶
func NewFilterClient(apiKey string, httpClient *http.Client) *FilterClient
NewFilterClient creates a new instance of SearchClient with the given http.Client
func (FilterClient) Filter ¶
func (c FilterClient) Filter(ctx context.Context, request *model.FilterRequest) (*model.FilterResponse, error)
Filter fetches the list of stocks' information using the polygon API across all exchanges reference: https://www.openfigi.com/api#post-v3-filter
type MappingClient ¶
type MappingClient struct {
// contains filtered or unexported fields
}
MappingClient implements the Mapping API reference: https://www.openfigi.com/api#post-v3-mapping
func NewDefaultMappingClient ¶
func NewDefaultMappingClient(apiKey string) *MappingClient
NewDefaultMappingClient creates a new instance of MappingClient using the http.DefaultClient
func NewMappingClient ¶
func NewMappingClient(apiKey string, httpClient *http.Client) *MappingClient
NewMappingClient creates a new instance of MappingClient with the provided http.Client
func (MappingClient) Mappings ¶
func (c MappingClient) Mappings(ctx context.Context, mappingRequests []*model.MappingRequest) ([]*model.MappingResponse, error)
Mappings maps third party identifiers to FIGIs. reference: https://www.openfigi.com/api#post-v3-mapping
type SearchClient ¶
type SearchClient struct {
// contains filtered or unexported fields
}
SearchClient implements the Search API reference: https://api.openfigi.com/v3/search
func NewDefaultSearchClient ¶
func NewDefaultSearchClient(apiKey string) *SearchClient
NewDefaultSearchClient creates a new instance of SearchClient using the http.DefaultClient
func NewSearchClient ¶
func NewSearchClient(apiKey string, httpClient *http.Client) *SearchClient
NewSearchClient creates a new instance of SearchClient with the given http.Client
func (SearchClient) Search ¶
func (c SearchClient) Search(ctx context.Context, request *model.SearchRequest) (*model.SearchResponse, error)
Search fetches the list of stocks' information using the polygon API across all exchanges reference: https://api.openfigi.com/v3/search