HI, All…
I’ve been using the Data API for open/close/high/low data nightly for quite awhile. All of a sudden it’s not working. My app now gets a “400 Bad Request”. An example url that used to work, but doesn’t anymore is…
https://data.alpaca.markets/v2/stocks/bars?start=2023-10-10T00:00:00Z&end=2023-10-10T23:59:59Z&timeframe=24Hour&symbols=GVP
For what it’s worth, I’m using the free tier. Any thoughts? Thanks!
Curt
@CurtisDehaven The timeframe, if specifying Hour
or Hr
, should be an integer between 1-23. This is indicated in the docs here. If one wants a 24 hour bar it should be specified as 1Day
.
That should resolve the 400 error.
1 Like
Hi, Dan…
Wow… That did it. Odd that it’s been working and then now, it doesn’t.
In any case, I’m good to go, now. I really appreciate your help. Thank you!
Curt
1 Like