alpacahq/Momentum-Trading-Example

Error: This event loop is already running

Closed this issue · 1 comments

I only edited the file with my Alpaca paper credentials.

When I run the program in jupyter notebooks I get the error Fatal Python error: Cannot recover from stack overflow.
The error orrcurs in the code segment while error handling and executing the command run_ws(conn,channels)
# Handle failed websocket connections by reconnecting def run_ws(conn, channels): try: conn.run(channels) except Exception as e: print(e) conn.close run_ws(conn, channels)
Does anyone know how to fix this loop bug?

This was an issue running the program within Jupyter Notebooks. Issue did not persist in console mode.