'timeframe' in Bars API is an 'unexpected parameter'. Bug?

Hi! Possibly dumb question. I’m testing out the Alpaca data API in Postman, and hitting a weird issue - in documentation, the ‘timeframe’ query param is marked as required, but the API itself returns with ‘unexpected parameter(s): timeframe’. None of the values listed in documentation change this response. If I remove the timeframe param, it returns data.

Am I missing something? Or is the documentation just wrong?

Docs in question: Historical data - Documentation | Alpaca

Screenshot of Postman config:

Any help figuring this out would be appreciated.

-Sam

Hi Sam - thank you for reaching out. Can you please paste the exact query here?

Thanks,
Abel

Hi Abel!

https://data.alpaca.markets/v2/stocks/AMC/trades?start=2021-02-01T16:01:00Z&end=2021-04-01T16:01:00Z&limit=10000&timeframe=1Day

According to the docs, this should work. Removing the ‘timeframe’ parameter shouldn’t work, because in theory it’s required. However, this isn’t the case, and a query without ‘timeframe’ returns candle data.

Sorry for the long wait, didn’t get a reply notification