api

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL