Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OptionSymbol ¶
OptionSymbol represents one datum of that returned by the ref-data/options/symbols endpoint.
func GoldenOptionSymbol ¶
func GoldenOptionSymbol() (symbols OptionSymbol)
GoldenOptionSymbol returns golden data for the OptionSymbol type
type Symbol ¶
type Symbol struct { Symbol string `json:"symbol"` Name string `json:"name"` Exchange string `json:"exchange"` IEXID string `json:"iexId"` Currency string `json:"currency"` Date time.Time `json:"-"` Type string `json:"type"` Enabled bool `json:"isEnabled"` Region string `json:"region"` FIGI string `json:"figi"` CIK string `json:"cik"` }
Symbol represents one datum of that returned by the ref-data/symbols endpoint.
func GoldenSymbol ¶
func GoldenSymbol() (symbols []Symbol)
GoldenSymbol returns golden data for the Symbol type
func (*Symbol) MarshalJSON ¶
MarshalJSON satisfies the json.Unmarshaler interface. This function correctly translates the date field, which is specified as "YYYY-MM-DD", into a time.Time by using time.Parse().
func (*Symbol) UnmarshalJSON ¶
UnmarshalJSON satisfies the json.Unmarshaler interface. This function correctly translates the date field, which is specified as "YYYY-MM-DD", into a time.Time by using time.Parse().