Has anyone else had this issue with the polygon based REST.historic_agg_v2 function?

Here is a quote from Alpaca github about the historic_agg_v2 polygon function:

“Specify the _from parameter if you specify the to parameter since when to is specified _from is assumed to be the beginning of history. Otherwise, when you use only the limit or no parameters, the result is returned from the latest point.”

But, if i leave out the “_from” or “to” parameter and just request the “limit” parameter, i get an error that says “_from” and “to” are required parameters.

Those two _from and to are required parameters in Polygon API, so you cannot omit them.