go-tdameritrade
go-tdameritrade copied to clipboard
PriceHistory struct types are different from what is presented by tdameritrade
PriceHistory delivers volume and datetime as int64, rather than float64 and int respectively.
Volume shouldn't be a float because fractional shares aren't a thing on the exchange. Datetime should be int64 because that is what is used for time.Unix.
Sadly, I'm only seeing this now. Take a look at this pull request:
https://github.com/JonCooperWorks/go-tdameritrade/pull/6