Question about Http Status Codes 503 and 429

  1. Do Alpaca API v2 respond with either 503 or 429 sometimes?
  2. If so, then do those responses use Retry-After http header (as described at
  3. If so, what format does Retry-After header value use? or

The looks like Wed, 21 Oct 2015 07:28:00 GMT where as the is non-negative decimal integer

  1. Yes, but unfortunately it’s not documented anywhere except the SDK’s codebase.
  2. In most cases but sometimes not and in this case it’s better to use randomly generated delay before the next HTTP call attempts.
  3. The .NET SDK uses built-in .NET properties for handling the Retry-After HTTP header. See more details in the RateThrottler.CheckHttpResponse method implementation.