Documentation ¶
Index ¶
- type QuoteResponse
- type QuoteStructure
- func (stock *QuoteStructure) MarketChange() string
- func (stock *QuoteStructure) MarketChangePercent() string
- func (stock *QuoteStructure) MarketVolume() int
- func (stock *QuoteStructure) Name() string
- func (stock *QuoteStructure) Price() float64
- func (stock *QuoteStructure) PriceState() bool
- func (stock *QuoteStructure) State() string
- func (stock *QuoteStructure) StockCurrency() string
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QuoteResponse ¶
type QuoteResponse struct {
QuoteResponse Result `json:"quoteResponse"`
}
type QuoteStructure ¶
type QuoteStructure struct { Symbol string ShortName string RegularMarketPrice float64 // WE EXPECT HIGH NUMBERS, RIGHT RegularMarketChange float64 RegularMarketChangePercent float64 RegularMarketVolume int PreMarketPrice float64 PreMarketChange float64 PreMarketChangePercent float64 PostMarketPrice float64 PostMarketChange float64 PostMarketChangePercent float64 MarketState string Currency string Exchange string }
func Quote ¶
func Quote(symbol string) QuoteStructure
func (*QuoteStructure) MarketChange ¶
func (stock *QuoteStructure) MarketChange() string
func (*QuoteStructure) MarketChangePercent ¶
func (stock *QuoteStructure) MarketChangePercent() string
func (*QuoteStructure) MarketVolume ¶
func (stock *QuoteStructure) MarketVolume() int
func (*QuoteStructure) Name ¶
func (stock *QuoteStructure) Name() string
func (*QuoteStructure) Price ¶
func (stock *QuoteStructure) Price() float64
func (*QuoteStructure) PriceState ¶
func (stock *QuoteStructure) PriceState() bool
func (*QuoteStructure) State ¶
func (stock *QuoteStructure) State() string
func (*QuoteStructure) StockCurrency ¶
func (stock *QuoteStructure) StockCurrency() string
type Result ¶
type Result struct {
Result []QuoteStructure `json:"result"`
}
Click to show internal directories.
Click to hide internal directories.