polygon-io / issues

Quickly track and report problems with polygon.io
29 stars 0 forks source link

Volume field formatted in scientific notation for the Previous Close endpoint #147

Closed SebRollen closed 1 year ago

SebRollen commented 3 years ago

URL https://api.polygon.io/v2/aggs/ticker/MSFT/prev?unadjusted=true&apiKey=REDACTED

Result The v field gets returned in scientific notation: { ...,"v":2.4970168e+07,...}. This is an issue as there's no notion of an integer in the json schema, and many json parsers parse scientific notation as a floating point. For example, I use serde-json for parsing the return in rust, but the deserialization errors as the scientific notation is not parsed as an integer.

Expected Result I would expect the volume value to be fully written out using standard notation, as it is across many of the other endpoints

Screenshots N/A

Desktop (please complete the following information): Not applicable, this issue is related to the api.

Additional context N/A