Knowledge Base/Why does volume return as a FLOAT value from the Aggregates Endpoint?

Why does volume return as a FLOAT value from the Aggregates Endpoint?

These decimal values are entirely normal when requesting adjusted data for stocks that have split.

When requesting historical Aggregate OHLCV (Open, High, Low, Close, Volume) data, you might occasionally encounter a volume value represented as a decimal instead of a whole number.

This occurrence is attributed to the 'adjusted' parameter within the Aggregates Endpoint. When the 'adjusted' parameter is set to 'true,' the OHLCV values are modified to reflect stock splits. This adjustment ensures that the data provides a more accurate historical representation, accounting for changes that have occurred over time. Therefore, seeing decimal values in volume data under these circumstances is both normal and expected


Was this article helpful?

https://cdn.sanity.io/images/dhlwe0i3/content/5c0778a9628b11955327f4c7b96b2025589ee7df-32x32.svgJoin us on Slack

Enter your email for an invite to our slack community!

https://cdn.sanity.io/images/dhlwe0i3/content/70ffe6ec85723f74679004a0a6bbdf66ce1fb58f-592x256.png

Modernizing Wall St.

Reimagining financial market data for the 21st century.

About Polygon

Recommended

Can’t find the answer you’re looking for? Contact our team.