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-staging/282ed6a0b66079b791c1fb54aef0d268fb193ad7-592x416.png

Schedule a demo

Talk with our market data experts

Calendly
https://cdn.sanity.io/images/dhlwe0i3/content-staging/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.