TradingView-Webhook-Bot/config.py

46 wiersze
1.5 KiB
Python

2020-07-04 07:38:38 +00:00
# ----------------------------------------------- #
# Plugin Name : TradingView-Webhook-Bot #
2021-03-14 08:24:07 +00:00
# Author Name : fabston #
2020-07-04 07:38:38 +00:00
# File Name : config.py #
# ----------------------------------------------- #
# TradingView Example Alert Message:
2021-02-05 17:27:05 +00:00
# {
# "key":"9T2q394M92", "telegram":"-1001298977502", "discord":"789842349670960670/BFeBBrCt-w2Z9RJ2wlH6TWUjM5bJuC29aJaJ5OQv9sE6zCKY_AlOxxFwRURkgEl852s3", "msg":"Long #{{ticker}} at `{{close}}`"
# }
2020-04-21 14:29:00 +00:00
2021-06-22 12:34:31 +00:00
sec_key = (
"" # Can be anything. Has to match with "key" in your TradingView alert message
)
2020-10-11 17:25:42 +00:00
2020-04-21 14:29:00 +00:00
# Telegram Settings
2020-07-11 15:52:48 +00:00
send_telegram_alerts = False
2021-06-22 12:34:31 +00:00
tg_token = "" # Bot token. Get it from @Botfather
2021-03-27 07:20:00 +00:00
channel = 0 # Channel ID (ex. -1001487568087)
2020-04-21 14:29:00 +00:00
# Discord Settings
2020-07-11 15:52:48 +00:00
send_discord_alerts = False
2021-06-22 12:34:31 +00:00
discord_webhook = "" # Discord Webhook URL (https://support.discordapp.com/hc/de/articles/228383668-Webhooks-verwenden)
2020-04-22 13:57:28 +00:00
2021-02-05 17:27:05 +00:00
# Slack Settings
send_slack_alerts = False
2021-06-22 12:34:31 +00:00
slack_webhook = "" # Slack Webhook URL (https://api.slack.com/messaging/webhooks)
2021-02-05 17:27:05 +00:00
2021-03-27 07:20:00 +00:00
# Twitter Settings
send_twitter_alerts = False
2021-06-22 12:34:31 +00:00
tw_ckey = ""
tw_csecret = ""
tw_atoken = ""
tw_asecret = ""
2020-04-22 13:57:28 +00:00
# Email Settings
send_email_alerts = False
2021-06-22 12:34:31 +00:00
email_sender = "" # Your email address
email_receivers = ["", ""] # Receivers, can be multiple
email_subject = "Trade Alert!"
2021-03-27 07:20:00 +00:00
email_port = 465 # SMTP SSL Port (ex. 465)
2021-06-22 12:34:31 +00:00
email_host = "" # SMTP host (ex. smtp.gmail.com)
email_user = "" # SMTP Login credentials
email_password = "" # SMTP Login credentials