From 0860e76440600d0b264f98e9aa5d0027918b2c3d Mon Sep 17 00:00:00 2001 From: jaketothepast Date: Mon, 20 Jan 2020 14:25:21 -0500 Subject: [PATCH] Finishing quote struct with info I care about. --- types.go | 54 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 20 deletions(-) diff --git a/types.go b/types.go index edddd4e..5d283dd 100644 --- a/types.go +++ b/types.go @@ -157,24 +157,38 @@ type MarketQuotesResponse struct { TODO: Finish this page https://www.ally.com/api/invest/documentation/market-ext-quotes-get-post/ */ type Quote struct { - XMLName xml.Name `xml:"quote"` - AverageDailyPrice100 float64 `xml:"adp_100"` - AverageDailyPrice200 float64 `xml:"adp_200"` - AverageDailyPrice50 float64 `xml:"adp_50"` - AverageDailyVolume21 float64 `xml:"adv_21"` - AverageDailyVolume30 float64 `xml:"adv_30"` - AverageDailyVolume90 float64 `xml:"adv_90"` - AskPrice float64 `xml:"ask"` - AskTime time.Time `xml:"ask_time"` - AskSize int `xml:"asksz"` - Basis float64 `xml:"basis"` - Beta float64 `xml:"beta"` - Bid float64 `xml:"bid"` - BidTime time.Time `xml:"bid_time"` - BidSize int `xml:"bidsz"` - BidTick int `xml:"bidtick"` - Change float64 `xml:"chg"` - ChangeSign string `xml:"chg_sign"` - ChangeText string `xml:"chg_t"` - Close float64 `xml:"cl"` + XMLName xml.Name `xml:"quote"` + AverageDailyPrice100 float64 `xml:"adp_100"` + AverageDailyPrice200 float64 `xml:"adp_200"` + AverageDailyPrice50 float64 `xml:"adp_50"` + AverageDailyVolume21 float64 `xml:"adv_21"` + AverageDailyVolume30 float64 `xml:"adv_30"` + AverageDailyVolume90 float64 `xml:"adv_90"` + AskPrice float64 `xml:"ask"` + AskTime time.Time `xml:"ask_time"` + AskSize int `xml:"asksz"` + Basis float64 `xml:"basis"` + Beta float64 `xml:"beta"` + Bid float64 `xml:"bid"` + BidTime time.Time `xml:"bid_time"` + BidSize int `xml:"bidsz"` + BidTick int `xml:"bidtick"` + Change float64 `xml:"chg"` + ChangeSign string `xml:"chg_sign"` + ChangeText string `xml:"chg_t"` + Close float64 `xml:"cl"` + Cusip float64 `xml:"cusip"` + Date string `xml:"date"` + Datetime string `xml:"datetime"` + Dividend float64 `xml:"div"` + DividendFrequency string `xml:"divfreq"` + DollarValue float64 `xml:"dollar_value"` + EarningsPerShare float64 `xml:"eps"` + CompanyName string `xml:"name"` + PercentChangeSinceClose float64 `xml:"pchg"` + PriorDayClose float64 `xml:"pcls"` + PriceEarningRatio float64 `xml:"pe"` + PriorDayHigh float64 `xml:"phi"` + PriorDayLow float64 `xml:"plo"` + PriorDayOpen float64 `xml:"popn"` }