I'm trying to use tpqoa to build my own automated bot to trade on Oanda. But the stream_data method keeps freezing after just getting one tick. Attached is the screenshot of my Jupyter Notebook, which has been frozen for almost an hour. Why is this happening? And how can I fix it?
I called stream_data("EUR_USD", stop=20).
I expected to see 20 ticks within a couple minutes.
But I actually saw my Jupyter Notebook stuck for over an hour just after it got the first tick.