Hi,
I’ve noticed that the X-RateLimit-* headers are missing when you get a 429 response from the API. They are there for 200 OK responses, but I think it’s more useful to have them on the 429 responses. The documentation also suggests they should be there.
The specific endpoint I was testing when I noticed this was: https://data.alpaca.markets/v2/stocks/{symbol}/trades
These were the response headers on the 429 response:
{
"date": "Mon, 27 Jul 2026 15:43:52 GMT",
"content-type": "application/json",
"content-length": "34",
"connection": "keep-alive",
"access-control-allow-headers": "Apca-Api-Key-Id, Apca-Api-Secret-Key, Authorization, Content-Type",
"access-control-allow-methods": "GET, OPTIONS, PUT, DELETE, POST, PATCH",
"access-control-allow-origin": "*",
"x-request-id": "82d53684f9f1fccd6ff2e3e237d5af10"
}