I’m trying to get the Alpaca Momentum Trading Example script to work, and I’ve ironed out most of the issues. But it still randomly (usually after 20-30 minutes) throws an asyncio.exceptions.CancelledError and shuts down.
Since the script needs to run the whole time the market is open, that’s obviously a big problem
I’m pretty familiar with Python but a total noob at websockets and streaming. Anyone know what’s happening, and how to fix it?