polygon-io / client-go

The official Go client library for the Polygon REST and WebSocket API.
MIT License
127 stars 36 forks source link

Update LastTrade size type to resolve unmarshal error #305

Closed AnteWall closed 1 year ago

AnteWall commented 1 year ago

Fixes error json: cannot unmarshal number 7.768779e+06 into Go struct field LastTrade.results.s of type uint32

Happens when server is sending big numers with scientific notation. Simular to issue https://github.com/polygon-io/client-go/issues/192

justinpolygon commented 1 year ago

LGTM - This is for LastTrade and Trade already was float64.