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 { ID int `json:"-"` CreatedAt time.Time `json:"-"` Symbol string `json:"symbol" gorm:"type:character varying;not null;index"` Exchange string `json:"exchange" gorm:"type:character varying"` Name string `json:"name" gorm:"type:character varying"` Date time.Time `json:"-" gorm:"type:date"` Enabled bool `json:"isEnabled"` Type string `json:"type" gorm:"type:character varying"` Region string `json:"region" gorm:"type:character(2)"` Currency string `json:"currency" gorm:"type:character(3)"` IEXID string `` // nolint:lll /* 140-byte string literal not displayed */ FIGI string `json:"figi" gorm:"type:character(12);uniqueIndex:,where:figi IS NOT NULL"` CIK string `json:"cik" gorm:"type:character(10);uniqueIndex:,where:cik IS NOT NULL"` }
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().