API v2 version issue - simple data query

Hi there!

I am struggling o simply upload the data using Alpaca PAI. I used to load it utilizing the following API REST

       " data = api.polygon.historic_agg(symbol, 1, 'minute', limit=None).df "

But now with API update, I am getting 404 Error message,
“404 Client Error: Not Found for url: …”

I do not see any straight forward way how to do it now, no matter what I tried with v2 version does no work.

Any help is highly appreciated!

1 Like

Thanks for the question. It’s been confusing and we will resolve it in SDK soon, but Polygon’s v1 historic agg has been deprecated. Please use v2 (historic_agg_v2)