jonwho / go-iex

IEX Cloud API client in Go
MIT License
6 stars 3 forks source link

Chart structure doesn't take into account extra fields when the range is less than a day #1

Closed BryanSLam closed 5 years ago

BryanSLam commented 5 years ago

From https://iextrading.com/developer/docs/#chart

// .../1d

[ { "date": "20171215" "minute": "09:30", "label": "09:30 AM", "high": 143.98, "low": 143.775, "average": 143.889, "volume": 3070, "notional": 441740.275, "numberOfTrades": 20, "marktHigh": 143.98, "marketLow": 143.775, "marketAverage": 143.889, "marketVolume": 3070, "marketNotional": 441740.275, "marketNumberOfTrades": 20, "open": 143.98, "close": 143.775, "marktOpen": 143.98, "marketClose": 143.775, "changeOverTime": -0.0039, "marketChangeOverTime": -0.004 } // , { ... } ]

// .../3m

[ { "date": "2017-04-03", "open": 143.1192, "high": 143.5275, "low": 142.4619, "close": 143.1092, "volume": 19985714, "unadjustedClose": 143.7, "unadjustedVolume": 19985714, "change": 0.039835, "changePercent": 0.028, "vwap": 143.0507, "label": "Apr 03, 17", "changeOverTime": -0.0039 } // , { ... } ]