This project provides simple webhook service which can be used to send tradingview alerts to telegram along with current chart snapshot
- TOKEN - Telegram Access Token
- CHANNEL - Telegram Channel Id
- username - Your tradingview username
- password - Your tradingview password
- sessionid - Your tradingview session id. If you don't want to use userrname and password, this is an alternative. sessionid can be obtained from browser cookies
https://Tradingview-Telegram-Bot.[YOUR_REPL_ACCOUNT].repl.co
Once up and running, you will be able to use following calls
- jsonRequest - can be set as true/false. Default is false. If set to true, the payload should be a standard json. Output to telegram will be sent in tabular format. If not set or if set to false, output to telegram will be clear text.
- tblfmt - table format to be used when jsonRequest is set to true. Default is plain. The values are exactly same as the ones required for tabulate package.
- chart - Send the chart id if required to send chart snapshot along with alert message. For this to work - chart needs to be either a shared chart or environment variables for tvusername and tvpassword should be set to the user who has access to given chart.
- ticker - Chart ticker. You no longer need to use different chart for different tickers. You can have a common chart and pass ticker to it so that chart will automatically switch to given ticker before taking screenshot
- delivery - Taking chart snapshot takes time. This also delays the delivery of alert message. To avoid this, we can use this option - delivery=asap so that alert message will be sent as soon as possible and chart is sent later. If this parameter is not set, then both the messages will be delivered together.
If you found this project interesting or useful, create accounts with my referral links: