go-tdameritrade icon indicating copy to clipboard operation
go-tdameritrade copied to clipboard

PriceHistory struct types are different from what is presented by tdameritrade

Open dnapier opened this issue 2 years ago • 1 comments

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.

dnapier avatar Jul 23 '22 03:07 dnapier

Sadly, I'm only seeing this now. Take a look at this pull request:

https://github.com/JonCooperWorks/go-tdameritrade/pull/6

jadefox10200 avatar Jan 10 '24 01:01 jadefox10200