Documentation ¶
Overview ¶
Package iex provides a client to get stock data using the IEX API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChartPoint ¶
type ChartPoint struct { Date time.Time Open float32 High float32 Low float32 Close float32 Volume int Change float32 ChangePercent float32 }
ChartPoint is a single point on the chart.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is used to make IEX API requests.
type GetStocksRequest ¶
GetStocksRequest is the request for GetStocks.
type Quote ¶
type Quote struct { CompanyName string LatestPrice float32 LatestSource Source LatestTime time.Time LatestUpdate time.Time LatestVolume int Open float32 High float32 Low float32 Close float32 Change float32 ChangePercent float32 }
Quote is a stock quote.
type Source ¶
type Source int
Source is the quote data source.
type Stock ¶
type Stock struct { Symbol string Quote *Quote Chart []*ChartPoint }
Stock is the response from calling GetStocks.
Click to show internal directories.
Click to hide internal directories.