market-api-calls #2

Manually merged
jacob.windle merged 10 commits from market-api-calls into master 2020-01-22 00:15:38 +00:00
Showing only changes of commit 0860e76440 - Show all commits

View File

@ -157,24 +157,38 @@ type MarketQuotesResponse struct {
TODO: Finish this page https://www.ally.com/api/invest/documentation/market-ext-quotes-get-post/ TODO: Finish this page https://www.ally.com/api/invest/documentation/market-ext-quotes-get-post/
*/ */
type Quote struct { type Quote struct {
XMLName xml.Name `xml:"quote"` XMLName xml.Name `xml:"quote"`
AverageDailyPrice100 float64 `xml:"adp_100"` AverageDailyPrice100 float64 `xml:"adp_100"`
AverageDailyPrice200 float64 `xml:"adp_200"` AverageDailyPrice200 float64 `xml:"adp_200"`
AverageDailyPrice50 float64 `xml:"adp_50"` AverageDailyPrice50 float64 `xml:"adp_50"`
AverageDailyVolume21 float64 `xml:"adv_21"` AverageDailyVolume21 float64 `xml:"adv_21"`
AverageDailyVolume30 float64 `xml:"adv_30"` AverageDailyVolume30 float64 `xml:"adv_30"`
AverageDailyVolume90 float64 `xml:"adv_90"` AverageDailyVolume90 float64 `xml:"adv_90"`
AskPrice float64 `xml:"ask"` AskPrice float64 `xml:"ask"`
AskTime time.Time `xml:"ask_time"` AskTime time.Time `xml:"ask_time"`
AskSize int `xml:"asksz"` AskSize int `xml:"asksz"`
Basis float64 `xml:"basis"` Basis float64 `xml:"basis"`
Beta float64 `xml:"beta"` Beta float64 `xml:"beta"`
Bid float64 `xml:"bid"` Bid float64 `xml:"bid"`
BidTime time.Time `xml:"bid_time"` BidTime time.Time `xml:"bid_time"`
BidSize int `xml:"bidsz"` BidSize int `xml:"bidsz"`
BidTick int `xml:"bidtick"` BidTick int `xml:"bidtick"`
Change float64 `xml:"chg"` Change float64 `xml:"chg"`
ChangeSign string `xml:"chg_sign"` ChangeSign string `xml:"chg_sign"`
ChangeText string `xml:"chg_t"` ChangeText string `xml:"chg_t"`
Close float64 `xml:"cl"` 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"`
} }