Error trying to connect Trading View’s alerts webhook to Interactive Brokers via Python code, localhost and Ngrok
I’m trying to find some easy setup to send trades from TradingView’s alerts into Interactive Brokers. I have set up a local host, I have ngrok running, and I have created the code below by watching some YTB video. I have also added the URL for webhook in the alerts in Trading View. The problem is that every time there is an alert, I get a 500 internal server error message in ngrok. And the trades do not execute.