Trading View Automation
  • Introduction
  • Setting Up Local Server
    • Setting Up HashiCorp Vault + EthSigner
    • Setting Up HashiCorp Vault (dev) + EthSigner
  • Setting Up Google Cloud Run
    • Setting Up Google KMS
  • Setting Up Heroku
  • Setting Up Env Vars
  • Setting Up Trading View Alert
  • Testing With sendAlert.js
  • Setting Up Google Sheets
  • Setting Up Telegram Notifications
  • Using Tmux
  • Using Git
Powered by GitBook
On this page

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.

PreviousSetting Up Trading View AlertNextSetting Up Google Sheets

Last updated 7 months ago