Closed jhert0 closed 1 year ago
All of these number formats are actually valid according to the JSON spec.
That said, can you elaborate on what problem the different number formats is causing you? What language or mechanism are you using to interface with the polygon.io APIs?
If we understand your challenge better we might be able to address this in a client library.
Yeah, I know its valid. I just wasn't expecting floats in the volume.
I guess it's not really a problem, its just that it's inconsistent.
I'm using go and I originally had uint64 in my struct but had to change it to float64 since sometimes it returns all integers and sometimes floats are mixed in.
URL /v2/aggs/ticker/SNDL/range/1/multiplier/2022-02-01/2022-02-01
Result
Volume on this result only includes a decimal, all the other ones are integers.
I checked AAPL on the same day and there are also some in there too.