I just upgraded to alpaca-py and am trying to get historical crypto data using my broker api keys.
I can get one or two tickers but after that it just throws the max retry exception:
HTTPSConnectionPool(host=‘data.alpaca.markets’, port=443): Max retries exceeded with url: /v1beta2/crypto/bars?start=2019-11-12&end=2022-07-31&timeframe=1Day&symbols=BTC%2FUSD (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x4097e470a0>: Failed to establish a new connection: [Errno 110] Connection timed out’))
I don’t think im going over the 200 request per minute limit. (I proved this by waiting 2 minutes and making a single request).
I must be doing something wrong because if there was a problem with alpaca-py, im sure others would have complained by now. How can I figure out why Im getting an NewConnectionError?
Thanks,
Brett