TradingView-Webhook-Bot/config.py

40 wiersze
1.3 KiB
Python
Czysty Zwykły widok Historia

2020-07-04 07:38:38 +00:00
# ----------------------------------------------- #
# Plugin Name : TradingView-Webhook-Bot #
2020-11-18 08:20:43 +00:00
# Author Name : vsnz #
2020-07-04 07:38:38 +00:00
# File Name : config.py #
# ----------------------------------------------- #
2020-04-22 13:57:28 +00:00
# Alert message in TradingView (ex. https://i.imgur.com/RFkuf1d.png)
# !! Case insensitive !!
whitelisted = [
'buy alert', 'sell alert'
]
2020-04-21 14:29:00 +00:00
2020-10-11 17:25:42 +00:00
sec_code = ''
2020-04-21 14:29:00 +00:00
# Telegram Settings
2020-07-11 15:52:48 +00:00
send_telegram_alerts = False
tg_token = '' # Bot token. Get it from @Botfather
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
2020-04-22 13:57:28 +00:00
discord_webhook = '' # Discord Webhook URL (https://support.discordapp.com/hc/de/articles/228383668-Webhooks-verwenden)
#Twitter Settings
send_twitter_alerts = False
tw_ckey = ''
tw_csecret = ''
tw_atoken = ''
tw_asecret = ''
2020-04-22 13:57:28 +00:00
# Email Settings
send_email_alerts = False
email_sender = '' # Your email address
email_receivers = ['', ''] # Receivers, can be multiple
email_subject = 'Trade Alert!'
email_port = 465 # SMTP SSL Port (ex. 465)
email_host = '' # SMTP host (ex. smtp.gmail.com)
email_user = '' # SMTP Login credentials
email_password = '' # SMTP Login credentials