Testing With sendAlert.js
In the Github repo, there is a "sendAlert.js" file. When you run this file (by runningnode sendAlert.js
), a "data" object mimicking a Trading View alert will be sent to your server URL. For testing, using this is much faster than sending real Trading View alerts.
In sendAlert.js, a list of "data" objects are provided at the top of the file. Each object is tailored to an exchange. Edit the object as you see fit and comment out the ones that you don't need.
A series of example server URLs are also given, depending on where server.js is running. If you run server.js on your local server without Ngrok, then your URL is http://localhost:8080. If using this URL, you must run node sendAlert.js
on the same machine.
Last updated