Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithOnlyNamedExchanges ¶
func WithOnlyNamedExchanges(exchanges []ExchangeName) func(*Options) error
WithOnlyNamedExchanges limits the set of returned listings to those available from the specified exchanges. Not setting an exchange filter means all listings from all exchanges are returned
func WithOnlyTypes ¶
WithOnlyTypes limits the set of returned listings to be restricted to the specified AssetTypes Not setting a type filter means all listings of any type are returned.
Types ¶
type Data ¶
type Data struct {
// Meta describes the details of the data
Meta *Metadata
// Tradeables is the map of all accessible data items
Tradeables map[Symbol]*Info
}
Data is the returned object from a call to GetData
type Info ¶
type Info struct {
Symbol Symbol
Name string
Exchange ExchangeName
Type AssetType
IPO time.Time
Delisted time.Time
}
Info is the set of information available for each symbol
type Metadata ¶
type Metadata struct {
// Options describes the options used
Options *Options
}
Metadata describes how the request was made
type Options ¶
type Options struct {
// TypeFilter limits to only the specified AssetTypes. Default is all AssetTypes
TypeFilter []AssetType
// ExchangeName limits to only the specified Exchanges. Default is all Exchanges
ExchangeFilter []ExchangeName
}
Options can change the returned Data from GetData
Click to show internal directories.
Click to hide internal directories.