Giter VIP home page Giter VIP logo

tradingview-webhook-bot's Introduction

Python version GitHub license GitHub issues GitHub pull requests
GitHub stars GitHub forks GitHub watchers

AboutFeaturesInstallationImagesHelp

About

The TradingView Webhook Bot ⚙️ listens to TradingView alerts via webhooks using flask. All alerts can be instantly sent to Telegram, Discord, Twitter and/or Email.

📊 If you are looking for an exchange to trade on, I can recommend Bybit. Sign up now and receive up to $30,000 in Deposit Rewards!

Features

  • Telegram Support using the Python Telegram libary.
  • Discord Support using webhooks.
  • Slack Support using webhooks.
  • Twitter Support using the tweepy libary.
  • Email Support using smtplib.
  • Alert channels can be enabled or disabled in config.py.
  • Dynamically send alerts to different Telegram and/or Discord channels.
  • TradingView {{close}}, {{exchange}} etc. variables support. Read more here.

Installation

⚠️ Best to run the bot on a VPS. I can recommend Hetzner's CX11 VPS for 3.79€/month. Sign up now and receive €20 free credits.

  1. Clone this repository git clone https://github.com/fabston/TradingView-Webhook-Bot.git
  2. Create your virtual environment python3 -m venv TradingView-Webhook-Bot
  3. Activate it source TradingView-Webhook-Bot/bin/activate && cd TradingView-Webhook-Bot
  4. Install all requirements pip install -r requirements.txt
  5. Edit and update config.py
  6. Setup TradingView alerts. An example alert message would be:
    {
     "key": "9T2q394M92",
     "telegram": "-1001277977502",
     "discord": "789842341870960670/BFeBBrCt-w2Z9RJ2wlH6TWUjM5bJuC29aJaJ5OQv9sE6zCKY_AlOxxFwRURkgEl852s3",
     "slack": "T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX",
     "msg": "Long *#{{ticker}}* at `{{close}}`"
    }
    • key is mandatory! It has to match with sec_key in config.py. It's an extra security measurement to ensure nobody else is executing your alerts
    • telegram, discord, slack is optional. If it is not set it will fall back to the config.py settings
    • msg can be anything. Markdown for Telegram and Discord is supported as well
      • TradingViews variables like {{close}}, {{exchange}} etc. work too. More can be found here
    • Your webhook url would be http://<YOUR-IP>/webhook
  7. If you use a firewall be sure to open the corresponding port
  8. Run the bot with python main.py
  9. PM2 can help you in running the app in the background / on system boot.

Forward Port 80 to 8080 using NGINX

It is recommended to run flask on a different port like 8080. It is then necessary to forward port 80 to 8080.

  1. Install the necessary packages: sudo apt-get install nginx
  2. Edit the NGINX configuration file: sudo nano /etc/nginx/sites-enabled/tv_webhook
  3. Add the following content:
    server {
       listen 80;
    
       server_name <YOUR-IP>;
    
       location / {
           proxy_pass http://127.0.0.1:8080;  # Forward traffic to port 8080
           proxy_set_header Host $host;
           proxy_set_header X-Real-IP $remote_addr;
           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;  # Pass client's IP address
           proxy_set_header X-Forwarded-Proto $scheme;
       }
    }
  4. Restart NGINX sudo service nginx restart

Docker

  1. Clone this repository git clone https://github.com/fabston/TradingView-Webhook-Bot.git
  2. Edit and update config.py
  3. docker-compose build
  4. docker-compose up

Images

Webhook Bot

How can I help?

All kinds of contributions are welcome 🙌! The most basic way to show your support is to ⭐️ star the project, or raise 🐞 issues.


Buy Me A Coffee

tradingview-webhook-bot's People

Contributors

dependabot[bot] avatar fabston avatar jagzmz avatar kroil avatar sakuyamaij avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tradingview-webhook-bot's Issues

analytics.ff.avast.com:80

Hello again, my apologize if this a simple issue as i'm a little bit blind about coding and terminal

my terminal said "Serving on http://analytics.ff.avast.com:80"

i run in localhost with static ip , could you help me determine where i did wrong?

Thanks in advance!

"405: Method Not Allowed"

Describe the bug

A clear and concise description of what the bug is.
Sending the webhook i receive a console error
2021-08-28 08:35:03 Alert Received & Sent!
ERROR:discord_webhook.webhook:[1/1] Webhook status code 405: {"message": "405: Method Not Allowed", "code": 0}

Steps to reproduce

Steps to reproduce the behavior.
Create a channel add a webhook

Expected behavior

A clear and concise description of what you expected to happen.
Message is shown in discord

Environment

  • OS: [e.g. Arch Linux]
  • Other details that you think may affect.

Additional context

Add any other context about the problem here.

"embeds": ["0"]

I got an error message on my server with my TV alert.

Here the error :
ERROR:discord_webhook.webhook:[1/1] Webhook status code 400: {"embeds": ["0"]}

Here the message:
{ "key": "mysecretkeythatisthesameassecond", "discord": "8351721444088.....6sO", "msg": "---------------------------------------- \n\n Attention Trade court et à prendre au moment de l alerte! \n\n Alerte: {{ticker}} - Achat - type 5Min \n\n {{time}} heure UTC \n\n Plateforme {{exchange}}. \n\n Achat {{ticker}} au prix de {{close}}. \n\n Plus votre prix d entrée est bas au moment de l alerte plus vos risques de profit en sortie seront bas. \n\n Pour plus de sécurité sur votre prise de trade: \n\n Vérifier que votre moyenne mobile 100 soit haut dessus de votre bougie de clôture en 5Min. \n\n Pour votre clôture: \n\n Compter entre 0.35% risque faible, 0.5% risque moyen et 0.75% risque plus élevé. \n\n ----------------------------------------" }

Here my config file:
send_discord_alerts = True discord_webhook = '8351721444088....6sO'

warning:waitress message

I am running the bot on a windows 10 VPS and have just found this:

WARNING:waitress.queue:Task queue depth is 1
WARNING:waitress.queue:Task queue depth is 2
WARNING:waitress.queue:Task queue depth is 3

I haven't noticed it before and there haven't been any alerts in the TG channel for a few days so I assume something is wrong.

Thanks

Add a delay between sending alerts

Summary

Add a delay between sending alerts

Basic example

If you could make this happen, make it an option in main config and also another parameter to control the delay for which the alert is sent in milliseconds after the previous alert was sent.

Motivation

I have many of my alerts (over 60) set at once per bar on tradingview on daily charts. That means every day at market open i get multiple alerts that I want to have, but some of them don't reach telegram because of these errors

Jun 25 15:30:08 web pipenv[659]: WARNING:waitress.queue:Task queue depth is 1
Jun 25 15:30:09 web pipenv[659]: WARNING:waitress.queue:Task queue depth is 2
Jun 25 15:30:11 web pipenv[659]: WARNING:waitress.queue:Task queue depth is 3
Jun 25 15:30:11 web pipenv[659]: [X] Telegram Error:
Jun 25 15:30:11 web pipenv[659]: > Timed out

So Im guessing both flask/waitress and telegram times-out because of spam
One solution I've found is to host another webhook or make another bot but thats tedious and makes it hard to manage my 300+ alerts plus friends that are using the same webhook

Thank you for reading this, and thank you again for this awesome tradingview webkook for telegram

Deploying on Heroku/Github - {"sender": ["This field is required"]}

Thank you soo much for all you have done for us!!!

I have successfully deployed this to my cloud platform using Heroku/Github as the host and updated the config file accordingly. I tried to trouble shoot this by means of googling but have not been able to figure out what is going wrong. I am receiving the error - Webhook status code 400: {"sender": ["This field is required"]} however I do not see a required field for this in the data

404 Error on simple message

Describe the bug

I receive a 404 Message on console at webhook receive

Steps to reproduce

Setup a basic TV alert

{
"key": ,
"msg": "PIPPO"
}

Console output is

ERROR:discord_webhook.webhook:[1/1] Webhook status code 404: {"message": "404: Not Found", "code": 0}

If the discord webhook is added to the message the message is forwarded correctly to discord, is the webhook is specifyed in config.py is ignored and the system returns the 404 error.

Expected behavior

The message is forwarded to discord

Environment

  • OS: Ubuntu 20.04 VPS
  • Fresh installation

Additional context

Add any other context about the problem here.

Run with other ports?

Hey, is it possible to listen on other port than 80?
I have an app that listen on same port (80)..

From what i know, 2 apps cannot listen to the same port, thank you!

My session closes after I close the SSH terminal. Please help

Hey TheDevFab

First of All. Big Thumps up for such an awesome script. When I found this I knew this is gold for learners like me.

I have been testing and tweaking with your script with my limited knowledge. I was able to set up the bot. But I connect to my terminal using Bitvise. I run my script but when I close my terminal the script stops running and no signals get generated. Please help me resolve this!

Regards,
Your script lover!

Alert via email

Hey, thank you for such great work!

Any possibilities you could add alternate alerts option like via email? (not webhook)
This could be very useful for someone (like-me) who want to run it through localhost, as some provider blocks port and need an extra effort to open it

Thank you!

> module 'config' has no attribute 'telegram'

First of all thanks for sharing your work. I have an issue when running this on my local machine (windows10). I don't plan on doing so long term as I am aware it's better on a VPS (plus I use a VPN and have to turn it off to run this) but am just trying to get it to work first of all.

The issue is when trying to forward to telegram, I get this error: > module 'config' has no attribute 'telegram'. I do get: Alert Received & Sent! though.

I am assuming it must be an issue with my setup since the bot seems to work for other people as I've not seen this raised before, but I'm not sure what I am doing wrong.

If any further detail is required please let me know.

Request: Chart snapshot

Hi, tradingview have snapshot feature (alt+s or click camera on the top right corner).
It would be very amazing if bot could autosnapshot chart after alert pops-op, and paste the image url on the message

reference:
https://www.tradingview.com/support/solutions/43000482537-how-do-i-take-a-snapshot-and-share-it-afterwards/
https://stackoverflow.com/questions/55063639/automatically-take-snapshots-of-tradingview-charts-and-save-in-google-docs

hopefully it's not that complex to work, and thanks once again for such amazing project!

Help getting plain text

Trading view will send json data if there is json data being used, but it will also send plain text if that is all that is in the message.

I got the bot working with json, but i really need to get it working with just plain text.

So in Tradingview my output would be as an example:

BINANCE
#USDT_BTC
LONG

Could you give me an example of what code I need to change in the main.py to get plain text data?

Thanks.

405 Method not allower

Describe the bug

I created a test channel for the tv alert on my discord sever, created the webhook and i was receiving the alerts properly.
Then i created a webhook on an existing channel and i have the error

ERROR:discord_webhook.webhook:[1/1] Webhook status code 405: {"message": "405: Method Not Allowed", "code": 0}

Steps to reproduce

Steps to reproduce the behavior.

Expected behavior

A clear and concise description of what you expected to happen.

Environment

  • ubuntu 20.04 VPS

Additional context

Last stage

Hi i am on the last step, i have runned "python main.py" but it gives errors.

(TradingView-Webhook-Bot) [root@vps TradingView-Webhook-Bot]# python main.py Traceback (most recent call last): File "main.py", line 36, in <module> serve(app, host='0.0.0.0', port=8080) File "/root/TradingView-Webhook-Bot/lib64/python3.6/site-packages/waitress/__init__.py", line 12, in serve server = _server(app, **kw) File "/root/TradingView-Webhook-Bot/lib64/python3.6/site-packages/waitress/server.py", line 88, in create_server sockinfo=sockinfo, File "/root/TradingView-Webhook-Bot/lib64/python3.6/site-packages/waitress/server.py", line 239, in __init__ self.bind_server_socket() File "/root/TradingView-Webhook-Bot/lib64/python3.6/site-packages/waitress/server.py", line 368, in bind_server_socket self.bind(sockaddr) File "/root/TradingView-Webhook-Bot/lib64/python3.6/site-packages/waitress/wasyncore.py", line 398, in bind return self.socket.bind(addr) OSError: [Errno 98] Address already in use

I tried changing the ports to 8080, the hostname to my IP address, having no luck.
Please could you direct me in what to do next.

Thank You

Tradingview web hook alert bot

I'm having some trouble installing the bot I'm somewhat new to coding but not entirely new and ill send you pics of my problems. As well as pics of what i have done so far.

First picture is the file config.py, please let me know if i have followed your instructions correctly for that file.
1st pic

Second picture is the command -ls, I just wanted to make sure i had all the files.
2nd pic

third picture is me running python main.py and python3 main.py
i am getting errors for both and i dont know why.
3rd picture

4th picture is just to make sure I am inputting the information in the tradingview correctly for usage.
4th picture

You are being rate limited

Hi VSNZ

I have updated the bot. I am now encountering a new error:

I am being rate limited by Discord, code: 429.

Is this a known issue?

sometimes work fine some not..!

Describe the bug:
A clear and concise description of what the bug is.

|TV-Webho | 2021-06-21 17:10:31 Alert Received & Sent!
0|TV-Webho | [X] Telegram Error:
0|TV-Webho | > Invalid server response

Steps to reproduce:
Steps to reproduce the behavior.

Expected behavior:
A clear and concise description of what you expected to happen.

Environment:

  • OS: [e.g. Arch Linux]
  • Other details that you think may affect.

Additional context:
Add any other context about the problem here.

Can't get it to work

Hi Fabian,

First, I really exited about what you created!
Unfortunately I'm very new to coding and i've been struggling for a couple of days to get this bot fired up, but i still didn't figure out what i'm doing wrong. Somehow it doesn't TV keep giving me the error "this host is not allowed". I'm working on a iMac and did manage to get all other applications running. My terminal says 'Serving on http://0.0.0.0:80' but none of the message seem to get through. First i want to get the discord webhook running, after that i would like to also activate twitter/tweepy.

Are you willing to help me?
Thanks in advance!

Running on more than 20 bots

Hi, I am getting errors and not all of my alerts are going through. It seems I get about 20 of them. I am currently running 40 bots. I am sending alerts every 15 minutes, but I am getting this error....

Flood control exceeded. Retry in 40.0 seconds

I am also getting errors......

WARNING:waitress.queue:Task queue depth is 22

Any help will be appreciated. Thanks.

Great Project

If you want to hit me up on Discord Gotcha#9318 I am working on a automation bot and I think we could really do some neat things together with this.

Stocks that have an underscore gives an error.

The Ticker OMXSTO:TEL2_B on Tradingview (on one of the largest Telecom/ISP providers in Sweden) has an underscore in the ticker.

Im not a coder. But whatever i try i get this console error.

Can't parse entities: can't find end of the entity starting at byte offset 15

This is the telegram message
{"key": "XXXXXX", "telegram": "-1001XXXXX", "msg": "TEST ON #{{ticker}} \nPrice {{open}}"}

Thanks for your fast response yesterday, and thank you for this code. Your work is amazing.

error on Raspberry Pi 3

Description

error message on launch

Steps to reproduce

  • follow install instructions
  • launch python main.py

Expected result

  • start

Actual result

python main.py Traceback (most recent call last): File "main.py", line 11, in <module> from handler import * File "/home/pi/botdiscord/TradingView-Webhook-Bot/handler.py", line 8, in <module> from telegram import Bot ImportError: No module named telegram

Environment

  • Raspberry Pi 3

ImportError: cannot import name 'Bot' from 'telegram'

ImportError Traceback (most recent call last)
in
6 from email.mime.text import MIMEText
----> 7 from telegram import Bot
8 import logging
9 import traceback

ImportError: cannot import name 'Bot' from 'telegram' (/root/anaconda3/lib/python3.8/site-packages/telegram/init.py)

Idea:

Summary

Letting users ask for trading view ideas in like a group chat for example, by using commands, like in this telegram group they use /ideas and the coin name and it shows different latest TA that where posted on that specific coin on trading view.

Basic example

Here is a link to the channel I saw it in: https://t.me/TheMoonGroup

Here is directl link the the bot channel: https://t.me/Whale_Tracker

its on telegram

Motivation

That bot has many more features u can explore but that will make the group chat on discord more lively and more people can discuss and talk about different scenarios or trade opportunities.

connecting to ip

Hi when i attempt to connect my ip to the webhook url i get the error of "the host is not allowed".

'NoneType' object is not subscriptable

Hi!

First wanted to say this is a very nice project and give my thanks.

I've an Issue. Every time the server gets an alert this is what i see in the console.

^C(TradingView-Webhook-Bot) ubuntu@web:~/bot/TradingView-Webhook-Bot$ python main.py
Serving on http://xxxx:7080
[X] 2021-01-12 14:12:09 Error:
> 'NoneType' object is not subscriptable
[X] 2021-01-12 14:14:22 Error:
> 'NoneType' object is not subscriptable
[X] 2021-01-12 14:15:59 Error:
> 'NoneType' object is not subscriptable

A little bug

Hi, after long hours work time, sometimes week, or two i getting this message "Can't parse entities: can't find end of the entity starting at byte offset 161"

I dont know why showig date 2020-10-14 when that was send 3-4 days ago
Here last log:

[OK!] 2020-10-14 00:16:03 Alert Received & Sent!
> BTC/USDT TF H1
SHORT Sell,
Entry: 13512.240789195805,
Take profits: TP1: 13310.60445 TP2: 13176.1539, TP3: 13041.70335
Stop Loss: null
[OK!] 2020-10-14 00:16:03 Alert Received & Sent!
> BTC/USDT TF H1
LONG Buy
Entry: 13292.075942768162,
Take profits: TP1: 13432.058175000002 TP2: 13565.048850000001, TP3: 13698.039525000002
Stop Loss: null
[OK!] 2020-10-14 00:16:03 Alert Received & Sent!
> BTCUSDT SHORT Sell
Binance Futures, Bybit
Entry: {{OpenS}}
Take profits:
TP1: 13310.60445
TP2: 13176.1539
TP3: 13041.70335
TP4: 12907.2528
TP5: 12772.802249999999
Stop Loss: {SLi_short)}}
Can't parse entities: can't find end of the entity starting at byte offset 178
[OK!] 2020-10-14 00:16:03 Alert Received & Sent!
> LONG Buy, Binance Futures, Bybit. Entry: 13492.592658598704, Take profits: TP1: 13643.5849999091 TP2: 13778.669999908201, TP3: 13913.7549999073 Stop Loss: {{("SL_long)"}}
Can't parse entities: can't find end of the entity starting at byte offset 161
[OK!] 2020-10-14 00:16:03 Alert Received & Sent!
> LONG Buy, Binance Futures, Bybit. Entry: 13480.750247856926, Take profits: TP1: 13646.808922535101 TP2: 13781.9258425602, TP3: 13917.0427625853 Stop Loss: {{("SL_long)"}}
Can't parse entities: can't find end of the entity starting at byte offset 161
Can't parse entities: can't find end of the entity starting at byte offset 161

BTCUSDT Crossing 13522.0000000
[OK!] 2020-10-31 07:27:05 Alert Received & Sent!
ETHUSDT LONG Buy
Binance Futures, Bybit
Entry: 383.2277615040855
Take profits:
TP1: 382.56034375
TP2: 386.9270374999999
TP3: 390.15459375
TP4: 393.95171875
TP5: 397.74884375
Stop Loss: {{("SL_LONG")}}
Can't parse entities: can't find end of the entity starting at byte offset 192
[OK!] 2020-10-31 07:27:05 Alert Received & Sent!
BTCUSDT LONG Buy
Binance Futures, Bybit
Entry: 13519.210206668417
Take profits:
TP1: 13432.058175000002
TP2: 13565.048850000001
TP3: 13698.039525000002
TP4: {{plot("LongTP4")}}
TP5: {{plot("LongTP5")}}
Stop Loss: {{("SL_LONG")}}
Can't parse entities: can't find end of the entity starting at byte offset 220

Timestamp in logs

I found a slight bug. The timestamp is always the same time in the logs. I fixed it by moving "timestamp = time.strftime("%Y-%m-%d %X")" from the top of the code to under the "webhook" portion. This is in the main.py. Thanks!

Webhook status code 404

Hi,

In log I can see that I receive alert but there is an error message:
2021-04-29 16:23:18 Alert Received & Sent! ERROR:discord_webhook.webhook:[1/1] Webhook status code 404: {"message": "404: Not Found", "code": 0}
My Trading view alert message is:
{ "key": "mysecretkey" "msg": Long #{{ticker}} at {{close}}" }

I'm using only Discord for now, sec_key is the same here my discord setting :
#Discord Settings send_discord_alerts = True discord_webhook = 'https://discord.com/api/webhooks/835172144408821811/verytoolongcode

I don't think it is a link with my configuration but for informations:
I'm on apache2 and use a reverse proxy on a http subdomain to sent it to the flask server host on port 8088.

Feature idea : support multiple telegram and discord channels

Hello again,

Looking at the config.py file, I see we can add one telegram channel to the code. To my best of knowledge, I don't think it is possible to maintain multiple telegram or discord channels ?

A "easy" (I don't know if it is hard to code) fix could be to create an option in the config file to support multiple channels in telegram and/or discord. If this is = TRUE, then the user can set the telegram channel number in the alert message (or perhaps in the webhook url). The channel id would be captured by the server and then the server would send the alert to it.

This could be very useful to handle various bots on one server and, for example, create different discord channels for different types of information.

I'm curious of what you'll think of this idea.

Best,
Rhydderch

Security where are you?

Hi, first of all very cool code, gonna steal that for my project :P
But I have some concerns about security. Wouldn't it be better to send a code (like a password) within the signal from tradingview? To ensure that the signal is coming from there? Otherwise everyone who knows you IP could send fake signals and wreck your portfolio. Gonna send you the code if I find the time to implement it :)

Telegram Markdown

Exellent Project!

Does the markdown doesn't work properly? I typed "text" on the message alert and it forwarded with code included

'NoneType' error

When the bot is running and receives a tradingview alert, it is giving this error:

'NoneType' object is not subscriptable

Custom Telegram Message

Dear Fabian Spranger,
First of all, I appreciate your great project. I have a problem and I will appreciate it if you help me to solve that. I want to customize the alert message before being sent to telegram, for instance, adding custom price based on {{close}} price, but I cannot find out how to do that.
Thank you in advance.

Alert sent as plain text

Summary

Currently the alerts sent are displayed as they are forwards, would be nice to have them sent as plain text

Basic example

image

VS PLAIN TEST

image

Motivation

Plain text formatting will help in retriving the lines as they are sent from the webhook.

Start bot on reboot Linux

Hi! I have this running on latest Ubuntu Desktop. Everything is working.

I was wondering if you could provide some instruction for using systemd to make this run on a reboot (without a user logged in). I am worried if my system reboots the bot is going to stop working.

I am a not a complete novice to Linux, but I am not an expert either. I see that I would need a .service file located in etc/systemd/system, but I am unsure exactly what to put in there.

P.S. Sending you some BTC right now for your trouble.

Thanks!

The requested URL was not found on the server.

I can't get the container to work properly. It starts up but serves me up a 404 browser message:

I The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

There is also no docker log output

NoneType object not subscriptable

Hi,

First of all. Thank you for the hard work.

I followed the tutorial, everything went flawlessy except the last part after python main.py.

image

I'm getting the following error. Can't seem to resolve it.

Thanks for the support.

No module named telegram or flask

Hi, i cant seem to get rid of the errors 'No module named telegram' and 'No module named flask' even though i believe they were both successfully installed. Any help would be appreciated. Thanks

Hi

Hi guys :)

I would love to use your TradingView-Webhook-Bot but I have little experience on setting it up.

Could you please give me some directions on installing it ? Im using Amazon AWS, could you tell me what version of Ubuntu do I need for this bot to run?

If you can I would appreciate your help. We can make a contact via telegram? My tg: @DomiTheProducer

Let me know if you can give me some assistance :)

Thank you

regarding webhook url

Hello, in your readme section, you mentioned that Your webhook url would be http://YOUR-IP/webhook.
so YOUR-IP should be my local or cloud server address?
but in main.py file, is there any change to the code?

webhook on local machine

Hi there,

i am strugelling while trying to get the webhook on my local machine.

what should i put in webhook url (Trading view Website)

Screenshot (49)

which ip you are talking about ( ipv4 (192.168..) or internet ip (45. **. **. **) )

Thanks in advance☺

I have a problem Huston

Firs of all thanks for amazing bot but I have a some problem about running bot. Thanks for your help.

(TradingView-Webhook-Bot) root@CSVPS:/twhook/TradingView-Webhook-Bot# python main.py
Traceback (most recent call last):
File "main.py", line 36, in
serve(app, host='0.0.0.0', port=80)
File "/root/twhook/TradingView-Webhook-Bot/lib/python3.6/site-packages/waitress/init.py", line 12, in serve
server = _server(app, **kw)
File "/root/twhook/TradingView-Webhook-Bot/lib/python3.6/site-packages/waitress/server.py", line 88, in create_server
sockinfo=sockinfo,
File "/root/twhook/TradingView-Webhook-Bot/lib/python3.6/site-packages/waitress/server.py", line 239, in init
self.bind_server_socket()
File "/root/twhook/TradingView-Webhook-Bot/lib/python3.6/site-packages/waitress/server.py", line 368, in bind_server_socket
self.bind(sockaddr)
File "/root/twhook/TradingView-Webhook-Bot/lib/python3.6/site-packages/waitress/wasyncore.py", line 398, in bind
return self.socket.bind(addr)
OSError: [Errno 98] Address already in use
(TradingView-Webhook-Bot) root@CSVPS:
/twhook/TradingView-Webhook-Bot#

TP and SL

Any possibilities we can add TP and SL using the placeholders on the message? ( based on {{close}} )

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.