Market Data API timeouts

Starting at the beginning of this week (2/6/2023) my service has been encountering a huge amount of timeouts from the Market Data API. I have ruled out rate limiting due to two factors:

  1. It’s not a rate limiting error and the service’s requests do not exceed 200/minute.
    2.The amount of requests the service is making has not gone up and this service has been running for over a year without once encountering this timeout issue.

The timeouts are happening so frequently it has absolutely become an issue and handicapped the processes.

Has anyone else noticed an uptick in timeouts from the Market Data API?

1 Like

Which specific endpoints are you hitting? When you say “timeouts” are you getting 500 errors?

1 Like

HI Dan, thanks for the response.

I was getting the errors for:[SYMBOL]/quotes[SYMBOL]//bars

HTTPSConnectionPool(host=‘’, port=443): Max retries exceeded (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0xffff4b77b0d0>: Failed to establish a new connection: [Errno 110] Connection timed out’))

1 Like

I’m having the same issue that started at the same time. I’m attempting to hit the paper-api and I end up at
I receive HTTP 200 None when I turn on debugging. However nothing is returned. But I see the same error as @ provonchee if I don’t have debugging enabled. The code that calls alpaca hasn’t changed. I tried resetting my paper api key to see if that did the trick. Also I’m requesting SIP data as a paid user.

1 Like

@Justin_Coffi What is the exact method or endpoint you are calling? Also what is the response you get? You say you get 200 but that wouldn’t happen if you also get the same error as above Connection timed out. I can check the logs and maybe see what’s happening.

1 Like

I’m getting the same error starting last week as well:

ConnectTimeout: HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: /v2/account (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fe10756d690>, 'Connection to timed out. (connect timeout=None)'))

It’s inconsistent. Half the time the request works, and half the time it times out like this.

1 Like

This is still happening for me, and based on the responses, appears to not be an isolated incident.

@Dan_Whitnable_Alpaca any luck looking into this?

1 Like

@provonchee There hasn’t been any changes on the Alpaca side which should cause this. A HTTPSConnectionPool(host='', port=443) error is a client side error typically caused by the network or network setup issues. I did a google search and came back with a number of individuals seeing similar errors (on different platforms). There didn’t seem to be a common fix but all of them were client side. Maybe check this out. It’s not the same problem but may give some ideas to check.

Thanks @Dan_Whitnable_Alpaca
A recent Docker update could possibly play a part in this. Running locally, I can easily replicate the issue. I’ll try to roll back the update and see if this clears it up. Thanks again for looking into it.

@provonchee I’m always careful when saying ‘it’s not Alpaca’ but one clue that it’s not is that this seems to be happening on both the and the endpoints. Those endpoints are on two separate sets of infrastructure and rather independant and do not share a common update cadence.

Hello. I’m having similar issues today, with the error below. I would appreciate any input you all might have to offer on how to fix this problem.

Traceback (most recent call last):
conn = connection.create_connection(
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘’, port=443): Max retries exceeded with url: /v2/stocks/APA/snapshot (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x0000029DFFC191E0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’))

Yeah, unfortunately I am still experiencing the issue.
I rolled back my version of Docker, hoping it was a newly introduced bug issue, but no luck. Tried multiple releases of Docker and all of them experience the same timeout issue.

I’ve also noticed that the timeouts are intermittent. There are times they rarely happen and other times they happen every minute. Makes me think it is in fact something on Alpaca’s end of things, especially since I’ve reverted my local env to the state it was when these timeouts did not exist at all (circa January 2023)…but I’m still dealing with them. Very frustrating. My test cycles are four times as long as they should be.

Thanks for your input, @provonchee. The issue is intermittent for me too.

It’s odd that I am able to get snapshots containing bid and ask prices without any problem. The error happens only when my code attempts to get fill activities (eg: fills = api.get_activities(‘FILL’, date=date_today.isoformat()) )

@Dan_Whitnable_Alpaca Can you offer any specific suggestions for how I can resolve this error?

1 Like