Drakkar-Software / OctoBot

Open source crypto trading bot
https://www.octobot.cloud
GNU General Public License v3.0
3.22k stars 746 forks source link

Tradingview chart snapshots included in webhook message! #1725

Open XMVZ opened 3 years ago

XMVZ commented 3 years ago

Hi!

Is there ANY way to have a chart with the corresponding timeframe sent along with the webhook message to Discord? Potentially using Puppeteer?

Maybe something like THIS?

I'm very new to coding and am REALLY trying to implement chart snapshots into the webhook message so people can visualize where the pair is at.

If ANYONE can help me at all, this has been killing me for the entire week.

THANK YOU!

GuillaumeDSM commented 3 years ago

Hi, It looks like the {{interval}} value is proving the timeframe data in trading view webhook messages: image

XMVZ commented 3 years ago

Hi, It looks like the {{interval}} value is proving the timeframe data in trading view webhook messages: image

Yes, that's true, but how can I then create and have a graph posted along with the message? I'm very new to coding so any help is greatly appreciated.

Going to try to get the basic Discord webhook set up now.

GuillaumeDSM commented 3 years ago

Maybe the {{plot_}} variables can help, not sure If it's really possible to send an image though, this requires to dig deeper in tradingview. Maybe you can create an image from datasets in {{plot_}}.

XMVZ commented 3 years ago

Maybe the {{plot_}} variables can help, not sure If it's really possible to send an image though, this requires to dig deeper in tradingview. Maybe you can create an image from datasets in {{plot_}}.

What about using something like Puppeteer or Selenium to pull an image of the chart URL or snapshot URL?

GuillaumeDSM commented 3 years ago

It might work but will be really complicated, the OctoBot price chart is not enough for displaying the current price ? I'm trying to understand what you want to achieve exactly

XMVZ commented 3 years ago

It might work but will be really complicated, the OctoBot price chart is not enough for displaying the current price ? I'm trying to understand what you want to achieve exactly

THIS: https://github.com/itsaLca/Advanced-Tradingview-Webhook

Supposed to do exactly what I'd like, but it doesn't. Send a chart along with the notification.

GitHub
itsaLca/Advanced-Tradingview-Webhook
Contribute to itsaLca/Advanced-Tradingview-Webhook development by creating an account on GitHub.
XMVZ commented 3 years ago

Unable to add Discord as a service anyways, so kind of pointless. Oh well!

GuillaumeDSM commented 3 years ago

Telegram is supported but not Discord yet, we will add it in the future

XMVZ commented 3 years ago

Understood! I'll route the messages from Telegram to Discord.. However, my Webhook URL isn't showing up so I'm unable to have alerts sent to OctoBot? I've added Tradingview to my interfaces/connections. I am using the Tradingview alert strategy. For some reason no webhook URL shows up next to the token on the interfaces/connections page next to Tradingview or Web or Webhook...

How do I get my Webhook URL?

How do I fix this?