Git Product home page Git Product logo

tradingview-telegram-bot's Introduction

Trendoscope

Tradingview-Telegram-Bot

CodeFactor
This project provides simple webhook service which can be used to send tradingview alerts to telegram along with current chart snapshot

Installation

Follow below steps to install and run the API service

Clone repo in replit

Goto Replit Page: https://replit.com/@trendoscope/Tradingview-Telegram-Bot

Update Replit environment variables

Mandatory Environment Variables

  • TOKEN - Telegram Access Token
  • CHANNEL - Telegram Channel Id

Optional Environment Variables

These are only required if we are using logged in sessions for chart capture.
  • 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

Run the repl

Just run the repl and your services are up and running. You will get the hostname on top right part of the project dashboard. Hostname will be of the format,
https://Tradingview-Telegram-Bot.[YOUR_REPL_ACCOUNT].repl.co

Usage

Once up and running, you will be able to use following calls

POST /webhook/

Query Parameters

  • 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.

Contributions & Thanks

If you found this project interesting or useful, create accounts with my referral links:

Profiles

Links

https://linktr.ee/tscope

tradingview-telegram-bot's People

Contributors

sudhindrags avatar trendoscope-algorithms avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.