Getting Server Error for aggs with "hour" or "minute"

A paper trading API call for aggs with “day” works fine:

curl -X GET -H "APCA-API-KEY-ID: ****" -H "APCA-API-SECRET-KEY: ****" \ 
https://data.alpaca.markets/v1/aggs/ticker/AAPL/range/1/day/2020-06-22/2020-06-24

and results in:

{"ticker":"AAPL","status":"OK","adjusted":true,"queryCount":3,"resultsCount":3,"results":[{"v":30845663,"o":351.34,"c":358.93,"h":359.46,"l":351.15,"t":1592798400000,"n":0},{"v":50255788,"o":364,"c":366.37,"h":372.37,"l":362.2701,"t":1592884800000,"n":0},{"v":44983139,"o":365,"c":360.06,"h":368.79,"l":358.52,"t":1592971200000,"n":0}]}

The same API call, but with “hour”

curl -X GET -H "APCA-API-KEY-ID: ****" -H "APCA-API-SECRET-KEY: ****" \
https://data.alpaca.markets/v1/aggs/ticker/AAPL/range/1/hour/2020-06-22/2020-06-24

doesn’t work and results in an internal server error with “given ticker not found”:

{"code":50010000,"message":"internal server error occurred"}{"code":40010001,"message":"the given ticker not found: AAPL"}

“month”, “week”, “day” work.
“hour”, “minute” don’t.

Why is that? Am I doing anything wrong?

I don’t your’e doing anything wrong. I’m getting the same error with code that was working this morning.

1 Like

Looks like the whole https://data.alpaca.markets/v1/bars/1Min endpoint is down, I keep getting 500 on 1minute api calls.

1 Like

Day works but minute doesn’t for me.

1 Like